@onecx/shell-core 7.0.0-rc.1 → 7.0.0-rc.3
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/assets/i18n/de.json +4 -1
- package/assets/i18n/en.json +4 -1
- package/fesm2022/onecx-shell-core.mjs +31 -90
- package/fesm2022/onecx-shell-core.mjs.map +1 -1
- package/lib/components/portal-header/header.component.d.ts +1 -6
- package/lib/components/portal-viewport/portal-viewport.component.d.ts +2 -15
- package/package.json +5 -6
package/assets/i18n/de.json
CHANGED
package/assets/i18n/en.json
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, Input, Component, EventEmitter, Output, InjectionToken,
|
|
4
|
+
import { inject, Input, Component, EventEmitter, Output, InjectionToken, ElementRef, Directive, NgModule, Injectable } from '@angular/core';
|
|
5
5
|
import * as i3$1 from '@angular/router';
|
|
6
6
|
import { Router, ActivatedRoute, RouterModule } from '@angular/router';
|
|
7
7
|
import * as i1 from '@onecx/angular-remote-components';
|
|
8
8
|
import { SlotService, AngularRemoteComponentsModule } from '@onecx/angular-remote-components';
|
|
9
|
-
import * as
|
|
9
|
+
import * as i4 from 'primeng/toast';
|
|
10
10
|
import { ToastModule } from 'primeng/toast';
|
|
11
11
|
import { PrimeNG, providePrimeNG } from 'primeng/config';
|
|
12
12
|
import { __decorate, __metadata } from 'tslib';
|
|
13
13
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
14
14
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
|
15
15
|
import { ThemeService, AppStateService, PortalMessageService, UserService } from '@onecx/angular-integration-interface';
|
|
16
|
-
import * as i3 from '
|
|
17
|
-
import { SkeletonModule } from 'primeng/skeleton';
|
|
18
|
-
import * as i4 from 'primeng/tooltip';
|
|
19
|
-
import { TooltipModule } from 'primeng/tooltip';
|
|
20
|
-
import * as i5 from '@ngx-translate/core';
|
|
16
|
+
import * as i3 from '@ngx-translate/core';
|
|
21
17
|
import { TranslateModule } from '@ngx-translate/core';
|
|
22
18
|
import { HttpClient } from '@angular/common/http';
|
|
23
19
|
import { MessageService } from 'primeng/api';
|
|
24
|
-
import { first, mergeMap, of, filter, from,
|
|
25
|
-
import {
|
|
20
|
+
import { first, mergeMap, of, filter, from, shareReplay } from 'rxjs';
|
|
21
|
+
import { SkeletonModule } from 'primeng/skeleton';
|
|
22
|
+
import { TooltipModule } from 'primeng/tooltip';
|
|
26
23
|
import { provideTranslationPathFromMeta } from '@onecx/angular-utils';
|
|
27
24
|
|
|
28
25
|
class GlobalErrorComponent {
|
|
@@ -38,10 +35,10 @@ class GlobalErrorComponent {
|
|
|
38
35
|
reload() {
|
|
39
36
|
window.location.reload();
|
|
40
37
|
}
|
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GlobalErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GlobalErrorComponent, isStandalone: false, 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:#fff;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"] }); }
|
|
43
40
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GlobalErrorComponent, decorators: [{
|
|
45
42
|
type: Component,
|
|
46
43
|
args: [{ standalone: false, 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:#fff;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"] }]
|
|
47
44
|
}], ctorParameters: () => [], propDecorators: { errCode: [{
|
|
@@ -53,27 +50,20 @@ let HeaderComponent = class HeaderComponent {
|
|
|
53
50
|
this.fullPortalLayout = true;
|
|
54
51
|
this.homeNavUrl = '/';
|
|
55
52
|
this.homeNavTitle = 'Home';
|
|
56
|
-
this.isStaticalMenu = false;
|
|
57
|
-
this.isHorizontalMenu = false;
|
|
58
53
|
this.menuButtonClick = new EventEmitter();
|
|
59
54
|
this.themeService = inject(ThemeService);
|
|
60
|
-
this.slotService = inject(SlotService);
|
|
61
55
|
this.menuExpanded = false;
|
|
62
56
|
// slot configuration: get theme logo
|
|
63
57
|
this.slotName = 'onecx-theme-data';
|
|
64
58
|
this.logoLoadingEmitter = new EventEmitter();
|
|
65
59
|
this.themeLogoLoadingFailed = false;
|
|
66
|
-
this.isComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.slotName);
|
|
67
60
|
this.currentTheme$ = this.themeService.currentTheme$.asObservable();
|
|
68
61
|
this.logoLoadingEmitter.subscribe((data) => {
|
|
69
62
|
this.themeLogoLoadingFailed = data;
|
|
70
63
|
});
|
|
71
64
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: HeaderComponent, isStandalone: false, selector: "ocx-shell-header", inputs: { menuButtonTitle: "menuButtonTitle", fullPortalLayout: "fullPortalLayout", homeNavUrl: "homeNavUrl", homeNavTitle: "homeNavTitle", isStaticalMenu: "isStaticalMenu", isHorizontalMenu: "isHorizontalMenu" }, outputs: { menuButtonClick: "menuButtonClick" }, ngImport: i0, template: "<header class=\"layout-topbar_flex\" id=\"ocx_header\">\n <section\n class=\"layout-topbar-left flex relative justify-content-center align-items-center\"\n [ngClass]=\"{'vertical-menu': !isHorizontalMenu}\"\n [attr.aria-label]=\"'Left'\"\n >\n <ocx-slot\n name=\"onecx-shell-header-left\"\n class=\"flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1\"\n [inputs]=\"{ imageStyleClass: 'max-h-3rem max-w-9rem vertical-align-middle' }\"\n [outputs]=\"{ imageLoadingFailed: logoLoadingEmitter }\"\n >\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 26px\">\n <p-skeleton size=\"2rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n <div *ngIf=\"themeLogoLoadingFailed\"><!-- portal logo --></div>\n\n <button\n id=\"ocx_vertical_menu_action_toggle\"\n class=\"layout-menu-button border-none\"\n [ngClass]=\"{ 'hidden': isHorizontalMenu }\"\n pRipple\n (click)=\"onMenuButtonClick($event)\"\n [attr.aria-label]=\"'OCX_HEADER.MENU_TOGGLE' | translate\"\n [pTooltip]=\"'OCX_HEADER.MENU_TOGGLE' | translate\"\n tooltipPosition=\"top\"\n tooltipEvent=\"hover\"\n >\n <span\n id=\"ocx_vertical_menu_action_toggle_icon\"\n class=\"pi pi-chevron-right\"\n [ngClass]=\"{'toggle-button-direction': isStaticalMenu && (isComponentDefined$ | async) === true}\"\n aria-hidden=\"true\"\n ></span>\n </button>\n </section>\n\n <section class=\"layout-topbar-right\" [attr.aria-label]=\"'Topbar'\">\n <div class=\"layout-topbar-actions-left\">\n <ng-content></ng-content>\n </div>\n <div class=\"layout-topbar-actions-right_flex\">\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 </section>\n</header>\n", styles: [".layout-topbar-items>*{margin:auto}.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}.layout-topbar_flex{position:fixed;top:0;left:0;z-index:998;width:100%;height:4rem;transition:width var(--p-transition-duration);display:flex;justify-content:space-between;align-items:center;row-gap:1rem}.layout-topbar_flex ul{margin:0;padding:0;border:0;outline:0;text-decoration:none;list-style-type:none}.layout-topbar_flex .layout-topbar-left{width:11rem;height:100%}.layout-topbar_flex .layout-topbar-left.vertical-menu{flex:0 0 17rem}.layout-topbar_flex .layout-topbar-left .layout-menu-button{position:absolute;top:50%;right:-1.25rem;width:2.5rem;height:2.5rem;margin-top:-1.25rem;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%}.layout-topbar_flex .layout-topbar-left .layout-menu-button i{transition:transform var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-left .layout-topbar-mobile-button{display:none;align-items:center;padding:0 .8rem;margin:0 .5rem 0 auto;border-radius:50%;height:3.2rem;cursor:pointer}.layout-topbar_flex .layout-topbar-right{display:flex;flex-grow:1;align-items:center;justify-content:space-between;row-gap:0;height:100%;min-width:0}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left{display:flex;flex-grow:1;align-items:center;height:100%;min-width:0}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar .p-menubar-root-list>.p-menuitem .p-menuitem-text{white-space:nowrap}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex{height:100%;margin-right:.75rem}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:.25rem;height:100%}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item{display:flex;align-items:center;position:relative}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action{-webkit-user-select:none;user-select:none;justify-content:center;height:3.2rem;width:3.2rem;min-width:3.2rem;border-radius:50%;cursor:pointer;margin:0;padding:.5rem!important;color:var(--topbar-item-text-color);background-color:var(--topbar-bg-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action:hover,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action:focus{color:var(--topbar-item-text-hover-color);background-color:var(--topbar-item-text-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action-panel{position:absolute;top:4rem;right:0;z-index:1000;min-width:13rem;padding:.5rem 0;transform-origin:top}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action-panel .layout-topbar-action-item{cursor:pointer}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel{height:4rem;width:100%;position:fixed;top:0;left:0;z-index:1000;transform-origin:top}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input{border-radius:0;border:0 none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input:focus{outline:0 none;box-shadow:none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel i{font-weight:700}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon{border:0 none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.layout-menu-button-hidden .layout-topbar_flex .layout-topbar-left{padding-right:0}.layout-menu-button-hidden .layout-topbar_flex .layout-topbar-left .layout-menu-button{display:none}.layout-menu-button-hidden .layout-topbar_flex .layout-topbar-right{padding-left:0}.toggle-button-direction{transform:rotate(180deg)}@media (max-width: var(--mobile-break-point)){.layout-topbar_flex .layout-topbar-left{flex-shrink:1}.layout-topbar_flex .layout-topbar-right{min-width:auto}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex{padding-right:.25rem}}.layout-topbar_flex{color:var(--topbar-item-text-color);background-color:var(--topbar-bg-color)}.layout-topbar_flex .layout-topbar-left{background-color:var(--topbar-left-bg-color)}.layout-topbar_flex .layout-topbar-left .layout-menu-button{color:var(--topbar-menu-button-text-color, #ffffff);background-color:var(--topbar-menu-button-bg-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar{background:none;border:none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link .p-menuitem-text,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link .p-menuitem-icon,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link .p-submenu-icon{color:var(--topbar-item-text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link:not(.p-disabled):hover{background:var(--topbar-item-text-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link .p-menuitem-text,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link .p-menuitem-icon,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link .p-submenu-icon{color:var(onecx-topbar-item-text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link:not(.p-disabled):hover{background:var(--topbar-item-text-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-action-panel{background-color:var(--overlay-content-bg-color);color:var(--text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-action-panel .layout-topbar-action-item{color:var(--menu-item-text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-action-panel .layout-topbar-action-item:hover{background-color:var(--menu-item-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input:hover,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:first-child{background-color:var(--body-bg-color);color:var(--text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:last-child{background-color:var(--body-bg-color);color:var(--text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon .p-button-text{color:var(--text-color)}\n"], dependencies: [{ kind: "component", type: i1.SlotComponent, selector: "ocx-slot[name]", inputs: ["name", "slotStyles", "slotClasses", "inputs", "outputs"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], animations: [
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: HeaderComponent, isStandalone: false, selector: "ocx-shell-header", inputs: { menuButtonTitle: "menuButtonTitle", fullPortalLayout: "fullPortalLayout", homeNavUrl: "homeNavUrl", homeNavTitle: "homeNavTitle" }, outputs: { menuButtonClick: "menuButtonClick" }, ngImport: i0, template: "<header class=\"onecx-header\" id=\"ocx_header\">\n <!-- Placeholder for onecx-shell-header slot group -->\n <div class=\"onecx-header-start\" [attr.aria-label]=\"'OCX_HEADER.HEADER_LEFT' | translate\">\n <ocx-slot\n name=\"onecx-shell-header-left\"\n class=\"flex flex-row flex-nowrap justify-content-start align-items-center\"\n [inputs]=\"{ imageStyleClass: 'max-h-3rem max-w-9rem vertical-align-middle' }\"\n [outputs]=\"{ imageLoadingFailed: logoLoadingEmitter }\"\n >\n </ocx-slot>\n <div *ngIf=\"themeLogoLoadingFailed\"></div>\n </div>\n <div class=\"onecx-header-center\" [attr.aria-label]=\"'OCX_HEADER.HEADER_CENTER' | translate\">\n <div>\n <ocx-slot name=\"onecx-shell-horizontal-menu\"></ocx-slot>\n </div>\n </div>\n <div class=\"onecx-header-end\" [attr.aria-label]=\"'OCX_HEADER.HEADER_RIGHT' | translate\">\n <div class=\"onecx_header_end_actions_right\">\n <ocx-slot name=\"onecx-shell-header-right\" class=\"onecx_header_end_actions_right_items\"> </ocx-slot>\n </div>\n </div>\n</header>\n", styles: [".onecx-header{color:var(--topbar-item-text-color);background-color:var(--topbar-bg-color);width:100%;height:4rem;transition:width var(--p-transition-duration);display:flex;justify-content:space-between;align-items:center;row-gap:1rem}.onecx-header ocx-slot{height:100%}.onecx-header .onecx-header-start,.onecx-header .onecx-header-center,.onecx-header .onecx-header-end{height:100%;display:flex;align-items:center;justify-content:space-between}.onecx-header .onecx-header-start{flex-grow:0;flex-shrink:1;background-color:var(--topbar-left-bg-color);max-width:20rem}.onecx-header .onecx-header-start .onecx-menu-button{display:flex;position:relative;right:1.25rem;width:2.5rem;height:2.5rem;cursor:pointer;border-radius:50%;color:var(--topbar-menu-button-text-color, #ffffff);background-color:var(--topbar-menu-button-bg-color)}.onecx-header .onecx-header-start .onecx-menu-button i{transition:transform var(--p-transition-duration)}.onecx-header .onecx-header-start .onecx-menu-button .toggle-button-direction{transform:rotate(180deg)}.onecx-header .onecx-header-start .onecx-menu-button .hidden{display:none}.onecx-header .onecx-header-center{flex-grow:1;flex-shrink:1;justify-content:left}.onecx-header .onecx-header-end{flex-grow:0;flex-shrink:1;max-width:25rem}.onecx-header .onecx-header-end .onecx_header_end_actions_right{height:100%;margin-right:.75rem}.onecx-header .onecx-header-end .onecx_header_end_actions_right .onecx_header_end_actions_right_items{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:.25rem;height:100%}.onecx-header .onecx-header-end .onecx_header_end_actions_right .onecx_header_end_actions_right_items>*{margin:auto}\n"], dependencies: [{ kind: "component", type: i1.SlotComponent, selector: "ocx-slot[name]", inputs: ["name", "slotStyles", "slotClasses", "inputs", "outputs"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], animations: [
|
|
77
67
|
trigger('topbarActionPanelAnimation', [
|
|
78
68
|
transition(':enter', [
|
|
79
69
|
style({ opacity: 0, transform: 'scaleY(0.8)' }),
|
|
@@ -87,7 +77,7 @@ HeaderComponent = __decorate([
|
|
|
87
77
|
UntilDestroy(),
|
|
88
78
|
__metadata("design:paramtypes", [])
|
|
89
79
|
], HeaderComponent);
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderComponent, decorators: [{
|
|
91
81
|
type: Component,
|
|
92
82
|
args: [{ standalone: false, selector: 'ocx-shell-header', animations: [
|
|
93
83
|
trigger('topbarActionPanelAnimation', [
|
|
@@ -97,7 +87,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
97
87
|
]),
|
|
98
88
|
transition(':leave', [animate('.1s linear', style({ opacity: 0 }))]),
|
|
99
89
|
]),
|
|
100
|
-
], template: "<header class=\"layout-topbar_flex\" id=\"ocx_header\">\n <section\n class=\"layout-topbar-left flex relative justify-content-center align-items-center\"\n [ngClass]=\"{'vertical-menu': !isHorizontalMenu}\"\n [attr.aria-label]=\"'Left'\"\n >\n <ocx-slot\n name=\"onecx-shell-header-left\"\n class=\"flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1\"\n [inputs]=\"{ imageStyleClass: 'max-h-3rem max-w-9rem vertical-align-middle' }\"\n [outputs]=\"{ imageLoadingFailed: logoLoadingEmitter }\"\n >\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 26px\">\n <p-skeleton size=\"2rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n <div *ngIf=\"themeLogoLoadingFailed\"><!-- portal logo --></div>\n\n <button\n id=\"ocx_vertical_menu_action_toggle\"\n class=\"layout-menu-button border-none\"\n [ngClass]=\"{ 'hidden': isHorizontalMenu }\"\n pRipple\n (click)=\"onMenuButtonClick($event)\"\n [attr.aria-label]=\"'OCX_HEADER.MENU_TOGGLE' | translate\"\n [pTooltip]=\"'OCX_HEADER.MENU_TOGGLE' | translate\"\n tooltipPosition=\"top\"\n tooltipEvent=\"hover\"\n >\n <span\n id=\"ocx_vertical_menu_action_toggle_icon\"\n class=\"pi pi-chevron-right\"\n [ngClass]=\"{'toggle-button-direction': isStaticalMenu && (isComponentDefined$ | async) === true}\"\n aria-hidden=\"true\"\n ></span>\n </button>\n </section>\n\n <section class=\"layout-topbar-right\" [attr.aria-label]=\"'Topbar'\">\n <div class=\"layout-topbar-actions-left\">\n <ng-content></ng-content>\n </div>\n <div class=\"layout-topbar-actions-right_flex\">\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 </section>\n</header>\n", styles: [".layout-topbar-items>*{margin:auto}.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}.layout-topbar_flex{position:fixed;top:0;left:0;z-index:998;width:100%;height:4rem;transition:width var(--p-transition-duration);display:flex;justify-content:space-between;align-items:center;row-gap:1rem}.layout-topbar_flex ul{margin:0;padding:0;border:0;outline:0;text-decoration:none;list-style-type:none}.layout-topbar_flex .layout-topbar-left{width:11rem;height:100%}.layout-topbar_flex .layout-topbar-left.vertical-menu{flex:0 0 17rem}.layout-topbar_flex .layout-topbar-left .layout-menu-button{position:absolute;top:50%;right:-1.25rem;width:2.5rem;height:2.5rem;margin-top:-1.25rem;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%}.layout-topbar_flex .layout-topbar-left .layout-menu-button i{transition:transform var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-left .layout-topbar-mobile-button{display:none;align-items:center;padding:0 .8rem;margin:0 .5rem 0 auto;border-radius:50%;height:3.2rem;cursor:pointer}.layout-topbar_flex .layout-topbar-right{display:flex;flex-grow:1;align-items:center;justify-content:space-between;row-gap:0;height:100%;min-width:0}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left{display:flex;flex-grow:1;align-items:center;height:100%;min-width:0}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar .p-menubar-root-list>.p-menuitem .p-menuitem-text{white-space:nowrap}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex{height:100%;margin-right:.75rem}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:.25rem;height:100%}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item{display:flex;align-items:center;position:relative}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action{-webkit-user-select:none;user-select:none;justify-content:center;height:3.2rem;width:3.2rem;min-width:3.2rem;border-radius:50%;cursor:pointer;margin:0;padding:.5rem!important;color:var(--topbar-item-text-color);background-color:var(--topbar-bg-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action:hover,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action:focus{color:var(--topbar-item-text-hover-color);background-color:var(--topbar-item-text-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action-panel{position:absolute;top:4rem;right:0;z-index:1000;min-width:13rem;padding:.5rem 0;transform-origin:top}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item .layout-topbar-action-panel .layout-topbar-action-item{cursor:pointer}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel{height:4rem;width:100%;position:fixed;top:0;left:0;z-index:1000;transform-origin:top}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input{border-radius:0;border:0 none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input:focus{outline:0 none;box-shadow:none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel i{font-weight:700}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon{border:0 none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.layout-menu-button-hidden .layout-topbar_flex .layout-topbar-left{padding-right:0}.layout-menu-button-hidden .layout-topbar_flex .layout-topbar-left .layout-menu-button{display:none}.layout-menu-button-hidden .layout-topbar_flex .layout-topbar-right{padding-left:0}.toggle-button-direction{transform:rotate(180deg)}@media (max-width: var(--mobile-break-point)){.layout-topbar_flex .layout-topbar-left{flex-shrink:1}.layout-topbar_flex .layout-topbar-right{min-width:auto}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex{padding-right:.25rem}}.layout-topbar_flex{color:var(--topbar-item-text-color);background-color:var(--topbar-bg-color)}.layout-topbar_flex .layout-topbar-left{background-color:var(--topbar-left-bg-color)}.layout-topbar_flex .layout-topbar-left .layout-menu-button{color:var(--topbar-menu-button-text-color, #ffffff);background-color:var(--topbar-menu-button-bg-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar{background:none;border:none}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link .p-menuitem-text,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link .p-menuitem-icon,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link .p-submenu-icon{color:var(--topbar-item-text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-content .p-menuitem-link:not(.p-disabled):hover{background:var(--topbar-item-text-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link .p-menuitem-text,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link .p-menuitem-icon,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link .p-submenu-icon{color:var(onecx-topbar-item-text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-left .layout-menubar.p-menubar .p-menubar-root-list>.p-menuitem>.p-menuitem-link:not(.p-disabled):hover{background:var(--topbar-item-text-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-action-panel{background-color:var(--overlay-content-bg-color);color:var(--text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-action-panel .layout-topbar-action-item{color:var(--menu-item-text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-action-panel .layout-topbar-action-item:hover{background-color:var(--menu-item-hover-bg-color);transition:background-color var(--p-transition-duration)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel input:hover,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:first-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:first-child{background-color:var(--body-bg-color);color:var(--text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup button:last-child,.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup input:last-child{background-color:var(--body-bg-color);color:var(--text-color)}.layout-topbar_flex .layout-topbar-right .layout-topbar-actions-right_flex .layout-topbar-items .layout-topbar-item.layout-search-item .layout-search-panel .p-inputgroup-addon .p-button-text{color:var(--text-color)}\n"] }]
|
|
90
|
+
], template: "<header class=\"onecx-header\" id=\"ocx_header\">\n <!-- Placeholder for onecx-shell-header slot group -->\n <div class=\"onecx-header-start\" [attr.aria-label]=\"'OCX_HEADER.HEADER_LEFT' | translate\">\n <ocx-slot\n name=\"onecx-shell-header-left\"\n class=\"flex flex-row flex-nowrap justify-content-start align-items-center\"\n [inputs]=\"{ imageStyleClass: 'max-h-3rem max-w-9rem vertical-align-middle' }\"\n [outputs]=\"{ imageLoadingFailed: logoLoadingEmitter }\"\n >\n </ocx-slot>\n <div *ngIf=\"themeLogoLoadingFailed\"></div>\n </div>\n <div class=\"onecx-header-center\" [attr.aria-label]=\"'OCX_HEADER.HEADER_CENTER' | translate\">\n <div>\n <ocx-slot name=\"onecx-shell-horizontal-menu\"></ocx-slot>\n </div>\n </div>\n <div class=\"onecx-header-end\" [attr.aria-label]=\"'OCX_HEADER.HEADER_RIGHT' | translate\">\n <div class=\"onecx_header_end_actions_right\">\n <ocx-slot name=\"onecx-shell-header-right\" class=\"onecx_header_end_actions_right_items\"> </ocx-slot>\n </div>\n </div>\n</header>\n", styles: [".onecx-header{color:var(--topbar-item-text-color);background-color:var(--topbar-bg-color);width:100%;height:4rem;transition:width var(--p-transition-duration);display:flex;justify-content:space-between;align-items:center;row-gap:1rem}.onecx-header ocx-slot{height:100%}.onecx-header .onecx-header-start,.onecx-header .onecx-header-center,.onecx-header .onecx-header-end{height:100%;display:flex;align-items:center;justify-content:space-between}.onecx-header .onecx-header-start{flex-grow:0;flex-shrink:1;background-color:var(--topbar-left-bg-color);max-width:20rem}.onecx-header .onecx-header-start .onecx-menu-button{display:flex;position:relative;right:1.25rem;width:2.5rem;height:2.5rem;cursor:pointer;border-radius:50%;color:var(--topbar-menu-button-text-color, #ffffff);background-color:var(--topbar-menu-button-bg-color)}.onecx-header .onecx-header-start .onecx-menu-button i{transition:transform var(--p-transition-duration)}.onecx-header .onecx-header-start .onecx-menu-button .toggle-button-direction{transform:rotate(180deg)}.onecx-header .onecx-header-start .onecx-menu-button .hidden{display:none}.onecx-header .onecx-header-center{flex-grow:1;flex-shrink:1;justify-content:left}.onecx-header .onecx-header-end{flex-grow:0;flex-shrink:1;max-width:25rem}.onecx-header .onecx-header-end .onecx_header_end_actions_right{height:100%;margin-right:.75rem}.onecx-header .onecx-header-end .onecx_header_end_actions_right .onecx_header_end_actions_right_items{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:.25rem;height:100%}.onecx-header .onecx-header-end .onecx_header_end_actions_right .onecx_header_end_actions_right_items>*{margin:auto}\n"] }]
|
|
101
91
|
}], ctorParameters: () => [], propDecorators: { menuButtonTitle: [{
|
|
102
92
|
type: Input
|
|
103
93
|
}], fullPortalLayout: [{
|
|
@@ -106,10 +96,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
106
96
|
type: Input
|
|
107
97
|
}], homeNavTitle: [{
|
|
108
98
|
type: Input
|
|
109
|
-
}], isStaticalMenu: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], isHorizontalMenu: [{
|
|
112
|
-
type: Input
|
|
113
99
|
}], menuButtonClick: [{
|
|
114
100
|
type: Output
|
|
115
101
|
}] } });
|
|
@@ -119,10 +105,10 @@ const SHOW_CONTENT_PROVIDER = new InjectionToken('SHOW_CONTENT_PROVIDER');
|
|
|
119
105
|
const WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER = new InjectionToken('WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER');
|
|
120
106
|
|
|
121
107
|
class AppLoadingSpinnerComponent {
|
|
122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
123
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AppLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: AppLoadingSpinnerComponent, isStandalone: false, selector: "ocx-app-loading-spinner", ngImport: i0, template: "<div class=\"w-full h-full absolute top-0 left-0 element-overlay\">\n <div class=\"loader\"></div>\n</div>", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.element-overlay{position:relative;width:100%;cursor:default;pointer-events:none}.element-overlay:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1}.loader{width:28px;height:28px;border:3px solid var(--p-primary-color);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}.loader.loader-small{width:20px;height:20px;top:20%;left:45%}\n"] }); }
|
|
124
110
|
}
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AppLoadingSpinnerComponent, decorators: [{
|
|
126
112
|
type: Component,
|
|
127
113
|
args: [{ standalone: false, selector: 'ocx-app-loading-spinner', template: "<div class=\"w-full h-full absolute top-0 left-0 element-overlay\">\n <div class=\"loader\"></div>\n</div>", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.element-overlay{position:relative;width:100%;cursor:default;pointer-events:none}.element-overlay:before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1}.loader{width:28px;height:28px;border:3px solid var(--p-primary-color);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2}.loader.loader-small{width:20px;height:20px;top:20%;left:45%}\n"] }]
|
|
128
114
|
}] });
|
|
@@ -141,14 +127,11 @@ let PortalViewportComponent = class PortalViewportComponent {
|
|
|
141
127
|
optional: true,
|
|
142
128
|
});
|
|
143
129
|
this.slotService = inject(SlotService);
|
|
144
|
-
this.staticMenuVisibleTopic$ = new StaticMenuVisibleTopic();
|
|
145
130
|
this.menuButtonTitle = '';
|
|
146
|
-
this.menuActive = true;
|
|
147
131
|
this.colorScheme = 'light';
|
|
148
132
|
this.menuMode = 'static';
|
|
149
133
|
this.inputStyle = 'outline';
|
|
150
134
|
this.ripple = true;
|
|
151
|
-
this.isMobile = false;
|
|
152
135
|
this.verticalMenuSlotName = 'onecx-shell-vertical-menu';
|
|
153
136
|
this.footerSlotName = 'onecx-shell-footer';
|
|
154
137
|
this.portalMessageService.message$.subscribe((message) => this.messageService.add(message));
|
|
@@ -181,16 +164,6 @@ let PortalViewportComponent = class PortalViewportComponent {
|
|
|
181
164
|
});
|
|
182
165
|
this.isVerticalMenuComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.verticalMenuSlotName);
|
|
183
166
|
this.isFooterComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.footerSlotName);
|
|
184
|
-
this.onResize$ = fromEvent(window, 'resize').pipe(debounceTime(100), untilDestroyed(this));
|
|
185
|
-
const mobileBreakpointVar = getComputedStyle(document.documentElement).getPropertyValue('--mobile-break-point');
|
|
186
|
-
this.isMobile$ = this.onResize$.pipe(map(() => window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches), startWith(!window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches, window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches));
|
|
187
|
-
this.isMobile$
|
|
188
|
-
.pipe(pairwise(), filter(([oldIsMobile, newIsMobile]) => {
|
|
189
|
-
return oldIsMobile !== newIsMobile;
|
|
190
|
-
}), map(([, isMobile]) => ({ isVisible: !isMobile })))
|
|
191
|
-
.subscribe((state) => {
|
|
192
|
-
this.staticMenuVisibleTopic$.publish(state);
|
|
193
|
-
});
|
|
194
167
|
}
|
|
195
168
|
ngOnInit() {
|
|
196
169
|
this.primengConfig.ripple.set(true);
|
|
@@ -201,50 +174,18 @@ let PortalViewportComponent = class PortalViewportComponent {
|
|
|
201
174
|
console.error('global error');
|
|
202
175
|
this.globalErrMsg = err;
|
|
203
176
|
});
|
|
204
|
-
this.onResize();
|
|
205
177
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
onMenuButtonClick(event) {
|
|
210
|
-
this.activeTopbarItem = undefined;
|
|
211
|
-
this.menuActive = !this.menuActive;
|
|
212
|
-
this.staticMenuVisibleTopic$.publish({ isVisible: this.menuActive });
|
|
213
|
-
event.preventDefault();
|
|
214
|
-
event.stopPropagation();
|
|
215
|
-
}
|
|
216
|
-
onResize() {
|
|
217
|
-
const mobileBreakpointVar = getComputedStyle(document.documentElement).getPropertyValue('--mobile-break-point');
|
|
218
|
-
const isMobile = window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches;
|
|
219
|
-
// auto show sidebar when changing to desktop, hide when changing to mobile
|
|
220
|
-
if (isMobile !== this.isMobile) {
|
|
221
|
-
this.menuActive = !isMobile;
|
|
222
|
-
}
|
|
223
|
-
this.isMobile = isMobile;
|
|
224
|
-
}
|
|
225
|
-
isHorizontalMenuMode() {
|
|
226
|
-
return this.menuMode === 'horizontal' && !this.isMobile;
|
|
227
|
-
}
|
|
228
|
-
isStaticalMenuVisible() {
|
|
229
|
-
return this.menuActive && !this.isHorizontalMenuMode();
|
|
230
|
-
}
|
|
231
|
-
isHorizontalMenuVisible() {
|
|
232
|
-
return this.isHorizontalMenuMode();
|
|
233
|
-
}
|
|
234
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PortalViewportComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
235
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: PortalViewportComponent, isStandalone: false, selector: "ocx-shell-portal-viewport", host: { listeners: { "window:resize": "onResize()" } }, ngImport: i0, template: "<div\n *ngIf=\"!globalErrMsg; else globalError\"\n [ngClass]=\"{\n 'layout-wrapper layout-topbar-var': themeService.currentTheme$ | async,\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n 'layout-menu-active': isStaticalMenuVisible() && (isVerticalMenuComponentDefined$ | async),\n }\"\n [class]=\"'layout-menu-' + this.colorScheme\"\n>\n <ng-container *ngIf=\"themeService.currentTheme$ | async; else noTheme\">\n <ocx-shell-header\n [menuButtonTitle]=\"menuButtonTitle\"\n (menuButtonClick)=\"onMenuButtonClick($event)\"\n [isStaticalMenu]=\"isStaticalMenuVisible()\"\n [isHorizontalMenu]=\"isHorizontalMenuMode()\"\n >\n <div [hidden]=\"!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 [style]=\"{'word-break': 'break-word'}\"></p-toast>\n\n <div [hidden]=\"!isStaticalMenuVisible()\" class=\"menu-wrapper\">\n <div class=\"layout-menu-container overflow-auto\">\n <ocx-slot [name]=\"verticalMenuSlotName\">\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 <!-- custom page content -->\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 <!-- page footer -->\n <footer *ngIf=\"isFooterComponentDefined$ | async\" class=\"h-2rem\">\n <ocx-slot\n [name]=\"footerSlotName\"\n class=\"onecx-shell-footer mx-3 h-full flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1 text-sm\"\n [inputs]=\"{ imageStyleClass: 'h-1rem vertical-align-middle' }\"\n >\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 26px\">\n <p-skeleton size=\"1rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n </footer>\n </div>\n\n <div *ngIf=\"menuActive || !!activeTopbarItem\" class=\"layout-mask modal-in\"></div>\n </ng-container>\n\n <ng-template #noTheme>\n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n </div>\n </ng-template>\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 <ocx-app-loading-spinner></ocx-app-loading-spinner>\n</ng-template>\n", styles: [".layout-wrapper .layout-main{padding-top:4rem;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.layout-wrapper .layout-main .layout-content{flex:1 1 0}.menu-wrapper .layout-inline-menu{display:flex;flex-direction:column;justify-content:center;border:0px;border-style:solid;border-bottom-width:1px;transition:all var(--p-transition-duration)}.menu-wrapper .layout-inline-menu.layout-inline-menu-active .layout-inline-menu-icon{transform:rotate(-180deg)}.menu-wrapper .layout-inline-menu .layout-inline-menu-action{cursor:pointer}.menu-wrapper .layout-inline-menu .layout-inline-menu-action-panel{padding:0 .5rem;transform-origin:top}.menu-wrapper .layout-inline-menu .layout-inline-menu-action-panel .layout-inline-menu-action-item{margin-top:.2rem;border-radius:var(--p-border-radius-md);transition:all var(--p-transition-duration);cursor:pointer;-webkit-user-select:none;user-select:none}.menu-wrapper .layout-inline-menu .layout-inline-menu-action-panel .layout-inline-menu-action-item:last-child{margin-bottom:.5rem}.menu-wrapper .layout-inline-menu .layout-inline-menu-action-panel .layout-inline-menu-action-item a{padding:.75rem}.menu-wrapper .layout-inline-menu .layout-inline-menu-action-panel .layout-inline-menu-action-item a i{margin-right:.75rem}.menu-wrapper{height:calc(100% - 4rem);width:17rem;position:fixed;left:0;top:4rem;z-index:997;transform:none}.menu-wrapper ul{margin:0;padding:0;border:0;outline:0;text-decoration:none;list-style-type:none}.menu-wrapper .layout-menu-container{display:flex;flex-direction:column;height:100%}.menu-wrapper .layout-menu-container app-menu{overflow-y:auto}.menu-wrapper .layout-menu-container .layout-menu{padding-bottom:2rem}.menu-wrapper .layout-menu-container .layout-menu li.layout-root-menuitem>a{display:none}.menu-wrapper .layout-menu-container .layout-menu li.layout-root-menuitem>div{padding-left:1rem;margin-bottom:.5rem;margin-top:1.5rem}.menu-wrapper .layout-menu-container .layout-menu li.layout-root-menuitem>div>.layout-menuitem-text{font-size:.857rem;font-weight:600;text-transform:uppercase}.menu-wrapper .layout-menu-container .layout-menu li>a{display:flex;align-items:center;padding:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--p-transition-duration),color var(--p-transition-duration)}.menu-wrapper .layout-menu-container .layout-menu li>a .layout-menuitem-text{margin-left:.75rem}.menu-wrapper .layout-menu-container .layout-menu li>a .p-badge{margin-left:auto;min-width:1.143rem;height:1.143rem;line-height:1.143rem}.menu-wrapper .layout-menu-container .layout-menu li>a .layout-submenu-toggler{margin-left:auto}.menu-wrapper .layout-menu-container .layout-menu li>a.rotated-icon .layout-menuitem-icon{transform:rotate(90deg)}.menu-wrapper .layout-menu-container .layout-menu li>a .p-badge+.layout-submenu-toggler{margin-left:.5rem}.menu-wrapper .layout-menu-container .layout-menu li.active-menuitem>a .layout-submenu-toggler{transition:all var(--p-transition-duration);transform:rotate(-180deg)}.menu-wrapper .layout-menu-container .layout-menu li>ul li ul{padding:0 0 .25rem;overflow:hidden}.menu-wrapper .layout-menu-container .layout-menu li>ul>li{margin-top:.2rem}.menu-wrapper .layout-menu-container .layout-menu li>ul>li.layout-root-menuitem>a{display:flex}.menu-wrapper .layout-menu-container .layout-menu li>ul>li ul li a{padding-left:2.625rem}.menu-wrapper .layout-menu-container .layout-menu li>ul>li ul li ul li a{padding-left:4.375rem}.menu-wrapper .layout-menu-container .layout-menu li>ul>li ul li ul li ul li a{padding-left:6.125rem}.menu-wrapper{background-color:var(--menu-bg-color);box-shadow:1px 0 #0003}.menu-wrapper .layout-menu-container .layout-menu>li>div .layout-menuitem-text{color:var(--menu-text-color)}.menu-wrapper .layout-menu-container .layout-menu li{border-left:0px}.menu-wrapper .layout-menu-container .layout-menu li.active-menu-parent.parent-menu{border-left:4px solid var(--primary-color)}.menu-wrapper .layout-menu-container .layout-menu li a{color:var(--menu-item-text-color);border-left:4px solid transparent}.menu-wrapper .layout-menu-container .layout-menu li a:hover{background-color:var(--menu-item-hover-bg-color)}.menu-wrapper .layout-menu-container .layout-menu li a.active-menuitem-routerlink{background-color:var(--menu-active-item-bg-color);color:var(--menu-active-item-text-color);font-weight:700;border-left:4px solid var(--primary-color)}.menu-wrapper .layout-menu-container .layout-menu li.active-menuitem>a{background-color:var(--menu-active-item-bg-color);color:var(--menu-active-item-text-color);font-weight:700;border-left:4px solid var(--primary-color)}.menu-wrapper .layout-menu-container .layout-inline-menu{border-color:var(--menu-inline-border-color)}.menu-wrapper .layout-menu-container .layout-inline-menu a,.menu-wrapper .layout-menu-container .layout-inline-menu .layout-inline-menu-action,.menu-wrapper .layout-menu-container .layout-inline-menu .layout-inline-menu-action-panel .layout-inline-menu-action-item{color:var(--menu-item-text-color)}.menu-wrapper .layout-menu-container .layout-inline-menu .layout-inline-menu-action:hover,.menu-wrapper .layout-menu-container .layout-inline-menu .layout-inline-menu-action-panel .layout-inline-menu-action-item:hover{background-color:var(--menu-item-hover-bg-color)}.menu-wrapper .layout-menu-container .layout-inline-menu .layout-inline-menu-action-panel{background-color:var(--menu-bg-color)}.layout-wrapper .menu-wrapper{transform:translate3d(-17rem,0,0);transition:transform var(--animation-duration);transition-timing-function:cubic-bezier(.86,0,.07,1)}.layout-wrapper .layout-main{transition:margin-left var(--animation-duration)}.layout-wrapper.layout-menu-active .menu-wrapper{transform:translateZ(0)}.layout-wrapper.layout-menu-active .layout-main{margin-left:17rem}@media (max-width: var(--mobile-break-point)){.layout-wrapper .menu-wrapper{top:4rem;height:calc(100% - 4rem)}.layout-wrapper.layout-menu-active{overflow:hidden;height:100vh}.layout-wrapper.layout-menu-active .layout-main{margin-left:0}.layout-wrapper .layout-mask{display:block}}:host ::ng-deep .onecx-shell-footer div:nth-child(2){flex-grow:1}:host ::ng-deep .p-toast.p-toast-top-right,:host ::ng-deep .p-toast.p-toast-top-left,:host ::ng-deep .p-toast.p-toast-top-center{top:70px!important}\n"], dependencies: [{ kind: "component", type: i1.SlotComponent, selector: "ocx-slot[name]", inputs: ["name", "slotStyles", "slotClasses", "inputs", "outputs"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3.Skeleton, selector: "p-skeleton", inputs: ["styleClass", "style", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: i5$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "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", "isStaticalMenu", "isHorizontalMenu"], outputs: ["menuButtonClick"] }, { kind: "component", type: GlobalErrorComponent, selector: "ocx-shell-error", inputs: ["errCode"] }, { kind: "component", type: AppLoadingSpinnerComponent, selector: "ocx-app-loading-spinner" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
|
|
178
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PortalViewportComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: PortalViewportComponent, isStandalone: false, selector: "ocx-shell-portal-viewport", ngImport: i0, template: "<div\n *ngIf=\"!globalErrMsg; else globalError\"\n class=\"onecx-viewport-wrapper\"\n [ngClass]=\"{\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n}\"\n>\n <ng-container *ngIf=\"themeService.currentTheme$ | async; else noTheme\">\n <ocx-shell-header [menuButtonTitle]=\"menuButtonTitle\"></ocx-shell-header>\n\n <p-toast [style]=\"{'word-break': 'break-word'}\"></p-toast>\n\n <div class=\"onecx-subheader\">\n <!-- Placeholder for onecx-shell-subheader slot group -->\n </div>\n <div class=\"onecx-body-wrapper\">\n <div class=\"onecx-body-start\">\n <!-- Placeholder for onecx-shell-body-start slot group -->\n <ocx-slot [name]=\"verticalMenuSlotName\"> </ocx-slot>\n </div>\n <div class=\"onecx-body-center\">\n <!-- Placeholder for onecx-shell-body-header slot group -->\n <div class=\"onecx-body-header\">\n <ocx-slot name=\"onecx-shell-sub-header\"></ocx-slot>\n </div>\n <div class=\"onecx-body\">\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 <!-- Placeholder for onecx-shell-body-footer slot group -->\n <div class=\"onecx-body-footer\"></div>\n </div>\n <!-- Placeholder for onecx-shell-body-end slot group -->\n <div class=\"onecx-body-end\"></div>\n </div>\n <footer>\n <!-- Placeholder for onecx-shell-footer slot group -->\n <ocx-slot\n [name]=\"footerSlotName\"\n class=\"onecx-shell-footer mx-3 h-full flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1 text-sm\"\n [inputs]=\"{ imageStyleClass: 'h-1rem vertical-align-middle' }\"\n >\n </ocx-slot>\n </footer>\n </ng-container>\n</div>\n\n<ng-template #noTheme>\n <div class=\"onecx-no-theme-main\">\n <div class=\"onecx-no-theme-content relative\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n </div>\n</ng-template>\n\n<ng-template #globalError>\n <ocx-shell-error [errCode]=\"globalErrMsg\"></ocx-shell-error>\n</ng-template>\n\n<ng-template #appLoading>\n <ocx-app-loading-spinner></ocx-app-loading-spinner>\n</ng-template>\n", styles: [".onecx-viewport-wrapper{display:flex;flex-direction:column;height:100vh}.onecx-body-wrapper{display:flex;flex-direction:row;flex-grow:1;flex-shrink:0}.onecx-body-wrapper .onecx-body-start{max-width:20rem;background-color:var(--menu-bg-color);box-shadow:1px 1px #0003;overflow:auto;flex-grow:0;flex-shrink:0;display:flex;flex-direction:column;height:100%}.onecx-body-wrapper .onecx-body-center{flex-grow:1;overflow:auto;display:flex;flex-direction:column}.onecx-body-wrapper .onecx-body-end{max-width:25rem;flex-grow:0;flex-shrink:0}.onecx-no-theme-main{padding-top:4rem;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;transition:margin-left var(--animation-duration)}.onecx-no-theme-main .onecx-no-theme-content{flex:1 1 0}\n"], dependencies: [{ kind: "component", type: i1.SlotComponent, selector: "ocx-slot[name]", inputs: ["name", "slotStyles", "slotClasses", "inputs", "outputs"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i4.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "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: GlobalErrorComponent, selector: "ocx-shell-error", inputs: ["errCode"] }, { kind: "component", type: AppLoadingSpinnerComponent, selector: "ocx-app-loading-spinner" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
|
|
236
180
|
};
|
|
237
181
|
PortalViewportComponent = __decorate([
|
|
238
182
|
UntilDestroy(),
|
|
239
183
|
__metadata("design:paramtypes", [])
|
|
240
184
|
], PortalViewportComponent);
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PortalViewportComponent, decorators: [{
|
|
242
186
|
type: Component,
|
|
243
|
-
args: [{ standalone: false, selector: 'ocx-shell-portal-viewport', template: "<div\n *ngIf=\"!globalErrMsg; else globalError\"\n [ngClass]=\"{\n
|
|
244
|
-
}], ctorParameters: () => []
|
|
245
|
-
type: HostListener,
|
|
246
|
-
args: ['window:resize']
|
|
247
|
-
}] } });
|
|
187
|
+
args: [{ standalone: false, selector: 'ocx-shell-portal-viewport', template: "<div\n *ngIf=\"!globalErrMsg; else globalError\"\n class=\"onecx-viewport-wrapper\"\n [ngClass]=\"{\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n}\"\n>\n <ng-container *ngIf=\"themeService.currentTheme$ | async; else noTheme\">\n <ocx-shell-header [menuButtonTitle]=\"menuButtonTitle\"></ocx-shell-header>\n\n <p-toast [style]=\"{'word-break': 'break-word'}\"></p-toast>\n\n <div class=\"onecx-subheader\">\n <!-- Placeholder for onecx-shell-subheader slot group -->\n </div>\n <div class=\"onecx-body-wrapper\">\n <div class=\"onecx-body-start\">\n <!-- Placeholder for onecx-shell-body-start slot group -->\n <ocx-slot [name]=\"verticalMenuSlotName\"> </ocx-slot>\n </div>\n <div class=\"onecx-body-center\">\n <!-- Placeholder for onecx-shell-body-header slot group -->\n <div class=\"onecx-body-header\">\n <ocx-slot name=\"onecx-shell-sub-header\"></ocx-slot>\n </div>\n <div class=\"onecx-body\">\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 <!-- Placeholder for onecx-shell-body-footer slot group -->\n <div class=\"onecx-body-footer\"></div>\n </div>\n <!-- Placeholder for onecx-shell-body-end slot group -->\n <div class=\"onecx-body-end\"></div>\n </div>\n <footer>\n <!-- Placeholder for onecx-shell-footer slot group -->\n <ocx-slot\n [name]=\"footerSlotName\"\n class=\"onecx-shell-footer mx-3 h-full flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1 text-sm\"\n [inputs]=\"{ imageStyleClass: 'h-1rem vertical-align-middle' }\"\n >\n </ocx-slot>\n </footer>\n </ng-container>\n</div>\n\n<ng-template #noTheme>\n <div class=\"onecx-no-theme-main\">\n <div class=\"onecx-no-theme-content relative\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n </div>\n</ng-template>\n\n<ng-template #globalError>\n <ocx-shell-error [errCode]=\"globalErrMsg\"></ocx-shell-error>\n</ng-template>\n\n<ng-template #appLoading>\n <ocx-app-loading-spinner></ocx-app-loading-spinner>\n</ng-template>\n", styles: [".onecx-viewport-wrapper{display:flex;flex-direction:column;height:100vh}.onecx-body-wrapper{display:flex;flex-direction:row;flex-grow:1;flex-shrink:0}.onecx-body-wrapper .onecx-body-start{max-width:20rem;background-color:var(--menu-bg-color);box-shadow:1px 1px #0003;overflow:auto;flex-grow:0;flex-shrink:0;display:flex;flex-direction:column;height:100%}.onecx-body-wrapper .onecx-body-center{flex-grow:1;overflow:auto;display:flex;flex-direction:column}.onecx-body-wrapper .onecx-body-end{max-width:25rem;flex-grow:0;flex-shrink:0}.onecx-no-theme-main{padding-top:4rem;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;transition:margin-left var(--animation-duration)}.onecx-no-theme-main .onecx-no-theme-content{flex:1 1 0}\n"] }]
|
|
188
|
+
}], ctorParameters: () => [] });
|
|
248
189
|
|
|
249
190
|
class ShellSrcDirective {
|
|
250
191
|
get ocxShellSrc() {
|
|
@@ -295,10 +236,10 @@ class ShellSrcDirective {
|
|
|
295
236
|
this.error = new EventEmitter();
|
|
296
237
|
this.el.nativeElement.style.visibility = 'hidden';
|
|
297
238
|
}
|
|
298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
299
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ShellSrcDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
240
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: ShellSrcDirective, isStandalone: false, selector: "[ocxShellSrc]", inputs: { ocxShellSrc: "ocxShellSrc" }, outputs: { error: "error" }, ngImport: i0 }); }
|
|
300
241
|
}
|
|
301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ShellSrcDirective, decorators: [{
|
|
302
243
|
type: Directive,
|
|
303
244
|
args: [{ selector: '[ocxShellSrc]', standalone: false }]
|
|
304
245
|
}], ctorParameters: () => [], propDecorators: { error: [{
|
|
@@ -308,8 +249,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
308
249
|
}] } });
|
|
309
250
|
|
|
310
251
|
class ShellCoreModule {
|
|
311
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
312
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ShellCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
253
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ShellCoreModule, declarations: [PortalViewportComponent,
|
|
313
254
|
HeaderComponent,
|
|
314
255
|
GlobalErrorComponent,
|
|
315
256
|
AppLoadingSpinnerComponent,
|
|
@@ -325,7 +266,7 @@ class ShellCoreModule {
|
|
|
325
266
|
ToastModule,
|
|
326
267
|
TooltipModule,
|
|
327
268
|
TranslateModule] }); }
|
|
328
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
269
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ShellCoreModule, providers: [
|
|
329
270
|
providePrimeNG(),
|
|
330
271
|
{ provide: MessageService, useClass: MessageService },
|
|
331
272
|
provideTranslationPathFromMeta(import.meta.url, 'onecx-shell-core/assets/i18n/'),
|
|
@@ -339,7 +280,7 @@ class ShellCoreModule {
|
|
|
339
280
|
TooltipModule,
|
|
340
281
|
TranslateModule] }); }
|
|
341
282
|
}
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ShellCoreModule, decorators: [{
|
|
343
284
|
type: NgModule,
|
|
344
285
|
args: [{
|
|
345
286
|
imports: [
|
|
@@ -385,10 +326,10 @@ class PermissionsCacheService {
|
|
|
385
326
|
}
|
|
386
327
|
return this.permissions[key];
|
|
387
328
|
}
|
|
388
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
389
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
329
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PermissionsCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
330
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PermissionsCacheService, providedIn: 'root' }); }
|
|
390
331
|
}
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
332
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PermissionsCacheService, decorators: [{
|
|
392
333
|
type: Injectable,
|
|
393
334
|
args: [{ providedIn: 'root' }]
|
|
394
335
|
}] });
|
|
@@ -1 +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/components/portal-header/header.component.ts","../../../../libs/shell-core/src/lib/components/portal-header/header.component.html","../../../../libs/shell-core/src/lib/shell-interface/show-content-provider.ts","../../../../libs/shell-core/src/lib/shell-interface/workspace-config-bff-service-provider.ts","../../../../libs/shell-core/src/lib/components/app-loading-spinner/app-loading-spinner.component.ts","../../../../libs/shell-core/src/lib/components/app-loading-spinner/app-loading-spinner.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/directives/src.directive.ts","../../../../libs/shell-core/src/lib/shell-core.module.ts","../../../../libs/shell-core/src/lib/services/permissions-cache.service.ts","../../../../libs/shell-core/src/lib/model/constants.ts","../../../../libs/shell-core/src/onecx-shell-core.ts"],"sourcesContent":["import { Component, Input, inject } from '@angular/core'\nimport { ActivatedRoute, Router } from '@angular/router'\n\n@Component({\n standalone: false,\n selector: 'ocx-shell-error',\n templateUrl: './global-error.component.html',\n styleUrls: ['./global-error.component.scss'],\n})\nexport class GlobalErrorComponent {\n private router = inject(Router)\n private route = inject(ActivatedRoute)\n\n @Input()\n errCode: string | undefined\n backUrl: string\n\n constructor() {\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","import { animate, style, transition, trigger } from '@angular/animations'\nimport { Component, EventEmitter, Input, Output, inject } from '@angular/core'\nimport { UntilDestroy } from '@ngneat/until-destroy'\nimport { Observable } from 'rxjs'\n\nimport { SlotService } from '@onecx/angular-remote-components'\nimport { Theme, ThemeService } from '@onecx/angular-integration-interface'\n\n@Component({\n standalone: false,\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 @Input() menuButtonTitle: string | undefined\n @Input() fullPortalLayout = true\n @Input() homeNavUrl = '/'\n @Input() homeNavTitle = 'Home'\n @Input() isStaticalMenu = false\n @Input() isHorizontalMenu = false\n @Output() menuButtonClick: EventEmitter<any> = new EventEmitter()\n\n private themeService = inject(ThemeService)\n private slotService = inject(SlotService)\n\n menuExpanded = false\n // slot configuration: get theme logo\n public slotName = 'onecx-theme-data'\n public isComponentDefined$: Observable<boolean> // check a component was assigned\n public currentTheme$: Observable<Theme>\n public logoLoadingEmitter = new EventEmitter<boolean>()\n public themeLogoLoadingFailed = false\n\n constructor() {\n this.isComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.slotName)\n this.currentTheme$ = this.themeService.currentTheme$.asObservable()\n this.logoLoadingEmitter.subscribe((data: boolean) => {\n this.themeLogoLoadingFailed = data\n })\n }\n\n onMenuButtonClick(e: Event) {\n this.menuButtonClick.emit(e)\n }\n}\n","<header class=\"layout-topbar_flex\" id=\"ocx_header\">\n <section\n class=\"layout-topbar-left flex relative justify-content-center align-items-center\"\n [ngClass]=\"{'vertical-menu': !isHorizontalMenu}\"\n [attr.aria-label]=\"'Left'\"\n >\n <ocx-slot\n name=\"onecx-shell-header-left\"\n class=\"flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1\"\n [inputs]=\"{ imageStyleClass: 'max-h-3rem max-w-9rem vertical-align-middle' }\"\n [outputs]=\"{ imageLoadingFailed: logoLoadingEmitter }\"\n >\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 26px\">\n <p-skeleton size=\"2rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n <div *ngIf=\"themeLogoLoadingFailed\"><!-- portal logo --></div>\n\n <button\n id=\"ocx_vertical_menu_action_toggle\"\n class=\"layout-menu-button border-none\"\n [ngClass]=\"{ 'hidden': isHorizontalMenu }\"\n pRipple\n (click)=\"onMenuButtonClick($event)\"\n [attr.aria-label]=\"'OCX_HEADER.MENU_TOGGLE' | translate\"\n [pTooltip]=\"'OCX_HEADER.MENU_TOGGLE' | translate\"\n tooltipPosition=\"top\"\n tooltipEvent=\"hover\"\n >\n <span\n id=\"ocx_vertical_menu_action_toggle_icon\"\n class=\"pi pi-chevron-right\"\n [ngClass]=\"{'toggle-button-direction': isStaticalMenu && (isComponentDefined$ | async) === true}\"\n aria-hidden=\"true\"\n ></span>\n </button>\n </section>\n\n <section class=\"layout-topbar-right\" [attr.aria-label]=\"'Topbar'\">\n <div class=\"layout-topbar-actions-left\">\n <ng-content></ng-content>\n </div>\n <div class=\"layout-topbar-actions-right_flex\">\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 </section>\n</header>\n","import { InjectionToken } from \"@angular/core\"\nimport { BehaviorSubject } from \"rxjs\"\n\nexport const SHOW_CONTENT_PROVIDER = new InjectionToken<ShowContentProvider>('SHOW_CONTENT_PROVIDER')\n\nexport interface ShowContentProvider {\n showContent$: BehaviorSubject<boolean>\n}","import { HttpContext, HttpResponse, HttpEvent } from '@angular/common/http'\nimport { InjectionToken } from '@angular/core'\nimport { Observable } from 'rxjs'\n\nexport const WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER = new InjectionToken<WorkspaceConfigBffService>(\n 'WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER'\n)\n\nexport interface WorkspaceConfigBffService {\n getThemeFaviconByName(\n name: string,\n observe?: 'body',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<Blob>\n getThemeFaviconByName(\n name: string,\n observe?: 'response',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpResponse<Blob>>\n getThemeFaviconByName(\n name: string,\n observe?: 'events',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpEvent<Blob>>\n getThemeFaviconByName(\n name: string,\n observe: 'body',\n reportProgress: false,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<any>\n\n getThemeLogoByName(\n name: string,\n observe?: 'body',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<Blob>\n getThemeLogoByName(\n name: string,\n observe?: 'response',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpResponse<Blob>>\n getThemeLogoByName(\n name: string,\n observe?: 'events',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpEvent<Blob>>\n getThemeLogoByName(\n name: string,\n observe: 'body',\n reportProgress: false,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<any>\n}\n","import { Component } from '@angular/core'\n\n@Component({\n standalone: false,\n selector: 'ocx-app-loading-spinner',\n templateUrl: 'app-loading-spinner.component.html',\n styleUrl: 'app-loading-spinner.component.scss',\n})\nexport class AppLoadingSpinnerComponent {}\n","<div class=\"w-full h-full absolute top-0 left-0 element-overlay\">\n <div class=\"loader\"></div>\n</div>","import { HttpClient } from '@angular/common/http'\nimport { Component, HostListener, OnDestroy, OnInit, inject } from '@angular/core'\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 } from 'primeng/api'\nimport { PrimeNG } from 'primeng/config'\nimport { debounceTime, filter, first, from, fromEvent, map, mergeMap, Observable, of, pairwise, startWith } from 'rxjs'\nimport { SHOW_CONTENT_PROVIDER, ShowContentProvider } from '../../shell-interface/show-content-provider'\nimport {\n WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER,\n WorkspaceConfigBffService,\n} from '../../shell-interface/workspace-config-bff-service-provider'\nimport { SlotService } from '@onecx/angular-remote-components'\nimport { StaticMenuVisibleTopic } from '@onecx/integration-interface'\n\n@Component({\n standalone: false,\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 private primengConfig = inject(PrimeNG)\n private messageService = inject(MessageService)\n private appStateService = inject(AppStateService)\n private portalMessageService = inject(PortalMessageService)\n private userService = inject(UserService)\n themeService = inject(ThemeService)\n private httpClient = inject(HttpClient)\n showContentProvider = inject<ShowContentProvider | undefined>(SHOW_CONTENT_PROVIDER, { optional: true })\n workspaceConfigBffService = inject<WorkspaceConfigBffService | undefined>(WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER, {\n optional: true,\n })\n private slotService = inject(SlotService)\n private readonly staticMenuVisibleTopic$ = new StaticMenuVisibleTopic()\n private readonly onResize$: Observable<Event>\n private readonly isMobile$: Observable<boolean>\n\n menuButtonTitle = ''\n menuActive = true\n activeTopbarItem: string | undefined\n\n removeDocumentClickListener: (() => void) | undefined\n\n colorScheme: 'auto' | 'light' | 'dark' = 'light'\n menuMode: 'horizontal' | 'static' | 'overlay' | 'slim' | 'slimplus' = 'static'\n inputStyle = 'outline'\n ripple = true\n isMobile = false\n globalErrMsg: string | undefined\n verticalMenuSlotName = 'onecx-shell-vertical-menu'\n isVerticalMenuComponentDefined$: Observable<boolean>\n footerSlotName = 'onecx-shell-footer'\n isFooterComponentDefined$: Observable<boolean>\n\n constructor() {\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 (\n theme.faviconUrl\n ? this.httpClient.get(theme.faviconUrl ?? '', { responseType: 'blob' })\n : (this.workspaceConfigBffService?.getThemeFaviconByName(theme.name ?? '') ?? of())\n ).pipe(\n filter((blob) => !!blob),\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 })\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 this.isVerticalMenuComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.verticalMenuSlotName)\n this.isFooterComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.footerSlotName)\n\n this.onResize$ = fromEvent(window, 'resize').pipe(debounceTime(100), untilDestroyed(this))\n const mobileBreakpointVar = getComputedStyle(document.documentElement).getPropertyValue('--mobile-break-point')\n this.isMobile$ = this.onResize$.pipe(\n map(() => window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches),\n startWith(\n !window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches,\n window.matchMedia(`(max-width: ${mobileBreakpointVar})`).matches\n )\n )\n this.isMobile$\n .pipe(\n pairwise(),\n filter(([oldIsMobile, newIsMobile]) => {\n return oldIsMobile !== newIsMobile\n }),\n map(([, isMobile]) => ({ isVisible: !isMobile }))\n )\n .subscribe((state) => {\n this.staticMenuVisibleTopic$.publish(state)\n })\n }\n\n ngOnInit() {\n this.primengConfig.ripple.set(true)\n\n this.appStateService.globalError$\n .pipe(untilDestroyed(this))\n .pipe(filter((i) => i !== undefined))\n .subscribe((err: string | undefined) => {\n console.error('global error')\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 this.staticMenuVisibleTopic$.publish({ isVisible: 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) {\n this.menuActive = !isMobile\n }\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 [ngClass]=\"{\n 'layout-wrapper layout-topbar-var': themeService.currentTheme$ | async,\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n 'layout-menu-active': isStaticalMenuVisible() && (isVerticalMenuComponentDefined$ | async),\n }\"\n [class]=\"'layout-menu-' + this.colorScheme\"\n>\n <ng-container *ngIf=\"themeService.currentTheme$ | async; else noTheme\">\n <ocx-shell-header\n [menuButtonTitle]=\"menuButtonTitle\"\n (menuButtonClick)=\"onMenuButtonClick($event)\"\n [isStaticalMenu]=\"isStaticalMenuVisible()\"\n [isHorizontalMenu]=\"isHorizontalMenuMode()\"\n >\n <div [hidden]=\"!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 [style]=\"{'word-break': 'break-word'}\"></p-toast>\n\n <div [hidden]=\"!isStaticalMenuVisible()\" class=\"menu-wrapper\">\n <div class=\"layout-menu-container overflow-auto\">\n <ocx-slot [name]=\"verticalMenuSlotName\">\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 <!-- custom page content -->\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 <!-- page footer -->\n <footer *ngIf=\"isFooterComponentDefined$ | async\" class=\"h-2rem\">\n <ocx-slot\n [name]=\"footerSlotName\"\n class=\"onecx-shell-footer mx-3 h-full flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1 text-sm\"\n [inputs]=\"{ imageStyleClass: 'h-1rem vertical-align-middle' }\"\n >\n <ng-template #skeleton>\n <div class=\"flex align-items-center h-full justify-content-center\" style=\"width: 26px\">\n <p-skeleton size=\"1rem\" class=\"h-full flex align-items-center\"></p-skeleton>\n </div>\n </ng-template>\n </ocx-slot>\n </footer>\n </div>\n\n <div *ngIf=\"menuActive || !!activeTopbarItem\" class=\"layout-mask modal-in\"></div>\n </ng-container>\n\n <ng-template #noTheme>\n <div class=\"layout-main\">\n <div class=\"layout-content relative\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n </div>\n </ng-template>\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 <ocx-app-loading-spinner></ocx-app-loading-spinner>\n</ng-template>\n","import { HttpClient, HttpResponse } from '@angular/common/http'\nimport { Directive, ElementRef, EventEmitter, Input, Output, inject } from '@angular/core'\n\n@Directive({ selector: '[ocxShellSrc]', standalone: false })\nexport class ShellSrcDirective {\n private el = inject(ElementRef)\n private httpClient = inject(HttpClient)\n\n private _src: string | undefined\n\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() error = new EventEmitter<void>()\n\n @Input()\n get ocxShellSrc(): string | undefined {\n return this._src\n }\n set ocxShellSrc(value: string | undefined) {\n if (value && this._src !== value && window.location.hostname) {\n try {\n if (new URL(value, window.location.origin).hostname === window.location.hostname) {\n this.httpClient.get(value, { observe: 'response', responseType: 'blob' }).subscribe(\n (response: HttpResponse<Blob>) => {\n // ok with content\n if (response?.status === 200) {\n const url = URL.createObjectURL(response.body as Blob)\n this.el.nativeElement.addEventListener('load', () => {\n URL.revokeObjectURL(url)\n })\n this.el.nativeElement.src = url\n }\n // no content\n if (response?.status === 204) {\n this.error.emit()\n }\n },\n () => {\n // on error\n this.error.emit()\n },\n () => {\n // on complete\n this.el.nativeElement.style.visibility = 'initial'\n }\n )\n } else {\n this.el.nativeElement.src = value\n this.el.nativeElement.style.visibility = 'initial'\n }\n } catch (error) {\n console.error('Cannot parse URL ', value, error)\n this.el.nativeElement.src = value\n this.el.nativeElement.style.visibility = 'initial'\n }\n this._src = value\n }\n }\n\n constructor() {\n this.el.nativeElement.style.visibility = 'hidden'\n }\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { RouterModule } from '@angular/router'\nimport { AngularRemoteComponentsModule } from '@onecx/angular-remote-components'\nimport { ToastModule } from 'primeng/toast'\nimport { providePrimeNG } from 'primeng/config'\nimport { GlobalErrorComponent } from './components/error-component/global-error.component'\nimport { HeaderComponent } from './components/portal-header/header.component'\nimport { PortalViewportComponent } from './components/portal-viewport/portal-viewport.component'\nimport { SkeletonModule } from 'primeng/skeleton'\nimport { AppLoadingSpinnerComponent } from './components/app-loading-spinner/app-loading-spinner.component'\nimport { ShellSrcDirective } from './directives/src.directive'\nimport { TranslateModule } from '@ngx-translate/core'\nimport { TooltipModule } from 'primeng/tooltip'\nimport { MessageService } from 'primeng/api'\nimport { provideTranslationPathFromMeta } from '@onecx/angular-utils'\n\n@NgModule({\n imports: [\n AngularRemoteComponentsModule,\n CommonModule,\n RouterModule,\n SkeletonModule,\n ToastModule,\n TooltipModule,\n TranslateModule,\n ],\n declarations: [\n PortalViewportComponent,\n HeaderComponent,\n GlobalErrorComponent,\n AppLoadingSpinnerComponent,\n ShellSrcDirective,\n ],\n exports: [\n GlobalErrorComponent,\n HeaderComponent,\n PortalViewportComponent,\n ToastModule,\n TooltipModule,\n TranslateModule,\n ],\n providers: [\n providePrimeNG(), \n { provide: MessageService, useClass: MessageService }, \n provideTranslationPathFromMeta(import.meta.url, 'onecx-shell-core/assets/i18n/'),\n ],\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","export const SHELL_BFF_PREFIX = 'shell-bff'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i4","i5","i6.HeaderComponent","i7.GlobalErrorComponent","i8.AppLoadingSpinnerComponent"],"mappings":";;;;;;;;;;;;;;;;;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W,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;;AAE9E,QAAA,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;;+GAZnB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,KAAA,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;;;ACH3B,MAAM,gBAAgB,GAAG;;ACAhC;;AAEG;;;;"}
|
|
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/components/portal-header/header.component.ts","../../../../libs/shell-core/src/lib/components/portal-header/header.component.html","../../../../libs/shell-core/src/lib/shell-interface/show-content-provider.ts","../../../../libs/shell-core/src/lib/shell-interface/workspace-config-bff-service-provider.ts","../../../../libs/shell-core/src/lib/components/app-loading-spinner/app-loading-spinner.component.ts","../../../../libs/shell-core/src/lib/components/app-loading-spinner/app-loading-spinner.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/directives/src.directive.ts","../../../../libs/shell-core/src/lib/shell-core.module.ts","../../../../libs/shell-core/src/lib/services/permissions-cache.service.ts","../../../../libs/shell-core/src/lib/model/constants.ts","../../../../libs/shell-core/src/onecx-shell-core.ts"],"sourcesContent":["import { Component, Input, inject } from '@angular/core'\nimport { ActivatedRoute, Router } from '@angular/router'\n\n@Component({\n standalone: false,\n selector: 'ocx-shell-error',\n templateUrl: './global-error.component.html',\n styleUrls: ['./global-error.component.scss'],\n})\nexport class GlobalErrorComponent {\n private router = inject(Router)\n private route = inject(ActivatedRoute)\n\n @Input()\n errCode: string | undefined\n backUrl: string\n\n constructor() {\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","import { animate, style, transition, trigger } from '@angular/animations'\nimport { Component, EventEmitter, Input, Output, inject } from '@angular/core'\nimport { UntilDestroy } from '@ngneat/until-destroy'\nimport { Observable } from 'rxjs'\n\nimport { Theme, ThemeService } from '@onecx/angular-integration-interface'\n\n@Component({\n standalone: false,\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 @Input() menuButtonTitle: string | undefined\n @Input() fullPortalLayout = true\n @Input() homeNavUrl = '/'\n @Input() homeNavTitle = 'Home'\n @Output() menuButtonClick: EventEmitter<any> = new EventEmitter()\n\n private themeService = inject(ThemeService)\n\n menuExpanded = false\n // slot configuration: get theme logo\n public slotName = 'onecx-theme-data'\n public currentTheme$: Observable<Theme>\n public logoLoadingEmitter = new EventEmitter<boolean>()\n public themeLogoLoadingFailed = false\n\n constructor() {\n this.currentTheme$ = this.themeService.currentTheme$.asObservable()\n this.logoLoadingEmitter.subscribe((data: boolean) => {\n this.themeLogoLoadingFailed = data\n })\n }\n}\n","<header class=\"onecx-header\" id=\"ocx_header\">\n <!-- Placeholder for onecx-shell-header slot group -->\n <div class=\"onecx-header-start\" [attr.aria-label]=\"'OCX_HEADER.HEADER_LEFT' | translate\">\n <ocx-slot\n name=\"onecx-shell-header-left\"\n class=\"flex flex-row flex-nowrap justify-content-start align-items-center\"\n [inputs]=\"{ imageStyleClass: 'max-h-3rem max-w-9rem vertical-align-middle' }\"\n [outputs]=\"{ imageLoadingFailed: logoLoadingEmitter }\"\n >\n </ocx-slot>\n <div *ngIf=\"themeLogoLoadingFailed\"></div>\n </div>\n <div class=\"onecx-header-center\" [attr.aria-label]=\"'OCX_HEADER.HEADER_CENTER' | translate\">\n <div>\n <ocx-slot name=\"onecx-shell-horizontal-menu\"></ocx-slot>\n </div>\n </div>\n <div class=\"onecx-header-end\" [attr.aria-label]=\"'OCX_HEADER.HEADER_RIGHT' | translate\">\n <div class=\"onecx_header_end_actions_right\">\n <ocx-slot name=\"onecx-shell-header-right\" class=\"onecx_header_end_actions_right_items\"> </ocx-slot>\n </div>\n </div>\n</header>\n","import { InjectionToken } from \"@angular/core\"\nimport { BehaviorSubject } from \"rxjs\"\n\nexport const SHOW_CONTENT_PROVIDER = new InjectionToken<ShowContentProvider>('SHOW_CONTENT_PROVIDER')\n\nexport interface ShowContentProvider {\n showContent$: BehaviorSubject<boolean>\n}","import { HttpContext, HttpResponse, HttpEvent } from '@angular/common/http'\nimport { InjectionToken } from '@angular/core'\nimport { Observable } from 'rxjs'\n\nexport const WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER = new InjectionToken<WorkspaceConfigBffService>(\n 'WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER'\n)\n\nexport interface WorkspaceConfigBffService {\n getThemeFaviconByName(\n name: string,\n observe?: 'body',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<Blob>\n getThemeFaviconByName(\n name: string,\n observe?: 'response',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpResponse<Blob>>\n getThemeFaviconByName(\n name: string,\n observe?: 'events',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpEvent<Blob>>\n getThemeFaviconByName(\n name: string,\n observe: 'body',\n reportProgress: false,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<any>\n\n getThemeLogoByName(\n name: string,\n observe?: 'body',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<Blob>\n getThemeLogoByName(\n name: string,\n observe?: 'response',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpResponse<Blob>>\n getThemeLogoByName(\n name: string,\n observe?: 'events',\n reportProgress?: boolean,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<HttpEvent<Blob>>\n getThemeLogoByName(\n name: string,\n observe: 'body',\n reportProgress: false,\n options?: { httpHeaderAccept?: 'image/*'; context?: HttpContext }\n ): Observable<any>\n}\n","import { Component } from '@angular/core'\n\n@Component({\n standalone: false,\n selector: 'ocx-app-loading-spinner',\n templateUrl: 'app-loading-spinner.component.html',\n styleUrl: 'app-loading-spinner.component.scss',\n})\nexport class AppLoadingSpinnerComponent {}\n","<div class=\"w-full h-full absolute top-0 left-0 element-overlay\">\n <div class=\"loader\"></div>\n</div>","import { HttpClient } from '@angular/common/http'\nimport { Component, OnInit, inject } from '@angular/core'\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 } from 'primeng/api'\nimport { PrimeNG } from 'primeng/config'\nimport { filter, first, from, mergeMap, Observable, of } from 'rxjs'\nimport { SHOW_CONTENT_PROVIDER, ShowContentProvider } from '../../shell-interface/show-content-provider'\nimport {\n WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER,\n WorkspaceConfigBffService,\n} from '../../shell-interface/workspace-config-bff-service-provider'\nimport { SlotService } from '@onecx/angular-remote-components'\n\n@Component({\n standalone: false,\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 {\n private primengConfig = inject(PrimeNG)\n private messageService = inject(MessageService)\n private appStateService = inject(AppStateService)\n private portalMessageService = inject(PortalMessageService)\n private userService = inject(UserService)\n themeService = inject(ThemeService)\n private httpClient = inject(HttpClient)\n showContentProvider = inject<ShowContentProvider | undefined>(SHOW_CONTENT_PROVIDER, { optional: true })\n workspaceConfigBffService = inject<WorkspaceConfigBffService | undefined>(WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER, {\n optional: true,\n })\n private slotService = inject(SlotService)\n\n menuButtonTitle = ''\n\n colorScheme: 'auto' | 'light' | 'dark' = 'light'\n menuMode: 'horizontal' | 'static' | 'overlay' | 'slim' | 'slimplus' = 'static'\n inputStyle = 'outline'\n ripple = true\n globalErrMsg: string | undefined\n verticalMenuSlotName = 'onecx-shell-vertical-menu'\n isVerticalMenuComponentDefined$: Observable<boolean>\n footerSlotName = 'onecx-shell-footer'\n isFooterComponentDefined$: Observable<boolean>\n\n constructor() {\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 (\n theme.faviconUrl\n ? this.httpClient.get(theme.faviconUrl ?? '', { responseType: 'blob' })\n : (this.workspaceConfigBffService?.getThemeFaviconByName(theme.name ?? '') ?? of())\n ).pipe(\n filter((blob) => !!blob),\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 })\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 this.isVerticalMenuComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.verticalMenuSlotName)\n this.isFooterComponentDefined$ = this.slotService.isSomeComponentDefinedForSlot(this.footerSlotName)\n }\n\n ngOnInit() {\n this.primengConfig.ripple.set(true)\n\n this.appStateService.globalError$\n .pipe(untilDestroyed(this))\n .pipe(filter((i) => i !== undefined))\n .subscribe((err: string | undefined) => {\n console.error('global error')\n this.globalErrMsg = err\n })\n }\n}\n","<div\n *ngIf=\"!globalErrMsg; else globalError\"\n class=\"onecx-viewport-wrapper\"\n [ngClass]=\"{\n 'p-input-filled': inputStyle === 'filled', \n 'p-ripple-disabled': !ripple,\n}\"\n>\n <ng-container *ngIf=\"themeService.currentTheme$ | async; else noTheme\">\n <ocx-shell-header [menuButtonTitle]=\"menuButtonTitle\"></ocx-shell-header>\n\n <p-toast [style]=\"{'word-break': 'break-word'}\"></p-toast>\n\n <div class=\"onecx-subheader\">\n <!-- Placeholder for onecx-shell-subheader slot group -->\n </div>\n <div class=\"onecx-body-wrapper\">\n <div class=\"onecx-body-start\">\n <!-- Placeholder for onecx-shell-body-start slot group -->\n <ocx-slot [name]=\"verticalMenuSlotName\"> </ocx-slot>\n </div>\n <div class=\"onecx-body-center\">\n <!-- Placeholder for onecx-shell-body-header slot group -->\n <div class=\"onecx-body-header\">\n <ocx-slot name=\"onecx-shell-sub-header\"></ocx-slot>\n </div>\n <div class=\"onecx-body\">\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 <!-- Placeholder for onecx-shell-body-footer slot group -->\n <div class=\"onecx-body-footer\"></div>\n </div>\n <!-- Placeholder for onecx-shell-body-end slot group -->\n <div class=\"onecx-body-end\"></div>\n </div>\n <footer>\n <!-- Placeholder for onecx-shell-footer slot group -->\n <ocx-slot\n [name]=\"footerSlotName\"\n class=\"onecx-shell-footer mx-3 h-full flex flex-row flex-wrap align-items-center column-gap-3 row-gap-1 text-sm\"\n [inputs]=\"{ imageStyleClass: 'h-1rem vertical-align-middle' }\"\n >\n </ocx-slot>\n </footer>\n </ng-container>\n</div>\n\n<ng-template #noTheme>\n <div class=\"onecx-no-theme-main\">\n <div class=\"onecx-no-theme-content relative\">\n <ng-content></ng-content>\n <router-outlet></router-outlet>\n </div>\n </div>\n</ng-template>\n\n<ng-template #globalError>\n <ocx-shell-error [errCode]=\"globalErrMsg\"></ocx-shell-error>\n</ng-template>\n\n<ng-template #appLoading>\n <ocx-app-loading-spinner></ocx-app-loading-spinner>\n</ng-template>\n","import { HttpClient, HttpResponse } from '@angular/common/http'\nimport { Directive, ElementRef, EventEmitter, Input, Output, inject } from '@angular/core'\n\n@Directive({ selector: '[ocxShellSrc]', standalone: false })\nexport class ShellSrcDirective {\n private el = inject(ElementRef)\n private httpClient = inject(HttpClient)\n\n private _src: string | undefined\n\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() error = new EventEmitter<void>()\n\n @Input()\n get ocxShellSrc(): string | undefined {\n return this._src\n }\n set ocxShellSrc(value: string | undefined) {\n if (value && this._src !== value && window.location.hostname) {\n try {\n if (new URL(value, window.location.origin).hostname === window.location.hostname) {\n this.httpClient.get(value, { observe: 'response', responseType: 'blob' }).subscribe(\n (response: HttpResponse<Blob>) => {\n // ok with content\n if (response?.status === 200) {\n const url = URL.createObjectURL(response.body as Blob)\n this.el.nativeElement.addEventListener('load', () => {\n URL.revokeObjectURL(url)\n })\n this.el.nativeElement.src = url\n }\n // no content\n if (response?.status === 204) {\n this.error.emit()\n }\n },\n () => {\n // on error\n this.error.emit()\n },\n () => {\n // on complete\n this.el.nativeElement.style.visibility = 'initial'\n }\n )\n } else {\n this.el.nativeElement.src = value\n this.el.nativeElement.style.visibility = 'initial'\n }\n } catch (error) {\n console.error('Cannot parse URL ', value, error)\n this.el.nativeElement.src = value\n this.el.nativeElement.style.visibility = 'initial'\n }\n this._src = value\n }\n }\n\n constructor() {\n this.el.nativeElement.style.visibility = 'hidden'\n }\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { RouterModule } from '@angular/router'\nimport { AngularRemoteComponentsModule } from '@onecx/angular-remote-components'\nimport { ToastModule } from 'primeng/toast'\nimport { providePrimeNG } from 'primeng/config'\nimport { GlobalErrorComponent } from './components/error-component/global-error.component'\nimport { HeaderComponent } from './components/portal-header/header.component'\nimport { PortalViewportComponent } from './components/portal-viewport/portal-viewport.component'\nimport { SkeletonModule } from 'primeng/skeleton'\nimport { AppLoadingSpinnerComponent } from './components/app-loading-spinner/app-loading-spinner.component'\nimport { ShellSrcDirective } from './directives/src.directive'\nimport { TranslateModule } from '@ngx-translate/core'\nimport { TooltipModule } from 'primeng/tooltip'\nimport { MessageService } from 'primeng/api'\nimport { provideTranslationPathFromMeta } from '@onecx/angular-utils'\n\n@NgModule({\n imports: [\n AngularRemoteComponentsModule,\n CommonModule,\n RouterModule,\n SkeletonModule,\n ToastModule,\n TooltipModule,\n TranslateModule,\n ],\n declarations: [\n PortalViewportComponent,\n HeaderComponent,\n GlobalErrorComponent,\n AppLoadingSpinnerComponent,\n ShellSrcDirective,\n ],\n exports: [\n GlobalErrorComponent,\n HeaderComponent,\n PortalViewportComponent,\n ToastModule,\n TooltipModule,\n TranslateModule,\n ],\n providers: [\n providePrimeNG(), \n { provide: MessageService, useClass: MessageService }, \n provideTranslationPathFromMeta(import.meta.url, 'onecx-shell-core/assets/i18n/'),\n ],\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","export const SHELL_BFF_PREFIX = 'shell-bff'","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i5.HeaderComponent","i6.GlobalErrorComponent","i7.AppLoadingSpinnerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MASa,oBAAoB,CAAA;AAQ/B,IAAA,WAAA,GAAA;AAPQ,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAOpC,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,oBAAoB;AACnF,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,GAAG;;IAGvE,QA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,gBAAgB,GAAG;;ACAhC;;AAEG;;;;"}
|
|
@@ -7,19 +7,14 @@ export declare class HeaderComponent {
|
|
|
7
7
|
fullPortalLayout: boolean;
|
|
8
8
|
homeNavUrl: string;
|
|
9
9
|
homeNavTitle: string;
|
|
10
|
-
isStaticalMenu: boolean;
|
|
11
|
-
isHorizontalMenu: boolean;
|
|
12
10
|
menuButtonClick: EventEmitter<any>;
|
|
13
11
|
private themeService;
|
|
14
|
-
private slotService;
|
|
15
12
|
menuExpanded: boolean;
|
|
16
13
|
slotName: string;
|
|
17
|
-
isComponentDefined$: Observable<boolean>;
|
|
18
14
|
currentTheme$: Observable<Theme>;
|
|
19
15
|
logoLoadingEmitter: EventEmitter<boolean>;
|
|
20
16
|
themeLogoLoadingFailed: boolean;
|
|
21
17
|
constructor();
|
|
22
|
-
onMenuButtonClick(e: Event): void;
|
|
23
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ocx-shell-header", never, { "menuButtonTitle": { "alias": "menuButtonTitle"; "required": false; }; "fullPortalLayout": { "alias": "fullPortalLayout"; "required": false; }; "homeNavUrl": { "alias": "homeNavUrl"; "required": false; }; "homeNavTitle": { "alias": "homeNavTitle"; "required": false; };
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ocx-shell-header", never, { "menuButtonTitle": { "alias": "menuButtonTitle"; "required": false; }; "fullPortalLayout": { "alias": "fullPortalLayout"; "required": false; }; "homeNavUrl": { "alias": "homeNavUrl"; "required": false; }; "homeNavTitle": { "alias": "homeNavTitle"; "required": false; }; }, { "menuButtonClick": "menuButtonClick"; }, never, never, false, never>;
|
|
25
20
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ThemeService } from '@onecx/angular-integration-interface';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ShowContentProvider } from '../../shell-interface/show-content-provider';
|
|
5
5
|
import { WorkspaceConfigBffService } from '../../shell-interface/workspace-config-bff-service-provider';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class PortalViewportComponent implements OnInit
|
|
7
|
+
export declare class PortalViewportComponent implements OnInit {
|
|
8
8
|
private primengConfig;
|
|
9
9
|
private messageService;
|
|
10
10
|
private appStateService;
|
|
@@ -15,18 +15,11 @@ export declare class PortalViewportComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
showContentProvider: ShowContentProvider | null | undefined;
|
|
16
16
|
workspaceConfigBffService: WorkspaceConfigBffService | null | undefined;
|
|
17
17
|
private slotService;
|
|
18
|
-
private readonly staticMenuVisibleTopic$;
|
|
19
|
-
private readonly onResize$;
|
|
20
|
-
private readonly isMobile$;
|
|
21
18
|
menuButtonTitle: string;
|
|
22
|
-
menuActive: boolean;
|
|
23
|
-
activeTopbarItem: string | undefined;
|
|
24
|
-
removeDocumentClickListener: (() => void) | undefined;
|
|
25
19
|
colorScheme: 'auto' | 'light' | 'dark';
|
|
26
20
|
menuMode: 'horizontal' | 'static' | 'overlay' | 'slim' | 'slimplus';
|
|
27
21
|
inputStyle: string;
|
|
28
22
|
ripple: boolean;
|
|
29
|
-
isMobile: boolean;
|
|
30
23
|
globalErrMsg: string | undefined;
|
|
31
24
|
verticalMenuSlotName: string;
|
|
32
25
|
isVerticalMenuComponentDefined$: Observable<boolean>;
|
|
@@ -34,12 +27,6 @@ export declare class PortalViewportComponent implements OnInit, OnDestroy {
|
|
|
34
27
|
isFooterComponentDefined$: Observable<boolean>;
|
|
35
28
|
constructor();
|
|
36
29
|
ngOnInit(): void;
|
|
37
|
-
ngOnDestroy(): void;
|
|
38
|
-
onMenuButtonClick(event: MouseEvent): void;
|
|
39
|
-
onResize(): void;
|
|
40
|
-
isHorizontalMenuMode(): boolean;
|
|
41
|
-
isStaticalMenuVisible(): boolean;
|
|
42
|
-
isHorizontalMenuVisible(): boolean;
|
|
43
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<PortalViewportComponent, never>;
|
|
44
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<PortalViewportComponent, "ocx-shell-portal-viewport", never, {}, {}, never, ["*", "*"], false, never>;
|
|
45
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/shell-core",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"rxjs": "^7.8.1",
|
|
@@ -9,14 +9,13 @@
|
|
|
9
9
|
"@angular/core": "^19.0.0",
|
|
10
10
|
"@angular/router": "^19.0.0",
|
|
11
11
|
"@ngneat/until-destroy": "^10.0.0",
|
|
12
|
-
"@onecx/angular-integration-interface": "^7.0.0-rc.
|
|
13
|
-
"@onecx/angular-utils": "^7.0.0-rc.
|
|
14
|
-
"@onecx/angular-remote-components": "^7.0.0-rc.
|
|
12
|
+
"@onecx/angular-integration-interface": "^7.0.0-rc.3",
|
|
13
|
+
"@onecx/angular-utils": "^7.0.0-rc.3",
|
|
14
|
+
"@onecx/angular-remote-components": "^7.0.0-rc.3",
|
|
15
15
|
"@ngx-translate/core": "^16.0.0",
|
|
16
16
|
"primeng": "^19.0.0",
|
|
17
17
|
"@nx/devkit": "^20.3.0",
|
|
18
|
-
"@onecx/nx-migration-utils": "^7.0.0-rc.
|
|
19
|
-
"@onecx/integration-interface": "^7.0.0-rc.1"
|
|
18
|
+
"@onecx/nx-migration-utils": "^7.0.0-rc.3"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"tslib": "^2.3.0"
|