@onecx/shell-core 4.14.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.
@@ -0,0 +1,298 @@
1
+ import * as i3 from '@angular/common';
2
+ import { CommonModule } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { Component, Input, ChangeDetectionStrategy, EventEmitter, Output, Renderer2, HostListener, NgModule, Injectable } from '@angular/core';
5
+ import * as i1 from '@angular/router';
6
+ import { RouterModule } from '@angular/router';
7
+ import * as i3$1 from '@onecx/angular-accelerator';
8
+ import { AngularAcceleratorModule } from '@onecx/angular-accelerator';
9
+ import * as i4 from '@onecx/angular-remote-components';
10
+ import { AngularRemoteComponentsModule } from '@onecx/angular-remote-components';
11
+ import * as i7 from 'primeng/toast';
12
+ import { ToastModule } from 'primeng/toast';
13
+ import * as i1$1 from '@onecx/angular-integration-interface';
14
+ import { CONFIG_KEY, ThemeService, AppStateService, PortalMessageService, UserService } from '@onecx/angular-integration-interface';
15
+ import { ImageLogoUrlUtils } from '@onecx/portal-integration-angular';
16
+ import { withLatestFrom, map, combineLatest, concat, of, first, mergeMap, filter, tap } from 'rxjs';
17
+ import { __decorate, __metadata } from 'tslib';
18
+ import { trigger, transition, style, animate } from '@angular/animations';
19
+ import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
20
+ import * as i3$2 from '@angular/common/http';
21
+ import { HttpClient } from '@angular/common/http';
22
+ import * as i1$2 from 'primeng/api';
23
+ import { PrimeNGConfig, MessageService } from 'primeng/api';
24
+
25
+ class GlobalErrorComponent {
26
+ constructor(router, route) {
27
+ this.router = router;
28
+ this.route = route;
29
+ this.errCode = this.route.snapshot.queryParamMap.get('err') || 'E1001_FAILED_START';
30
+ this.backUrl = this.route.snapshot.queryParamMap.get('return') || '/';
31
+ }
32
+ onGoBack() {
33
+ this.router.navigateByUrl(this.backUrl);
34
+ }
35
+ reload() {
36
+ window.location.reload();
37
+ }
38
+ }
39
+ GlobalErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalErrorComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
40
+ GlobalErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GlobalErrorComponent, selector: "ocx-shell-error", inputs: { errCode: "errCode" }, ngImport: i0, template: "<div class=\"pages-body error-page flex flex-column\">\n <div class=\"align-self-center mt-auto mb-auto\">\n <div class=\"pages-panel card flex flex-column\">\n <div class=\"pages-header px-3 py-1\">\n <h2>ERROR</h2>\n </div>\n <div class=\"card mt-3 px-6\">\n <img src=\"assets/images/error.png\" alt=\"\" />\n </div>\n <div class=\"pages-detail pb-6\">{{errCode}}</div>\n <button pButton pRipple type=\"button\" label=\"Try Again\" (click)=\"reload()\" class=\"p-button-text\"></button>\n </div>\n </div>\n</div>\n", styles: [".pages-body{height:100vh}.pages-body .topbar{box-shadow:0 2px 5px #00000042;background-color:#1565c0;z-index:100}.pages-body .topbar .topbar-left img{height:2rem}.pages-body .topbar .p-button.p-button-text.p-button-plain{color:#fff}.pages-body .pages-panel{text-align:center;z-index:200}.pages-body .pages-panel.card{border:1.5px solid var(--divider-color);border-radius:6px}.pages-body .pages-panel.card img{width:100%}.pages-body .pages-panel.card>.card{background-color:var(--content-alt-bg-color)}.pages-body .pages-panel .pages-header{margin-top:-3rem;color:var(--primary-color-text);border:1.5px solid var(--divider-color);border-radius:4px;margin-left:auto;margin-right:auto}.pages-body .pages-panel .pages-header h2{margin:0}.pages-body .pages-panel .pages-detail{color:var(--text-secondary-color)}.pages-body.error-page{background-size:cover;background-color:var(--primary-color)}.pages-body.error-page .pages-panel .pages-header{background:#d81b60}.pages-body.notfound-page{background-size:cover}.pages-body.notfound-page .pages-panel .pages-header{background:#455a64}.pages-body.accessdenied-page{background-size:cover}.pages-body.accessdenied-page .pages-panel .pages-header{background:#fb8c00}@media screen and (max-width: 768px){.pages-body.contact-page .pages-panel{padding-bottom:10em}.pages-body.contact-page .pages-panel .p-button{width:100%}.pages-body.contact-page .pages-panel .card .right-panel{text-align:center}}\n"] });
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalErrorComponent, decorators: [{
42
+ type: Component,
43
+ args: [{ selector: 'ocx-shell-error', template: "<div class=\"pages-body error-page flex flex-column\">\n <div class=\"align-self-center mt-auto mb-auto\">\n <div class=\"pages-panel card flex flex-column\">\n <div class=\"pages-header px-3 py-1\">\n <h2>ERROR</h2>\n </div>\n <div class=\"card mt-3 px-6\">\n <img src=\"assets/images/error.png\" alt=\"\" />\n </div>\n <div class=\"pages-detail pb-6\">{{errCode}}</div>\n <button pButton pRipple type=\"button\" label=\"Try Again\" (click)=\"reload()\" class=\"p-button-text\"></button>\n </div>\n </div>\n</div>\n", styles: [".pages-body{height:100vh}.pages-body .topbar{box-shadow:0 2px 5px #00000042;background-color:#1565c0;z-index:100}.pages-body .topbar .topbar-left img{height:2rem}.pages-body .topbar .p-button.p-button-text.p-button-plain{color:#fff}.pages-body .pages-panel{text-align:center;z-index:200}.pages-body .pages-panel.card{border:1.5px solid var(--divider-color);border-radius:6px}.pages-body .pages-panel.card img{width:100%}.pages-body .pages-panel.card>.card{background-color:var(--content-alt-bg-color)}.pages-body .pages-panel .pages-header{margin-top:-3rem;color:var(--primary-color-text);border:1.5px solid var(--divider-color);border-radius:4px;margin-left:auto;margin-right:auto}.pages-body .pages-panel .pages-header h2{margin:0}.pages-body .pages-panel .pages-detail{color:var(--text-secondary-color)}.pages-body.error-page{background-size:cover;background-color:var(--primary-color)}.pages-body.error-page .pages-panel .pages-header{background:#d81b60}.pages-body.notfound-page{background-size:cover}.pages-body.notfound-page .pages-panel .pages-header{background:#455a64}.pages-body.accessdenied-page{background-size:cover}.pages-body.accessdenied-page .pages-panel .pages-header{background:#fb8c00}@media screen and (max-width: 768px){.pages-body.contact-page .pages-panel{padding-bottom:10em}.pages-body.contact-page .pages-panel .p-button{width:100%}.pages-body.contact-page .pages-panel .card .right-panel{text-align:center}}\n"] }]
44
+ }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }]; }, propDecorators: { errCode: [{
45
+ type: Input
46
+ }] } });
47
+
48
+ const SHELL_BFF_PREFIX = 'shell-bff';
49
+
50
+ class PortalFooterComponent {
51
+ constructor(configurationService, router, appState, themeService) {
52
+ this.configurationService = configurationService;
53
+ this.router = router;
54
+ this.appState = appState;
55
+ this.themeService = themeService;
56
+ this.versionInfo$ = this.appState.currentMfe$.pipe(withLatestFrom(this.appState.currentPortal$.asObservable()), map(([mfe, portal]) => {
57
+ const mfeInfoVersion = mfe?.version || '';
58
+ const mfeName = mfe?.displayName;
59
+ const hostVersion = this.configurationService.getProperty(CONFIG_KEY.APP_VERSION) || 'DEV-LOCAL';
60
+ const mfInfoText = mfeName ? `MF ${mfeName} v${mfeInfoVersion}` : '';
61
+ return `Portal: ${portal.portalName} v${hostVersion} ${mfInfoText}`;
62
+ }));
63
+ this.logoUrl$ = combineLatest([
64
+ this.themeService.currentTheme$.asObservable(),
65
+ this.appState.currentWorkspace$.asObservable(),
66
+ ]).pipe(map(([theme, portalData]) => ImageLogoUrlUtils.createLogoUrl(SHELL_BFF_PREFIX, theme.logoUrl || portalData.logoUrl)));
67
+ }
68
+ ngOnInit() {
69
+ this.copyrightMsg$ = concat(of('Capgemini. All rights reserved.'), this.appState.currentWorkspace$.pipe(map((portalData) => {
70
+ if (!(portalData.footerLabel === '' ||
71
+ portalData.footerLabel === 'string' ||
72
+ portalData.footerLabel === undefined)) {
73
+ return portalData.companyName || portalData.footerLabel || 'All rights reserved.';
74
+ }
75
+ return '';
76
+ })));
77
+ }
78
+ onErrorHandleSrc() {
79
+ this.logoUrl$ = of(undefined);
80
+ }
81
+ }
82
+ PortalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PortalFooterComponent, deps: [{ token: i1$1.ConfigurationService }, { token: i1.Router }, { token: i1$1.AppStateService }, { token: i1$1.ThemeService }], target: i0.ɵɵFactoryTarget.Component });
83
+ PortalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PortalFooterComponent, selector: "ocx-shell-footer", ngImport: i0, template: "<div class=\"ml-3 py-2 lg:ml-5 flex flex-wrap align-items-center justify-content-between row-gap-1\">\n <div class=\"flex flex-wrap align-items-center justify-content-start gap-3 row-gap-1\">\n <img *ngIf=\"logoUrl$ | async\" alt=\"logo\" class=\"max-h-1rem\" [ocxSrc]=\"(logoUrl$ | async) ?? ''\" (error)=\"onErrorHandleSrc()\" />\n <div class=\"flex-none text-sm\">&copy; {{copyrightMsg$ | async}}</div>\n <ocx-slot name=\"footer-menu-items\">Footer Menu Items</ocx-slot>\n </div>\n <div class=\"mr-5 text-sm\">{{versionInfo$ | async}}</div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.SlotComponent, selector: "ocx-slot[name]", inputs: ["name"] }, { kind: "directive", type: i3$1.SrcDirective, selector: "[ocxSrc]", inputs: ["ocxSrc"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PortalFooterComponent, decorators: [{
85
+ type: Component,
86
+ args: [{ selector: 'ocx-shell-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ml-3 py-2 lg:ml-5 flex flex-wrap align-items-center justify-content-between row-gap-1\">\n <div class=\"flex flex-wrap align-items-center justify-content-start gap-3 row-gap-1\">\n <img *ngIf=\"logoUrl$ | async\" alt=\"logo\" class=\"max-h-1rem\" [ocxSrc]=\"(logoUrl$ | async) ?? ''\" (error)=\"onErrorHandleSrc()\" />\n <div class=\"flex-none text-sm\">&copy; {{copyrightMsg$ | async}}</div>\n <ocx-slot name=\"footer-menu-items\">Footer Menu Items</ocx-slot>\n </div>\n <div class=\"mr-5 text-sm\">{{versionInfo$ | async}}</div>\n</div>\n" }]
87
+ }], ctorParameters: function () { return [{ type: i1$1.ConfigurationService }, { type: i1.Router }, { type: i1$1.AppStateService }, { type: i1$1.ThemeService }]; } });
88
+
89
+ let HeaderComponent = class HeaderComponent {
90
+ constructor(themeService, appStateService) {
91
+ this.themeService = themeService;
92
+ this.appStateService = appStateService;
93
+ this.menuExpanded = false;
94
+ this.fallbackImg = false;
95
+ this.fullPortalLayout = true;
96
+ this.homeNavUrl = '/';
97
+ this.homeNavTitle = 'Home';
98
+ this.menuButtonClick = new EventEmitter();
99
+ this.logoUrl$ = combineLatest([
100
+ this.themeService.currentTheme$.asObservable(),
101
+ this.appStateService.currentWorkspace$.asObservable(),
102
+ ]).pipe(map(([theme, portal]) => {
103
+ return ImageLogoUrlUtils.createLogoUrl(SHELL_BFF_PREFIX, theme.logoUrl || portal.logoUrl);
104
+ }));
105
+ }
106
+ onMenuButtonClick(e) {
107
+ this.menuButtonClick.emit(e);
108
+ }
109
+ };
110
+ HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, deps: [{ token: i1$1.ThemeService }, { token: i1$1.AppStateService }], target: i0.ɵɵFactoryTarget.Component });
111
+ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: HeaderComponent, selector: "ocx-shell-header", inputs: { menuButtonTitle: "menuButtonTitle", fullPortalLayout: "fullPortalLayout", homeNavUrl: "homeNavUrl", homeNavTitle: "homeNavTitle" }, outputs: { menuButtonClick: "menuButtonClick" }, ngImport: i0, template: "<div class=\"layout-topbar shadow-4\" id=\"header\" role=\"banner\">\n <div class=\"layout-topbar-left\">\n <a class=\"layout-topbar-logo\">\n <img\n id=\"app-logo\"\n [ocxSrc]=\"(logoUrl$ | async) ?? ''\"\n alt=\"Logo\"\n style=\"max-height: 100%; max-width: 100%\"\n *ngIf=\"(logoUrl$ | async) && !fallbackImg\"\n (error)=\"fallbackImg=true\"\n />\n <svg *ngIf=\"((logoUrl$ | async) === null) || fallbackImg\" width=\"160\" viewBox=\"0 0 283 72\" class=\"default-logo\">\n <defs id=\"SvgjsDefs4962\"></defs>\n <g\n id=\"SvgjsG4963\"\n featurekey=\"symbolFeature-0\"\n transform=\"matrix(0.7555406501686023,0,0,0.7555406501686023,-4.883814572467361,-0.26595028490140254)\"\n >\n <path\n xmlns=\"http://www.w3.org/2000/svg\"\n d=\"M88.54,46.256L9.464,0.616c-0.616-0.352-1.384-0.352-2,0c-0.62,0.36-1,1.02-1,1.736v91.296c0,0.716,0.38,1.375,1,1.731 c0.308,0.185,0.656,0.269,1,0.269c0.344,0,0.692-0.084,1-0.269L88.54,49.729c0.616-0.36,1-1.021,1-1.736 C89.54,47.276,89.152,46.616,88.54,46.256z M60.08,49.771L21.388,69.805c-0.288,0.147-0.604,0.223-0.92,0.223 c-0.36,0-0.72-0.092-1.04-0.287c-0.596-0.364-0.96-1.008-0.96-1.713v-40.06c0-0.696,0.364-1.344,0.96-1.712 c0.596-0.36,1.336-0.392,1.96-0.068l38.696,20.028c0.664,0.344,1.084,1.032,1.084,1.772C61.164,48.74,60.744,49.428,60.08,49.771z\"\n ></path>\n <path xmlns=\"http://www.w3.org/2000/svg\" d=\"M22.464,64.744l32.345-16.748l-32.345-16.74V64.744z\"></path>\n </g>\n <g\n id=\"SvgjsG4964\"\n featurekey=\"nameFeature-0\"\n transform=\"matrix(1.0207331753701396,0,0,1.0207331753701396,81.5644404108694,15.72408377414908)\"\n >\n <path\n d=\"M17.344 32.6562 c-0.78125 -0.15625 -1.5105 -0.3907 -2.1876 -0.7032 c-1.4584 -0.67711 -2.7344 -1.6146 -3.8281 -2.8125 c-1.0416 -1.0938 -1.875 -2.4479 -2.5 -4.0625 c-0.57289 -1.6146 -0.85938 -3.2552 -0.85938 -4.9219 l0 -0.15625 l0 -0.23438 c0 -1.7188 0.28648 -3.3854 0.85938 -5 c0.67711 -1.6666 1.5105 -2.9948 2.5001 -3.9844 c1.0416 -1.1979 2.2916 -2.1094 3.75 -2.7344 c0.88539 -0.41664 1.6406 -0.67703 2.2656 -0.78117 l0 -5.8594 c-1.8229 0.26039 -3.4375 0.70313 -4.8438 1.3281 c-2.2916 0.98961 -4.2448 2.3177 -5.8594 3.9844 s-2.8906 3.6458 -3.8281 5.9374 s-1.4063 4.6875 -1.4063 7.1875 l0 0.15625 l0 0.23438 c0 2.5521 0.46875 4.948 1.4063 7.1876 c0.83336 2.2396 2.0834 4.1927 3.75 5.8594 c1.6666 1.7188 3.6198 3.0469 5.8594 3.9844 c1.4063 0.625 3.0469 1.0677 4.9219 1.3281 l0 -5.9375 z M38.594 20 l0.000076294 -0.23438 c0 -2.5521 -0.46875 -4.948 -1.4063 -7.1876 c-0.9375 -2.2916 -2.2135 -4.2708 -3.8281 -5.9374 c-1.5625 -1.6666 -3.4896 -2.9688 -5.7813 -3.9063 c-1.3021 -0.625 -2.8906 -1.0677 -4.7656 -1.3281 l0 5.9375 l0.9375 0.3125 c0.46875 0.15625 0.83336 0.28648 1.0938 0.39063 c1.4584 0.67711 2.7344 1.6146 3.8281 2.8125 c1.0416 1.0938 1.875 2.4479 2.5 4.0625 c0.57289 1.6146 0.85938 3.2552 0.85938 4.9219 l0 0.15625 l0 0.23438 c0 1.7188 -0.28648 3.3854 -0.85938 5 c-0.67711 1.6666 -1.5105 2.9948 -2.5001 3.9844 c-1.0416 1.1979 -2.2916 2.1094 -3.75 2.7344 c-0.67711 0.3125 -1.3802 0.54688 -2.1094 0.70313 l0 5.9375 c1.5625 -0.20836 3.125 -0.65109 4.6875 -1.3282 c2.1354 -0.88539 4.0885 -2.2135 5.8594 -3.9844 c1.7188 -1.8229 2.9948 -3.802 3.8281 -5.9374 c0.9375 -2.2916 1.4063 -4.6875 1.4063 -7.1875 l0 -0.15625 z M43.8281 38.5937 l6.4844 0 l0 -19.922 l-6.4844 -9.1406 l0 29.063 z M69.76599999999999 1.4059999999999988 l0 25.703 l-18.359 -25.703 l-7.0313 0 l26.406 37.188 l5.3906 0 l0 -37.188 l-6.4063 0 z M86.0938 1.4059999999999988 l27.813 0 l0 5.9375 l-27.813 0 l0 -5.9375 z M86.0938 32.6562 l27.734 0 l0 5.9375 l-27.734 0 l0 -5.9375 z M86.0938 16.875 l25.078 0 l0 5.8594 l-25.078 0 l0 -5.8594 z M127.2656 12.5 c0.9375 -2.2916 2.2916 -4.2447 4.0624 -5.8593 c1.6146 -1.6146 3.698 -2.9167 6.2501 -3.9063 s5.2344 -1.4844 8.0469 -1.4844 l8.6719 0 l0 5.9375 l-8.5938 0 c-2.0313 0 -3.8281 0.33852 -5.3906 1.0156 c-1.6666 0.67711 -3.0208 1.5625 -4.0624 2.6563 c-1.0938 1.0416 -1.9791 2.3958 -2.6563 4.0624 c-0.625 1.5104 -0.9375 3.2031 -0.9375 5.0781 s0.3125 3.5677 0.9375 5.0781 c0.625 1.5625 1.5104 2.9166 2.6563 4.0625 c1.0416 1.0416 2.3958 1.901 4.0624 2.5781 c1.6666 0.625 3.4635 0.9375 5.3906 0.9375 l8.5938 0 l0 5.9375 l-8.6719 0 c-2.9166 0 -5.5729 -0.46875 -7.9688 -1.4063 c-2.5 -1.0416 -4.6094 -2.3698 -6.3281 -3.9844 c-1.7709 -1.6666 -3.125 -3.6458 -4.0625 -5.9374 c-0.98961 -2.3959 -1.4844 -4.8438 -1.4844 -7.3438 c0 -2.6563 0.49477 -5.1302 1.4844 -7.4219 z M176.484 29.375 l3.5156 -4.6875 l-0.078125 -0.15625 z M196.875 1.4059999999999988 l-7.5 0 l-9.2969 13.359 l-9.2188 -13.359 l-7.7344 0 l13.047 18.281 l-13.516 18.906 l8.3594 0 z M197.344 38.5937 l-10.313 -14.609 l-3.9063 5.2344 l6.5625 9.375 l7.6563 0 z\"\n ></path>\n </g>\n </svg>\n </a>\n\n <a class=\"layout-menu-button shadow-6\" (click)=\"onMenuButtonClick($event)\" pRipple [title]=\"menuButtonTitle ?? ('OCX_HEADER.MENU_TOGGLE')\">\n <i class=\"pi pi-chevron-right\"></i>\n </a>\n </div>\n\n <div class=\"layout-topbar-right\">\n <div class=\"layout-topbar-actions-left\">\n <ng-content></ng-content>\n </div>\n <div class=\"layout-topbar-actions-right\">\n <ul class=\"layout-topbar-items\">\n <!-- Only desktop: Actions (favorites, support, search, ...) as icon buttons -->\n <ng-container *ocxIfBreakpoint=\"'desktop'\">\n\n </ng-container>\n\n <!-- Only mobile: Actions (favorites, support, search, ...) as 'more' button + overlay -->\n <li class=\"layout-topbar-item\" *ocxIfBreakpoint=\"'mobile'\">\n \n </li>\n </ul>\n </div>\n </div>\n</div>\n", styles: [".http-progress-loader{margin-left:8px;padding-top:5px}@media screen and (max-width: 1024px){.http-progress-loader{margin-left:0;margin-right:8px}}.default-logo{color:var(--logo-color, #12abdb);fill:currentColor}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.IfBreakpointDirective, selector: "[ocxIfBreakpoint]", inputs: ["ocxIfBreakpoint"] }, { kind: "directive", type: i3$1.SrcDirective, selector: "[ocxSrc]", inputs: ["ocxSrc"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], animations: [
112
+ trigger('topbarActionPanelAnimation', [
113
+ transition(':enter', [
114
+ style({ opacity: 0, transform: 'scaleY(0.8)' }),
115
+ animate('.12s cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1, transform: '*' })),
116
+ ]),
117
+ transition(':leave', [animate('.1s linear', style({ opacity: 0 }))]),
118
+ ]),
119
+ ] });
120
+ HeaderComponent = __decorate([
121
+ UntilDestroy(),
122
+ __metadata("design:paramtypes", [ThemeService, AppStateService])
123
+ ], HeaderComponent);
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, decorators: [{
125
+ type: Component,
126
+ args: [{ selector: 'ocx-shell-header', animations: [
127
+ trigger('topbarActionPanelAnimation', [
128
+ transition(':enter', [
129
+ style({ opacity: 0, transform: 'scaleY(0.8)' }),
130
+ animate('.12s cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1, transform: '*' })),
131
+ ]),
132
+ transition(':leave', [animate('.1s linear', style({ opacity: 0 }))]),
133
+ ]),
134
+ ], template: "<div class=\"layout-topbar shadow-4\" id=\"header\" role=\"banner\">\n <div class=\"layout-topbar-left\">\n <a class=\"layout-topbar-logo\">\n <img\n id=\"app-logo\"\n [ocxSrc]=\"(logoUrl$ | async) ?? ''\"\n alt=\"Logo\"\n style=\"max-height: 100%; max-width: 100%\"\n *ngIf=\"(logoUrl$ | async) && !fallbackImg\"\n (error)=\"fallbackImg=true\"\n />\n <svg *ngIf=\"((logoUrl$ | async) === null) || fallbackImg\" width=\"160\" viewBox=\"0 0 283 72\" class=\"default-logo\">\n <defs id=\"SvgjsDefs4962\"></defs>\n <g\n id=\"SvgjsG4963\"\n featurekey=\"symbolFeature-0\"\n transform=\"matrix(0.7555406501686023,0,0,0.7555406501686023,-4.883814572467361,-0.26595028490140254)\"\n >\n <path\n xmlns=\"http://www.w3.org/2000/svg\"\n d=\"M88.54,46.256L9.464,0.616c-0.616-0.352-1.384-0.352-2,0c-0.62,0.36-1,1.02-1,1.736v91.296c0,0.716,0.38,1.375,1,1.731 c0.308,0.185,0.656,0.269,1,0.269c0.344,0,0.692-0.084,1-0.269L88.54,49.729c0.616-0.36,1-1.021,1-1.736 C89.54,47.276,89.152,46.616,88.54,46.256z M60.08,49.771L21.388,69.805c-0.288,0.147-0.604,0.223-0.92,0.223 c-0.36,0-0.72-0.092-1.04-0.287c-0.596-0.364-0.96-1.008-0.96-1.713v-40.06c0-0.696,0.364-1.344,0.96-1.712 c0.596-0.36,1.336-0.392,1.96-0.068l38.696,20.028c0.664,0.344,1.084,1.032,1.084,1.772C61.164,48.74,60.744,49.428,60.08,49.771z\"\n ></path>\n <path xmlns=\"http://www.w3.org/2000/svg\" d=\"M22.464,64.744l32.345-16.748l-32.345-16.74V64.744z\"></path>\n </g>\n <g\n id=\"SvgjsG4964\"\n featurekey=\"nameFeature-0\"\n transform=\"matrix(1.0207331753701396,0,0,1.0207331753701396,81.5644404108694,15.72408377414908)\"\n >\n <path\n d=\"M17.344 32.6562 c-0.78125 -0.15625 -1.5105 -0.3907 -2.1876 -0.7032 c-1.4584 -0.67711 -2.7344 -1.6146 -3.8281 -2.8125 c-1.0416 -1.0938 -1.875 -2.4479 -2.5 -4.0625 c-0.57289 -1.6146 -0.85938 -3.2552 -0.85938 -4.9219 l0 -0.15625 l0 -0.23438 c0 -1.7188 0.28648 -3.3854 0.85938 -5 c0.67711 -1.6666 1.5105 -2.9948 2.5001 -3.9844 c1.0416 -1.1979 2.2916 -2.1094 3.75 -2.7344 c0.88539 -0.41664 1.6406 -0.67703 2.2656 -0.78117 l0 -5.8594 c-1.8229 0.26039 -3.4375 0.70313 -4.8438 1.3281 c-2.2916 0.98961 -4.2448 2.3177 -5.8594 3.9844 s-2.8906 3.6458 -3.8281 5.9374 s-1.4063 4.6875 -1.4063 7.1875 l0 0.15625 l0 0.23438 c0 2.5521 0.46875 4.948 1.4063 7.1876 c0.83336 2.2396 2.0834 4.1927 3.75 5.8594 c1.6666 1.7188 3.6198 3.0469 5.8594 3.9844 c1.4063 0.625 3.0469 1.0677 4.9219 1.3281 l0 -5.9375 z M38.594 20 l0.000076294 -0.23438 c0 -2.5521 -0.46875 -4.948 -1.4063 -7.1876 c-0.9375 -2.2916 -2.2135 -4.2708 -3.8281 -5.9374 c-1.5625 -1.6666 -3.4896 -2.9688 -5.7813 -3.9063 c-1.3021 -0.625 -2.8906 -1.0677 -4.7656 -1.3281 l0 5.9375 l0.9375 0.3125 c0.46875 0.15625 0.83336 0.28648 1.0938 0.39063 c1.4584 0.67711 2.7344 1.6146 3.8281 2.8125 c1.0416 1.0938 1.875 2.4479 2.5 4.0625 c0.57289 1.6146 0.85938 3.2552 0.85938 4.9219 l0 0.15625 l0 0.23438 c0 1.7188 -0.28648 3.3854 -0.85938 5 c-0.67711 1.6666 -1.5105 2.9948 -2.5001 3.9844 c-1.0416 1.1979 -2.2916 2.1094 -3.75 2.7344 c-0.67711 0.3125 -1.3802 0.54688 -2.1094 0.70313 l0 5.9375 c1.5625 -0.20836 3.125 -0.65109 4.6875 -1.3282 c2.1354 -0.88539 4.0885 -2.2135 5.8594 -3.9844 c1.7188 -1.8229 2.9948 -3.802 3.8281 -5.9374 c0.9375 -2.2916 1.4063 -4.6875 1.4063 -7.1875 l0 -0.15625 z M43.8281 38.5937 l6.4844 0 l0 -19.922 l-6.4844 -9.1406 l0 29.063 z M69.76599999999999 1.4059999999999988 l0 25.703 l-18.359 -25.703 l-7.0313 0 l26.406 37.188 l5.3906 0 l0 -37.188 l-6.4063 0 z M86.0938 1.4059999999999988 l27.813 0 l0 5.9375 l-27.813 0 l0 -5.9375 z M86.0938 32.6562 l27.734 0 l0 5.9375 l-27.734 0 l0 -5.9375 z M86.0938 16.875 l25.078 0 l0 5.8594 l-25.078 0 l0 -5.8594 z M127.2656 12.5 c0.9375 -2.2916 2.2916 -4.2447 4.0624 -5.8593 c1.6146 -1.6146 3.698 -2.9167 6.2501 -3.9063 s5.2344 -1.4844 8.0469 -1.4844 l8.6719 0 l0 5.9375 l-8.5938 0 c-2.0313 0 -3.8281 0.33852 -5.3906 1.0156 c-1.6666 0.67711 -3.0208 1.5625 -4.0624 2.6563 c-1.0938 1.0416 -1.9791 2.3958 -2.6563 4.0624 c-0.625 1.5104 -0.9375 3.2031 -0.9375 5.0781 s0.3125 3.5677 0.9375 5.0781 c0.625 1.5625 1.5104 2.9166 2.6563 4.0625 c1.0416 1.0416 2.3958 1.901 4.0624 2.5781 c1.6666 0.625 3.4635 0.9375 5.3906 0.9375 l8.5938 0 l0 5.9375 l-8.6719 0 c-2.9166 0 -5.5729 -0.46875 -7.9688 -1.4063 c-2.5 -1.0416 -4.6094 -2.3698 -6.3281 -3.9844 c-1.7709 -1.6666 -3.125 -3.6458 -4.0625 -5.9374 c-0.98961 -2.3959 -1.4844 -4.8438 -1.4844 -7.3438 c0 -2.6563 0.49477 -5.1302 1.4844 -7.4219 z M176.484 29.375 l3.5156 -4.6875 l-0.078125 -0.15625 z M196.875 1.4059999999999988 l-7.5 0 l-9.2969 13.359 l-9.2188 -13.359 l-7.7344 0 l13.047 18.281 l-13.516 18.906 l8.3594 0 z M197.344 38.5937 l-10.313 -14.609 l-3.9063 5.2344 l6.5625 9.375 l7.6563 0 z\"\n ></path>\n </g>\n </svg>\n </a>\n\n <a class=\"layout-menu-button shadow-6\" (click)=\"onMenuButtonClick($event)\" pRipple [title]=\"menuButtonTitle ?? ('OCX_HEADER.MENU_TOGGLE')\">\n <i class=\"pi pi-chevron-right\"></i>\n </a>\n </div>\n\n <div class=\"layout-topbar-right\">\n <div class=\"layout-topbar-actions-left\">\n <ng-content></ng-content>\n </div>\n <div class=\"layout-topbar-actions-right\">\n <ul class=\"layout-topbar-items\">\n <!-- Only desktop: Actions (favorites, support, search, ...) as icon buttons -->\n <ng-container *ocxIfBreakpoint=\"'desktop'\">\n\n </ng-container>\n\n <!-- Only mobile: Actions (favorites, support, search, ...) as 'more' button + overlay -->\n <li class=\"layout-topbar-item\" *ocxIfBreakpoint=\"'mobile'\">\n \n </li>\n </ul>\n </div>\n </div>\n</div>\n", styles: [".http-progress-loader{margin-left:8px;padding-top:5px}@media screen and (max-width: 1024px){.http-progress-loader{margin-left:0;margin-right:8px}}.default-logo{color:var(--logo-color, #12abdb);fill:currentColor}\n"] }]
135
+ }], ctorParameters: function () { return [{ type: i1$1.ThemeService }, { type: i1$1.AppStateService }]; }, propDecorators: { menuButtonTitle: [{
136
+ type: Input
137
+ }], fullPortalLayout: [{
138
+ type: Input
139
+ }], homeNavUrl: [{
140
+ type: Input
141
+ }], homeNavTitle: [{
142
+ type: Input
143
+ }], menuButtonClick: [{
144
+ type: Output
145
+ }] } });
146
+
147
+ let PortalViewportComponent = class PortalViewportComponent {
148
+ constructor(renderer, primengConfig, messageService, appStateService, portalMessageService, userService, themeService, httpClient) {
149
+ this.renderer = renderer;
150
+ this.primengConfig = primengConfig;
151
+ this.messageService = messageService;
152
+ this.appStateService = appStateService;
153
+ this.portalMessageService = portalMessageService;
154
+ this.userService = userService;
155
+ this.themeService = themeService;
156
+ this.httpClient = httpClient;
157
+ this.menuButtonTitle = '';
158
+ this.menuActive = true;
159
+ this.topbarTheme = 'var';
160
+ this.colorScheme = 'light';
161
+ this.layoutMode = 'light';
162
+ this.menuMode = 'static';
163
+ this.inputStyle = 'outline';
164
+ this.ripple = true;
165
+ this.isMobile = false;
166
+ this.portalMessageService.message$.subscribe((message) => this.messageService.add(message));
167
+ this.userService.profile$.pipe(untilDestroyed(this)).subscribe((profile) => {
168
+ this.menuMode =
169
+ profile?.accountSettings?.layoutAndThemeSettings?.menuMode?.toLowerCase() || this.menuMode;
170
+ this.colorScheme =
171
+ profile?.accountSettings?.layoutAndThemeSettings?.colorScheme?.toLowerCase() || this.colorScheme;
172
+ });
173
+ this.themeService.currentTheme$
174
+ .pipe(first(), mergeMap((theme) => {
175
+ return theme.faviconUrl
176
+ ? this.httpClient
177
+ .get(theme.faviconUrl, { responseType: 'blob' })
178
+ .pipe(map((blob) => URL.createObjectURL(blob)))
179
+ : of('');
180
+ }))
181
+ .subscribe((url) => {
182
+ let link = document.querySelector("link[rel~='icon']");
183
+ if (!link) {
184
+ link = document.createElement('link');
185
+ link.rel = 'icon';
186
+ document.head.appendChild(link);
187
+ }
188
+ link.onload = () => {
189
+ URL.revokeObjectURL(url);
190
+ };
191
+ link.href = url;
192
+ });
193
+ }
194
+ ngOnInit() {
195
+ this.primengConfig.ripple = true;
196
+ this.appStateService.globalError$
197
+ .pipe(untilDestroyed(this))
198
+ .pipe(filter((i) => i !== undefined))
199
+ .subscribe((err) => {
200
+ this.globalErrMsg = err;
201
+ });
202
+ this.onResize();
203
+ }
204
+ ngAfterViewInit() {
205
+ // hides the horizontal submenus or top menu if outside is clicked
206
+ this.removeDocumentClickListener = this.renderer.listen('body', 'click', () => {
207
+ this.activeTopbarItem = undefined;
208
+ if (this.isMobile)
209
+ this.menuActive = false;
210
+ });
211
+ }
212
+ ngOnDestroy() {
213
+ this.removeDocumentClickListener?.();
214
+ }
215
+ onMenuButtonClick(event) {
216
+ this.activeTopbarItem = undefined;
217
+ this.menuActive = !this.menuActive;
218
+ event.preventDefault();
219
+ event.stopPropagation();
220
+ }
221
+ onResize() {
222
+ const mobileBreakpointVar = getComputedStyle(document.documentElement).getPropertyValue('--mobile-break-point');
223
+ const isMobile = window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches;
224
+ // auto show sidebar when changing to desktop, hide when changing to mobile
225
+ if (isMobile !== this.isMobile)
226
+ this.menuActive = !isMobile;
227
+ this.isMobile = isMobile;
228
+ }
229
+ isHorizontalMenuMode() {
230
+ return this.menuMode === 'horizontal' && !this.isMobile;
231
+ }
232
+ isStaticalMenuVisible() {
233
+ return this.menuActive && !this.isHorizontalMenuMode();
234
+ }
235
+ isHorizontalMenuVisible() {
236
+ return this.isHorizontalMenuMode();
237
+ }
238
+ };
239
+ PortalViewportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PortalViewportComponent, deps: [{ token: i0.Renderer2 }, { token: i1$2.PrimeNGConfig }, { token: i1$2.MessageService }, { token: i1$1.AppStateService }, { token: i1$1.PortalMessageService }, { token: i1$1.UserService }, { token: i1$1.ThemeService }, { token: i3$2.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
240
+ PortalViewportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PortalViewportComponent, selector: "ocx-shell-portal-viewport", host: { listeners: { "window:resize": "onResize()" } }, ngImport: i0, template: "<div\n *ngIf=\"!globalErrMsg; else globalError\"\n class=\"layout-wrapper\"\n [ngClass]=\"{\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n 'layout-menu-active': isStaticalMenuVisible(),\n 'layout-menu-button-hidden': isHorizontalMenuMode()\n }\"\n [class]=\"'layout-menu-' + colorScheme + ' layout-topbar-' + topbarTheme\"\n>\n <ocx-shell-header\n [menuButtonTitle]=\"menuButtonTitle\"\n (menuButtonClick)=\"onMenuButtonClick($event)\"\n >\n <div class=\"horizontal\">\n <ocx-slot name=\"menu\" *ngIf=\"isHorizontalMenuVisible()\">Horizontal Menu</ocx-slot>\n </div>\n \n </ocx-shell-header>\n\n <p-toast></p-toast>\n\n <div class=\"menu-wrapper\">\n <div class=\"layout-menu-container\" *ngIf=\"isStaticalMenuVisible()\">\n <ocx-slot name=\"menu\">Vertical Menu</ocx-slot>\n </div>\n </div>\n \n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ocx-slot name=\"AnnouncementBanner\">Announcement Banner</ocx-slot>\n \n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n \n <ocx-shell-footer></ocx-shell-footer>\n </div>\n \n <div *ngIf=\"menuActive || !!activeTopbarItem\" class=\"layout-mask modal-in\"></div>\n</div>\n\n<ng-template #globalError>\n <ocx-shell-error [errCode]=\"globalErrMsg\"></ocx-shell-error>\n</ng-template>", styles: [".horizontal{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i4.SlotComponent, selector: "ocx-slot[name]", inputs: ["name"] }, { kind: "component", type: i7.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: HeaderComponent, selector: "ocx-shell-header", inputs: ["menuButtonTitle", "fullPortalLayout", "homeNavUrl", "homeNavTitle"], outputs: ["menuButtonClick"] }, { kind: "component", type: PortalFooterComponent, selector: "ocx-shell-footer" }, { kind: "component", type: GlobalErrorComponent, selector: "ocx-shell-error", inputs: ["errCode"] }] });
241
+ PortalViewportComponent = __decorate([
242
+ UntilDestroy(),
243
+ __metadata("design:paramtypes", [Renderer2,
244
+ PrimeNGConfig,
245
+ MessageService,
246
+ AppStateService,
247
+ PortalMessageService,
248
+ UserService,
249
+ ThemeService,
250
+ HttpClient])
251
+ ], PortalViewportComponent);
252
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PortalViewportComponent, decorators: [{
253
+ type: Component,
254
+ args: [{ selector: 'ocx-shell-portal-viewport', template: "<div\n *ngIf=\"!globalErrMsg; else globalError\"\n class=\"layout-wrapper\"\n [ngClass]=\"{\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n 'layout-menu-active': isStaticalMenuVisible(),\n 'layout-menu-button-hidden': isHorizontalMenuMode()\n }\"\n [class]=\"'layout-menu-' + colorScheme + ' layout-topbar-' + topbarTheme\"\n>\n <ocx-shell-header\n [menuButtonTitle]=\"menuButtonTitle\"\n (menuButtonClick)=\"onMenuButtonClick($event)\"\n >\n <div class=\"horizontal\">\n <ocx-slot name=\"menu\" *ngIf=\"isHorizontalMenuVisible()\">Horizontal Menu</ocx-slot>\n </div>\n \n </ocx-shell-header>\n\n <p-toast></p-toast>\n\n <div class=\"menu-wrapper\">\n <div class=\"layout-menu-container\" *ngIf=\"isStaticalMenuVisible()\">\n <ocx-slot name=\"menu\">Vertical Menu</ocx-slot>\n </div>\n </div>\n \n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ocx-slot name=\"AnnouncementBanner\">Announcement Banner</ocx-slot>\n \n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n \n <ocx-shell-footer></ocx-shell-footer>\n </div>\n \n <div *ngIf=\"menuActive || !!activeTopbarItem\" class=\"layout-mask modal-in\"></div>\n</div>\n\n<ng-template #globalError>\n <ocx-shell-error [errCode]=\"globalErrMsg\"></ocx-shell-error>\n</ng-template>", styles: [".horizontal{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}\n"] }]
255
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i1$2.PrimeNGConfig }, { type: i1$2.MessageService }, { type: i1$1.AppStateService }, { type: i1$1.PortalMessageService }, { type: i1$1.UserService }, { type: i1$1.ThemeService }, { type: i3$2.HttpClient }]; }, propDecorators: { onResize: [{
256
+ type: HostListener,
257
+ args: ['window:resize']
258
+ }] } });
259
+
260
+ class ShellCoreModule {
261
+ }
262
+ ShellCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
263
+ ShellCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, declarations: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, GlobalErrorComponent], imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule], exports: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, ToastModule, GlobalErrorComponent] });
264
+ ShellCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule, ToastModule] });
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, decorators: [{
266
+ type: NgModule,
267
+ args: [{
268
+ imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule],
269
+ declarations: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, GlobalErrorComponent],
270
+ exports: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, ToastModule, GlobalErrorComponent],
271
+ }]
272
+ }] });
273
+
274
+ class PermissionsCacheService {
275
+ constructor() {
276
+ this.permissions = {};
277
+ }
278
+ getPermissions(appId, productName, cachemissFkt) {
279
+ const key = appId + '|' + productName;
280
+ if (this.permissions[key]) {
281
+ return of(this.permissions[key]);
282
+ }
283
+ return cachemissFkt(appId, productName).pipe(tap((permissions) => (this.permissions[key] = permissions)));
284
+ }
285
+ }
286
+ PermissionsCacheService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PermissionsCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
287
+ PermissionsCacheService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PermissionsCacheService, providedIn: 'root' });
288
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PermissionsCacheService, decorators: [{
289
+ type: Injectable,
290
+ args: [{ providedIn: 'root' }]
291
+ }] });
292
+
293
+ /**
294
+ * Generated bundle index. Do not edit.
295
+ */
296
+
297
+ export { GlobalErrorComponent, HeaderComponent, PermissionsCacheService, PortalFooterComponent, PortalViewportComponent, SHELL_BFF_PREFIX, ShellCoreModule };
298
+ //# sourceMappingURL=onecx-shell-core.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onecx-shell-core.mjs","sources":["../../../../libs/shell-core/src/lib/components/error-component/global-error.component.ts","../../../../libs/shell-core/src/lib/components/error-component/global-error.component.html","../../../../libs/shell-core/src/lib/model/constants.ts","../../../../libs/shell-core/src/lib/components/portal-footer/portal-footer.component.ts","../../../../libs/shell-core/src/lib/components/portal-footer/portal-footer.component.html","../../../../libs/shell-core/src/lib/components/portal-header/header.component.ts","../../../../libs/shell-core/src/lib/components/portal-header/header.component.html","../../../../libs/shell-core/src/lib/components/portal-viewport/portal-viewport.component.ts","../../../../libs/shell-core/src/lib/components/portal-viewport/portal-viewport.component.html","../../../../libs/shell-core/src/lib/shell-core.module.ts","../../../../libs/shell-core/src/lib/services/permissions-cache.service.ts","../../../../libs/shell-core/src/onecx-shell-core.ts"],"sourcesContent":["import { Component, Input } from '@angular/core'\nimport { ActivatedRoute, Router } from '@angular/router'\n\n@Component({\n selector: 'ocx-shell-error',\n templateUrl: './global-error.component.html',\n styleUrls: ['./global-error.component.scss'],\n})\nexport class GlobalErrorComponent {\n @Input()\n errCode: string | undefined\n backUrl: string\n\n constructor(private router: Router, private route: ActivatedRoute) {\n this.errCode = this.route.snapshot.queryParamMap.get('err') || 'E1001_FAILED_START'\n this.backUrl = this.route.snapshot.queryParamMap.get('return') || '/'\n }\n\n onGoBack() {\n this.router.navigateByUrl(this.backUrl)\n }\n\n reload() {\n window.location.reload()\n }\n}\n","<div class=\"pages-body error-page flex flex-column\">\n <div class=\"align-self-center mt-auto mb-auto\">\n <div class=\"pages-panel card flex flex-column\">\n <div class=\"pages-header px-3 py-1\">\n <h2>ERROR</h2>\n </div>\n <div class=\"card mt-3 px-6\">\n <img src=\"assets/images/error.png\" alt=\"\" />\n </div>\n <div class=\"pages-detail pb-6\">{{errCode}}</div>\n <button pButton pRipple type=\"button\" label=\"Try Again\" (click)=\"reload()\" class=\"p-button-text\"></button>\n </div>\n </div>\n</div>\n","export const SHELL_BFF_PREFIX = 'shell-bff'","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\nimport { Router } from '@angular/router'\nimport { AppStateService, ConfigurationService, CONFIG_KEY, ThemeService } from '@onecx/angular-integration-interface'\nimport { ImageLogoUrlUtils } from '@onecx/portal-integration-angular'\nimport { combineLatest, concat, map, Observable, of, withLatestFrom } from 'rxjs'\nimport { SHELL_BFF_PREFIX } from '../../model/constants'\n\n@Component({\n selector: 'ocx-shell-footer',\n templateUrl: './portal-footer.component.html',\n styleUrls: ['./portal-footer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PortalFooterComponent implements OnInit {\n logoUrl$: Observable<string | undefined>\n copyrightMsg$: Observable<string> | undefined\n versionInfo$: Observable<string | undefined>\n\n constructor(\n private configurationService: ConfigurationService,\n public router: Router,\n private appState: AppStateService,\n private themeService: ThemeService\n ) {\n this.versionInfo$ = this.appState.currentMfe$.pipe(\n withLatestFrom(this.appState.currentPortal$.asObservable()),\n map(([mfe, portal]) => {\n const mfeInfoVersion = mfe?.version || ''\n const mfeName = mfe?.displayName\n const hostVersion = this.configurationService.getProperty(CONFIG_KEY.APP_VERSION) || 'DEV-LOCAL'\n const mfInfoText = mfeName ? `MF ${mfeName} v${mfeInfoVersion}` : ''\n return `Portal: ${portal.portalName} v${hostVersion} ${mfInfoText}`\n })\n )\n this.logoUrl$ = combineLatest([\n this.themeService.currentTheme$.asObservable(),\n this.appState.currentWorkspace$.asObservable(),\n ]).pipe(\n map(([theme, portalData]) => ImageLogoUrlUtils.createLogoUrl(SHELL_BFF_PREFIX, theme.logoUrl || portalData.logoUrl))\n )\n }\n\n ngOnInit(): void {\n this.copyrightMsg$ = concat(\n of('Capgemini. All rights reserved.'),\n this.appState.currentWorkspace$.pipe(\n map((portalData) => {\n if (\n !(\n portalData.footerLabel === '' ||\n portalData.footerLabel === 'string' ||\n portalData.footerLabel === undefined\n )\n ) {\n return portalData.companyName || portalData.footerLabel || 'All rights reserved.'\n }\n return ''\n })\n )\n )\n }\n\n public onErrorHandleSrc(): void {\n this.logoUrl$ = of(undefined)\n }\n}\n","<div class=\"ml-3 py-2 lg:ml-5 flex flex-wrap align-items-center justify-content-between row-gap-1\">\n <div class=\"flex flex-wrap align-items-center justify-content-start gap-3 row-gap-1\">\n <img *ngIf=\"logoUrl$ | async\" alt=\"logo\" class=\"max-h-1rem\" [ocxSrc]=\"(logoUrl$ | async) ?? ''\" (error)=\"onErrorHandleSrc()\" />\n <div class=\"flex-none text-sm\">&copy; {{copyrightMsg$ | async}}</div>\n <ocx-slot name=\"footer-menu-items\">Footer Menu Items</ocx-slot>\n </div>\n <div class=\"mr-5 text-sm\">{{versionInfo$ | async}}</div>\n</div>\n","import { animate, style, transition, trigger } from '@angular/animations'\nimport { Component, EventEmitter, Input, Output } from '@angular/core'\nimport { UntilDestroy } from '@ngneat/until-destroy'\nimport { AppStateService, ThemeService } from '@onecx/angular-integration-interface'\nimport { ImageLogoUrlUtils } from '@onecx/portal-integration-angular'\nimport { combineLatest, map, Observable } from 'rxjs'\nimport { SHELL_BFF_PREFIX } from '../../model/constants'\n\n@Component({\n selector: 'ocx-shell-header',\n templateUrl: './header.component.html',\n styleUrls: ['./header.component.scss'],\n animations: [\n trigger('topbarActionPanelAnimation', [\n transition(':enter', [\n style({ opacity: 0, transform: 'scaleY(0.8)' }),\n animate('.12s cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1, transform: '*' })),\n ]),\n transition(':leave', [animate('.1s linear', style({ opacity: 0 }))]),\n ]),\n ],\n})\n@UntilDestroy()\nexport class HeaderComponent {\n menuExpanded = false\n fallbackImg = false\n\n @Input()\n menuButtonTitle: string | undefined\n @Input()\n fullPortalLayout = true\n @Input()\n homeNavUrl = '/'\n @Input()\n homeNavTitle = 'Home'\n\n @Output()\n menuButtonClick: EventEmitter<any> = new EventEmitter()\n\n logoUrl$: Observable<string | undefined>\n\n constructor(private themeService: ThemeService, private appStateService: AppStateService) {\n this.logoUrl$ = combineLatest([\n this.themeService.currentTheme$.asObservable(),\n this.appStateService.currentWorkspace$.asObservable(),\n ]).pipe(\n map(([theme, portal]) => {\n return ImageLogoUrlUtils.createLogoUrl(SHELL_BFF_PREFIX, theme.logoUrl || portal.logoUrl)\n })\n )\n }\n\n onMenuButtonClick(e: Event) {\n this.menuButtonClick.emit(e)\n }\n}\n","<div class=\"layout-topbar shadow-4\" id=\"header\" role=\"banner\">\n <div class=\"layout-topbar-left\">\n <a class=\"layout-topbar-logo\">\n <img\n id=\"app-logo\"\n [ocxSrc]=\"(logoUrl$ | async) ?? ''\"\n alt=\"Logo\"\n style=\"max-height: 100%; max-width: 100%\"\n *ngIf=\"(logoUrl$ | async) && !fallbackImg\"\n (error)=\"fallbackImg=true\"\n />\n <svg *ngIf=\"((logoUrl$ | async) === null) || fallbackImg\" width=\"160\" viewBox=\"0 0 283 72\" class=\"default-logo\">\n <defs id=\"SvgjsDefs4962\"></defs>\n <g\n id=\"SvgjsG4963\"\n featurekey=\"symbolFeature-0\"\n transform=\"matrix(0.7555406501686023,0,0,0.7555406501686023,-4.883814572467361,-0.26595028490140254)\"\n >\n <path\n xmlns=\"http://www.w3.org/2000/svg\"\n d=\"M88.54,46.256L9.464,0.616c-0.616-0.352-1.384-0.352-2,0c-0.62,0.36-1,1.02-1,1.736v91.296c0,0.716,0.38,1.375,1,1.731 c0.308,0.185,0.656,0.269,1,0.269c0.344,0,0.692-0.084,1-0.269L88.54,49.729c0.616-0.36,1-1.021,1-1.736 C89.54,47.276,89.152,46.616,88.54,46.256z M60.08,49.771L21.388,69.805c-0.288,0.147-0.604,0.223-0.92,0.223 c-0.36,0-0.72-0.092-1.04-0.287c-0.596-0.364-0.96-1.008-0.96-1.713v-40.06c0-0.696,0.364-1.344,0.96-1.712 c0.596-0.36,1.336-0.392,1.96-0.068l38.696,20.028c0.664,0.344,1.084,1.032,1.084,1.772C61.164,48.74,60.744,49.428,60.08,49.771z\"\n ></path>\n <path xmlns=\"http://www.w3.org/2000/svg\" d=\"M22.464,64.744l32.345-16.748l-32.345-16.74V64.744z\"></path>\n </g>\n <g\n id=\"SvgjsG4964\"\n featurekey=\"nameFeature-0\"\n transform=\"matrix(1.0207331753701396,0,0,1.0207331753701396,81.5644404108694,15.72408377414908)\"\n >\n <path\n d=\"M17.344 32.6562 c-0.78125 -0.15625 -1.5105 -0.3907 -2.1876 -0.7032 c-1.4584 -0.67711 -2.7344 -1.6146 -3.8281 -2.8125 c-1.0416 -1.0938 -1.875 -2.4479 -2.5 -4.0625 c-0.57289 -1.6146 -0.85938 -3.2552 -0.85938 -4.9219 l0 -0.15625 l0 -0.23438 c0 -1.7188 0.28648 -3.3854 0.85938 -5 c0.67711 -1.6666 1.5105 -2.9948 2.5001 -3.9844 c1.0416 -1.1979 2.2916 -2.1094 3.75 -2.7344 c0.88539 -0.41664 1.6406 -0.67703 2.2656 -0.78117 l0 -5.8594 c-1.8229 0.26039 -3.4375 0.70313 -4.8438 1.3281 c-2.2916 0.98961 -4.2448 2.3177 -5.8594 3.9844 s-2.8906 3.6458 -3.8281 5.9374 s-1.4063 4.6875 -1.4063 7.1875 l0 0.15625 l0 0.23438 c0 2.5521 0.46875 4.948 1.4063 7.1876 c0.83336 2.2396 2.0834 4.1927 3.75 5.8594 c1.6666 1.7188 3.6198 3.0469 5.8594 3.9844 c1.4063 0.625 3.0469 1.0677 4.9219 1.3281 l0 -5.9375 z M38.594 20 l0.000076294 -0.23438 c0 -2.5521 -0.46875 -4.948 -1.4063 -7.1876 c-0.9375 -2.2916 -2.2135 -4.2708 -3.8281 -5.9374 c-1.5625 -1.6666 -3.4896 -2.9688 -5.7813 -3.9063 c-1.3021 -0.625 -2.8906 -1.0677 -4.7656 -1.3281 l0 5.9375 l0.9375 0.3125 c0.46875 0.15625 0.83336 0.28648 1.0938 0.39063 c1.4584 0.67711 2.7344 1.6146 3.8281 2.8125 c1.0416 1.0938 1.875 2.4479 2.5 4.0625 c0.57289 1.6146 0.85938 3.2552 0.85938 4.9219 l0 0.15625 l0 0.23438 c0 1.7188 -0.28648 3.3854 -0.85938 5 c-0.67711 1.6666 -1.5105 2.9948 -2.5001 3.9844 c-1.0416 1.1979 -2.2916 2.1094 -3.75 2.7344 c-0.67711 0.3125 -1.3802 0.54688 -2.1094 0.70313 l0 5.9375 c1.5625 -0.20836 3.125 -0.65109 4.6875 -1.3282 c2.1354 -0.88539 4.0885 -2.2135 5.8594 -3.9844 c1.7188 -1.8229 2.9948 -3.802 3.8281 -5.9374 c0.9375 -2.2916 1.4063 -4.6875 1.4063 -7.1875 l0 -0.15625 z M43.8281 38.5937 l6.4844 0 l0 -19.922 l-6.4844 -9.1406 l0 29.063 z M69.76599999999999 1.4059999999999988 l0 25.703 l-18.359 -25.703 l-7.0313 0 l26.406 37.188 l5.3906 0 l0 -37.188 l-6.4063 0 z M86.0938 1.4059999999999988 l27.813 0 l0 5.9375 l-27.813 0 l0 -5.9375 z M86.0938 32.6562 l27.734 0 l0 5.9375 l-27.734 0 l0 -5.9375 z M86.0938 16.875 l25.078 0 l0 5.8594 l-25.078 0 l0 -5.8594 z M127.2656 12.5 c0.9375 -2.2916 2.2916 -4.2447 4.0624 -5.8593 c1.6146 -1.6146 3.698 -2.9167 6.2501 -3.9063 s5.2344 -1.4844 8.0469 -1.4844 l8.6719 0 l0 5.9375 l-8.5938 0 c-2.0313 0 -3.8281 0.33852 -5.3906 1.0156 c-1.6666 0.67711 -3.0208 1.5625 -4.0624 2.6563 c-1.0938 1.0416 -1.9791 2.3958 -2.6563 4.0624 c-0.625 1.5104 -0.9375 3.2031 -0.9375 5.0781 s0.3125 3.5677 0.9375 5.0781 c0.625 1.5625 1.5104 2.9166 2.6563 4.0625 c1.0416 1.0416 2.3958 1.901 4.0624 2.5781 c1.6666 0.625 3.4635 0.9375 5.3906 0.9375 l8.5938 0 l0 5.9375 l-8.6719 0 c-2.9166 0 -5.5729 -0.46875 -7.9688 -1.4063 c-2.5 -1.0416 -4.6094 -2.3698 -6.3281 -3.9844 c-1.7709 -1.6666 -3.125 -3.6458 -4.0625 -5.9374 c-0.98961 -2.3959 -1.4844 -4.8438 -1.4844 -7.3438 c0 -2.6563 0.49477 -5.1302 1.4844 -7.4219 z M176.484 29.375 l3.5156 -4.6875 l-0.078125 -0.15625 z M196.875 1.4059999999999988 l-7.5 0 l-9.2969 13.359 l-9.2188 -13.359 l-7.7344 0 l13.047 18.281 l-13.516 18.906 l8.3594 0 z M197.344 38.5937 l-10.313 -14.609 l-3.9063 5.2344 l6.5625 9.375 l7.6563 0 z\"\n ></path>\n </g>\n </svg>\n </a>\n\n <a class=\"layout-menu-button shadow-6\" (click)=\"onMenuButtonClick($event)\" pRipple [title]=\"menuButtonTitle ?? ('OCX_HEADER.MENU_TOGGLE')\">\n <i class=\"pi pi-chevron-right\"></i>\n </a>\n </div>\n\n <div class=\"layout-topbar-right\">\n <div class=\"layout-topbar-actions-left\">\n <ng-content></ng-content>\n </div>\n <div class=\"layout-topbar-actions-right\">\n <ul class=\"layout-topbar-items\">\n <!-- Only desktop: Actions (favorites, support, search, ...) as icon buttons -->\n <ng-container *ocxIfBreakpoint=\"'desktop'\">\n\n </ng-container>\n\n <!-- Only mobile: Actions (favorites, support, search, ...) as 'more' button + overlay -->\n <li class=\"layout-topbar-item\" *ocxIfBreakpoint=\"'mobile'\">\n \n </li>\n </ul>\n </div>\n </div>\n</div>\n","import { HttpClient } from '@angular/common/http'\nimport { AfterViewInit, Component, HostListener, OnDestroy, OnInit, Renderer2 } from '@angular/core'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport { AppStateService, Message, PortalMessageService, ThemeService, UserService } from '@onecx/angular-integration-interface'\nimport { MessageService, PrimeNGConfig } from 'primeng/api'\nimport { filter, first, map, mergeMap, of } from 'rxjs'\n\n@Component({\n selector: 'ocx-shell-portal-viewport',\n templateUrl: './portal-viewport.component.html',\n styleUrls: ['./portal-viewport.component.scss'],\n})\n@UntilDestroy()\nexport class PortalViewportComponent implements OnInit, AfterViewInit, OnDestroy {\n menuButtonTitle = ''\n menuActive = true\n activeTopbarItem: string | undefined\n\n removeDocumentClickListener: (() => void) | undefined\n\n topbarTheme = 'var'\n colorScheme: 'auto' | 'light' | 'dark' = 'light'\n layoutMode: 'auto' | 'light' | 'dark' = 'light'\n menuMode: 'horizontal' | 'static' | 'overlay' | 'slim' | 'slimplus' = 'static'\n inputStyle = 'outline'\n ripple = true\n isMobile = false\n\n globalErrMsg: string | undefined\n\n constructor(\n private renderer: Renderer2,\n private primengConfig: PrimeNGConfig,\n private messageService: MessageService,\n private appStateService: AppStateService,\n private portalMessageService: PortalMessageService,\n private userService: UserService,\n private themeService: ThemeService,\n private httpClient: HttpClient\n ) {\n this.portalMessageService.message$.subscribe((message: Message) => this.messageService.add(message))\n this.userService.profile$.pipe(untilDestroyed(this)).subscribe((profile) => {\n this.menuMode =\n (profile?.accountSettings?.layoutAndThemeSettings?.menuMode?.toLowerCase() as\n | typeof this.menuMode\n | undefined) || this.menuMode\n\n this.colorScheme =\n (profile?.accountSettings?.layoutAndThemeSettings?.colorScheme?.toLowerCase() as\n | typeof this.colorScheme\n | undefined) || this.colorScheme\n })\n\n this.themeService.currentTheme$\n .pipe(\n first(),\n mergeMap((theme) => {\n return theme.faviconUrl\n ? this.httpClient\n .get(theme.faviconUrl, { responseType: 'blob' })\n .pipe(map((blob) => URL.createObjectURL(blob)))\n : of('')\n })\n )\n .subscribe((url) => {\n let link = document.querySelector(\"link[rel~='icon']\") as any\n if (!link) {\n link = document.createElement('link')\n link.rel = 'icon'\n document.head.appendChild(link)\n }\n link.onload = () => {\n URL.revokeObjectURL(url)\n }\n link.href = url\n })\n }\n\n ngOnInit() {\n this.primengConfig.ripple = true\n\n this.appStateService.globalError$\n .pipe(untilDestroyed(this))\n .pipe(filter((i) => i !== undefined))\n .subscribe((err: string | undefined) => {\n this.globalErrMsg = err\n })\n\n this.onResize()\n }\n\n ngAfterViewInit() {\n // hides the horizontal submenus or top menu if outside is clicked\n this.removeDocumentClickListener = this.renderer.listen('body', 'click', () => {\n this.activeTopbarItem = undefined\n if (this.isMobile) this.menuActive = false\n })\n }\n\n ngOnDestroy() {\n this.removeDocumentClickListener?.()\n }\n\n onMenuButtonClick(event: MouseEvent) {\n this.activeTopbarItem = undefined\n this.menuActive = !this.menuActive\n event.preventDefault()\n event.stopPropagation()\n }\n\n @HostListener('window:resize')\n onResize() {\n const mobileBreakpointVar = getComputedStyle(document.documentElement).getPropertyValue('--mobile-break-point')\n const isMobile = window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches\n // auto show sidebar when changing to desktop, hide when changing to mobile\n if (isMobile !== this.isMobile) this.menuActive = !isMobile\n this.isMobile = isMobile\n }\n\n isHorizontalMenuMode() {\n return this.menuMode === 'horizontal' && !this.isMobile\n }\n\n isStaticalMenuVisible() {\n return this.menuActive && !this.isHorizontalMenuMode()\n }\n\n isHorizontalMenuVisible() {\n return this.isHorizontalMenuMode()\n }\n}\n","<div\n *ngIf=\"!globalErrMsg; else globalError\"\n class=\"layout-wrapper\"\n [ngClass]=\"{\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n 'layout-menu-active': isStaticalMenuVisible(),\n 'layout-menu-button-hidden': isHorizontalMenuMode()\n }\"\n [class]=\"'layout-menu-' + colorScheme + ' layout-topbar-' + topbarTheme\"\n>\n <ocx-shell-header\n [menuButtonTitle]=\"menuButtonTitle\"\n (menuButtonClick)=\"onMenuButtonClick($event)\"\n >\n <div class=\"horizontal\">\n <ocx-slot name=\"menu\" *ngIf=\"isHorizontalMenuVisible()\">Horizontal Menu</ocx-slot>\n </div>\n \n </ocx-shell-header>\n\n <p-toast></p-toast>\n\n <div class=\"menu-wrapper\">\n <div class=\"layout-menu-container\" *ngIf=\"isStaticalMenuVisible()\">\n <ocx-slot name=\"menu\">Vertical Menu</ocx-slot>\n </div>\n </div>\n \n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ocx-slot name=\"AnnouncementBanner\">Announcement Banner</ocx-slot>\n \n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n \n <ocx-shell-footer></ocx-shell-footer>\n </div>\n \n <div *ngIf=\"menuActive || !!activeTopbarItem\" class=\"layout-mask modal-in\"></div>\n</div>\n\n<ng-template #globalError>\n <ocx-shell-error [errCode]=\"globalErrMsg\"></ocx-shell-error>\n</ng-template>","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { RouterModule } from '@angular/router'\nimport { AngularAcceleratorModule } from '@onecx/angular-accelerator'\nimport { AngularRemoteComponentsModule } from '@onecx/angular-remote-components'\nimport { ToastModule } from 'primeng/toast'\nimport { GlobalErrorComponent } from './components/error-component/global-error.component'\nimport { PortalFooterComponent } from './components/portal-footer/portal-footer.component'\nimport { HeaderComponent } from './components/portal-header/header.component'\nimport { PortalViewportComponent } from './components/portal-viewport/portal-viewport.component'\n\n@NgModule({\n imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule],\n declarations: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, GlobalErrorComponent],\n exports: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, ToastModule, GlobalErrorComponent],\n})\nexport class ShellCoreModule {}\n","import { Injectable } from '@angular/core'\nimport { Observable, of, tap } from 'rxjs'\n\n@Injectable({ providedIn: 'root' })\nexport class PermissionsCacheService {\n permissions: Record<string, string[]> = {}\n\n getPermissions(\n appId: string,\n productName: string,\n cachemissFkt: (appId: string, productName: string) => Observable<string[]>\n ): Observable<string[]> {\n const key = appId + '|' + productName\n if (this.permissions[key]) {\n return of(this.permissions[key])\n }\n return cachemissFkt(appId, productName).pipe(tap((permissions) => (this.permissions[key] = permissions)))\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i5","i3","i4","i6","i8.HeaderComponent","i9.PortalFooterComponent","i10.GlobalErrorComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAQa,oBAAoB,CAAA;IAK/B,WAAoB,CAAA,MAAc,EAAU,KAAqB,EAAA;QAA7C,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAAU,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;AAC/D,QAAA,I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,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,cADV,MAAM,EAAA,CAAA,CAAA;4FACnB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACHlC;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export * from './lib/shell-core.module';
2
+ export * from './lib/components/portal-footer/portal-footer.component';
3
+ export * from './lib/components/portal-header/header.component';
4
+ export * from './lib/components/portal-viewport/portal-viewport.component';
5
+ export * from './lib/components/error-component/global-error.component';
6
+ export * from './lib/services/permissions-cache.service';
7
+ export * from './lib/model/constants';
@@ -0,0 +1,13 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GlobalErrorComponent {
4
+ private router;
5
+ private route;
6
+ errCode: string | undefined;
7
+ backUrl: string;
8
+ constructor(router: Router, route: ActivatedRoute);
9
+ onGoBack(): void;
10
+ reload(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<GlobalErrorComponent, "ocx-shell-error", never, { "errCode": "errCode"; }, {}, never, never, false, never>;
13
+ }
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { AppStateService, ConfigurationService, ThemeService } from '@onecx/angular-integration-interface';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PortalFooterComponent implements OnInit {
7
+ private configurationService;
8
+ router: Router;
9
+ private appState;
10
+ private themeService;
11
+ logoUrl$: Observable<string | undefined>;
12
+ copyrightMsg$: Observable<string> | undefined;
13
+ versionInfo$: Observable<string | undefined>;
14
+ constructor(configurationService: ConfigurationService, router: Router, appState: AppStateService, themeService: ThemeService);
15
+ ngOnInit(): void;
16
+ onErrorHandleSrc(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalFooterComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<PortalFooterComponent, "ocx-shell-footer", never, {}, {}, never, never, false, never>;
19
+ }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AppStateService, ThemeService } from '@onecx/angular-integration-interface';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class HeaderComponent {
6
+ private themeService;
7
+ private appStateService;
8
+ menuExpanded: boolean;
9
+ fallbackImg: boolean;
10
+ menuButtonTitle: string | undefined;
11
+ fullPortalLayout: boolean;
12
+ homeNavUrl: string;
13
+ homeNavTitle: string;
14
+ menuButtonClick: EventEmitter<any>;
15
+ logoUrl$: Observable<string | undefined>;
16
+ constructor(themeService: ThemeService, appStateService: AppStateService);
17
+ onMenuButtonClick(e: Event): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ocx-shell-header", never, { "menuButtonTitle": "menuButtonTitle"; "fullPortalLayout": "fullPortalLayout"; "homeNavUrl": "homeNavUrl"; "homeNavTitle": "homeNavTitle"; }, { "menuButtonClick": "menuButtonClick"; }, never, ["*"], false, never>;
20
+ }
@@ -0,0 +1,38 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { AfterViewInit, OnDestroy, OnInit, Renderer2 } from '@angular/core';
3
+ import { AppStateService, PortalMessageService, ThemeService, UserService } from '@onecx/angular-integration-interface';
4
+ import { MessageService, PrimeNGConfig } from 'primeng/api';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PortalViewportComponent implements OnInit, AfterViewInit, OnDestroy {
7
+ private renderer;
8
+ private primengConfig;
9
+ private messageService;
10
+ private appStateService;
11
+ private portalMessageService;
12
+ private userService;
13
+ private themeService;
14
+ private httpClient;
15
+ menuButtonTitle: string;
16
+ menuActive: boolean;
17
+ activeTopbarItem: string | undefined;
18
+ removeDocumentClickListener: (() => void) | undefined;
19
+ topbarTheme: string;
20
+ colorScheme: 'auto' | 'light' | 'dark';
21
+ layoutMode: 'auto' | 'light' | 'dark';
22
+ menuMode: 'horizontal' | 'static' | 'overlay' | 'slim' | 'slimplus';
23
+ inputStyle: string;
24
+ ripple: boolean;
25
+ isMobile: boolean;
26
+ globalErrMsg: string | undefined;
27
+ constructor(renderer: Renderer2, primengConfig: PrimeNGConfig, messageService: MessageService, appStateService: AppStateService, portalMessageService: PortalMessageService, userService: UserService, themeService: ThemeService, httpClient: HttpClient);
28
+ ngOnInit(): void;
29
+ ngAfterViewInit(): void;
30
+ ngOnDestroy(): void;
31
+ onMenuButtonClick(event: MouseEvent): void;
32
+ onResize(): void;
33
+ isHorizontalMenuMode(): boolean;
34
+ isStaticalMenuVisible(): boolean;
35
+ isHorizontalMenuVisible(): boolean;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalViewportComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<PortalViewportComponent, "ocx-shell-portal-viewport", never, {}, {}, never, ["*"], false, never>;
38
+ }
@@ -0,0 +1 @@
1
+ export declare const SHELL_BFF_PREFIX = "shell-bff";
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PermissionsCacheService {
4
+ permissions: Record<string, string[]>;
5
+ getPermissions(appId: string, productName: string, cachemissFkt: (appId: string, productName: string) => Observable<string[]>): Observable<string[]>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsCacheService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionsCacheService>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/portal-viewport/portal-viewport.component";
3
+ import * as i2 from "./components/portal-header/header.component";
4
+ import * as i3 from "./components/portal-footer/portal-footer.component";
5
+ import * as i4 from "./components/error-component/global-error.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/router";
8
+ import * as i7 from "@onecx/angular-remote-components";
9
+ import * as i8 from "@onecx/angular-accelerator";
10
+ import * as i9 from "primeng/toast";
11
+ export declare class ShellCoreModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShellCoreModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ShellCoreModule, [typeof i1.PortalViewportComponent, typeof i2.HeaderComponent, typeof i3.PortalFooterComponent, typeof i4.GlobalErrorComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.AngularRemoteComponentsModule, typeof i8.AngularAcceleratorModule, typeof i9.ToastModule], [typeof i1.PortalViewportComponent, typeof i2.HeaderComponent, typeof i3.PortalFooterComponent, typeof i9.ToastModule, typeof i4.GlobalErrorComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<ShellCoreModule>;
15
+ }
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@onecx/shell-core",
3
+ "version": "4.14.0",
4
+ "peerDependencies": {
5
+ "rxjs": "7.8.1",
6
+ "@angular/animations": "^15.2.7",
7
+ "@angular/common": "^15.2.7",
8
+ "@angular/core": "^15.2.7",
9
+ "@angular/router": "^15.2.7",
10
+ "@onecx/angular-accelerator": "~4",
11
+ "@onecx/angular-integration-interface": "~4",
12
+ "@onecx/angular-remote-components": "~4",
13
+ "@onecx/portal-integration-angular": "~4",
14
+ "@ngneat/until-destroy": "^9.2.2",
15
+ "primeng": "^15.2.1"
16
+ },
17
+ "dependencies": {
18
+ "tslib": "^2.3.0"
19
+ },
20
+ "type": "commonjs",
21
+ "main": "./src/index.js",
22
+ "typings": "index.d.ts",
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "module": "fesm2015/onecx-shell-core.mjs",
27
+ "es2020": "fesm2020/onecx-shell-core.mjs",
28
+ "esm2020": "esm2020/onecx-shell-core.mjs",
29
+ "fesm2020": "fesm2020/onecx-shell-core.mjs",
30
+ "fesm2015": "fesm2015/onecx-shell-core.mjs",
31
+ "exports": {
32
+ "./package.json": {
33
+ "default": "./package.json"
34
+ },
35
+ ".": {
36
+ "types": "./index.d.ts",
37
+ "esm2020": "./esm2020/onecx-shell-core.mjs",
38
+ "es2020": "./fesm2020/onecx-shell-core.mjs",
39
+ "es2015": "./fesm2015/onecx-shell-core.mjs",
40
+ "node": "./fesm2015/onecx-shell-core.mjs",
41
+ "default": "./fesm2020/onecx-shell-core.mjs"
42
+ }
43
+ },
44
+ "sideEffects": false
45
+ }