@genesislcap/foundation-utils 14.320.0 → 14.320.1-alpha-4df1e9d.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/dist/custom-elements.json +750 -122
- package/dist/dts/inactivity/inactivity-dialog.d.ts +24 -0
- package/dist/dts/inactivity/inactivity-dialog.d.ts.map +1 -0
- package/dist/dts/inactivity/inactivity-manager.d.ts +24 -0
- package/dist/dts/inactivity/inactivity-manager.d.ts.map +1 -0
- package/dist/dts/inactivity/inactivity-service.d.ts +34 -0
- package/dist/dts/inactivity/inactivity-service.d.ts.map +1 -0
- package/dist/dts/inactivity/index.d.ts +4 -0
- package/dist/dts/inactivity/index.d.ts.map +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/inactivity/inactivity-dialog.js +217 -0
- package/dist/esm/inactivity/inactivity-manager.js +83 -0
- package/dist/esm/inactivity/inactivity-service.js +128 -0
- package/dist/esm/inactivity/index.js +3 -0
- package/dist/esm/index.js +1 -0
- package/dist/foundation-utils.api.json +1248 -0
- package/dist/foundation-utils.d.ts +84 -0
- package/docs/api/foundation-utils.inactivityconfig.md +71 -0
- package/docs/api/foundation-utils.inactivityconfig.timeoutminutes.md +11 -0
- package/docs/api/foundation-utils.inactivityconfig.warningminutes.md +11 -0
- package/docs/api/foundation-utils.inactivitydialog.configure.md +50 -0
- package/docs/api/foundation-utils.inactivitydialog.disconnectedcallback.md +15 -0
- package/docs/api/foundation-utils.inactivitydialog.handlecontinue.md +15 -0
- package/docs/api/foundation-utils.inactivitydialog.handlelogout.md +15 -0
- package/docs/api/foundation-utils.inactivitydialog.hide.md +15 -0
- package/docs/api/foundation-utils.inactivitydialog.isvisible.md +11 -0
- package/docs/api/foundation-utils.inactivitydialog.md +164 -0
- package/docs/api/foundation-utils.inactivitydialog.remainingseconds.md +11 -0
- package/docs/api/foundation-utils.inactivitydialog.show.md +15 -0
- package/docs/api/foundation-utils.inactivitydialogoptions.md +88 -0
- package/docs/api/foundation-utils.inactivitydialogoptions.oncontinue.md +11 -0
- package/docs/api/foundation-utils.inactivitydialogoptions.onlogout.md +11 -0
- package/docs/api/foundation-utils.inactivitydialogoptions.remainingseconds.md +11 -0
- package/docs/api/foundation-utils.inactivityevents._inactivity-reset_.md +11 -0
- package/docs/api/foundation-utils.inactivityevents._inactivity-timeout_.md +11 -0
- package/docs/api/foundation-utils.inactivityevents._inactivity-warning_.md +13 -0
- package/docs/api/foundation-utils.inactivityevents.md +88 -0
- package/docs/api/foundation-utils.inactivitymanager._constructor_.md +48 -0
- package/docs/api/foundation-utils.inactivitymanager.destroy.md +15 -0
- package/docs/api/foundation-utils.inactivitymanager.getservice.md +15 -0
- package/docs/api/foundation-utils.inactivitymanager.iswarningvisible.md +15 -0
- package/docs/api/foundation-utils.inactivitymanager.md +138 -0
- package/docs/api/foundation-utils.inactivitymanager.reset.md +15 -0
- package/docs/api/foundation-utils.inactivitymanager.start.md +15 -0
- package/docs/api/foundation-utils.inactivitymanager.stop.md +15 -0
- package/docs/api/foundation-utils.inactivitymanagerconfig.md +55 -0
- package/docs/api/foundation-utils.inactivitymanagerconfig.onlogout.md +11 -0
- package/docs/api/foundation-utils.inactivityservice._constructor_.md +48 -0
- package/docs/api/foundation-utils.inactivityservice.destroy.md +15 -0
- package/docs/api/foundation-utils.inactivityservice.md +138 -0
- package/docs/api/foundation-utils.inactivityservice.off.md +64 -0
- package/docs/api/foundation-utils.inactivityservice.on.md +64 -0
- package/docs/api/foundation-utils.inactivityservice.resettimer.md +15 -0
- package/docs/api/foundation-utils.inactivityservice.start.md +15 -0
- package/docs/api/foundation-utils.inactivityservice.stop.md +15 -0
- package/docs/api/foundation-utils.md +63 -0
- package/docs/api-report.md.api.md +92 -0
- 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) > [@genesislcap/foundation-utils](./foundation-utils.md) > [InactivityService](./foundation-utils.inactivityservice.md) > [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<[InactivityEvents](./foundation-utils.inactivityevents.md)<!-- -->\[K\]>
|
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) > [@genesislcap/foundation-utils](./foundation-utils.md) > [InactivityService](./foundation-utils.inactivityservice.md) > [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) > [@genesislcap/foundation-utils](./foundation-utils.md) > [InactivityService](./foundation-utils.inactivityservice.md) > [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) > [@genesislcap/foundation-utils](./foundation-utils.md) > [InactivityService](./foundation-utils.inactivityservice.md) > [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,98 @@ 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
|
+
configure(options: InactivityDialogOptions): void;
|
404
|
+
// (undocumented)
|
405
|
+
disconnectedCallback(): void;
|
406
|
+
// (undocumented)
|
407
|
+
handleContinue(): void;
|
408
|
+
// (undocumented)
|
409
|
+
handleLogout(): void;
|
410
|
+
// (undocumented)
|
411
|
+
hide(): boolean;
|
412
|
+
// (undocumented)
|
413
|
+
isVisible: boolean;
|
414
|
+
// (undocumented)
|
415
|
+
remainingSeconds: number;
|
416
|
+
// (undocumented)
|
417
|
+
show(): boolean;
|
418
|
+
}
|
419
|
+
|
420
|
+
// @public (undocumented)
|
421
|
+
export interface InactivityDialogOptions {
|
422
|
+
// (undocumented)
|
423
|
+
onContinue: () => void;
|
424
|
+
// (undocumented)
|
425
|
+
onLogout: () => void;
|
426
|
+
// (undocumented)
|
427
|
+
remainingSeconds: number;
|
428
|
+
}
|
429
|
+
|
430
|
+
// @public (undocumented)
|
431
|
+
export interface InactivityEvents {
|
432
|
+
// (undocumented)
|
433
|
+
'inactivity-reset': void;
|
434
|
+
// (undocumented)
|
435
|
+
'inactivity-timeout': void;
|
436
|
+
// (undocumented)
|
437
|
+
'inactivity-warning': {
|
438
|
+
remainingSeconds: number;
|
439
|
+
};
|
440
|
+
}
|
441
|
+
|
442
|
+
// @public (undocumented)
|
443
|
+
export class InactivityManager {
|
444
|
+
constructor(config: InactivityManagerConfig);
|
445
|
+
// (undocumented)
|
446
|
+
destroy(): void;
|
447
|
+
// (undocumented)
|
448
|
+
getService(): InactivityService;
|
449
|
+
// (undocumented)
|
450
|
+
isWarningVisible(): boolean;
|
451
|
+
// (undocumented)
|
452
|
+
reset(): void;
|
453
|
+
// (undocumented)
|
454
|
+
start(): void;
|
455
|
+
// (undocumented)
|
456
|
+
stop(): void;
|
457
|
+
}
|
458
|
+
|
459
|
+
// @public (undocumented)
|
460
|
+
export interface InactivityManagerConfig extends InactivityConfig {
|
461
|
+
// (undocumented)
|
462
|
+
onLogout: () => void;
|
463
|
+
}
|
464
|
+
|
465
|
+
// @public (undocumented)
|
466
|
+
export class InactivityService {
|
467
|
+
constructor(config: InactivityConfig);
|
468
|
+
// (undocumented)
|
469
|
+
destroy(): void;
|
470
|
+
// (undocumented)
|
471
|
+
off<K extends keyof InactivityEvents>(event: K, listener: EventListener_2<InactivityEvents[K]>): void;
|
472
|
+
// Warning: (ae-forgotten-export) The symbol "EventListener_2" needs to be exported by the entry point index.d.ts
|
473
|
+
//
|
474
|
+
// (undocumented)
|
475
|
+
on<K extends keyof InactivityEvents>(event: K, listener: EventListener_2<InactivityEvents[K]>): void;
|
476
|
+
// (undocumented)
|
477
|
+
resetTimer(): void;
|
478
|
+
// (undocumented)
|
479
|
+
start(): void;
|
480
|
+
// (undocumented)
|
481
|
+
stop(): void;
|
482
|
+
}
|
483
|
+
|
392
484
|
// @public
|
393
485
|
export const inIFrame: () => boolean;
|
394
486
|
|
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-4df1e9d.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-4df1e9d.0",
|
31
|
+
"@genesislcap/genx": "14.320.1-alpha-4df1e9d.0",
|
32
|
+
"@genesislcap/rollup-builder": "14.320.1-alpha-4df1e9d.0",
|
33
|
+
"@genesislcap/ts-builder": "14.320.1-alpha-4df1e9d.0",
|
34
|
+
"@genesislcap/uvu-playwright-builder": "14.320.1-alpha-4df1e9d.0",
|
35
|
+
"@genesislcap/vite-builder": "14.320.1-alpha-4df1e9d.0",
|
36
|
+
"@genesislcap/webpack-builder": "14.320.1-alpha-4df1e9d.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-4df1e9d.0",
|
41
|
+
"@genesislcap/foundation-logger": "14.320.1-alpha-4df1e9d.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": "
|
59
|
+
"gitHead": "6ce8d86e2a7c584a30f1a5e2de10b22ff73a5c3d"
|
60
60
|
}
|