@byuhbll/components 5.1.0-beta.1 → 5.2.0-beta.0
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/header-with-impersonation/header-with-impersonation.component.mjs +89 -2
- package/esm2022/lib/ss-search-bar/models/search-config.model.mjs +1 -1
- package/esm2022/lib/ss-search-bar/simple-search/simple-search.component.mjs +34 -75
- package/esm2022/lib/ss-search-bar/ss-search-bar.component.mjs +3 -9
- package/fesm2022/byuhbll-components.mjs +122 -82
- package/fesm2022/byuhbll-components.mjs.map +1 -1
- package/lib/header-with-impersonation/header-with-impersonation.component.d.ts +19 -2
- package/lib/ss-search-bar/models/search-config.model.d.ts +0 -1
- package/lib/ss-search-bar/simple-search/simple-search.component.d.ts +4 -11
- package/lib/ss-search-bar/ss-search-bar.component.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, Signal } from '@angular/core';
|
|
1
|
+
import { EventEmitter, Signal, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { TokenPayload } from '../models/token-payload';
|
|
3
3
|
import { JwtPayload } from 'jwt-decode';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class HeaderWithImpersonationComponent {
|
|
5
|
+
export declare class HeaderWithImpersonationComponent implements OnInit, OnDestroy {
|
|
6
6
|
accessTokenPayload: import("@angular/core").InputSignal<TokenPayload>;
|
|
7
7
|
oidcBaseUri: import("@angular/core").InputSignal<string>;
|
|
8
8
|
oidcDefaultIdp: import("@angular/core").InputSignal<string>;
|
|
@@ -17,6 +17,23 @@ export declare class HeaderWithImpersonationComponent {
|
|
|
17
17
|
protected showImpersonateButton: Signal<boolean>;
|
|
18
18
|
protected showImpersonationModal: boolean;
|
|
19
19
|
private isImpersonating;
|
|
20
|
+
private activityEvents;
|
|
21
|
+
private inactivityTimerId;
|
|
22
|
+
private inactivityTimeoutMs;
|
|
23
|
+
private debounceTimerId;
|
|
24
|
+
private debounceDelayMs;
|
|
25
|
+
private trackingActive;
|
|
26
|
+
private injector;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
/** Begin listening and start countdown */
|
|
30
|
+
private startInactivityTracking;
|
|
31
|
+
/** Remove listeners and clear timers */
|
|
32
|
+
private stopInactivityTracking;
|
|
33
|
+
/** Reset the inactivity countdown (no-op if not impersonating) */
|
|
34
|
+
private resetInactivityTimer;
|
|
35
|
+
/** Debounce activity to avoid hammering resets during event storms */
|
|
36
|
+
private debouncedResetTimer;
|
|
20
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderWithImpersonationComponent, never>;
|
|
21
38
|
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; }; "mainSiteBaseUrl": { "alias": "mainSiteBaseUrl"; "required": false; "isSignal": true; }; "personBaseUri": { "alias": "personBaseUri"; "required": false; "isSignal": true; }; "myAccountApiBaseUri": { "alias": "myAccountApiBaseUri"; "required": false; "isSignal": true; }; }, { "login": "login"; "logout": "logout"; "endImpersonation": "endImpersonation"; }, never, never, true, never>;
|
|
22
39
|
}
|
|
@@ -8,30 +8,23 @@ export declare class SimpleSearchComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
private inputTooltip;
|
|
9
9
|
private subscription;
|
|
10
10
|
private _config;
|
|
11
|
+
private draftQuery;
|
|
12
|
+
private isPatching;
|
|
11
13
|
set config(config: SearchConfig);
|
|
12
14
|
get config(): SearchConfig;
|
|
13
|
-
suggestions: string[];
|
|
14
15
|
simpleSearch: EventEmitter<SearchConfig>;
|
|
15
16
|
clearSimpleSearch: EventEmitter<void>;
|
|
16
|
-
suggest: EventEmitter<SearchConfig>;
|
|
17
17
|
protected isSubmitted: boolean;
|
|
18
|
-
protected showSuggestions: boolean;
|
|
19
|
-
protected selectedSuggestionIndex: number;
|
|
20
|
-
private skipNextSuggest;
|
|
21
18
|
protected searchForm: import("@angular/forms").FormGroup<{
|
|
22
19
|
simpleQuery: FormControl<string>;
|
|
23
20
|
}>;
|
|
24
21
|
get simpleQuery(): FormControl<any>;
|
|
25
22
|
ngOnInit(): void;
|
|
26
23
|
ngOnDestroy(): void;
|
|
27
|
-
protected emitSimpleSearch: (
|
|
24
|
+
protected emitSimpleSearch: () => void;
|
|
28
25
|
protected clearQuery: () => void;
|
|
29
|
-
protected selectSuggestion: (suggestion: string) => void;
|
|
30
|
-
protected onInputKeydown: (event: KeyboardEvent) => void;
|
|
31
|
-
onDocumentClick(event: MouseEvent): void;
|
|
32
26
|
private setupForm;
|
|
33
27
|
private showSearchValidationToolTip;
|
|
34
|
-
private hideSuggestions;
|
|
35
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleSearchComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSearchComponent, "lib-ss-simple-search", never, { "config": { "alias": "config"; "required": true; };
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSearchComponent, "lib-ss-simple-search", never, { "config": { "alias": "config"; "required": true; }; }, { "simpleSearch": "simpleSearch"; "clearSimpleSearch": "clearSimpleSearch"; }, never, never, true, never>;
|
|
37
30
|
}
|
|
@@ -6,14 +6,12 @@ export declare class SsSearchBarComponent {
|
|
|
6
6
|
private _config;
|
|
7
7
|
set config(config: string);
|
|
8
8
|
get config(): SearchConfig;
|
|
9
|
-
suggestions: string[];
|
|
10
9
|
simpleSearch: EventEmitter<SearchConfig>;
|
|
11
10
|
clearSimpleSearch: EventEmitter<SearchConfig>;
|
|
12
11
|
advancedSearch: EventEmitter<SearchConfig>;
|
|
13
12
|
advancedSearchClosed: EventEmitter<SearchConfig>;
|
|
14
13
|
advancedSearchOpen: EventEmitter<SearchConfig>;
|
|
15
14
|
tabChange: EventEmitter<SearchConfig>;
|
|
16
|
-
suggest: EventEmitter<SearchConfig>;
|
|
17
15
|
private barWrapperRef;
|
|
18
16
|
protected heightOfContainer: number;
|
|
19
17
|
protected emitClearSimpleSearch: () => void;
|
|
@@ -23,5 +21,5 @@ export declare class SsSearchBarComponent {
|
|
|
23
21
|
protected emitAdvancedSearchOpen: () => void;
|
|
24
22
|
protected emitTabChange: (newScope: SearchScope) => void;
|
|
25
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SsSearchBarComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SsSearchBarComponent, "lib-ss-search-bar", never, { "config": { "alias": "config"; "required": true; };
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SsSearchBarComponent, "lib-ss-search-bar", never, { "config": { "alias": "config"; "required": true; }; }, { "simpleSearch": "simpleSearch"; "clearSimpleSearch": "clearSimpleSearch"; "advancedSearch": "advancedSearch"; "advancedSearchClosed": "advancedSearchClosed"; "advancedSearchOpen": "advancedSearchOpen"; "tabChange": "tabChange"; }, never, never, true, never>;
|
|
27
25
|
}
|