@onecx/shell-core 5.26.0 → 5.27.1
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/esm2022/index.mjs +3 -1
- package/esm2022/lib/components/portal-footer/portal-footer.component.mjs +27 -12
- package/esm2022/lib/components/portal-header/header.component.mjs +27 -13
- package/esm2022/lib/components/portal-viewport/portal-viewport.component.mjs +22 -15
- package/esm2022/lib/shell-interface/show-content-provider.mjs +3 -0
- package/esm2022/lib/shell-interface/workspace-config-bff-service-provider.mjs +3 -0
- package/fesm2022/onecx-shell-core.mjs +72 -32
- package/fesm2022/onecx-shell-core.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/components/portal-footer/portal-footer.component.d.ts +5 -2
- package/lib/components/portal-header/header.component.d.ts +5 -2
- package/lib/components/portal-viewport/portal-viewport.component.d.ts +6 -8
- package/lib/shell-interface/show-content-provider.d.ts +6 -0
- package/lib/shell-interface/workspace-config-bff-service-provider.d.ts +38 -0
- package/package.json +5 -5
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import {
|
|
2
|
+
import { OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { AppStateService, PortalMessageService, ThemeService, UserService } from '@onecx/angular-integration-interface';
|
|
5
5
|
import { MessageService, PrimeNGConfig } from 'primeng/api';
|
|
6
|
-
import {
|
|
6
|
+
import { ShowContentProvider } from '../../shell-interface/show-content-provider';
|
|
7
|
+
import { WorkspaceConfigBffService } from '../../shell-interface/workspace-config-bff-service-provider';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare const SHOW_CONTENT_PROVIDER: InjectionToken<ShowContentProvider>;
|
|
9
|
-
export interface ShowContentProvider {
|
|
10
|
-
showContent$: BehaviorSubject<boolean>;
|
|
11
|
-
}
|
|
12
9
|
export declare class PortalViewportComponent implements OnInit, OnDestroy {
|
|
13
10
|
private renderer;
|
|
14
11
|
private primengConfig;
|
|
@@ -20,6 +17,7 @@ export declare class PortalViewportComponent implements OnInit, OnDestroy {
|
|
|
20
17
|
private httpClient;
|
|
21
18
|
private router;
|
|
22
19
|
showContentProvider: ShowContentProvider | undefined;
|
|
20
|
+
workspaceConfigBffService: WorkspaceConfigBffService | undefined;
|
|
23
21
|
menuButtonTitle: string;
|
|
24
22
|
menuActive: boolean;
|
|
25
23
|
activeTopbarItem: string | undefined;
|
|
@@ -32,7 +30,7 @@ export declare class PortalViewportComponent implements OnInit, OnDestroy {
|
|
|
32
30
|
ripple: boolean;
|
|
33
31
|
isMobile: boolean;
|
|
34
32
|
globalErrMsg: string | undefined;
|
|
35
|
-
constructor(renderer: Renderer2, primengConfig: PrimeNGConfig, messageService: MessageService, appStateService: AppStateService, portalMessageService: PortalMessageService, userService: UserService, themeService: ThemeService, httpClient: HttpClient, router: Router, showContentProvider: ShowContentProvider | undefined);
|
|
33
|
+
constructor(renderer: Renderer2, primengConfig: PrimeNGConfig, messageService: MessageService, appStateService: AppStateService, portalMessageService: PortalMessageService, userService: UserService, themeService: ThemeService, httpClient: HttpClient, router: Router, showContentProvider: ShowContentProvider | undefined, workspaceConfigBffService: WorkspaceConfigBffService | undefined);
|
|
36
34
|
ngOnInit(): void;
|
|
37
35
|
ngOnDestroy(): void;
|
|
38
36
|
onMenuButtonClick(event: MouseEvent): void;
|
|
@@ -40,6 +38,6 @@ export declare class PortalViewportComponent implements OnInit, OnDestroy {
|
|
|
40
38
|
isHorizontalMenuMode(): boolean;
|
|
41
39
|
isStaticalMenuVisible(): boolean;
|
|
42
40
|
isHorizontalMenuVisible(): boolean;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PortalViewportComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PortalViewportComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
44
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<PortalViewportComponent, "ocx-shell-portal-viewport", never, {}, {}, never, ["*"], false, never>;
|
|
45
43
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpContext, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare const WORKSPACE_CONFIG_BFF_SERVICE_PROVIDER: InjectionToken<WorkspaceConfigBffService>;
|
|
5
|
+
export interface WorkspaceConfigBffService {
|
|
6
|
+
getThemeFaviconByName(name: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
7
|
+
httpHeaderAccept?: 'image/*';
|
|
8
|
+
context?: HttpContext;
|
|
9
|
+
}): Observable<Blob>;
|
|
10
|
+
getThemeFaviconByName(name: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
11
|
+
httpHeaderAccept?: 'image/*';
|
|
12
|
+
context?: HttpContext;
|
|
13
|
+
}): Observable<HttpResponse<Blob>>;
|
|
14
|
+
getThemeFaviconByName(name: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
15
|
+
httpHeaderAccept?: 'image/*';
|
|
16
|
+
context?: HttpContext;
|
|
17
|
+
}): Observable<HttpEvent<Blob>>;
|
|
18
|
+
getThemeFaviconByName(name: string, observe: 'body', reportProgress: false, options?: {
|
|
19
|
+
httpHeaderAccept?: 'image/*';
|
|
20
|
+
context?: HttpContext;
|
|
21
|
+
}): Observable<any>;
|
|
22
|
+
getThemeLogoByName(name: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
23
|
+
httpHeaderAccept?: 'image/*';
|
|
24
|
+
context?: HttpContext;
|
|
25
|
+
}): Observable<Blob>;
|
|
26
|
+
getThemeLogoByName(name: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'image/*';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
}): Observable<HttpResponse<Blob>>;
|
|
30
|
+
getThemeLogoByName(name: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
31
|
+
httpHeaderAccept?: 'image/*';
|
|
32
|
+
context?: HttpContext;
|
|
33
|
+
}): Observable<HttpEvent<Blob>>;
|
|
34
|
+
getThemeLogoByName(name: string, observe: 'body', reportProgress: false, options?: {
|
|
35
|
+
httpHeaderAccept?: 'image/*';
|
|
36
|
+
context?: HttpContext;
|
|
37
|
+
}): Observable<any>;
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/shell-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.27.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"rxjs": "^7.8.1",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"@angular/core": "^18.0.5",
|
|
10
10
|
"@angular/router": "^18.0.5",
|
|
11
11
|
"@ngneat/until-destroy": "^10.0.0",
|
|
12
|
-
"@onecx/angular-accelerator": "^5.
|
|
13
|
-
"@onecx/angular-integration-interface": "^5.
|
|
14
|
-
"@onecx/angular-remote-components": "^5.
|
|
15
|
-
"@onecx/portal-integration-angular": "^5.
|
|
12
|
+
"@onecx/angular-accelerator": "^5.27.1",
|
|
13
|
+
"@onecx/angular-integration-interface": "^5.27.1",
|
|
14
|
+
"@onecx/angular-remote-components": "^5.27.1",
|
|
15
|
+
"@onecx/portal-integration-angular": "^5.27.1",
|
|
16
16
|
"primeng": "^17.18.6"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|