@genesislcap/foundation-utils 14.311.0 → 14.312.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 +810 -129
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/shortcut-manager/index.d.ts +3 -0
- package/dist/dts/shortcut-manager/index.d.ts.map +1 -0
- package/dist/dts/shortcut-manager/shortcut-listener.d.ts +21 -0
- package/dist/dts/shortcut-manager/shortcut-listener.d.ts.map +1 -0
- package/dist/dts/shortcut-manager/shortcut-manager.d.ts +120 -0
- package/dist/dts/shortcut-manager/shortcut-manager.d.ts.map +1 -0
- package/dist/dts/utils/os-platform.d.ts +31 -0
- package/dist/dts/utils/os-platform.d.ts.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/shortcut-manager/index.js +2 -0
- package/dist/esm/shortcut-manager/shortcut-listener.js +140 -0
- package/dist/esm/shortcut-manager/shortcut-manager.js +286 -0
- package/dist/esm/utils/os-platform.js +63 -0
- package/dist/foundation-utils.api.json +8414 -5799
- package/dist/foundation-utils.d.ts +145 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.clearactivecontext.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.executeshortcut.md +50 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.executeshortcutbycontext.md +64 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.findshortcutbykeycombination.md +114 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.getactivecontext.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.getcontexts.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.getshortcuts.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.getshortcutsbycontext.md +50 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.getshortcutsbycontextmap.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.ispaused.md +11 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.ispaused_.md +11 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.ispausedsubject.md +11 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.md +321 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.pause.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.registercontext.md +50 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.registershortcut.md +50 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.registershortcuts.md +50 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.resume.md +15 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.setactivecontext.md +50 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.unregistershortcut.md +64 -0
- package/docs/api/foundation-utils.defaultshortcutmanager.unregistershortcutsbycontext.md +50 -0
- package/docs/api/foundation-utils.foundationshortcutlistener.connectedcallback.md +15 -0
- package/docs/api/foundation-utils.foundationshortcutlistener.disconnectedcallback.md +15 -0
- package/docs/api/foundation-utils.foundationshortcutlistener.md +105 -0
- package/docs/api/foundation-utils.foundationshortcutlistener.shortcutmanager.md +11 -0
- package/docs/api/foundation-utils.md +77 -0
- package/docs/api/foundation-utils.shortcutdefinition.action.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.altkey.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.canexecute.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.context.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.ctrlkey.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.description.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.elementref.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.id.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.key.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.md +276 -0
- package/docs/api/foundation-utils.shortcutdefinition.metakey.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.optionkey.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.priority.md +11 -0
- package/docs/api/foundation-utils.shortcutdefinition.shiftkey.md +11 -0
- package/docs/api/foundation-utils.shortcutexecutionstatus.md +16 -0
- package/docs/api/foundation-utils.shortcutmanager.clearactivecontext.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.executeshortcut.md +58 -0
- package/docs/api/foundation-utils.shortcutmanager.executeshortcutbycontext.md +70 -0
- package/docs/api/foundation-utils.shortcutmanager.findshortcutbykeycombination.md +114 -0
- package/docs/api/foundation-utils.shortcutmanager.getactivecontext.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.getcontexts.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.getshortcuts.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.getshortcutsbycontext.md +50 -0
- package/docs/api/foundation-utils.shortcutmanager.getshortcutsbycontextmap.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.ispaused.md +11 -0
- package/docs/api/foundation-utils.shortcutmanager.ispaused_.md +11 -0
- package/docs/api/foundation-utils.shortcutmanager.ispausedsubject.md +11 -0
- package/docs/api/foundation-utils.shortcutmanager.md +13 -0
- package/docs/api/foundation-utils.shortcutmanager.pause.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.registercontext.md +50 -0
- package/docs/api/foundation-utils.shortcutmanager.registershortcut.md +50 -0
- package/docs/api/foundation-utils.shortcutmanager.registershortcuts.md +50 -0
- package/docs/api/foundation-utils.shortcutmanager.resume.md +15 -0
- package/docs/api/foundation-utils.shortcutmanager.setactivecontext.md +50 -0
- package/docs/api/foundation-utils.shortcutmanager.unregistershortcut.md +64 -0
- package/docs/api/foundation-utils.shortcutmanager.unregistershortcutsbycontext.md +50 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.disabled.md +11 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.id.md +11 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.keycombination.md +11 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.keycombinationdisplay.md +11 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.md +141 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.shortcut.md +11 -0
- package/docs/api/foundation-utils.shortcutregistrationresult.tooltip.md +11 -0
- package/docs/api-report.md.api.md +153 -0
- package/package.json +12 -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) > [ShortcutManager](./foundation-utils.shortcutmanager.md) > [unregisterShortcut](./foundation-utils.shortcutmanager.unregistershortcut.md)
|
4
|
+
|
5
|
+
## ShortcutManager.unregisterShortcut() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
unregisterShortcut(context: string, id: string): 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
|
+
context
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
string
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
id
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
string
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
|
58
|
+
</td></tr>
|
59
|
+
</tbody></table>
|
60
|
+
|
61
|
+
**Returns:**
|
62
|
+
|
63
|
+
void
|
64
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutManager](./foundation-utils.shortcutmanager.md) > [unregisterShortcutsByContext](./foundation-utils.shortcutmanager.unregistershortcutsbycontext.md)
|
4
|
+
|
5
|
+
## ShortcutManager.unregisterShortcutsByContext() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
unregisterShortcutsByContext(context: string): 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
|
+
context
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
string
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
</tbody></table>
|
46
|
+
|
47
|
+
**Returns:**
|
48
|
+
|
49
|
+
void
|
50
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md) > [disabled](./foundation-utils.shortcutregistrationresult.disabled.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult.disabled property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
disabled: () => boolean;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md) > [id](./foundation-utils.shortcutregistrationresult.id.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult.id property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
id: string;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md) > [keyCombination](./foundation-utils.shortcutregistrationresult.keycombination.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult.keyCombination property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
keyCombination: string;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md) > [keyCombinationDisplay](./foundation-utils.shortcutregistrationresult.keycombinationdisplay.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult.keyCombinationDisplay property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
keyCombinationDisplay: string;
|
11
|
+
```
|
@@ -0,0 +1,141 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult interface
|
6
|
+
|
7
|
+
A result of registering a keyboard shortcut
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export interface ShortcutRegistrationResult
|
13
|
+
```
|
14
|
+
|
15
|
+
## Properties
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Property
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Modifiers
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Type
|
30
|
+
|
31
|
+
|
32
|
+
</th><th>
|
33
|
+
|
34
|
+
Description
|
35
|
+
|
36
|
+
|
37
|
+
</th></tr></thead>
|
38
|
+
<tbody><tr><td>
|
39
|
+
|
40
|
+
[disabled](./foundation-utils.shortcutregistrationresult.disabled.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
() => boolean
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
|
54
|
+
</td></tr>
|
55
|
+
<tr><td>
|
56
|
+
|
57
|
+
[id](./foundation-utils.shortcutregistrationresult.id.md)
|
58
|
+
|
59
|
+
|
60
|
+
</td><td>
|
61
|
+
|
62
|
+
|
63
|
+
</td><td>
|
64
|
+
|
65
|
+
string
|
66
|
+
|
67
|
+
|
68
|
+
</td><td>
|
69
|
+
|
70
|
+
|
71
|
+
</td></tr>
|
72
|
+
<tr><td>
|
73
|
+
|
74
|
+
[keyCombination](./foundation-utils.shortcutregistrationresult.keycombination.md)
|
75
|
+
|
76
|
+
|
77
|
+
</td><td>
|
78
|
+
|
79
|
+
|
80
|
+
</td><td>
|
81
|
+
|
82
|
+
string
|
83
|
+
|
84
|
+
|
85
|
+
</td><td>
|
86
|
+
|
87
|
+
|
88
|
+
</td></tr>
|
89
|
+
<tr><td>
|
90
|
+
|
91
|
+
[keyCombinationDisplay](./foundation-utils.shortcutregistrationresult.keycombinationdisplay.md)
|
92
|
+
|
93
|
+
|
94
|
+
</td><td>
|
95
|
+
|
96
|
+
|
97
|
+
</td><td>
|
98
|
+
|
99
|
+
string
|
100
|
+
|
101
|
+
|
102
|
+
</td><td>
|
103
|
+
|
104
|
+
|
105
|
+
</td></tr>
|
106
|
+
<tr><td>
|
107
|
+
|
108
|
+
[shortcut](./foundation-utils.shortcutregistrationresult.shortcut.md)
|
109
|
+
|
110
|
+
|
111
|
+
</td><td>
|
112
|
+
|
113
|
+
|
114
|
+
</td><td>
|
115
|
+
|
116
|
+
[ShortcutDefinition](./foundation-utils.shortcutdefinition.md)
|
117
|
+
|
118
|
+
|
119
|
+
</td><td>
|
120
|
+
|
121
|
+
|
122
|
+
</td></tr>
|
123
|
+
<tr><td>
|
124
|
+
|
125
|
+
[tooltip](./foundation-utils.shortcutregistrationresult.tooltip.md)
|
126
|
+
|
127
|
+
|
128
|
+
</td><td>
|
129
|
+
|
130
|
+
|
131
|
+
</td><td>
|
132
|
+
|
133
|
+
() => string \| undefined
|
134
|
+
|
135
|
+
|
136
|
+
</td><td>
|
137
|
+
|
138
|
+
|
139
|
+
</td></tr>
|
140
|
+
</tbody></table>
|
141
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md) > [shortcut](./foundation-utils.shortcutregistrationresult.shortcut.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult.shortcut property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
shortcut: ShortcutDefinition;
|
11
|
+
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [ShortcutRegistrationResult](./foundation-utils.shortcutregistrationresult.md) > [tooltip](./foundation-utils.shortcutregistrationresult.tooltip.md)
|
4
|
+
|
5
|
+
## ShortcutRegistrationResult.tooltip property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
tooltip: () => string | undefined;
|
11
|
+
```
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
```ts
|
6
6
|
|
7
|
+
import { BehaviorSubject } from 'rxjs';
|
7
8
|
import { Binding } from '@microsoft/fast-element';
|
8
9
|
import { CaptureType } from '@microsoft/fast-element';
|
9
10
|
import { ComposableStyles } from '@microsoft/fast-element';
|
@@ -18,6 +19,7 @@ import type { JSONSchema7 } from 'json-schema';
|
|
18
19
|
import { Logger as Logger_2 } from '@genesislcap/foundation-logger';
|
19
20
|
import { LoggerOptions as LoggerOptions_2 } from '@genesislcap/foundation-logger';
|
20
21
|
import { LogLevel } from '@genesislcap/foundation-logger';
|
22
|
+
import { Observable } from 'rxjs';
|
21
23
|
import { SyntheticViewTemplate } from '@microsoft/fast-element';
|
22
24
|
import { Types } from '@genesislcap/expression-builder';
|
23
25
|
|
@@ -177,6 +179,50 @@ export class DefaultServerRowDTOMapper implements ServerRowDTOMapper {
|
|
177
179
|
toDTO: (entity: ServerRowEntity) => ServerRowDTO;
|
178
180
|
}
|
179
181
|
|
182
|
+
// @public
|
183
|
+
export class DefaultShortcutManager implements ShortcutManager {
|
184
|
+
// (undocumented)
|
185
|
+
clearActiveContext(): void;
|
186
|
+
// (undocumented)
|
187
|
+
executeShortcut(id: string): void;
|
188
|
+
// (undocumented)
|
189
|
+
executeShortcutByContext(context: string, id: string): void;
|
190
|
+
// (undocumented)
|
191
|
+
findShortcutByKeyCombination(key: string, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): ShortcutDefinition | undefined;
|
192
|
+
// (undocumented)
|
193
|
+
getActiveContext(): string | undefined;
|
194
|
+
// (undocumented)
|
195
|
+
getContexts(): string[];
|
196
|
+
// (undocumented)
|
197
|
+
getShortcuts(): ShortcutDefinition[];
|
198
|
+
// (undocumented)
|
199
|
+
getShortcutsByContext(context: string): ShortcutDefinition[];
|
200
|
+
// (undocumented)
|
201
|
+
getShortcutsByContextMap(): Map<string, Map<string, ShortcutDefinition>>;
|
202
|
+
// (undocumented)
|
203
|
+
get isPaused$(): Observable<boolean>;
|
204
|
+
// (undocumented)
|
205
|
+
get isPaused(): boolean;
|
206
|
+
// (undocumented)
|
207
|
+
get isPausedSubject(): BehaviorSubject<boolean>;
|
208
|
+
// (undocumented)
|
209
|
+
pause(): void;
|
210
|
+
// (undocumented)
|
211
|
+
registerContext(context: string): void;
|
212
|
+
// (undocumented)
|
213
|
+
registerShortcut(shortcut: ShortcutDefinition): ShortcutRegistrationResult;
|
214
|
+
// (undocumented)
|
215
|
+
registerShortcuts(shortcuts: ShortcutDefinition[]): void;
|
216
|
+
// (undocumented)
|
217
|
+
resume(): void;
|
218
|
+
// (undocumented)
|
219
|
+
setActiveContext(context: string): void;
|
220
|
+
// (undocumented)
|
221
|
+
unregisterShortcut(context: string, id: string): void;
|
222
|
+
// (undocumented)
|
223
|
+
unregisterShortcutsByContext(context: string): void;
|
224
|
+
}
|
225
|
+
|
180
226
|
// @public
|
181
227
|
export const delay: (ms: number) => Promise<void>;
|
182
228
|
|
@@ -285,6 +331,16 @@ export type FoundationLayoutContainer = {
|
|
285
331
|
_key: 'foundation-layout';
|
286
332
|
};
|
287
333
|
|
334
|
+
// @public
|
335
|
+
export class FoundationShortcutListener extends FASTElement {
|
336
|
+
// (undocumented)
|
337
|
+
connectedCallback(): void;
|
338
|
+
// (undocumented)
|
339
|
+
disconnectedCallback(): void;
|
340
|
+
// (undocumented)
|
341
|
+
shortcutManager: ShortcutManager;
|
342
|
+
}
|
343
|
+
|
288
344
|
// @public (undocumented)
|
289
345
|
export namespace Genesis {
|
290
346
|
const // (undocumented)
|
@@ -1290,6 +1346,103 @@ export type ServerRowEntity = {
|
|
1290
1346
|
};
|
1291
1347
|
};
|
1292
1348
|
|
1349
|
+
// @public
|
1350
|
+
export interface ShortcutDefinition {
|
1351
|
+
// (undocumented)
|
1352
|
+
action: () => void;
|
1353
|
+
// (undocumented)
|
1354
|
+
altKey?: boolean;
|
1355
|
+
// (undocumented)
|
1356
|
+
canExecute?: () => ShortcutExecutionStatus;
|
1357
|
+
// (undocumented)
|
1358
|
+
context: string;
|
1359
|
+
// (undocumented)
|
1360
|
+
ctrlKey?: boolean;
|
1361
|
+
// (undocumented)
|
1362
|
+
description: string;
|
1363
|
+
// (undocumented)
|
1364
|
+
elementRef?: HTMLElement;
|
1365
|
+
// (undocumented)
|
1366
|
+
id: string;
|
1367
|
+
// (undocumented)
|
1368
|
+
key: string;
|
1369
|
+
// (undocumented)
|
1370
|
+
metaKey?: boolean;
|
1371
|
+
// (undocumented)
|
1372
|
+
optionKey?: boolean;
|
1373
|
+
// (undocumented)
|
1374
|
+
priority?: number;
|
1375
|
+
// (undocumented)
|
1376
|
+
shiftKey?: boolean;
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
// @public
|
1380
|
+
export type ShortcutExecutionStatus = {
|
1381
|
+
disabled?: boolean;
|
1382
|
+
tooltip?: string;
|
1383
|
+
};
|
1384
|
+
|
1385
|
+
// @public
|
1386
|
+
export interface ShortcutManager {
|
1387
|
+
// (undocumented)
|
1388
|
+
clearActiveContext(): void;
|
1389
|
+
executeShortcut(id: string): void;
|
1390
|
+
executeShortcutByContext(context: string, id: string): void;
|
1391
|
+
// (undocumented)
|
1392
|
+
findShortcutByKeyCombination(key: string, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): ShortcutDefinition | undefined;
|
1393
|
+
// (undocumented)
|
1394
|
+
getActiveContext(): string | undefined;
|
1395
|
+
// (undocumented)
|
1396
|
+
getContexts(): string[];
|
1397
|
+
// (undocumented)
|
1398
|
+
getShortcuts(): ShortcutDefinition[];
|
1399
|
+
// (undocumented)
|
1400
|
+
getShortcutsByContext(context: string): ShortcutDefinition[];
|
1401
|
+
// (undocumented)
|
1402
|
+
getShortcutsByContextMap(): Map<string, Map<string, ShortcutDefinition>>;
|
1403
|
+
// (undocumented)
|
1404
|
+
isPaused$: Observable<boolean>;
|
1405
|
+
// (undocumented)
|
1406
|
+
isPaused: boolean;
|
1407
|
+
// (undocumented)
|
1408
|
+
isPausedSubject: BehaviorSubject<boolean>;
|
1409
|
+
// (undocumented)
|
1410
|
+
pause(): void;
|
1411
|
+
// (undocumented)
|
1412
|
+
registerContext(context: string): void;
|
1413
|
+
// (undocumented)
|
1414
|
+
registerShortcut(shortcut: ShortcutDefinition): ShortcutRegistrationResult;
|
1415
|
+
// (undocumented)
|
1416
|
+
registerShortcuts(shortcuts: ShortcutDefinition[]): void;
|
1417
|
+
// (undocumented)
|
1418
|
+
resume(): void;
|
1419
|
+
// (undocumented)
|
1420
|
+
setActiveContext(context: string): void;
|
1421
|
+
// (undocumented)
|
1422
|
+
unregisterShortcut(context: string, id: string): void;
|
1423
|
+
// (undocumented)
|
1424
|
+
unregisterShortcutsByContext(context: string): void;
|
1425
|
+
}
|
1426
|
+
|
1427
|
+
// @public
|
1428
|
+
export const ShortcutManager: InterfaceSymbol<ShortcutManager>;
|
1429
|
+
|
1430
|
+
// @public
|
1431
|
+
export interface ShortcutRegistrationResult {
|
1432
|
+
// (undocumented)
|
1433
|
+
disabled: () => boolean;
|
1434
|
+
// (undocumented)
|
1435
|
+
id: string;
|
1436
|
+
// (undocumented)
|
1437
|
+
keyCombination: string;
|
1438
|
+
// (undocumented)
|
1439
|
+
keyCombinationDisplay: string;
|
1440
|
+
// (undocumented)
|
1441
|
+
shortcut: ShortcutDefinition;
|
1442
|
+
// (undocumented)
|
1443
|
+
tooltip: () => string | undefined;
|
1444
|
+
}
|
1445
|
+
|
1293
1446
|
// @public
|
1294
1447
|
export class SlottedStyles extends FASTElement {
|
1295
1448
|
styles: ElementStyles;
|
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.
|
4
|
+
"version": "14.312.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -27,23 +27,24 @@
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@genesislcap/foundation-testing": "14.
|
31
|
-
"@genesislcap/genx": "14.
|
32
|
-
"@genesislcap/rollup-builder": "14.
|
33
|
-
"@genesislcap/ts-builder": "14.
|
34
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
35
|
-
"@genesislcap/vite-builder": "14.
|
36
|
-
"@genesislcap/webpack-builder": "14.
|
30
|
+
"@genesislcap/foundation-testing": "14.312.0",
|
31
|
+
"@genesislcap/genx": "14.312.0",
|
32
|
+
"@genesislcap/rollup-builder": "14.312.0",
|
33
|
+
"@genesislcap/ts-builder": "14.312.0",
|
34
|
+
"@genesislcap/uvu-playwright-builder": "14.312.0",
|
35
|
+
"@genesislcap/vite-builder": "14.312.0",
|
36
|
+
"@genesislcap/webpack-builder": "14.312.0",
|
37
37
|
"@types/json-schema": "^7.0.11"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@genesislcap/expression-builder": "14.
|
41
|
-
"@genesislcap/foundation-logger": "14.
|
40
|
+
"@genesislcap/expression-builder": "14.312.0",
|
41
|
+
"@genesislcap/foundation-logger": "14.312.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",
|
45
45
|
"lossless-json": "^2.0.11",
|
46
46
|
"numeral": "2.0.6",
|
47
|
+
"rxjs": "^7.5.4",
|
47
48
|
"uuid": "^8.3.2"
|
48
49
|
},
|
49
50
|
"repository": {
|
@@ -55,5 +56,5 @@
|
|
55
56
|
"access": "public"
|
56
57
|
},
|
57
58
|
"customElements": "dist/custom-elements.json",
|
58
|
-
"gitHead": "
|
59
|
+
"gitHead": "44a1ea77c99b761fb37ee5f211ab7a954c9289d0"
|
59
60
|
}
|