@genesislcap/foundation-utils 14.320.0 → 14.320.1-alpha-9a9ec86.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.
Files changed (58) hide show
  1. package/dist/custom-elements.json +738 -120
  2. package/dist/dts/inactivity/inactivity-dialog.d.ts +23 -0
  3. package/dist/dts/inactivity/inactivity-dialog.d.ts.map +1 -0
  4. package/dist/dts/inactivity/inactivity-manager.d.ts +24 -0
  5. package/dist/dts/inactivity/inactivity-manager.d.ts.map +1 -0
  6. package/dist/dts/inactivity/inactivity-service.d.ts +34 -0
  7. package/dist/dts/inactivity/inactivity-service.d.ts.map +1 -0
  8. package/dist/dts/inactivity/index.d.ts +4 -0
  9. package/dist/dts/inactivity/index.d.ts.map +1 -0
  10. package/dist/dts/index.d.ts +1 -0
  11. package/dist/dts/index.d.ts.map +1 -1
  12. package/dist/esm/inactivity/inactivity-dialog.js +213 -0
  13. package/dist/esm/inactivity/inactivity-manager.js +85 -0
  14. package/dist/esm/inactivity/inactivity-service.js +128 -0
  15. package/dist/esm/inactivity/index.js +3 -0
  16. package/dist/esm/index.js +1 -0
  17. package/dist/foundation-utils.api.json +1217 -0
  18. package/dist/foundation-utils.d.ts +83 -0
  19. package/docs/api/foundation-utils.inactivityconfig.md +71 -0
  20. package/docs/api/foundation-utils.inactivityconfig.timeoutminutes.md +11 -0
  21. package/docs/api/foundation-utils.inactivityconfig.warningminutes.md +11 -0
  22. package/docs/api/foundation-utils.inactivitydialog.disconnectedcallback.md +15 -0
  23. package/docs/api/foundation-utils.inactivitydialog.handlecontinue.md +15 -0
  24. package/docs/api/foundation-utils.inactivitydialog.handlelogout.md +15 -0
  25. package/docs/api/foundation-utils.inactivitydialog.hide.md +15 -0
  26. package/docs/api/foundation-utils.inactivitydialog.isvisible.md +11 -0
  27. package/docs/api/foundation-utils.inactivitydialog.md +152 -0
  28. package/docs/api/foundation-utils.inactivitydialog.remainingseconds.md +11 -0
  29. package/docs/api/foundation-utils.inactivitydialog.show.md +50 -0
  30. package/docs/api/foundation-utils.inactivitydialogoptions.md +88 -0
  31. package/docs/api/foundation-utils.inactivitydialogoptions.oncontinue.md +11 -0
  32. package/docs/api/foundation-utils.inactivitydialogoptions.onlogout.md +11 -0
  33. package/docs/api/foundation-utils.inactivitydialogoptions.remainingseconds.md +11 -0
  34. package/docs/api/foundation-utils.inactivityevents._inactivity-reset_.md +11 -0
  35. package/docs/api/foundation-utils.inactivityevents._inactivity-timeout_.md +11 -0
  36. package/docs/api/foundation-utils.inactivityevents._inactivity-warning_.md +13 -0
  37. package/docs/api/foundation-utils.inactivityevents.md +88 -0
  38. package/docs/api/foundation-utils.inactivitymanager._constructor_.md +48 -0
  39. package/docs/api/foundation-utils.inactivitymanager.destroy.md +15 -0
  40. package/docs/api/foundation-utils.inactivitymanager.getservice.md +15 -0
  41. package/docs/api/foundation-utils.inactivitymanager.iswarningvisible.md +15 -0
  42. package/docs/api/foundation-utils.inactivitymanager.md +138 -0
  43. package/docs/api/foundation-utils.inactivitymanager.reset.md +15 -0
  44. package/docs/api/foundation-utils.inactivitymanager.start.md +15 -0
  45. package/docs/api/foundation-utils.inactivitymanager.stop.md +15 -0
  46. package/docs/api/foundation-utils.inactivitymanagerconfig.md +55 -0
  47. package/docs/api/foundation-utils.inactivitymanagerconfig.onlogout.md +11 -0
  48. package/docs/api/foundation-utils.inactivityservice._constructor_.md +48 -0
  49. package/docs/api/foundation-utils.inactivityservice.destroy.md +15 -0
  50. package/docs/api/foundation-utils.inactivityservice.md +138 -0
  51. package/docs/api/foundation-utils.inactivityservice.off.md +64 -0
  52. package/docs/api/foundation-utils.inactivityservice.on.md +64 -0
  53. package/docs/api/foundation-utils.inactivityservice.resettimer.md +15 -0
  54. package/docs/api/foundation-utils.inactivityservice.start.md +15 -0
  55. package/docs/api/foundation-utils.inactivityservice.stop.md +15 -0
  56. package/docs/api/foundation-utils.md +63 -0
  57. package/docs/api-report.md.api.md +90 -0
  58. package/package.json +11 -11
