@byuhbll/components 5.0.1-beta.0 → 5.0.2

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.
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byuhbll/components",
3
- "version": "5.0.1-beta.0",
3
+ "version": "5.0.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0"