@onecx/shell-core 4.43.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/lib/components/error-component/global-error.component.mjs +5 -5
- package/esm2022/lib/components/portal-footer/portal-footer.component.mjs +51 -0
- package/esm2022/lib/components/portal-header/header.component.mjs +74 -0
- package/esm2022/lib/components/portal-viewport/portal-viewport.component.mjs +137 -0
- package/esm2022/lib/services/permissions-cache.service.mjs +22 -0
- package/{esm2020 → esm2022}/lib/shell-core.module.mjs +5 -5
- package/{fesm2020 → fesm2022}/onecx-shell-core.mjs +32 -32
- package/{fesm2020 → fesm2022}/onecx-shell-core.mjs.map +1 -1
- package/lib/components/error-component/global-error.component.d.ts +1 -1
- package/lib/components/portal-header/header.component.d.ts +1 -1
- package/package.json +11 -17
- package/esm2020/lib/components/portal-footer/portal-footer.component.mjs +0 -51
- package/esm2020/lib/components/portal-header/header.component.mjs +0 -74
- package/esm2020/lib/components/portal-viewport/portal-viewport.component.mjs +0 -137
- package/esm2020/lib/services/permissions-cache.service.mjs +0 -22
- package/fesm2015/onecx-shell-core.mjs +0 -309
- package/fesm2015/onecx-shell-core.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/model/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/onecx-shell-core.mjs +0 -0
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
import * as i5 from '@angular/common';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, Input, EventEmitter, Output, InjectionToken, Renderer2, Optional, Inject, HostListener, NgModule, Injectable } from '@angular/core';
|
|
5
|
-
import * as i1 from '@angular/router';
|
|
6
|
-
import { Router, RouterModule } from '@angular/router';
|
|
7
|
-
import * as i5$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 i2 from 'primeng/button';
|
|
14
|
-
import * as i3 from 'primeng/ripple';
|
|
15
|
-
import * as i1$1 from '@onecx/angular-integration-interface';
|
|
16
|
-
import { CONFIG_KEY, ThemeService, AppStateService, PortalMessageService, UserService } from '@onecx/angular-integration-interface';
|
|
17
|
-
import * as i9 from '@onecx/portal-integration-angular';
|
|
18
|
-
import { ImageLogoUrlUtils, PortalCoreModule } from '@onecx/portal-integration-angular';
|
|
19
|
-
import { withLatestFrom, map, combineLatest, concat, of, first, mergeMap, from, filter, shareReplay } from 'rxjs';
|
|
20
|
-
import { __decorate, __metadata } from 'tslib';
|
|
21
|
-
import { trigger, transition, style, animate } from '@angular/animations';
|
|
22
|
-
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
|
23
|
-
import * as i5$2 from 'primeng/skeleton';
|
|
24
|
-
import { SkeletonModule } from 'primeng/skeleton';
|
|
25
|
-
import * as i3$1 from '@angular/common/http';
|
|
26
|
-
import { HttpClient } from '@angular/common/http';
|
|
27
|
-
import * as i1$2 from 'primeng/api';
|
|
28
|
-
import { PrimeNGConfig, MessageService } from 'primeng/api';
|
|
29
|
-
|
|
30
|
-
class GlobalErrorComponent {
|
|
31
|
-
constructor(router, route) {
|
|
32
|
-
this.router = router;
|
|
33
|
-
this.route = route;
|
|
34
|
-
this.errCode = this.route.snapshot.queryParamMap.get('err') || 'E1001_FAILED_START';
|
|
35
|
-
this.backUrl = this.route.snapshot.queryParamMap.get('return') || '/';
|
|
36
|
-
}
|
|
37
|
-
onGoBack() {
|
|
38
|
-
this.router.navigateByUrl(this.backUrl);
|
|
39
|
-
}
|
|
40
|
-
reload() {
|
|
41
|
-
window.location.reload();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
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 });
|
|
45
|
-
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"], dependencies: [{ kind: "directive", type: i2.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "directive", type: i3.Ripple, selector: "[pRipple]" }] });
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GlobalErrorComponent, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
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"] }]
|
|
49
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }]; }, propDecorators: { errCode: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}] } });
|
|
52
|
-
|
|
53
|
-
const SHELL_BFF_PREFIX = 'shell-bff';
|
|
54
|
-
|
|
55
|
-
class PortalFooterComponent {
|
|
56
|
-
constructor(configurationService, router, appState, themeService) {
|
|
57
|
-
this.configurationService = configurationService;
|
|
58
|
-
this.router = router;
|
|
59
|
-
this.appState = appState;
|
|
60
|
-
this.themeService = themeService;
|
|
61
|
-
this.versionInfo$ = this.appState.currentMfe$.pipe(withLatestFrom(this.appState.currentPortal$.asObservable()), map(([mfe, portal]) => {
|
|
62
|
-
const mfeInfoVersion = (mfe === null || mfe === void 0 ? void 0 : mfe.version) || '';
|
|
63
|
-
const mfeName = mfe === null || mfe === void 0 ? void 0 : mfe.displayName;
|
|
64
|
-
const hostVersion = this.configurationService.getProperty(CONFIG_KEY.APP_VERSION) || 'DEV-LOCAL';
|
|
65
|
-
const mfInfoText = mfeName ? `MF ${mfeName} v${mfeInfoVersion}` : '';
|
|
66
|
-
return `Portal: ${portal.portalName} v${hostVersion} ${mfInfoText}`;
|
|
67
|
-
}));
|
|
68
|
-
this.logoUrl$ = combineLatest([
|
|
69
|
-
this.themeService.currentTheme$.asObservable(),
|
|
70
|
-
this.appState.currentWorkspace$.asObservable(),
|
|
71
|
-
]).pipe(map(([theme, portalData]) => ImageLogoUrlUtils.createLogoUrl(SHELL_BFF_PREFIX, theme.logoUrl || portalData.logoUrl)));
|
|
72
|
-
}
|
|
73
|
-
ngOnInit() {
|
|
74
|
-
this.copyrightMsg$ = concat(of('Capgemini. All rights reserved.'), this.appState.currentWorkspace$.pipe(map((portalData) => {
|
|
75
|
-
if (!(portalData.footerLabel === '' ||
|
|
76
|
-
portalData.footerLabel === 'string' ||
|
|
77
|
-
portalData.footerLabel === undefined)) {
|
|
78
|
-
return portalData.companyName || portalData.footerLabel || 'All rights reserved.';
|
|
79
|
-
}
|
|
80
|
-
return '';
|
|
81
|
-
})));
|
|
82
|
-
}
|
|
83
|
-
onErrorHandleSrc() {
|
|
84
|
-
this.logoUrl$ = of(undefined);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
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 });
|
|
88
|
-
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\n *ngIf=\"logoUrl$ | async\"\n alt=\"logo\"\n class=\"max-h-1rem\"\n [ocxSrc]=\"(logoUrl$ | async) ?? ''\"\n (error)=\"onErrorHandleSrc()\"\n />\n <div class=\"flex-none text-sm\">© {{copyrightMsg$ | async}}</div>\n <ocx-slot name=\"onecx-shell-footer\"></ocx-slot>\n </div>\n <div class=\"mr-5 text-sm\">{{versionInfo$ | async}}</div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.SlotComponent, selector: "ocx-slot[name]", inputs: ["name"] }, { kind: "directive", type: i5$1.SrcDirective, selector: "[ocxSrc]", inputs: ["ocxSrc"], outputs: ["error"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PortalFooterComponent, decorators: [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{ selector: 'ocx-shell-footer', 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\n *ngIf=\"logoUrl$ | async\"\n alt=\"logo\"\n class=\"max-h-1rem\"\n [ocxSrc]=\"(logoUrl$ | async) ?? ''\"\n (error)=\"onErrorHandleSrc()\"\n />\n <div class=\"flex-none text-sm\">© {{copyrightMsg$ | async}}</div>\n <ocx-slot name=\"onecx-shell-footer\"></ocx-slot>\n </div>\n <div class=\"mr-5 text-sm\">{{versionInfo$ | async}}</div>\n</div>\n" }]
|
|
92
|
-
}], ctorParameters: function () { return [{ type: i1$1.ConfigurationService }, { type: i1.Router }, { type: i1$1.AppStateService }, { type: i1$1.ThemeService }]; } });
|
|
93
|
-
|
|
94
|
-
let HeaderComponent = class HeaderComponent {
|
|
95
|
-
constructor(themeService, appStateService) {
|
|
96
|
-
this.themeService = themeService;
|
|
97
|
-
this.appStateService = appStateService;
|
|
98
|
-
this.menuExpanded = false;
|
|
99
|
-
this.fallbackImg = false;
|
|
100
|
-
this.fullPortalLayout = true;
|
|
101
|
-
this.homeNavUrl = '/';
|
|
102
|
-
this.homeNavTitle = 'Home';
|
|
103
|
-
this.menuButtonClick = new EventEmitter();
|
|
104
|
-
this.logoUrl$ = combineLatest([
|
|
105
|
-
this.themeService.currentTheme$.asObservable(),
|
|
106
|
-
this.appStateService.currentWorkspace$.asObservable(),
|
|
107
|
-
]).pipe(map(([theme, portal]) => {
|
|
108
|
-
return ImageLogoUrlUtils.createLogoUrl(SHELL_BFF_PREFIX, theme.logoUrl || portal.logoUrl);
|
|
109
|
-
}));
|
|
110
|
-
}
|
|
111
|
-
onMenuButtonClick(e) {
|
|
112
|
-
this.menuButtonClick.emit(e);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
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 });
|
|
116
|
-
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\n class=\"layout-menu-button shadow-6\"\n (click)=\"onMenuButtonClick($event)\"\n pRipple\n [title]=\"menuButtonTitle ?? ('OCX_HEADER.MENU_TOGGLE')\"\n >\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 <ocx-slot name=\"onecx-shell-header-right\" class=\"layout-topbar-items\">\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 56px\">\n <p-skeleton shape=\"circle\" size=\"2.5rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\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: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.SlotComponent, selector: "ocx-slot[name]", inputs: ["name"] }, { kind: "directive", type: i5$1.SrcDirective, selector: "[ocxSrc]", inputs: ["ocxSrc"], outputs: ["error"] }, { kind: "component", type: i5$2.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "directive", type: i3.Ripple, selector: "[pRipple]" }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }], animations: [
|
|
117
|
-
trigger('topbarActionPanelAnimation', [
|
|
118
|
-
transition(':enter', [
|
|
119
|
-
style({ opacity: 0, transform: 'scaleY(0.8)' }),
|
|
120
|
-
animate('.12s cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1, transform: '*' })),
|
|
121
|
-
]),
|
|
122
|
-
transition(':leave', [animate('.1s linear', style({ opacity: 0 }))]),
|
|
123
|
-
]),
|
|
124
|
-
] });
|
|
125
|
-
HeaderComponent = __decorate([
|
|
126
|
-
UntilDestroy(),
|
|
127
|
-
__metadata("design:paramtypes", [ThemeService, AppStateService])
|
|
128
|
-
], HeaderComponent);
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
130
|
-
type: Component,
|
|
131
|
-
args: [{ selector: 'ocx-shell-header', animations: [
|
|
132
|
-
trigger('topbarActionPanelAnimation', [
|
|
133
|
-
transition(':enter', [
|
|
134
|
-
style({ opacity: 0, transform: 'scaleY(0.8)' }),
|
|
135
|
-
animate('.12s cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1, transform: '*' })),
|
|
136
|
-
]),
|
|
137
|
-
transition(':leave', [animate('.1s linear', style({ opacity: 0 }))]),
|
|
138
|
-
]),
|
|
139
|
-
], 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\n class=\"layout-menu-button shadow-6\"\n (click)=\"onMenuButtonClick($event)\"\n pRipple\n [title]=\"menuButtonTitle ?? ('OCX_HEADER.MENU_TOGGLE')\"\n >\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 <ocx-slot name=\"onecx-shell-header-right\" class=\"layout-topbar-items\">\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 56px\">\n <p-skeleton shape=\"circle\" size=\"2.5rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\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"] }]
|
|
140
|
-
}], ctorParameters: function () { return [{ type: i1$1.ThemeService }, { type: i1$1.AppStateService }]; }, propDecorators: { menuButtonTitle: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], fullPortalLayout: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], homeNavUrl: [{
|
|
145
|
-
type: Input
|
|
146
|
-
}], homeNavTitle: [{
|
|
147
|
-
type: Input
|
|
148
|
-
}], menuButtonClick: [{
|
|
149
|
-
type: Output
|
|
150
|
-
}] } });
|
|
151
|
-
|
|
152
|
-
const SHOW_CONTENT_PROVIDER = new InjectionToken('SHOW_CONTENT_PROVIDER');
|
|
153
|
-
let PortalViewportComponent = class PortalViewportComponent {
|
|
154
|
-
constructor(renderer, primengConfig, messageService, appStateService, portalMessageService, userService, themeService, httpClient, router, showContentProvider) {
|
|
155
|
-
this.renderer = renderer;
|
|
156
|
-
this.primengConfig = primengConfig;
|
|
157
|
-
this.messageService = messageService;
|
|
158
|
-
this.appStateService = appStateService;
|
|
159
|
-
this.portalMessageService = portalMessageService;
|
|
160
|
-
this.userService = userService;
|
|
161
|
-
this.themeService = themeService;
|
|
162
|
-
this.httpClient = httpClient;
|
|
163
|
-
this.router = router;
|
|
164
|
-
this.showContentProvider = showContentProvider;
|
|
165
|
-
this.menuButtonTitle = '';
|
|
166
|
-
this.menuActive = true;
|
|
167
|
-
this.topbarTheme = 'var';
|
|
168
|
-
this.colorScheme = 'light';
|
|
169
|
-
this.layoutMode = 'light';
|
|
170
|
-
this.menuMode = 'static';
|
|
171
|
-
this.inputStyle = 'outline';
|
|
172
|
-
this.ripple = true;
|
|
173
|
-
this.isMobile = false;
|
|
174
|
-
this.portalMessageService.message$.subscribe((message) => this.messageService.add(message));
|
|
175
|
-
this.userService.profile$.pipe(untilDestroyed(this)).subscribe((profile) => {
|
|
176
|
-
var _a, _b, _c, _d, _e, _f;
|
|
177
|
-
this.menuMode =
|
|
178
|
-
((_c = (_b = (_a = profile === null || profile === void 0 ? void 0 : profile.accountSettings) === null || _a === void 0 ? void 0 : _a.layoutAndThemeSettings) === null || _b === void 0 ? void 0 : _b.menuMode) === null || _c === void 0 ? void 0 : _c.toLowerCase()) || this.menuMode;
|
|
179
|
-
this.colorScheme =
|
|
180
|
-
((_f = (_e = (_d = profile === null || profile === void 0 ? void 0 : profile.accountSettings) === null || _d === void 0 ? void 0 : _d.layoutAndThemeSettings) === null || _e === void 0 ? void 0 : _e.colorScheme) === null || _f === void 0 ? void 0 : _f.toLowerCase()) || this.colorScheme;
|
|
181
|
-
});
|
|
182
|
-
this.themeService.currentTheme$
|
|
183
|
-
.pipe(first(), mergeMap((theme) => {
|
|
184
|
-
return theme.faviconUrl
|
|
185
|
-
? this.httpClient.get(theme.faviconUrl, { responseType: 'blob' }).pipe(mergeMap((blob) => {
|
|
186
|
-
return from(new Promise((resolve) => {
|
|
187
|
-
const reader = new FileReader();
|
|
188
|
-
reader.onload = (e) => { var _a; return resolve((_a = e.target) === null || _a === void 0 ? void 0 : _a.result); };
|
|
189
|
-
reader.readAsDataURL(blob);
|
|
190
|
-
}));
|
|
191
|
-
}))
|
|
192
|
-
: of('');
|
|
193
|
-
}))
|
|
194
|
-
.subscribe((url) => {
|
|
195
|
-
let link = document.querySelector("link[rel~='icon']");
|
|
196
|
-
if (!link) {
|
|
197
|
-
link = document.createElement('link');
|
|
198
|
-
link.rel = 'icon';
|
|
199
|
-
document.head.appendChild(link);
|
|
200
|
-
}
|
|
201
|
-
link.href = url;
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
ngOnInit() {
|
|
205
|
-
this.primengConfig.ripple = true;
|
|
206
|
-
this.appStateService.globalError$
|
|
207
|
-
.pipe(untilDestroyed(this))
|
|
208
|
-
.pipe(filter((i) => i !== undefined))
|
|
209
|
-
.subscribe((err) => {
|
|
210
|
-
this.globalErrMsg = err;
|
|
211
|
-
});
|
|
212
|
-
this.onResize();
|
|
213
|
-
}
|
|
214
|
-
ngOnDestroy() {
|
|
215
|
-
var _a;
|
|
216
|
-
(_a = this.removeDocumentClickListener) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
217
|
-
}
|
|
218
|
-
onMenuButtonClick(event) {
|
|
219
|
-
this.activeTopbarItem = undefined;
|
|
220
|
-
this.menuActive = !this.menuActive;
|
|
221
|
-
event.preventDefault();
|
|
222
|
-
event.stopPropagation();
|
|
223
|
-
}
|
|
224
|
-
onResize() {
|
|
225
|
-
const mobileBreakpointVar = getComputedStyle(document.documentElement).getPropertyValue('--mobile-break-point');
|
|
226
|
-
const isMobile = window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches;
|
|
227
|
-
// auto show sidebar when changing to desktop, hide when changing to mobile
|
|
228
|
-
if (isMobile !== this.isMobile)
|
|
229
|
-
this.menuActive = !isMobile;
|
|
230
|
-
this.isMobile = isMobile;
|
|
231
|
-
}
|
|
232
|
-
isHorizontalMenuMode() {
|
|
233
|
-
return this.menuMode === 'horizontal' && !this.isMobile;
|
|
234
|
-
}
|
|
235
|
-
isStaticalMenuVisible() {
|
|
236
|
-
return this.menuActive && !this.isHorizontalMenuMode();
|
|
237
|
-
}
|
|
238
|
-
isHorizontalMenuVisible() {
|
|
239
|
-
return this.isHorizontalMenuMode();
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
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$1.HttpClient }, { token: i1.Router }, { token: SHOW_CONTENT_PROVIDER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
-
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 [menuButtonTitle]=\"menuButtonTitle\" (menuButtonClick)=\"onMenuButtonClick($event)\">\n <div *ngIf=\"isHorizontalMenuVisible()\">\n <ocx-slot name=\"onecx-shell-horizontal-menu\">\n <ng-template #skeleton>\n <div class=\"ml-4 flex flex-row gap-4\">\n <p-skeleton class=\"w-full h-full inline-block\" height=\"35px\" width=\"120px\"></p-skeleton>\n <p-skeleton class=\"w-full h-full inline-block\" height=\"35px\" width=\"120px\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n </div>\n </ocx-shell-header>\n\n <p-toast></p-toast>\n\n <div class=\"menu-wrapper\">\n <div class=\"layout-menu-container overflow-auto\" *ngIf=\"isStaticalMenuVisible()\">\n <ocx-slot name=\"onecx-shell-vertical-menu\">\n <ng-template #skeleton>\n <p-skeleton class=\"w-full h-full inline-block p-2\" height=\"35px\"></p-skeleton>\n </ng-template>\n </ocx-slot>\n </div>\n </div>\n\n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ocx-slot name=\"onecx-shell-sub-header\"></ocx-slot>\n <ng-container *ngIf=\"!showContentProvider || (showContentProvider.showContent$ | async); else appLoading\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </ng-container>\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>\n\n<ng-template #appLoading>\n <div [ocxLoadingIndicator]=\"true\" class=\"w-full h-full absolute top-0 left-0\"></div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.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: i5$2.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "directive", type: i9.LoadingIndicatorDirective, selector: "[ocxLoadingIndicator]", inputs: ["ocxLoadingIndicator", "overlayFullPage", "isLoaderSmall"] }, { 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"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] });
|
|
244
|
-
PortalViewportComponent = __decorate([
|
|
245
|
-
UntilDestroy(),
|
|
246
|
-
__metadata("design:paramtypes", [Renderer2,
|
|
247
|
-
PrimeNGConfig,
|
|
248
|
-
MessageService,
|
|
249
|
-
AppStateService,
|
|
250
|
-
PortalMessageService,
|
|
251
|
-
UserService,
|
|
252
|
-
ThemeService,
|
|
253
|
-
HttpClient,
|
|
254
|
-
Router, Object])
|
|
255
|
-
], PortalViewportComponent);
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PortalViewportComponent, decorators: [{
|
|
257
|
-
type: Component,
|
|
258
|
-
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 [menuButtonTitle]=\"menuButtonTitle\" (menuButtonClick)=\"onMenuButtonClick($event)\">\n <div *ngIf=\"isHorizontalMenuVisible()\">\n <ocx-slot name=\"onecx-shell-horizontal-menu\">\n <ng-template #skeleton>\n <div class=\"ml-4 flex flex-row gap-4\">\n <p-skeleton class=\"w-full h-full inline-block\" height=\"35px\" width=\"120px\"></p-skeleton>\n <p-skeleton class=\"w-full h-full inline-block\" height=\"35px\" width=\"120px\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n </div>\n </ocx-shell-header>\n\n <p-toast></p-toast>\n\n <div class=\"menu-wrapper\">\n <div class=\"layout-menu-container overflow-auto\" *ngIf=\"isStaticalMenuVisible()\">\n <ocx-slot name=\"onecx-shell-vertical-menu\">\n <ng-template #skeleton>\n <p-skeleton class=\"w-full h-full inline-block p-2\" height=\"35px\"></p-skeleton>\n </ng-template>\n </ocx-slot>\n </div>\n </div>\n\n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ocx-slot name=\"onecx-shell-sub-header\"></ocx-slot>\n <ng-container *ngIf=\"!showContentProvider || (showContentProvider.showContent$ | async); else appLoading\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </ng-container>\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>\n\n<ng-template #appLoading>\n <div [ocxLoadingIndicator]=\"true\" class=\"w-full h-full absolute top-0 left-0\"></div>\n</ng-template>\n" }]
|
|
259
|
-
}], ctorParameters: function () {
|
|
260
|
-
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$1.HttpClient }, { type: i1.Router }, { type: undefined, decorators: [{
|
|
261
|
-
type: Optional
|
|
262
|
-
}, {
|
|
263
|
-
type: Inject,
|
|
264
|
-
args: [SHOW_CONTENT_PROVIDER]
|
|
265
|
-
}] }];
|
|
266
|
-
}, propDecorators: { onResize: [{
|
|
267
|
-
type: HostListener,
|
|
268
|
-
args: ['window:resize']
|
|
269
|
-
}] } });
|
|
270
|
-
|
|
271
|
-
class ShellCoreModule {
|
|
272
|
-
}
|
|
273
|
-
ShellCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
274
|
-
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, SkeletonModule, PortalCoreModule], exports: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, ToastModule, GlobalErrorComponent] });
|
|
275
|
-
ShellCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule, SkeletonModule, PortalCoreModule, ToastModule] });
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ShellCoreModule, decorators: [{
|
|
277
|
-
type: NgModule,
|
|
278
|
-
args: [{
|
|
279
|
-
imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule, SkeletonModule, PortalCoreModule],
|
|
280
|
-
declarations: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, GlobalErrorComponent],
|
|
281
|
-
exports: [PortalViewportComponent, HeaderComponent, PortalFooterComponent, ToastModule, GlobalErrorComponent],
|
|
282
|
-
}]
|
|
283
|
-
}] });
|
|
284
|
-
|
|
285
|
-
class PermissionsCacheService {
|
|
286
|
-
constructor() {
|
|
287
|
-
this.permissions = {};
|
|
288
|
-
}
|
|
289
|
-
getPermissions(appId, productName, cacheMissFkt) {
|
|
290
|
-
const key = appId + '|' + productName;
|
|
291
|
-
if (!this.permissions[key]) {
|
|
292
|
-
this.permissions[key] = cacheMissFkt(appId, productName).pipe(shareReplay());
|
|
293
|
-
}
|
|
294
|
-
return this.permissions[key];
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
PermissionsCacheService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PermissionsCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
298
|
-
PermissionsCacheService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PermissionsCacheService, providedIn: 'root' });
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PermissionsCacheService, decorators: [{
|
|
300
|
-
type: Injectable,
|
|
301
|
-
args: [{ providedIn: 'root' }]
|
|
302
|
-
}] });
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Generated bundle index. Do not edit.
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
|
-
export { GlobalErrorComponent, HeaderComponent, PermissionsCacheService, PortalFooterComponent, PortalViewportComponent, SHELL_BFF_PREFIX, SHOW_CONTENT_PROVIDER, ShellCoreModule };
|
|
309
|
-
//# sourceMappingURL=onecx-shell-core.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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 { 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})\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\n *ngIf=\"logoUrl$ | async\"\n alt=\"logo\"\n class=\"max-h-1rem\"\n [ocxSrc]=\"(logoUrl$ | async) ?? ''\"\n (error)=\"onErrorHandleSrc()\"\n />\n <div class=\"flex-none text-sm\">© {{copyrightMsg$ | async}}</div>\n <ocx-slot name=\"onecx-shell-footer\"></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\n class=\"layout-menu-button shadow-6\"\n (click)=\"onMenuButtonClick($event)\"\n pRipple\n [title]=\"menuButtonTitle ?? ('OCX_HEADER.MENU_TOGGLE')\"\n >\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 <ocx-slot name=\"onecx-shell-header-right\" class=\"layout-topbar-items\">\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 56px\">\n <p-skeleton shape=\"circle\" size=\"2.5rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n </div>\n </div>\n</div>\n","import { HttpClient } from '@angular/common/http'\nimport { Component, HostListener, Inject, InjectionToken, OnDestroy, OnInit, Optional, Renderer2 } from '@angular/core'\nimport { Router } from '@angular/router'\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'\nimport {\n AppStateService,\n Message,\n PortalMessageService,\n ThemeService,\n UserService,\n} from '@onecx/angular-integration-interface'\nimport { MessageService, PrimeNGConfig } from 'primeng/api'\nimport { BehaviorSubject, filter, first, from, mergeMap, of } from 'rxjs'\n\nexport const SHOW_CONTENT_PROVIDER = new InjectionToken<ShowContentProvider>('SHOW_CONTENT_PROVIDER')\n\nexport interface ShowContentProvider {\n showContent$: BehaviorSubject<boolean>\n}\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, 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 public appStateService: AppStateService,\n private portalMessageService: PortalMessageService,\n private userService: UserService,\n private themeService: ThemeService,\n private httpClient: HttpClient,\n private router: Router,\n @Optional() @Inject(SHOW_CONTENT_PROVIDER) public showContentProvider: ShowContentProvider | undefined\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.get(theme.faviconUrl, { responseType: 'blob' }).pipe(\n mergeMap((blob) => {\n return from(\n new Promise((resolve) => {\n const reader = new FileReader()\n reader.onload = (e) => resolve(e.target?.result)\n reader.readAsDataURL(blob)\n })\n )\n })\n )\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.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 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 [menuButtonTitle]=\"menuButtonTitle\" (menuButtonClick)=\"onMenuButtonClick($event)\">\n <div *ngIf=\"isHorizontalMenuVisible()\">\n <ocx-slot name=\"onecx-shell-horizontal-menu\">\n <ng-template #skeleton>\n <div class=\"ml-4 flex flex-row gap-4\">\n <p-skeleton class=\"w-full h-full inline-block\" height=\"35px\" width=\"120px\"></p-skeleton>\n <p-skeleton class=\"w-full h-full inline-block\" height=\"35px\" width=\"120px\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n </div>\n </ocx-shell-header>\n\n <p-toast></p-toast>\n\n <div class=\"menu-wrapper\">\n <div class=\"layout-menu-container overflow-auto\" *ngIf=\"isStaticalMenuVisible()\">\n <ocx-slot name=\"onecx-shell-vertical-menu\">\n <ng-template #skeleton>\n <p-skeleton class=\"w-full h-full inline-block p-2\" height=\"35px\"></p-skeleton>\n </ng-template>\n </ocx-slot>\n </div>\n </div>\n\n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ocx-slot name=\"onecx-shell-sub-header\"></ocx-slot>\n <ng-container *ngIf=\"!showContentProvider || (showContentProvider.showContent$ | async); else appLoading\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </ng-container>\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>\n\n<ng-template #appLoading>\n <div [ocxLoadingIndicator]=\"true\" class=\"w-full h-full absolute top-0 left-0\"></div>\n</ng-template>\n","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'\nimport { SkeletonModule } from 'primeng/skeleton'\nimport { PortalCoreModule } from '@onecx/portal-integration-angular'\n\n@NgModule({\n imports: [CommonModule, RouterModule, AngularRemoteComponentsModule, AngularAcceleratorModule, ToastModule, SkeletonModule, PortalCoreModule],\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, shareReplay } from 'rxjs'\n\n@Injectable({ providedIn: 'root' })\nexport class PermissionsCacheService {\n permissions: Record<string, Observable<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 this.permissions[key] = cacheMissFkt(appId, productName).pipe(shareReplay())\n }\n return this.permissions[key]\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3","i5","i4","i6","i8","i10.HeaderComponent","i11.PortalFooterComponent","i12.GlobalErrorComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQa,oBAAoB,CAAA;IAK/B,WAAoB,CAAA,MAAc,EAAU,KAAqB,EAAA;AAA7C,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AAAU,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;AAC/D,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,oBAAoB,CAAA;AACnF,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAA;KACtE;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;KACxC;IAED,MAAM,GAAA;AACJ,QAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAA;KACzB;;kHAhBU,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CA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