@@ -0,0 +1,64 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [InactivityService](./foundation-utils.inactivityservice.md) &gt; [on](./foundation-utils.inactivityservice.on.md)
4
+
5
+ ## InactivityService.on() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ on<K extends keyof InactivityEvents>(event: K, listener: EventListener<InactivityEvents[K]>): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ <table><thead><tr><th>
16
+
17
+ Parameter
18
+
19
+
20
+ </th><th>
21
+
22
+ Type
23
+
24
+
25
+ </th><th>
26
+
27
+ Description
28
+
29
+
30
+ </th></tr></thead>
31
+ <tbody><tr><td>
32
+
33
+ event
34
+
35
+
36
+ </td><td>
37
+
38
+ K
39
+
40
+
41
+ </td><td>
42
+
43
+
44
+ </td></tr>
45
+ <tr><td>
46
+
47
+ listener
48
+
49
+
50
+ </td><td>
51
+
52
+ EventListener&lt;[InactivityEvents](./foundation-utils.inactivityevents.md)<!-- -->\[K\]&gt;
53
+
54
+
55
+ </td><td>
56
+
57
+
58
+ </td></tr>
59
+ </tbody></table>
60
+
61
+ **Returns:**
62
+
63
+ void
64
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [InactivityService](./foundation-utils.inactivityservice.md) &gt; [resetTimer](./foundation-utils.inactivityservice.resettimer.md)
4
+
5
+ ## InactivityService.resetTimer() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ resetTimer(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [InactivityService](./foundation-utils.inactivityservice.md) &gt; [start](./foundation-utils.inactivityservice.start.md)
4
+
5
+ ## InactivityService.start() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ start(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [InactivityService](./foundation-utils.inactivityservice.md) &gt; [stop](./foundation-utils.inactivityservice.stop.md)
4
+
5
+ ## InactivityService.stop() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ stop(): void;
11
+ ```
12
+ **Returns:**
13
+
14
+ void
15
+
@@ -59,6 +59,33 @@ Default implementation of the ShortcutManager interface
59
59
  A custom element that listens for keyboard shortcuts.
60
60
 
61
61
 
62
+ </td></tr>
63
+ <tr><td>
64
+
65
+ [InactivityDialog](./foundation-utils.inactivitydialog.md)
66
+
67
+
68
+ </td><td>
69
+
70
+
71
+ </td></tr>
72
+ <tr><td>
73
+
74
+ [InactivityManager](./foundation-utils.inactivitymanager.md)
75
+
76
+
77
+ </td><td>
78
+
79
+
80
+ </td></tr>
81
+ <tr><td>
82
+
83
+ [InactivityService](./foundation-utils.inactivityservice.md)
84
+
85
+
86
+ </td><td>
87
+
88
+
62
89
  </td></tr>
63
90
  <tr><td>
64
91
 
@@ -673,6 +700,42 @@ DesignSystemModule.
673
700
 
674
701
 
675
702
 
703
+ </td></tr>
704
+ <tr><td>
705
+
706
+ [InactivityConfig](./foundation-utils.inactivityconfig.md)
707
+
708
+
709
+ </td><td>
710
+
711
+
712
+ </td></tr>
713
+ <tr><td>
714
+
715
+ [InactivityDialogOptions](./foundation-utils.inactivitydialogoptions.md)
716
+
717
+
718
+ </td><td>
719
+
720
+
721
+ </td></tr>
722
+ <tr><td>
723
+
724
+ [InactivityEvents](./foundation-utils.inactivityevents.md)
725
+
726
+
727
+ </td><td>
728
+
729
+
730
+ </td></tr>
731
+ <tr><td>
732
+
733
+ [InactivityManagerConfig](./foundation-utils.inactivitymanagerconfig.md)
734
+
735
+
736
+ </td><td>
737
+
738
+
676
739
  </td></tr>
677
740
  <tr><td>
678
741
 
@@ -389,6 +389,96 @@ export function getNumberFormatter(format: string, locale?: string | null): (par
389
389
  // @public
390
390
  export let HTTP_CONFIG: string;
391
391
 
392
+ // @public (undocumented)
393
+ export interface InactivityConfig {
394
+ // (undocumented)
395
+ timeoutMinutes: number;
396
+ // (undocumented)
397
+ warningMinutes: number;
398
+ }
399
+
400
+ // @public (undocumented)
401
+ export class InactivityDialog extends FASTElement {
402
+ // (undocumented)
403
+ disconnectedCallback(): void;
404
+ // (undocumented)
405
+ handleContinue(): void;
406
+ // (undocumented)
407
+ handleLogout(): void;
408
+ // (undocumented)
409
+ hide(): void;
410
+ // (undocumented)
411
+ isVisible: boolean;
412
+ // (undocumented)
413
+ remainingSeconds: number;
414
+ // (undocumented)
415
+ show(options: InactivityDialogOptions): void;
416
+ }
417
+
418
+ // @public (undocumented)
419
+ export interface InactivityDialogOptions {
420
+ // (undocumented)
421
+ onContinue: () => void;
422
+ // (undocumented)
423
+ onLogout: () => void;
424
+ // (undocumented)
425
+ remainingSeconds: number;
426
+ }
427
+
428
+ // @public (undocumented)
429
+ export interface InactivityEvents {
430
+ // (undocumented)
431
+ 'inactivity-reset': void;
432
+ // (undocumented)
433
+ 'inactivity-timeout': void;
434
+ // (undocumented)
435
+ 'inactivity-warning': {
436
+ remainingSeconds: number;
437
+ };
438
+ }
439
+
440
+ // @public (undocumented)
441
+ export class InactivityManager {
442
+ constructor(config: InactivityManagerConfig);
443
+ // (undocumented)
444
+ destroy(): void;
445
+ // (undocumented)
446
+ getService(): InactivityService;
447
+ // (undocumented)
448
+ isWarningVisible(): boolean;
449
+ // (undocumented)
450
+ reset(): void;
451
+ // (undocumented)
452
+ start(): void;
453
+ // (undocumented)
454
+ stop(): void;
455
+ }
456
+
457
+ // @public (undocumented)
458
+ export interface InactivityManagerConfig extends InactivityConfig {
459
+ // (undocumented)
460
+ onLogout: () => void;
461
+ }
462
+
463
+ // @public (undocumented)
464
+ export class InactivityService {
465
+ constructor(config: InactivityConfig);
466
+ // (undocumented)
467
+ destroy(): void;
468
+ // (undocumented)
469
+ off<K extends keyof InactivityEvents>(event: K, listener: EventListener_2<InactivityEvents[K]>): void;
470
+ // Warning: (ae-forgotten-export) The symbol "EventListener_2" needs to be exported by the entry point index.d.ts
471
+ //
472
+ // (undocumented)
473
+ on<K extends keyof InactivityEvents>(event: K, listener: EventListener_2<InactivityEvents[K]>): void;
474
+ // (undocumented)
475
+ resetTimer(): void;
476
+ // (undocumented)
477
+ start(): void;
478
+ // (undocumented)
479
+ stop(): void;
480
+ }
481
+
392
482
  // @public
393
483
  export const inIFrame: () => boolean;
394
484
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.320.0",
4
+ "version": "14.320.1-alpha-9a9ec86.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,18 +27,18 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.320.0",
31
- "@genesislcap/genx": "14.320.0",
32
- "@genesislcap/rollup-builder": "14.320.0",
33
- "@genesislcap/ts-builder": "14.320.0",
34
- "@genesislcap/uvu-playwright-builder": "14.320.0",
35
- "@genesislcap/vite-builder": "14.320.0",
36
- "@genesislcap/webpack-builder": "14.320.0",
30
+ "@genesislcap/foundation-testing": "14.320.1-alpha-9a9ec86.0",
31
+ "@genesislcap/genx": "14.320.1-alpha-9a9ec86.0",
32
+ "@genesislcap/rollup-builder": "14.320.1-alpha-9a9ec86.0",
33
+ "@genesislcap/ts-builder": "14.320.1-alpha-9a9ec86.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.320.1-alpha-9a9ec86.0",
35
+ "@genesislcap/vite-builder": "14.320.1-alpha-9a9ec86.0",
36
+ "@genesislcap/webpack-builder": "14.320.1-alpha-9a9ec86.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.320.0",
41
- "@genesislcap/foundation-logger": "14.320.0",
40
+ "@genesislcap/expression-builder": "14.320.1-alpha-9a9ec86.0",
41
+ "@genesislcap/foundation-logger": "14.320.1-alpha-9a9ec86.0",
42
42
  "@microsoft/fast-components": "2.30.6",
43
43
  "@microsoft/fast-element": "1.14.0",
44
44
  "@microsoft/fast-foundation": "2.49.6",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "customElements": "dist/custom-elements.json",
59
- "gitHead": "957aa7b2e81fa3c2915d5154be42c0500790127f"
59
+ "gitHead": "5efbc8d6545051c94d93ac60563fd36efcc96972"
60
60
  }