@genesislcap/foundation-utils 14.310.2 → 14.311.1-alpha-3bdf18f.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 +841 -160
- 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
@@ -1,3 +1,4 @@
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
1
2
|
import { Binding } from '@microsoft/fast-element';
|
2
3
|
import { CaptureType } from '@microsoft/fast-element';
|
3
4
|
import { ComposableStyles } from '@microsoft/fast-element';
|
@@ -12,6 +13,7 @@ import type { JSONSchema7 } from 'json-schema';
|
|
12
13
|
import { Logger as Logger_2 } from '@genesislcap/foundation-logger';
|
13
14
|
import { LoggerOptions as LoggerOptions_2 } from '@genesislcap/foundation-logger';
|
14
15
|
import { LogLevel } from '@genesislcap/foundation-logger';
|
16
|
+
import { Observable } from 'rxjs';
|
15
17
|
import { SyntheticViewTemplate } from '@microsoft/fast-element';
|
16
18
|
import { Types } from '@genesislcap/expression-builder';
|
17
19
|
|
@@ -336,6 +338,45 @@ export declare class DefaultServerRowDTOMapper implements ServerRowDTOMapper {
|
|
336
338
|
toDTO: (entity: ServerRowEntity) => ServerRowDTO;
|
337
339
|
}
|
338
340
|
|
341
|
+
/**
|
342
|
+
* Default implementation of the ShortcutManager interface
|
343
|
+
* @public
|
344
|
+
*/
|
345
|
+
export declare class DefaultShortcutManager implements ShortcutManager {
|
346
|
+
private shortcuts;
|
347
|
+
private shortcutLookup;
|
348
|
+
private keyCombinationMap;
|
349
|
+
private _isPausedSubject;
|
350
|
+
private _activeContext;
|
351
|
+
get isPaused(): boolean;
|
352
|
+
get isPaused$(): Observable<boolean>;
|
353
|
+
get isPausedSubject(): BehaviorSubject<boolean>;
|
354
|
+
registerShortcuts(shortcuts: ShortcutDefinition[]): void;
|
355
|
+
registerShortcut(shortcut: ShortcutDefinition): ShortcutRegistrationResult;
|
356
|
+
unregisterShortcut(context: string, id: string): void;
|
357
|
+
unregisterShortcutsByContext(context: string): void;
|
358
|
+
executeShortcut(id: string): void;
|
359
|
+
executeShortcutByContext(context: string, id: string): void;
|
360
|
+
getShortcuts(): ShortcutDefinition[];
|
361
|
+
getShortcutsByContext(context: string): ShortcutDefinition[];
|
362
|
+
findShortcutByKeyCombination(key: string, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): ShortcutDefinition | undefined;
|
363
|
+
getContexts(): string[];
|
364
|
+
getShortcutsByContextMap(): Map<string, Map<string, ShortcutDefinition>>;
|
365
|
+
registerContext(context: string): void;
|
366
|
+
setActiveContext(context: string): void;
|
367
|
+
getActiveContext(): string | undefined;
|
368
|
+
clearActiveContext(): void;
|
369
|
+
pause(): void;
|
370
|
+
resume(): void;
|
371
|
+
/**
|
372
|
+
* Normalizes a shortcut definition to handle option/alt equivalence
|
373
|
+
* If optionKey is set, altKey will also be set to true (and vice versa)
|
374
|
+
*/
|
375
|
+
private normalizeShortcutDefinition;
|
376
|
+
private createKeyCombinationKey;
|
377
|
+
private isElementFocused;
|
378
|
+
}
|
379
|
+
|
339
380
|
/**
|
340
381
|
* Delay for a given number of milliseconds
|
341
382
|
* @param ms - The number of milliseconds to delay
|
@@ -519,6 +560,25 @@ export declare type FoundationLayoutContainer = {
|
|
519
560
|
_key: 'foundation-layout';
|
520
561
|
};
|
521
562
|
|
563
|
+
/**
|
564
|
+
* A custom element that listens for keyboard shortcuts.
|
565
|
+
* @public
|
566
|
+
* @remarks Part of the ShortcutManager Service.
|
567
|
+
*/
|
568
|
+
export declare class FoundationShortcutListener extends FASTElement {
|
569
|
+
shortcutManager: ShortcutManager;
|
570
|
+
private keyListener;
|
571
|
+
private isListening;
|
572
|
+
connectedCallback(): void;
|
573
|
+
disconnectedCallback(): void;
|
574
|
+
private setupStateSubscription;
|
575
|
+
private addKeyListener;
|
576
|
+
private removeKeyListener;
|
577
|
+
private handleKeyDown;
|
578
|
+
private extractKeyFromCode;
|
579
|
+
private isInputElement;
|
580
|
+
}
|
581
|
+
|
522
582
|
/** @public */
|
523
583
|
export declare namespace Genesis {
|
524
584
|
const genesisFieldTypes: readonly ["STRING", "ENUM", "INT", "SHORT", "DOUBLE", "LONG", "BOOLEAN", "BIGDECIMAL", "DATE", "DATETIME", "RAW", "NANO_TIMESTAMP"];
|
@@ -2000,6 +2060,91 @@ export declare type ServerRowEntity = {
|
|
2000
2060
|
};
|
2001
2061
|
};
|
2002
2062
|
|
2063
|
+
/**
|
2064
|
+
* A definition of a keyboard shortcut
|
2065
|
+
* @public
|
2066
|
+
*/
|
2067
|
+
export declare interface ShortcutDefinition {
|
2068
|
+
id: string;
|
2069
|
+
key: string;
|
2070
|
+
ctrlKey?: boolean;
|
2071
|
+
altKey?: boolean;
|
2072
|
+
optionKey?: boolean;
|
2073
|
+
shiftKey?: boolean;
|
2074
|
+
metaKey?: boolean;
|
2075
|
+
description: string;
|
2076
|
+
action: () => void;
|
2077
|
+
context: string;
|
2078
|
+
priority?: number;
|
2079
|
+
elementRef?: HTMLElement;
|
2080
|
+
canExecute?: () => ShortcutExecutionStatus;
|
2081
|
+
}
|
2082
|
+
|
2083
|
+
/**
|
2084
|
+
* A type which represents the disabled status and tooltip of an item
|
2085
|
+
* @public
|
2086
|
+
* */
|
2087
|
+
export declare type ShortcutExecutionStatus = {
|
2088
|
+
disabled?: boolean;
|
2089
|
+
tooltip?: string;
|
2090
|
+
};
|
2091
|
+
|
2092
|
+
/**
|
2093
|
+
* Interface of a manager for keyboard shortcuts
|
2094
|
+
* @public
|
2095
|
+
*/
|
2096
|
+
export declare interface ShortcutManager {
|
2097
|
+
registerShortcuts(shortcuts: ShortcutDefinition[]): void;
|
2098
|
+
registerShortcut(shortcut: ShortcutDefinition): ShortcutRegistrationResult;
|
2099
|
+
unregisterShortcut(context: string, id: string): void;
|
2100
|
+
unregisterShortcutsByContext(context: string): void;
|
2101
|
+
/**
|
2102
|
+
* Execute a shortcut by its id
|
2103
|
+
* @param id - The id of the shortcut to execute
|
2104
|
+
* @remarks This method will execute the shortcut in the active context
|
2105
|
+
*/
|
2106
|
+
executeShortcut(id: string): void;
|
2107
|
+
/**
|
2108
|
+
* Execute a shortcut by its id and context
|
2109
|
+
* @param context - The context of the shortcut to execute
|
2110
|
+
* @param id - The id of the shortcut to execute
|
2111
|
+
*/
|
2112
|
+
executeShortcutByContext(context: string, id: string): void;
|
2113
|
+
getShortcuts(): ShortcutDefinition[];
|
2114
|
+
getShortcutsByContext(context: string): ShortcutDefinition[];
|
2115
|
+
getContexts(): string[];
|
2116
|
+
getShortcutsByContextMap(): Map<string, Map<string, ShortcutDefinition>>;
|
2117
|
+
registerContext(context: string): void;
|
2118
|
+
setActiveContext(context: string): void;
|
2119
|
+
getActiveContext(): string | undefined;
|
2120
|
+
clearActiveContext(): void;
|
2121
|
+
findShortcutByKeyCombination(key: string, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): ShortcutDefinition | undefined;
|
2122
|
+
pause(): void;
|
2123
|
+
resume(): void;
|
2124
|
+
isPaused: boolean;
|
2125
|
+
isPaused$: Observable<boolean>;
|
2126
|
+
isPausedSubject: BehaviorSubject<boolean>;
|
2127
|
+
}
|
2128
|
+
|
2129
|
+
/**
|
2130
|
+
* A dependency injection token for the ShortcutManager interface.
|
2131
|
+
* @public
|
2132
|
+
*/
|
2133
|
+
export declare const ShortcutManager: InterfaceSymbol<ShortcutManager>;
|
2134
|
+
|
2135
|
+
/**
|
2136
|
+
* A result of registering a keyboard shortcut
|
2137
|
+
* @public
|
2138
|
+
*/
|
2139
|
+
export declare interface ShortcutRegistrationResult {
|
2140
|
+
shortcut: ShortcutDefinition;
|
2141
|
+
id: string;
|
2142
|
+
keyCombination: string;
|
2143
|
+
keyCombinationDisplay: string;
|
2144
|
+
disabled: () => boolean;
|
2145
|
+
tooltip: () => string | undefined;
|
2146
|
+
}
|
2147
|
+
|
2003
2148
|
/**
|
2004
2149
|
* A custom element that encapsulates a set of styles that can be applied to slotted elements.
|
2005
2150
|
* @public
|
@@ -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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [clearActiveContext](./foundation-utils.defaultshortcutmanager.clearactivecontext.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.clearActiveContext() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
clearActiveContext(): void;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
void
|
15
|
+
|
@@ -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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [executeShortcut](./foundation-utils.defaultshortcutmanager.executeshortcut.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.executeShortcut() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
executeShortcut(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
|
+
id
|
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,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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [executeShortcutByContext](./foundation-utils.defaultshortcutmanager.executeshortcutbycontext.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.executeShortcutByContext() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
executeShortcutByContext(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,114 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [findShortcutByKeyCombination](./foundation-utils.defaultshortcutmanager.findshortcutbykeycombination.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.findShortcutByKeyCombination() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
findShortcutByKeyCombination(key: string, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): ShortcutDefinition | undefined;
|
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
|
+
key
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
string
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
ctrlKey
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
boolean
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
_(Optional)_
|
58
|
+
|
59
|
+
|
60
|
+
</td></tr>
|
61
|
+
<tr><td>
|
62
|
+
|
63
|
+
altKey
|
64
|
+
|
65
|
+
|
66
|
+
</td><td>
|
67
|
+
|
68
|
+
boolean
|
69
|
+
|
70
|
+
|
71
|
+
</td><td>
|
72
|
+
|
73
|
+
_(Optional)_
|
74
|
+
|
75
|
+
|
76
|
+
</td></tr>
|
77
|
+
<tr><td>
|
78
|
+
|
79
|
+
shiftKey
|
80
|
+
|
81
|
+
|
82
|
+
</td><td>
|
83
|
+
|
84
|
+
boolean
|
85
|
+
|
86
|
+
|
87
|
+
</td><td>
|
88
|
+
|
89
|
+
_(Optional)_
|
90
|
+
|
91
|
+
|
92
|
+
</td></tr>
|
93
|
+
<tr><td>
|
94
|
+
|
95
|
+
metaKey
|
96
|
+
|
97
|
+
|
98
|
+
</td><td>
|
99
|
+
|
100
|
+
boolean
|
101
|
+
|
102
|
+
|
103
|
+
</td><td>
|
104
|
+
|
105
|
+
_(Optional)_
|
106
|
+
|
107
|
+
|
108
|
+
</td></tr>
|
109
|
+
</tbody></table>
|
110
|
+
|
111
|
+
**Returns:**
|
112
|
+
|
113
|
+
[ShortcutDefinition](./foundation-utils.shortcutdefinition.md) \| undefined
|
114
|
+
|
@@ -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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [getActiveContext](./foundation-utils.defaultshortcutmanager.getactivecontext.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.getActiveContext() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getActiveContext(): string | undefined;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
string \| undefined
|
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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [getContexts](./foundation-utils.defaultshortcutmanager.getcontexts.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.getContexts() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getContexts(): string[];
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
string\[\]
|
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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [getShortcuts](./foundation-utils.defaultshortcutmanager.getshortcuts.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.getShortcuts() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getShortcuts(): ShortcutDefinition[];
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
[ShortcutDefinition](./foundation-utils.shortcutdefinition.md)<!-- -->\[\]
|
15
|
+
|
@@ -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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [getShortcutsByContext](./foundation-utils.defaultshortcutmanager.getshortcutsbycontext.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.getShortcutsByContext() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getShortcutsByContext(context: string): ShortcutDefinition[];
|
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
|
+
[ShortcutDefinition](./foundation-utils.shortcutdefinition.md)<!-- -->\[\]
|
50
|
+
|
@@ -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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [getShortcutsByContextMap](./foundation-utils.defaultshortcutmanager.getshortcutsbycontextmap.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.getShortcutsByContextMap() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getShortcutsByContextMap(): Map<string, Map<string, ShortcutDefinition>>;
|
11
|
+
```
|
12
|
+
**Returns:**
|
13
|
+
|
14
|
+
Map<string, Map<string, [ShortcutDefinition](./foundation-utils.shortcutdefinition.md)<!-- -->>>
|
15
|
+
|
@@ -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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [isPaused](./foundation-utils.defaultshortcutmanager.ispaused.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.isPaused property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isPaused(): 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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [isPaused$](./foundation-utils.defaultshortcutmanager.ispaused_.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.isPaused$ property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isPaused$(): Observable<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) > [DefaultShortcutManager](./foundation-utils.defaultshortcutmanager.md) > [isPausedSubject](./foundation-utils.defaultshortcutmanager.ispausedsubject.md)
|
4
|
+
|
5
|
+
## DefaultShortcutManager.isPausedSubject property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get isPausedSubject(): BehaviorSubject<boolean>;
|
11
|
+
```
|