@byuhbll/components 4.0.0-alpha.6 → 4.0.0-alpha.8
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/copy-tooltip/copy-tooltip.component.mjs +49 -0
- package/esm2022/lib/hbll-header/hbll-header.component.mjs +3 -3
- package/esm2022/lib/hbll-header/impersonate-modal/impersonate-modal.component.mjs +2 -2
- package/esm2022/lib/hbll-header/models/application-access.mjs +7 -0
- package/esm2022/lib/hbll-header/models/person-summary.mjs +15 -0
- package/esm2022/lib/impersonation-banner/impersonation-banner.component.mjs +129 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/byuhbll-components.mjs +176 -8
- package/fesm2022/byuhbll-components.mjs.map +1 -1
- package/lib/copy-tooltip/copy-tooltip.component.d.ts +12 -0
- package/lib/hbll-header/models/application-access.d.ts +15 -0
- package/lib/hbll-header/models/person-summary.d.ts +33 -0
- package/lib/impersonation-banner/impersonation-banner.component.d.ts +30 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MatTooltip, TooltipPosition } from '@angular/material/tooltip';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CopyTooltipComponent {
|
|
4
|
+
position: TooltipPosition;
|
|
5
|
+
copyText?: string;
|
|
6
|
+
tooltip: MatTooltip;
|
|
7
|
+
clipboardCopyMessage: string;
|
|
8
|
+
copyToClipboard: (text?: string) => Promise<void>;
|
|
9
|
+
handleMouseLeave: () => void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyTooltipComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyTooltipComponent, "lib-copy-tooltip", never, { "position": { "alias": "position"; "required": false; }; "copyText": { "alias": "copyText"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum EmployeePositionType {
|
|
2
|
+
STD = "std",
|
|
3
|
+
SNL = "snl",
|
|
4
|
+
FAC = "fac",
|
|
5
|
+
STF = "stf",
|
|
6
|
+
TMP = "tmp",
|
|
7
|
+
FTC = "ftc"
|
|
8
|
+
}
|
|
9
|
+
export declare enum UndergradGraduateStatus {
|
|
10
|
+
UNDERGRAD = "undergrad",
|
|
11
|
+
GRADUATE = "graduate"
|
|
12
|
+
}
|
|
13
|
+
export interface IndependentStudyResponse {
|
|
14
|
+
library_id: string;
|
|
15
|
+
is_enrolled: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface PersonSummary {
|
|
18
|
+
byu_id?: string;
|
|
19
|
+
email_address?: string;
|
|
20
|
+
first_name: string;
|
|
21
|
+
is_affiliate: boolean;
|
|
22
|
+
is_employee: boolean;
|
|
23
|
+
is_retired?: boolean;
|
|
24
|
+
primary_position_type?: EmployeePositionType;
|
|
25
|
+
primary_position_type_display?: string;
|
|
26
|
+
is_student: boolean;
|
|
27
|
+
undergrad_graduate_status?: UndergradGraduateStatus;
|
|
28
|
+
last_name: string;
|
|
29
|
+
library_id: string;
|
|
30
|
+
preferred_first_name: string;
|
|
31
|
+
restricted: boolean;
|
|
32
|
+
worker_id?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, Signal } from '@angular/core';
|
|
2
|
+
import { AccessStatus, type ApplicationAccess } from '../hbll-header/models/application-access';
|
|
3
|
+
import { TokenPayload } from '../hbll-header/models/token-payload';
|
|
4
|
+
import { JwtPayload } from 'jwt-decode';
|
|
5
|
+
import { PersonSummary } from '../hbll-header/models/person-summary';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ImpersonationBannerComponent {
|
|
8
|
+
private http;
|
|
9
|
+
accessTokenPayload: import("@angular/core").InputSignal<TokenPayload>;
|
|
10
|
+
endImpersonation: EventEmitter<void>;
|
|
11
|
+
protected parsedToken: Signal<JwtPayload & Record<string, any>>;
|
|
12
|
+
protected isImpersonating: Signal<boolean>;
|
|
13
|
+
protected libraryId: Signal<any>;
|
|
14
|
+
protected user: Signal<PersonSummary | null | undefined>;
|
|
15
|
+
protected userFullName: Signal<string>;
|
|
16
|
+
protected isRestricted: Signal<boolean | undefined>;
|
|
17
|
+
protected userInfoTabs: Signal<Map<string, any>>;
|
|
18
|
+
protected userPhotoUrl: Signal<string>;
|
|
19
|
+
protected activityStatus: Signal<"retired" | "active" | "inactive" | null>;
|
|
20
|
+
protected employeeStatusDescription: Signal<string | null>;
|
|
21
|
+
protected independentStudyStatus: Signal<boolean | null | undefined>;
|
|
22
|
+
protected accountStatuses: Signal<{
|
|
23
|
+
ok: ApplicationAccess[];
|
|
24
|
+
blocked: ApplicationAccess[];
|
|
25
|
+
none: ApplicationAccess[];
|
|
26
|
+
} | null | undefined>;
|
|
27
|
+
protected STATUSES: typeof AccessStatus;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImpersonationBannerComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImpersonationBannerComponent, "lib-impersonation-banner", never, { "accessTokenPayload": { "alias": "accessTokenPayload"; "required": true; "isSignal": true; }; }, { "endImpersonation": "endImpersonation"; }, never, never, true, never>;
|
|
30
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './lib/hbll-header/hbll-header.component';
|
|
2
|
+
export * from './lib/impersonation-banner/impersonation-banner.component';
|
|
2
3
|
export * from './lib/ss-search-bar/ss-search-bar.component';
|
|
3
4
|
export * from './lib/ss-search-bar/models/advanced-search.model';
|
|
4
5
|
export * from './lib/ss-search-bar/models/search-scope.model';
|