@byuhbll/components 4.0.0-alpha.19 → 4.0.0-alpha.20
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/animations/animations.mjs +19 -1
- package/esm2022/lib/checkbox/checkbox.component.mjs +15 -0
- package/esm2022/lib/copy-tooltip/copy-tooltip.component.mjs +49 -0
- package/esm2022/lib/expand-collapse/expand-collapse.component.mjs +31 -0
- package/esm2022/lib/hbll-footer/hbll-footer.component.mjs +76 -0
- package/esm2022/lib/hbll-header/hbll-header.component.mjs +81 -31
- package/esm2022/lib/hbll-header/models/library-hours.mjs +2 -0
- package/esm2022/lib/hbll-header/nav-bar/nav-bar.component.mjs +333 -0
- package/esm2022/lib/hbll-header/nav-bar-dropdown/nav-bar-dropdown.component.mjs +29 -0
- package/esm2022/lib/hbll-header/pipes/library-hours.pipe.mjs +31 -0
- package/esm2022/lib/header-with-impersonation/header-with-impersonation.component.mjs +38 -0
- package/esm2022/lib/impersonate-modal/impersonate-modal.component.mjs +190 -0
- package/esm2022/lib/impersonation-banner/impersonation-banner.component.mjs +128 -0
- package/esm2022/lib/impersonation-banner/models/application-access.mjs +7 -0
- package/esm2022/lib/impersonation-banner/models/person-summary.mjs +15 -0
- package/esm2022/lib/models/token-payload.mjs +2 -0
- package/esm2022/lib/multi-select/multi-select.component.mjs +115 -0
- package/esm2022/lib/ss-search-bar/advanced-search/advanced-search.component.mjs +5 -5
- package/esm2022/lib/ss-search-bar/ss-search-bar.component.mjs +3 -3
- package/esm2022/lib/utils.mjs +7 -0
- package/esm2022/public-api.mjs +5 -1
- package/fesm2022/byuhbll-components.mjs +982 -65
- package/fesm2022/byuhbll-components.mjs.map +1 -1
- package/lib/animations/animations.d.ts +1 -0
- package/lib/{hbll-checkbox/hbll-checkbox.component.d.ts → checkbox/checkbox.component.d.ts} +2 -2
- package/lib/copy-tooltip/copy-tooltip.component.d.ts +12 -0
- package/lib/expand-collapse/expand-collapse.component.d.ts +10 -0
- package/lib/hbll-footer/hbll-footer.component.d.ts +29 -0
- package/lib/hbll-header/hbll-header.component.d.ts +23 -28
- package/lib/hbll-header/models/library-hours.d.ts +10 -0
- package/lib/hbll-header/nav-bar/nav-bar.component.d.ts +30 -0
- package/lib/hbll-header/nav-bar-dropdown/nav-bar-dropdown.component.d.ts +12 -0
- package/lib/hbll-header/pipes/library-hours.pipe.d.ts +7 -0
- package/lib/header-with-impersonation/header-with-impersonation.component.d.ts +19 -0
- package/lib/impersonate-modal/impersonate-modal.component.d.ts +60 -0
- package/lib/impersonation-banner/impersonation-banner.component.d.ts +31 -0
- package/lib/impersonation-banner/models/application-access.d.ts +15 -0
- package/lib/impersonation-banner/models/person-summary.d.ts +33 -0
- package/lib/models/token-payload.d.ts +3 -0
- package/lib/{hbll-multi-select/hbll-multi-select.component.d.ts → multi-select/multi-select.component.d.ts} +1 -1
- package/lib/ss-search-bar/advanced-search/advanced-search.component.d.ts +4 -1
- package/lib/utils.d.ts +5 -0
- package/package.json +4 -1
- package/public-api.d.ts +4 -0
- package/styles/scss/_mixins.scss +1 -1
- package/styles/scss/_vars.scss +7 -0
- package/styles/scss/base.scss +38 -5
- package/styles/scss/cta-btn.scss +2 -2
- package/styles/scss/pill-btn.scss +2 -2
- package/styles/scss/shared.scss +7 -0
- package/styles/scss/spinner.scss +20 -0
- package/esm2022/lib/hbll-checkbox/hbll-checkbox.component.mjs +0 -17
- package/esm2022/lib/hbll-multi-select/hbll-multi-select.component.mjs +0 -115
|
@@ -2,3 +2,4 @@ export declare const libHbllExpandCollapse: import("@angular/animations").Animat
|
|
|
2
2
|
export declare const libHbllFadeInOut: import("@angular/animations").AnimationTriggerMetadata;
|
|
3
3
|
export declare const libHbllFadeIn: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
4
|
export declare const libHbllFadeOut: import("@angular/animations").AnimationTriggerMetadata;
|
|
5
|
+
export declare const libHbllSlideInOutRightLeft: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class HbllCheckboxComponent {
|
|
3
|
-
isChecked: boolean
|
|
3
|
+
isChecked: import("@angular/core").InputSignal<boolean>;
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<HbllCheckboxComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HbllCheckboxComponent, "lib-
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HbllCheckboxComponent, "lib-checkbox", never, { "isChecked": { "alias": "isChecked"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6
6
|
}
|
|
@@ -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,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ExpandCollapseComponent {
|
|
3
|
+
private contentRef;
|
|
4
|
+
private _isExpanded;
|
|
5
|
+
set isExpanded(isExpanded: boolean);
|
|
6
|
+
get isExpanded(): boolean;
|
|
7
|
+
protected heightOfContent: number;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandCollapseComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandCollapseComponent, "lib-expand-collapse", never, { "isExpanded": { "alias": "isExpanded"; "required": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface Email {
|
|
3
|
+
email: string;
|
|
4
|
+
message: string;
|
|
5
|
+
name: string;
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class HbllFooterComponent {
|
|
9
|
+
private readonly fb;
|
|
10
|
+
private readonly http;
|
|
11
|
+
mainsitebaseurl: string;
|
|
12
|
+
libraryapibaseuri: string;
|
|
13
|
+
set emailtext(text: string);
|
|
14
|
+
protected date: Date;
|
|
15
|
+
protected isSubmitted: boolean;
|
|
16
|
+
protected isLoading: boolean;
|
|
17
|
+
protected hasConnectionError: boolean;
|
|
18
|
+
protected isEmailSent: boolean;
|
|
19
|
+
protected emailForm: import("@angular/forms").FormGroup<{
|
|
20
|
+
name: import("@angular/forms").FormControl<string>;
|
|
21
|
+
email: import("@angular/forms").FormControl<string>;
|
|
22
|
+
comment: import("@angular/forms").FormControl<string>;
|
|
23
|
+
status: import("@angular/forms").FormControl<string>;
|
|
24
|
+
}>;
|
|
25
|
+
protected sendEmail: () => void;
|
|
26
|
+
protected handleClose: () => void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HbllFooterComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HbllFooterComponent, "lib-hbll-footer", never, { "mainsitebaseurl": { "alias": "mainsitebaseurl"; "required": false; }; "libraryapibaseuri": { "alias": "libraryapibaseuri"; "required": false; }; "emailtext": { "alias": "emailtext"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -1,40 +1,35 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { LibraryHours } from './models/library-hours';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
date: string;
|
|
5
|
-
is_closed: boolean;
|
|
6
|
-
open_time: string;
|
|
7
|
-
close_time: string;
|
|
8
|
-
has_exception: boolean;
|
|
9
|
-
exception_title: string;
|
|
10
|
-
exception_message: string;
|
|
11
|
-
is_currently_open: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class LibraryHoursDatePipe implements PipeTransform {
|
|
14
|
-
transform(date: string, time: string): Date;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LibraryHoursDatePipe, never>;
|
|
16
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LibraryHoursDatePipe, "libraryHoursDate", true>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Header component built to be exported as a custom element.
|
|
20
|
-
* This component uses icons provided by Google Material.
|
|
21
|
-
* The link to these icons should be included once in the \<head> of your base html.
|
|
22
|
-
*
|
|
23
|
-
* When a non-empty string `name` is provided to this component, the user is considered logged in.
|
|
24
|
-
* Two outputs/events are accessible: `login` and `logout`.
|
|
25
|
-
*/
|
|
4
|
+
export declare const LIBRARY_HOURS_API_URL = "https://apps.lib.byu.edu/libraryhours/api/hours";
|
|
26
5
|
export declare class HbllHeaderComponent implements AfterViewInit {
|
|
27
6
|
private readonly r2;
|
|
28
7
|
private readonly http;
|
|
29
|
-
|
|
8
|
+
private readonly bo;
|
|
9
|
+
private doc;
|
|
10
|
+
header: ElementRef;
|
|
11
|
+
name: string;
|
|
12
|
+
mainsitebaseurl: string;
|
|
13
|
+
showImpersonateButton: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
openImpersonationModal: EventEmitter<void>;
|
|
30
15
|
login: EventEmitter<void>;
|
|
31
16
|
logout: EventEmitter<void>;
|
|
17
|
+
private formatDateForHours;
|
|
32
18
|
private accountInfoEl;
|
|
33
|
-
|
|
19
|
+
private hoursEl;
|
|
20
|
+
protected get isLoggedIn(): boolean;
|
|
34
21
|
protected libraryHours: import("@angular/core").Signal<LibraryHours | undefined>;
|
|
22
|
+
protected hoursExceptions$: import("rxjs").Observable<LibraryHours[]>;
|
|
35
23
|
protected showAccountDropdown: boolean;
|
|
24
|
+
protected showLibraryHours: boolean;
|
|
25
|
+
protected mobileSidebarHeight: number;
|
|
26
|
+
protected showNavBar: boolean;
|
|
27
|
+
protected isScreenSmall: import("@angular/core").Signal<boolean | undefined>;
|
|
36
28
|
ngAfterViewInit(): void;
|
|
29
|
+
protected openSidebarNav: () => void;
|
|
30
|
+
protected closeSidebarNav: () => void;
|
|
31
|
+
private onResize;
|
|
32
|
+
private setMobileSidebarHeight;
|
|
37
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<HbllHeaderComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HbllHeaderComponent, "lib-hbll-header", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; }, { "login": "login"; "logout": "logout"; }, never, never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HbllHeaderComponent, "lib-hbll-header", never, { "name": { "alias": "name"; "required": false; }; "mainsitebaseurl": { "alias": "mainsitebaseurl"; "required": false; }; "showImpersonateButton": { "alias": "showImpersonateButton"; "required": false; "isSignal": true; }; }, { "openImpersonationModal": "openImpersonationModal"; "login": "login"; "logout": "logout"; }, never, never, true, never>;
|
|
39
35
|
}
|
|
40
|
-
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { NavBarDropdownComponent } from '../nav-bar-dropdown/nav-bar-dropdown.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
type NavInfo = {
|
|
5
|
+
title: string;
|
|
6
|
+
mainSection?: Section;
|
|
7
|
+
otherSections: Section[];
|
|
8
|
+
};
|
|
9
|
+
type Section = {
|
|
10
|
+
title: string;
|
|
11
|
+
links: Link[];
|
|
12
|
+
auxiliaryLink?: Link;
|
|
13
|
+
};
|
|
14
|
+
type Link = {
|
|
15
|
+
label: string;
|
|
16
|
+
url: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare class NavBarComponent {
|
|
20
|
+
private bo;
|
|
21
|
+
mainSiteBaseUrl: import("@angular/core").InputSignal<string>;
|
|
22
|
+
height: import("@angular/core").InputSignal<number | null>;
|
|
23
|
+
dropdownComps: NavBarDropdownComponent[];
|
|
24
|
+
protected handleDropdownOpenEvent: (title: string) => void;
|
|
25
|
+
protected isScreenSmall: Signal<boolean | undefined>;
|
|
26
|
+
protected navInfos: Signal<NavInfo[]>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavBarComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavBarComponent, "lib-nav-bar", never, { "mainSiteBaseUrl": { "alias": "mainSiteBaseUrl"; "required": true; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NavBarDropdownComponent {
|
|
4
|
+
title: import("@angular/core").InputSignal<string>;
|
|
5
|
+
isSmallScreen: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
openEvent: EventEmitter<string>;
|
|
7
|
+
closeDropdown: () => boolean;
|
|
8
|
+
protected isOpen: boolean;
|
|
9
|
+
protected handleClick: () => void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavBarDropdownComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavBarDropdownComponent, "lib-nav-bar-dropdown", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "isSmallScreen": { "alias": "isSmallScreen"; "required": false; "isSignal": true; }; }, { "openEvent": "openEvent"; }, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LibraryHoursPipe implements PipeTransform {
|
|
4
|
+
transform(date: string, time: string): string | null;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibraryHoursPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LibraryHoursPipe, "libraryHours", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter, Signal } from '@angular/core';
|
|
2
|
+
import { TokenPayload } from '../models/token-payload';
|
|
3
|
+
import { JwtPayload } from 'jwt-decode';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HeaderWithImpersonationComponent {
|
|
6
|
+
accessTokenPayload: import("@angular/core").InputSignal<TokenPayload>;
|
|
7
|
+
oidcBaseUri: import("@angular/core").InputSignal<string>;
|
|
8
|
+
oidcDefaultIdp: import("@angular/core").InputSignal<string>;
|
|
9
|
+
login: EventEmitter<void>;
|
|
10
|
+
logout: EventEmitter<void>;
|
|
11
|
+
endImpersonation: EventEmitter<void>;
|
|
12
|
+
protected parsedToken: Signal<(JwtPayload & Record<string, any>) | null>;
|
|
13
|
+
protected name: Signal<any>;
|
|
14
|
+
protected showImpersonateButton: Signal<boolean>;
|
|
15
|
+
protected showImpersonationModal: boolean;
|
|
16
|
+
private isImpersonating;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderWithImpersonationComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderWithImpersonationComponent, "lib-header-with-impersonation", never, { "accessTokenPayload": { "alias": "accessTokenPayload"; "required": true; "isSignal": true; }; "oidcBaseUri": { "alias": "oidcBaseUri"; "required": false; "isSignal": true; }; "oidcDefaultIdp": { "alias": "oidcDefaultIdp"; "required": false; "isSignal": true; }; }, { "login": "login"; "logout": "logout"; "endImpersonation": "endImpersonation"; }, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { TokenPayload } from '../models/token-payload';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const defaultOidcBaseUri = "https://keycloak.lib.byu.edu/";
|
|
6
|
+
export declare const defaultOidcDefaultIdp = "byu-realm";
|
|
7
|
+
export declare class ImpersonateUserPipe implements PipeTransform {
|
|
8
|
+
transform(user: ImpersonateSearchResult): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImpersonateUserPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ImpersonateUserPipe, "impersonateUser", true>;
|
|
11
|
+
}
|
|
12
|
+
export interface ImpersonateSearchResult {
|
|
13
|
+
netId: string;
|
|
14
|
+
institution: string;
|
|
15
|
+
username: string;
|
|
16
|
+
name: string;
|
|
17
|
+
preferredName: string;
|
|
18
|
+
givenName: string;
|
|
19
|
+
surname: string;
|
|
20
|
+
restricted: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare class ImpersonateModalComponent implements OnDestroy {
|
|
23
|
+
private readonly http;
|
|
24
|
+
private readonly fb;
|
|
25
|
+
private readonly eref;
|
|
26
|
+
set showModal(open: boolean);
|
|
27
|
+
oidcBaseUri: import("@angular/core").InputSignal<string>;
|
|
28
|
+
oidcDefaultIdp: import("@angular/core").InputSignal<string>;
|
|
29
|
+
accessTokenPayload: import("@angular/core").InputSignal<TokenPayload>;
|
|
30
|
+
dismiss: EventEmitter<void>;
|
|
31
|
+
init: EventEmitter<void>;
|
|
32
|
+
protected isOpen: boolean;
|
|
33
|
+
protected hasError: boolean;
|
|
34
|
+
protected form: import("@angular/forms").FormGroup<{
|
|
35
|
+
search: import("@angular/forms").FormControl<string | null>;
|
|
36
|
+
}>;
|
|
37
|
+
protected selectedUsername?: string;
|
|
38
|
+
protected loading: boolean;
|
|
39
|
+
protected handleSearchSubject: Subject<boolean>;
|
|
40
|
+
protected results: import("@angular/core").Signal<ImpersonateSearchResult[] | null | undefined>;
|
|
41
|
+
private subs;
|
|
42
|
+
outsideClick(event: MouseEvent): void;
|
|
43
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
44
|
+
ngOnDestroy(): void;
|
|
45
|
+
/** Redirect to Keycloak impersonate page, which will redirect back
|
|
46
|
+
* after impersonation begins.
|
|
47
|
+
*/
|
|
48
|
+
protected startImpersonation: (username?: string) => void;
|
|
49
|
+
protected handleSelectUser: (event: Event) => void;
|
|
50
|
+
protected clearSearch: () => void;
|
|
51
|
+
protected close: () => void;
|
|
52
|
+
protected handleFormSubmit: (event: SubmitEvent) => void;
|
|
53
|
+
protected handleSearchKeyPress: (event: KeyboardEvent) => void;
|
|
54
|
+
protected handleResultKeyPress: (event: KeyboardEvent) => void;
|
|
55
|
+
/** Search Keycloak users using a generic search query. */
|
|
56
|
+
private searchUsers;
|
|
57
|
+
private replaceUrl;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImpersonateModalComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImpersonateModalComponent, "lib-impersonate-modal", never, { "showModal": { "alias": "showModal"; "required": false; }; "oidcBaseUri": { "alias": "oidcBaseUri"; "required": false; "isSignal": true; }; "oidcDefaultIdp": { "alias": "oidcDefaultIdp"; "required": false; "isSignal": true; }; "accessTokenPayload": { "alias": "accessTokenPayload"; "required": true; "isSignal": true; }; }, { "dismiss": "dismiss"; "init": "init"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter, Signal } from '@angular/core';
|
|
2
|
+
import { type ApplicationAccess } from './models/application-access';
|
|
3
|
+
import { TokenPayload } from '../models/token-payload';
|
|
4
|
+
import { JwtPayload } from 'jwt-decode';
|
|
5
|
+
import { PersonSummary } from './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
|
+
personBaseUri: import("@angular/core").InputSignal<string>;
|
|
11
|
+
libraryApiBaseUri: import("@angular/core").InputSignal<string>;
|
|
12
|
+
endImpersonation: EventEmitter<void>;
|
|
13
|
+
protected parsedToken: Signal<JwtPayload & Record<string, any>>;
|
|
14
|
+
protected isImpersonating: Signal<boolean>;
|
|
15
|
+
protected libraryId: Signal<any>;
|
|
16
|
+
protected user: Signal<PersonSummary | null | undefined>;
|
|
17
|
+
protected userFullName: Signal<string>;
|
|
18
|
+
protected isRestricted: Signal<boolean | undefined>;
|
|
19
|
+
protected userInfoTabs: Signal<Map<string, any>>;
|
|
20
|
+
protected userPhotoUrl: Signal<string>;
|
|
21
|
+
protected activityStatus: Signal<"retired" | "active" | "inactive" | null>;
|
|
22
|
+
protected employeeStatusDescription: Signal<string | null>;
|
|
23
|
+
protected independentStudyStatus: Signal<boolean | null | undefined>;
|
|
24
|
+
protected accountStatuses: Signal<{
|
|
25
|
+
ok: ApplicationAccess[];
|
|
26
|
+
blocked: ApplicationAccess[];
|
|
27
|
+
none: ApplicationAccess[];
|
|
28
|
+
} | null | undefined>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImpersonationBannerComponent, never>;
|
|
30
|
+
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>;
|
|
31
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -48,5 +48,5 @@ export declare class HbllMultiSelectComponent {
|
|
|
48
48
|
*/
|
|
49
49
|
private addOptionToSelectedOptions;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<HbllMultiSelectComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HbllMultiSelectComponent, "lib-
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HbllMultiSelectComponent, "lib-multi-select", never, { "allOptions": { "alias": "allOptions"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; }; }, { "selectedKeysChange": "selectedKeysChange"; }, never, never, true, never>;
|
|
52
52
|
}
|
|
@@ -105,7 +105,10 @@ export declare class AdvancedSearchComponent implements OnDestroy {
|
|
|
105
105
|
readonly 'law -- iclrs': "Law & Religion Studies";
|
|
106
106
|
readonly 'law -- main': "Main Collection";
|
|
107
107
|
readonly 'law -- media': "Media";
|
|
108
|
-
readonly 'law -- reserve': "Reserve";
|
|
108
|
+
readonly 'law -- reserve': "Reserve"; /**
|
|
109
|
+
* Takes a `FormGroup` and syncs up the `field` and `qualifier` values.
|
|
110
|
+
* After syncing, when the `field` value changes, the `qualifier` value will update appropriately.
|
|
111
|
+
*/
|
|
109
112
|
readonly 'law -- self_help': "Self Help";
|
|
110
113
|
readonly 'law -- study_guides': "Study Guides";
|
|
111
114
|
};
|
package/lib/utils.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byuhbll/components",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.20",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.0.0",
|
|
6
6
|
"@angular/core": "^18.0.0"
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
"./pill-btn": {
|
|
26
26
|
"sass": "./styles/scss/pill-btn.scss"
|
|
27
27
|
},
|
|
28
|
+
"./spinner": {
|
|
29
|
+
"sass": "./styles/scss/spinner.scss"
|
|
30
|
+
},
|
|
28
31
|
"./package.json": {
|
|
29
32
|
"default": "./package.json"
|
|
30
33
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export * from './lib/hbll-header/hbll-header.component';
|
|
2
|
+
export * from './lib/hbll-footer/hbll-footer.component';
|
|
3
|
+
export * from './lib/header-with-impersonation/header-with-impersonation.component';
|
|
4
|
+
export * from './lib/impersonate-modal/impersonate-modal.component';
|
|
5
|
+
export * from './lib/impersonation-banner/impersonation-banner.component';
|
|
2
6
|
export * from './lib/ss-search-bar/ss-search-bar.component';
|
|
3
7
|
export * from './lib/ss-search-bar/models/advanced-search.model';
|
|
4
8
|
export * from './lib/ss-search-bar/models/search-scope.model';
|
package/styles/scss/_mixins.scss
CHANGED
package/styles/scss/_vars.scss
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
$navy-blue: #002e5d;
|
|
2
2
|
$royal-blue: #0047ba;
|
|
3
|
+
$royal-blue--hover: #1967e5;
|
|
3
4
|
|
|
4
5
|
$primary-blue: #3a6093;
|
|
5
6
|
|
|
7
|
+
$primary-green: #207215;
|
|
8
|
+
$success-green: #1dce7b;
|
|
9
|
+
|
|
10
|
+
$impersonate-purple: #ca7ad1cc;
|
|
11
|
+
$impersonate-purple--hover: #ca7ad1;
|
|
12
|
+
|
|
6
13
|
$interactive-blue: #4070b0;
|
|
7
14
|
$interactive-blue--hover: #6892ca;
|
|
8
15
|
|
package/styles/scss/base.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use './
|
|
1
|
+
@use './vars';
|
|
2
2
|
|
|
3
3
|
$sourceSansProVersion: '1.0.0';
|
|
4
4
|
$icomoonVersion: '1.0.1';
|
|
@@ -170,6 +170,17 @@ section {
|
|
|
170
170
|
body {
|
|
171
171
|
background: white;
|
|
172
172
|
line-height: 1.5;
|
|
173
|
+
font-size: 1.6rem;
|
|
174
|
+
font-family:
|
|
175
|
+
Source Sans Pro,
|
|
176
|
+
Helvetica Neue,
|
|
177
|
+
Helvetica,
|
|
178
|
+
Arial,
|
|
179
|
+
sans-serif;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
html {
|
|
183
|
+
font-size: 62.5%;
|
|
173
184
|
}
|
|
174
185
|
|
|
175
186
|
table {
|
|
@@ -203,8 +214,14 @@ q {
|
|
|
203
214
|
quotes: '' '';
|
|
204
215
|
}
|
|
205
216
|
|
|
206
|
-
a
|
|
217
|
+
a,
|
|
218
|
+
button {
|
|
219
|
+
border: none;
|
|
220
|
+
background: none;
|
|
221
|
+
font-family: inherit;
|
|
222
|
+
font-size: inherit;
|
|
207
223
|
text-decoration: none;
|
|
224
|
+
cursor: pointer;
|
|
208
225
|
}
|
|
209
226
|
|
|
210
227
|
a img {
|
|
@@ -218,8 +235,24 @@ ul {
|
|
|
218
235
|
*,
|
|
219
236
|
*::before,
|
|
220
237
|
*::after {
|
|
221
|
-
-moz-box-sizing: border-box;
|
|
222
|
-
-ms-box-sizing: border-box;
|
|
223
|
-
-webkit-box-sizing: border-box;
|
|
224
238
|
box-sizing: border-box;
|
|
225
239
|
}
|
|
240
|
+
|
|
241
|
+
/* Change site size on bigger browser sizes */
|
|
242
|
+
@media screen and (min-width: 1400px) {
|
|
243
|
+
html {
|
|
244
|
+
font-size: 70%;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@media screen and (min-width: 1720px) {
|
|
249
|
+
html {
|
|
250
|
+
font-size: 75%;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@media screen and (min-width: 2000px) {
|
|
255
|
+
html {
|
|
256
|
+
font-size: 80%;
|
|
257
|
+
}
|
|
258
|
+
}
|
package/styles/scss/cta-btn.scss
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'vars';
|
|
2
|
+
|
|
3
|
+
.lib-spinner {
|
|
4
|
+
border: 0.3em solid #dfe9f7;
|
|
5
|
+
border-top: 0.3em solid vars.$interactive-blue;
|
|
6
|
+
border-radius: 100%;
|
|
7
|
+
width: 30px;
|
|
8
|
+
height: 30px;
|
|
9
|
+
animation: loadingSpinnerAnimate 1s ease infinite;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes loadingSpinnerAnimate {
|
|
14
|
+
0% {
|
|
15
|
+
transform: rotate(0deg);
|
|
16
|
+
}
|
|
17
|
+
100% {
|
|
18
|
+
transform: rotate(360deg);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, Input } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class HbllCheckboxComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.isChecked = false;
|
|
7
|
-
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: HbllCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.0", type: HbllCheckboxComponent, isStandalone: true, selector: "lib-hbll-checkbox", inputs: { isChecked: "isChecked" }, ngImport: i0, template: "<span class=\"components-checkbox-container\" [class.components-checked]=\"isChecked\">\n @if (isChecked) {\n <span class=\"material-symbols-outlined components-icon\"> check </span>\n }\n</span>\n", styles: [".components-checkbox-container{transition:.15s;height:1.13em;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:4px;border:solid 1px #707070;color:#fff;box-sizing:border-box;position:relative}.components-checkbox-container.components-checked{border-color:#3a6093;background-color:#3a6093}.components-checkbox-container.components-checked .components-icon{position:absolute;font-size:1.1em}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: HbllCheckboxComponent, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: 'lib-hbll-checkbox', standalone: true, imports: [CommonModule], template: "<span class=\"components-checkbox-container\" [class.components-checked]=\"isChecked\">\n @if (isChecked) {\n <span class=\"material-symbols-outlined components-icon\"> check </span>\n }\n</span>\n", styles: [".components-checkbox-container{transition:.15s;height:1.13em;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border-radius:4px;border:solid 1px #707070;color:#fff;box-sizing:border-box;position:relative}.components-checkbox-container.components-checked{border-color:#3a6093;background-color:#3a6093}.components-checkbox-container.components-checked .components-icon{position:absolute;font-size:1.1em}\n"] }]
|
|
14
|
-
}], propDecorators: { isChecked: [{
|
|
15
|
-
type: Input
|
|
16
|
-
}] } });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGJsbC1jaGVja2JveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvaGJsbC1jaGVja2JveC9oYmxsLWNoZWNrYm94LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvc3JjL2xpYi9oYmxsLWNoZWNrYm94L2hibGwtY2hlY2tib3guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQVNqRCxNQUFNLE9BQU8scUJBQXFCO0lBUGxDO1FBUWEsY0FBUyxHQUFHLEtBQUssQ0FBQztLQUM5Qjs4R0FGWSxxQkFBcUI7a0dBQXJCLHFCQUFxQixpSENWbEMsb05BS0EsbWVER2MsWUFBWTs7MkZBRWIscUJBQXFCO2tCQVBqQyxTQUFTOytCQUNJLG1CQUFtQixjQUdqQixJQUFJLFdBQ1AsQ0FBQyxZQUFZLENBQUM7OEJBR2QsU0FBUztzQkFBakIsS0FBSyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBDb21wb25lbnQsIElucHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICAgIHNlbGVjdG9yOiAnbGliLWhibGwtY2hlY2tib3gnLFxuICAgIHRlbXBsYXRlVXJsOiAnLi9oYmxsLWNoZWNrYm94LmNvbXBvbmVudC5odG1sJyxcbiAgICBzdHlsZVVybHM6IFsnLi9oYmxsLWNoZWNrYm94LmNvbXBvbmVudC5zY3NzJ10sXG4gICAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgSGJsbENoZWNrYm94Q29tcG9uZW50IHtcbiAgICBASW5wdXQoKSBpc0NoZWNrZWQgPSBmYWxzZTtcbn1cbiIsIjxzcGFuIGNsYXNzPVwiY29tcG9uZW50cy1jaGVja2JveC1jb250YWluZXJcIiBbY2xhc3MuY29tcG9uZW50cy1jaGVja2VkXT1cImlzQ2hlY2tlZFwiPlxuICAgIEBpZiAoaXNDaGVja2VkKSB7XG4gICAgICAgIDxzcGFuIGNsYXNzPVwibWF0ZXJpYWwtc3ltYm9scy1vdXRsaW5lZCBjb21wb25lbnRzLWljb25cIj4gY2hlY2sgPC9zcGFuPlxuICAgIH1cbjwvc3Bhbj5cbiJdfQ==
|