@byuhbll/components 4.0.26-beta.4 → 4.0.26
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/impersonation-banner/impersonation-banner.component.mjs +35 -9
- package/esm2022/lib/impersonation-banner/models/application-access.mjs +7 -0
- package/fesm2022/byuhbll-components.mjs +40 -8
- package/fesm2022/byuhbll-components.mjs.map +1 -1
- package/lib/impersonation-banner/impersonation-banner.component.d.ts +4 -3
- package/lib/impersonation-banner/models/application-access.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, Signal } from '@angular/core';
|
|
2
|
+
import { type ApplicationAccess } from './models/application-access';
|
|
2
3
|
import { TokenPayload } from '../models/token-payload';
|
|
3
4
|
import { JwtPayload } from 'jwt-decode';
|
|
4
5
|
import { PersonSummary } from './models/person-summary';
|
|
@@ -42,9 +43,9 @@ export declare class ImpersonationBannerComponent {
|
|
|
42
43
|
protected employeeStatusDescription: Signal<string | null>;
|
|
43
44
|
protected independentStudyStatus: Signal<boolean | null | undefined>;
|
|
44
45
|
protected accountStatuses: Signal<{
|
|
45
|
-
ok:
|
|
46
|
-
blocked:
|
|
47
|
-
none:
|
|
46
|
+
ok: ApplicationAccess[];
|
|
47
|
+
blocked: ApplicationAccess[];
|
|
48
|
+
none: ApplicationAccess[];
|
|
48
49
|
} | null | undefined>;
|
|
49
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImpersonationBannerComponent, never>;
|
|
50
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImpersonationBannerComponent, "lib-impersonation-banner", never, { "accessTokenPayload": { "alias": "accessTokenPayload"; "required": true; "isSignal": true; }; "personBaseUri": { "alias": "personBaseUri"; "required": false; "isSignal": true; }; "libraryApiBaseUri": { "alias": "libraryApiBaseUri"; "required": false; "isSignal": true; }; }, { "endImpersonation": "endImpersonation"; }, never, never, true, never>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum AccessStatus {
|
|
2
|
+
OK = "ok",
|
|
3
|
+
BLOCKED = "blocked",
|
|
4
|
+
NONE = "none"
|
|
5
|
+
}
|
|
6
|
+
export interface ApplicationAccess {
|
|
7
|
+
label: string;
|
|
8
|
+
access: AccessStatus;
|
|
9
|
+
code?: string;
|
|
10
|
+
detail?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface AccountsResponse {
|
|
13
|
+
netId: string;
|
|
14
|
+
applications: Record<string, ApplicationAccess>;
|
|
15
|
+
}
|