tango-app-ui-shared 3.7.42 → 3.7.43
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/modules/layout/audit-tab-access.mjs +55 -0
- package/esm2022/lib/modules/layout/header/header-banner/header-banner.component.mjs +15 -7
- package/esm2022/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.mjs +9 -17
- package/fesm2022/tango-app-ui-shared.mjs +72 -21
- package/fesm2022/tango-app-ui-shared.mjs.map +1 -1
- package/lib/modules/layout/audit-tab-access.d.ts +23 -0
- package/lib/modules/layout/header/header-banner/header-banner.component.d.ts +10 -1
- package/lib/modules/layout/sidebar/sidebar-menu/sidebar-menu.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tango Trax › Audit tabs a user may open, from Manage Users › Tango Trax › Audit's tab rows
|
|
3
|
+
* (TangoTrax_Audit_<Tab>_isAdd / _isEdit; Add or Edit shows the tab). A Tango (internal) user sees every tab. A user
|
|
4
|
+
* saved before the tab rows existed has no tab keys and keeps every tab while Audit itself is on (the user API fills
|
|
5
|
+
* them in from Audit too). Same rule as the audit pages (tango-analyse-trax audit-v2-access.ts auditTabsOn).
|
|
6
|
+
*/
|
|
7
|
+
export declare const AUDIT_TAB_LINKS: Array<{
|
|
8
|
+
key: string;
|
|
9
|
+
path: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Whether Tango Trax -> Audit (or Schedules) is shown. A Tango user or client superadmin always sees it. A client user sees it
|
|
14
|
+
* when its Add or Edit key is true (TangoTrax_<module>_isAdd / _isEdit, from Manage Users; the user API fills Audit /
|
|
15
|
+
* Schedules in from Checklist for users saved before those rows); without those keys the Checklist keys decide.
|
|
16
|
+
*/
|
|
17
|
+
export declare function traxModuleOn(p: any, module: 'Audit' | 'Schedules'): boolean;
|
|
18
|
+
/** The Audit tabs this user may open, in menu order; [] while permissions are loading or without Audit. */
|
|
19
|
+
export declare function auditTabsOn(p: any, auditOn: boolean): Array<{
|
|
20
|
+
key: string;
|
|
21
|
+
path: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}>;
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { GlobalStateService } from 'tango-app-ui-global';
|
|
3
5
|
import { AuthService } from '../../../../services/auth.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class HeaderBannerComponent implements OnInit {
|
|
6
8
|
private service;
|
|
7
9
|
private router;
|
|
10
|
+
private gs;
|
|
8
11
|
showCreateOrder: 'AUTHORIZED' | 'UNAUTHORIZED';
|
|
9
|
-
|
|
12
|
+
/** Audit tabs this user may open (Manage Users › Tango Trax › Audit's tab rows); every tab until permissions load. */
|
|
13
|
+
readonly auditTabs$: Observable<Array<{
|
|
14
|
+
key: string;
|
|
15
|
+
path: string;
|
|
16
|
+
label: string;
|
|
17
|
+
}>>;
|
|
18
|
+
constructor(service: AuthService, router: Router, gs: GlobalStateService);
|
|
10
19
|
/** The Audit module has its own tab set, shown in place of the Checklist tabs. */
|
|
11
20
|
get isAuditModule(): boolean;
|
|
12
21
|
users: any;
|
|
@@ -24,6 +24,8 @@ export declare class SidebarMenuComponent implements OnInit {
|
|
|
24
24
|
* Same rule as the Audit pages (tango-analyse-trax audit-v2-access.ts traxModuleOn).
|
|
25
25
|
*/
|
|
26
26
|
traxModuleOn(p: any, module: 'Audit' | 'Schedules'): boolean;
|
|
27
|
+
/** Sidebar Audit link: the first Audit tab the user may open (Manage Users › Tango Trax › Audit's tab rows). */
|
|
28
|
+
auditHome(p: any): string;
|
|
27
29
|
get showAudioAiMenu(): boolean;
|
|
28
30
|
constructor(authService: AuthService, gs: GlobalStateService, router: Router);
|
|
29
31
|
private readonly destroy$;
|