@csmart/ngc-smart-core 1.18.4 → 1.18.6
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/lib/smart-navbar/smart-navbar.component.mjs +13 -30
- package/esm2022/lib/smart-staff-offender-options/smart-staff-offender-options.component.mjs +3 -3
- package/fesm2022/csmart-ngc-smart-core.mjs +20 -34
- package/fesm2022/csmart-ngc-smart-core.mjs.map +1 -1
- package/lib/smart-navbar/smart-navbar.component.d.ts +5 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
3
3
|
import { MsalService } from '@azure/msal-angular';
|
|
4
4
|
import { SmartNavbarConfig } from './smart-navbar-config';
|
|
@@ -6,29 +6,28 @@ import { SmartNavbarService } from './smart-navbar.service';
|
|
|
6
6
|
import { XdmService } from '../smart-storage/xdm.service';
|
|
7
7
|
import { SelectedOffender, LoginStaff } from '../smart-storage/smart-storage-model';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
|
-
import { FormControl } from '@angular/forms';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class SmartNavbarComponent implements OnInit,
|
|
10
|
+
export declare class SmartNavbarComponent implements OnInit, OnDestroy {
|
|
12
11
|
private navbarConfigService;
|
|
13
12
|
private xdmService;
|
|
14
13
|
private authnService;
|
|
15
14
|
serviceApiUrl: string;
|
|
16
|
-
appModuleId:
|
|
15
|
+
appModuleId: any;
|
|
17
16
|
tabGroup: MatTabGroup;
|
|
18
17
|
selectedOffender: SelectedOffender;
|
|
19
18
|
loginStaff: LoginStaff;
|
|
20
19
|
offenderSubscription: Subscription;
|
|
21
20
|
staffSubscription: Subscription;
|
|
22
21
|
navbarConfigs: SmartNavbarConfig[];
|
|
23
|
-
|
|
22
|
+
selectedNavbarConfig: SmartNavbarConfig | null;
|
|
24
23
|
constructor(navbarConfigService: SmartNavbarService, xdmService: XdmService, authnService: MsalService);
|
|
25
|
-
ngOnChanges(): void;
|
|
26
24
|
ngOnInit(): void;
|
|
27
25
|
ngOnDestroy(): void;
|
|
28
26
|
logout(): void;
|
|
29
27
|
get isAuthenticated(): boolean;
|
|
30
28
|
getAppModuleUrl(config: SmartNavbarConfig): string;
|
|
31
29
|
hasAppModulePermission(appModuleId: any): boolean;
|
|
30
|
+
showTab(config: SmartNavbarConfig): boolean;
|
|
32
31
|
get hasExternalUserRole(): boolean;
|
|
33
32
|
checkDVIPPermission(config: SmartNavbarConfig): boolean;
|
|
34
33
|
get hasDVIPRole(): boolean;
|