@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
@@ -127,6 +127,14 @@
|
|
127
127
|
"package": "./serializers"
|
128
128
|
}
|
129
129
|
},
|
130
|
+
{
|
131
|
+
"kind": "js",
|
132
|
+
"name": "*",
|
133
|
+
"declaration": {
|
134
|
+
"name": "*",
|
135
|
+
"package": "./shortcut-manager"
|
136
|
+
}
|
137
|
+
},
|
130
138
|
{
|
131
139
|
"kind": "js",
|
132
140
|
"name": "*",
|
@@ -458,126 +466,6 @@
|
|
458
466
|
}
|
459
467
|
]
|
460
468
|
},
|
461
|
-
{
|
462
|
-
"kind": "javascript-module",
|
463
|
-
"path": "src/design-system/design-system.ts",
|
464
|
-
"declarations": [
|
465
|
-
{
|
466
|
-
"kind": "function",
|
467
|
-
"name": "assureDesignSystem",
|
468
|
-
"return": {
|
469
|
-
"type": {
|
470
|
-
"text": "DesignSystemModule"
|
471
|
-
}
|
472
|
-
},
|
473
|
-
"parameters": [
|
474
|
-
{
|
475
|
-
"name": "module",
|
476
|
-
"type": {
|
477
|
-
"text": "DesignSystemModule"
|
478
|
-
}
|
479
|
-
}
|
480
|
-
],
|
481
|
-
"description": "assureDesignSystem.",
|
482
|
-
"privacy": "public"
|
483
|
-
},
|
484
|
-
{
|
485
|
-
"kind": "function",
|
486
|
-
"name": "getCurrentDesignSystem",
|
487
|
-
"return": {
|
488
|
-
"type": {
|
489
|
-
"text": ""
|
490
|
-
}
|
491
|
-
},
|
492
|
-
"parameters": [
|
493
|
-
{
|
494
|
-
"name": "element",
|
495
|
-
"type": {
|
496
|
-
"text": "HTMLElement"
|
497
|
-
},
|
498
|
-
"description": "The starting HTML element"
|
499
|
-
},
|
500
|
-
{
|
501
|
-
"name": "fallbackPrefix",
|
502
|
-
"type": {
|
503
|
-
"text": "string"
|
504
|
-
},
|
505
|
-
"description": "The prefix to fallback to if the provider is not available"
|
506
|
-
}
|
507
|
-
],
|
508
|
-
"description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
509
|
-
"privacy": "public"
|
510
|
-
},
|
511
|
-
{
|
512
|
-
"kind": "function",
|
513
|
-
"name": "getCurrentDesignSystemPrefix",
|
514
|
-
"return": {
|
515
|
-
"type": {
|
516
|
-
"text": ""
|
517
|
-
}
|
518
|
-
},
|
519
|
-
"parameters": [
|
520
|
-
{
|
521
|
-
"name": "element",
|
522
|
-
"type": {
|
523
|
-
"text": "HTMLElement"
|
524
|
-
},
|
525
|
-
"description": "The starting HTML element"
|
526
|
-
},
|
527
|
-
{
|
528
|
-
"name": "fallbackPrefix",
|
529
|
-
"type": {
|
530
|
-
"text": "string"
|
531
|
-
},
|
532
|
-
"description": "The prefix to fallback to if the provider is not available"
|
533
|
-
}
|
534
|
-
],
|
535
|
-
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
536
|
-
"privacy": "public"
|
537
|
-
}
|
538
|
-
],
|
539
|
-
"exports": [
|
540
|
-
{
|
541
|
-
"kind": "js",
|
542
|
-
"name": "assureDesignSystem",
|
543
|
-
"declaration": {
|
544
|
-
"name": "assureDesignSystem",
|
545
|
-
"module": "src/design-system/design-system.ts"
|
546
|
-
}
|
547
|
-
},
|
548
|
-
{
|
549
|
-
"kind": "js",
|
550
|
-
"name": "getCurrentDesignSystem",
|
551
|
-
"declaration": {
|
552
|
-
"name": "getCurrentDesignSystem",
|
553
|
-
"module": "src/design-system/design-system.ts"
|
554
|
-
}
|
555
|
-
},
|
556
|
-
{
|
557
|
-
"kind": "js",
|
558
|
-
"name": "getCurrentDesignSystemPrefix",
|
559
|
-
"declaration": {
|
560
|
-
"name": "getCurrentDesignSystemPrefix",
|
561
|
-
"module": "src/design-system/design-system.ts"
|
562
|
-
}
|
563
|
-
}
|
564
|
-
]
|
565
|
-
},
|
566
|
-
{
|
567
|
-
"kind": "javascript-module",
|
568
|
-
"path": "src/design-system/index.ts",
|
569
|
-
"declarations": [],
|
570
|
-
"exports": [
|
571
|
-
{
|
572
|
-
"kind": "js",
|
573
|
-
"name": "*",
|
574
|
-
"declaration": {
|
575
|
-
"name": "*",
|
576
|
-
"package": "./design-system"
|
577
|
-
}
|
578
|
-
}
|
579
|
-
]
|
580
|
-
},
|
581
469
|
{
|
582
470
|
"kind": "javascript-module",
|
583
471
|
"path": "src/env/index.ts",
|
@@ -1036,6 +924,126 @@
|
|
1036
924
|
}
|
1037
925
|
]
|
1038
926
|
},
|
927
|
+
{
|
928
|
+
"kind": "javascript-module",
|
929
|
+
"path": "src/design-system/design-system.ts",
|
930
|
+
"declarations": [
|
931
|
+
{
|
932
|
+
"kind": "function",
|
933
|
+
"name": "assureDesignSystem",
|
934
|
+
"return": {
|
935
|
+
"type": {
|
936
|
+
"text": "DesignSystemModule"
|
937
|
+
}
|
938
|
+
},
|
939
|
+
"parameters": [
|
940
|
+
{
|
941
|
+
"name": "module",
|
942
|
+
"type": {
|
943
|
+
"text": "DesignSystemModule"
|
944
|
+
}
|
945
|
+
}
|
946
|
+
],
|
947
|
+
"description": "assureDesignSystem.",
|
948
|
+
"privacy": "public"
|
949
|
+
},
|
950
|
+
{
|
951
|
+
"kind": "function",
|
952
|
+
"name": "getCurrentDesignSystem",
|
953
|
+
"return": {
|
954
|
+
"type": {
|
955
|
+
"text": ""
|
956
|
+
}
|
957
|
+
},
|
958
|
+
"parameters": [
|
959
|
+
{
|
960
|
+
"name": "element",
|
961
|
+
"type": {
|
962
|
+
"text": "HTMLElement"
|
963
|
+
},
|
964
|
+
"description": "The starting HTML element"
|
965
|
+
},
|
966
|
+
{
|
967
|
+
"name": "fallbackPrefix",
|
968
|
+
"type": {
|
969
|
+
"text": "string"
|
970
|
+
},
|
971
|
+
"description": "The prefix to fallback to if the provider is not available"
|
972
|
+
}
|
973
|
+
],
|
974
|
+
"description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
975
|
+
"privacy": "public"
|
976
|
+
},
|
977
|
+
{
|
978
|
+
"kind": "function",
|
979
|
+
"name": "getCurrentDesignSystemPrefix",
|
980
|
+
"return": {
|
981
|
+
"type": {
|
982
|
+
"text": ""
|
983
|
+
}
|
984
|
+
},
|
985
|
+
"parameters": [
|
986
|
+
{
|
987
|
+
"name": "element",
|
988
|
+
"type": {
|
989
|
+
"text": "HTMLElement"
|
990
|
+
},
|
991
|
+
"description": "The starting HTML element"
|
992
|
+
},
|
993
|
+
{
|
994
|
+
"name": "fallbackPrefix",
|
995
|
+
"type": {
|
996
|
+
"text": "string"
|
997
|
+
},
|
998
|
+
"description": "The prefix to fallback to if the provider is not available"
|
999
|
+
}
|
1000
|
+
],
|
1001
|
+
"description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
|
1002
|
+
"privacy": "public"
|
1003
|
+
}
|
1004
|
+
],
|
1005
|
+
"exports": [
|
1006
|
+
{
|
1007
|
+
"kind": "js",
|
1008
|
+
"name": "assureDesignSystem",
|
1009
|
+
"declaration": {
|
1010
|
+
"name": "assureDesignSystem",
|
1011
|
+
"module": "src/design-system/design-system.ts"
|
1012
|
+
}
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
"kind": "js",
|
1016
|
+
"name": "getCurrentDesignSystem",
|
1017
|
+
"declaration": {
|
1018
|
+
"name": "getCurrentDesignSystem",
|
1019
|
+
"module": "src/design-system/design-system.ts"
|
1020
|
+
}
|
1021
|
+
},
|
1022
|
+
{
|
1023
|
+
"kind": "js",
|
1024
|
+
"name": "getCurrentDesignSystemPrefix",
|
1025
|
+
"declaration": {
|
1026
|
+
"name": "getCurrentDesignSystemPrefix",
|
1027
|
+
"module": "src/design-system/design-system.ts"
|
1028
|
+
}
|
1029
|
+
}
|
1030
|
+
]
|
1031
|
+
},
|
1032
|
+
{
|
1033
|
+
"kind": "javascript-module",
|
1034
|
+
"path": "src/design-system/index.ts",
|
1035
|
+
"declarations": [],
|
1036
|
+
"exports": [
|
1037
|
+
{
|
1038
|
+
"kind": "js",
|
1039
|
+
"name": "*",
|
1040
|
+
"declaration": {
|
1041
|
+
"name": "*",
|
1042
|
+
"package": "./design-system"
|
1043
|
+
}
|
1044
|
+
}
|
1045
|
+
]
|
1046
|
+
},
|
1039
1047
|
{
|
1040
1048
|
"kind": "javascript-module",
|
1041
1049
|
"path": "src/error/errorMap.ts",
|
@@ -1865,7 +1873,7 @@
|
|
1865
1873
|
},
|
1866
1874
|
{
|
1867
1875
|
"kind": "javascript-module",
|
1868
|
-
"path": "src/
|
1876
|
+
"path": "src/shortcut-manager/index.ts",
|
1869
1877
|
"declarations": [],
|
1870
1878
|
"exports": [
|
1871
1879
|
{
|
@@ -1873,7 +1881,7 @@
|
|
1873
1881
|
"name": "*",
|
1874
1882
|
"declaration": {
|
1875
1883
|
"name": "*",
|
1876
|
-
"package": "./
|
1884
|
+
"package": "./shortcut-manager"
|
1877
1885
|
}
|
1878
1886
|
},
|
1879
1887
|
{
|
@@ -1881,21 +1889,595 @@
|
|
1881
1889
|
"name": "*",
|
1882
1890
|
"declaration": {
|
1883
1891
|
"name": "*",
|
1884
|
-
"package": "./
|
1892
|
+
"package": "./shortcut-listener"
|
1885
1893
|
}
|
1886
1894
|
}
|
1887
1895
|
]
|
1888
1896
|
},
|
1889
1897
|
{
|
1890
1898
|
"kind": "javascript-module",
|
1891
|
-
"path": "src/
|
1899
|
+
"path": "src/shortcut-manager/shortcut-listener.ts",
|
1892
1900
|
"declarations": [
|
1893
1901
|
{
|
1894
|
-
"kind": "
|
1895
|
-
"
|
1896
|
-
"
|
1897
|
-
|
1898
|
-
|
1902
|
+
"kind": "class",
|
1903
|
+
"description": "A custom element that listens for keyboard shortcuts.",
|
1904
|
+
"name": "FoundationShortcutListener",
|
1905
|
+
"members": [
|
1906
|
+
{
|
1907
|
+
"kind": "field",
|
1908
|
+
"name": "shortcutManager",
|
1909
|
+
"type": {
|
1910
|
+
"text": "ShortcutManager"
|
1911
|
+
}
|
1912
|
+
},
|
1913
|
+
{
|
1914
|
+
"kind": "field",
|
1915
|
+
"name": "keyListener",
|
1916
|
+
"type": {
|
1917
|
+
"text": "((event: KeyboardEvent) => void) | null"
|
1918
|
+
},
|
1919
|
+
"privacy": "private",
|
1920
|
+
"default": "null"
|
1921
|
+
},
|
1922
|
+
{
|
1923
|
+
"kind": "field",
|
1924
|
+
"name": "isListening",
|
1925
|
+
"type": {
|
1926
|
+
"text": "boolean"
|
1927
|
+
},
|
1928
|
+
"privacy": "private",
|
1929
|
+
"default": "false"
|
1930
|
+
},
|
1931
|
+
{
|
1932
|
+
"kind": "method",
|
1933
|
+
"name": "setupStateSubscription",
|
1934
|
+
"privacy": "private"
|
1935
|
+
},
|
1936
|
+
{
|
1937
|
+
"kind": "method",
|
1938
|
+
"name": "addKeyListener",
|
1939
|
+
"privacy": "private"
|
1940
|
+
},
|
1941
|
+
{
|
1942
|
+
"kind": "method",
|
1943
|
+
"name": "removeKeyListener",
|
1944
|
+
"privacy": "private"
|
1945
|
+
},
|
1946
|
+
{
|
1947
|
+
"kind": "method",
|
1948
|
+
"name": "handleKeyDown",
|
1949
|
+
"privacy": "private",
|
1950
|
+
"parameters": [
|
1951
|
+
{
|
1952
|
+
"name": "event",
|
1953
|
+
"type": {
|
1954
|
+
"text": "KeyboardEvent"
|
1955
|
+
}
|
1956
|
+
}
|
1957
|
+
]
|
1958
|
+
},
|
1959
|
+
{
|
1960
|
+
"kind": "method",
|
1961
|
+
"name": "extractKeyFromCode",
|
1962
|
+
"privacy": "private",
|
1963
|
+
"return": {
|
1964
|
+
"type": {
|
1965
|
+
"text": "string"
|
1966
|
+
}
|
1967
|
+
},
|
1968
|
+
"parameters": [
|
1969
|
+
{
|
1970
|
+
"name": "code",
|
1971
|
+
"type": {
|
1972
|
+
"text": "string"
|
1973
|
+
}
|
1974
|
+
}
|
1975
|
+
]
|
1976
|
+
},
|
1977
|
+
{
|
1978
|
+
"kind": "method",
|
1979
|
+
"name": "isInputElement",
|
1980
|
+
"privacy": "private",
|
1981
|
+
"return": {
|
1982
|
+
"type": {
|
1983
|
+
"text": "boolean"
|
1984
|
+
}
|
1985
|
+
},
|
1986
|
+
"parameters": [
|
1987
|
+
{
|
1988
|
+
"name": "element",
|
1989
|
+
"type": {
|
1990
|
+
"text": "HTMLElement | null"
|
1991
|
+
}
|
1992
|
+
}
|
1993
|
+
]
|
1994
|
+
}
|
1995
|
+
],
|
1996
|
+
"superclass": {
|
1997
|
+
"name": "FASTElement",
|
1998
|
+
"package": "@microsoft/fast-element"
|
1999
|
+
},
|
2000
|
+
"tagName": "foundation-shortcut-listener",
|
2001
|
+
"customElement": true
|
2002
|
+
}
|
2003
|
+
],
|
2004
|
+
"exports": [
|
2005
|
+
{
|
2006
|
+
"kind": "js",
|
2007
|
+
"name": "FoundationShortcutListener",
|
2008
|
+
"declaration": {
|
2009
|
+
"name": "FoundationShortcutListener",
|
2010
|
+
"module": "src/shortcut-manager/shortcut-listener.ts"
|
2011
|
+
}
|
2012
|
+
},
|
2013
|
+
{
|
2014
|
+
"kind": "custom-element-definition",
|
2015
|
+
"name": "foundation-shortcut-listener",
|
2016
|
+
"declaration": {
|
2017
|
+
"name": "FoundationShortcutListener",
|
2018
|
+
"module": "src/shortcut-manager/shortcut-listener.ts"
|
2019
|
+
}
|
2020
|
+
}
|
2021
|
+
]
|
2022
|
+
},
|
2023
|
+
{
|
2024
|
+
"kind": "javascript-module",
|
2025
|
+
"path": "src/shortcut-manager/shortcut-manager.ts",
|
2026
|
+
"declarations": [
|
2027
|
+
{
|
2028
|
+
"kind": "class",
|
2029
|
+
"description": "Default implementation of the ShortcutManager interface",
|
2030
|
+
"name": "DefaultShortcutManager",
|
2031
|
+
"members": [
|
2032
|
+
{
|
2033
|
+
"kind": "field",
|
2034
|
+
"name": "shortcuts",
|
2035
|
+
"privacy": "private",
|
2036
|
+
"default": "new Map<string, Map<string, ShortcutDefinition>>()"
|
2037
|
+
},
|
2038
|
+
{
|
2039
|
+
"kind": "field",
|
2040
|
+
"name": "shortcutLookup",
|
2041
|
+
"privacy": "private",
|
2042
|
+
"default": "new Map<string, ShortcutDefinition>()"
|
2043
|
+
},
|
2044
|
+
{
|
2045
|
+
"kind": "field",
|
2046
|
+
"name": "keyCombinationMap",
|
2047
|
+
"privacy": "private",
|
2048
|
+
"default": "new Map<string, Set<string>>()"
|
2049
|
+
},
|
2050
|
+
{
|
2051
|
+
"kind": "field",
|
2052
|
+
"name": "_isPausedSubject",
|
2053
|
+
"privacy": "private",
|
2054
|
+
"default": "new BehaviorSubject<boolean>(false)"
|
2055
|
+
},
|
2056
|
+
{
|
2057
|
+
"kind": "field",
|
2058
|
+
"name": "_activeContext",
|
2059
|
+
"type": {
|
2060
|
+
"text": "string | undefined"
|
2061
|
+
},
|
2062
|
+
"privacy": "private"
|
2063
|
+
},
|
2064
|
+
{
|
2065
|
+
"kind": "field",
|
2066
|
+
"name": "isPaused",
|
2067
|
+
"type": {
|
2068
|
+
"text": "boolean"
|
2069
|
+
},
|
2070
|
+
"readonly": true
|
2071
|
+
},
|
2072
|
+
{
|
2073
|
+
"kind": "field",
|
2074
|
+
"name": "isPaused$",
|
2075
|
+
"type": {
|
2076
|
+
"text": "Observable<boolean>"
|
2077
|
+
},
|
2078
|
+
"readonly": true
|
2079
|
+
},
|
2080
|
+
{
|
2081
|
+
"kind": "field",
|
2082
|
+
"name": "isPausedSubject",
|
2083
|
+
"type": {
|
2084
|
+
"text": "BehaviorSubject<boolean>"
|
2085
|
+
},
|
2086
|
+
"readonly": true
|
2087
|
+
},
|
2088
|
+
{
|
2089
|
+
"kind": "method",
|
2090
|
+
"name": "registerShortcuts",
|
2091
|
+
"return": {
|
2092
|
+
"type": {
|
2093
|
+
"text": "void"
|
2094
|
+
}
|
2095
|
+
},
|
2096
|
+
"parameters": [
|
2097
|
+
{
|
2098
|
+
"name": "shortcuts",
|
2099
|
+
"type": {
|
2100
|
+
"text": "ShortcutDefinition[]"
|
2101
|
+
}
|
2102
|
+
}
|
2103
|
+
]
|
2104
|
+
},
|
2105
|
+
{
|
2106
|
+
"kind": "method",
|
2107
|
+
"name": "registerShortcut",
|
2108
|
+
"return": {
|
2109
|
+
"type": {
|
2110
|
+
"text": "ShortcutRegistrationResult"
|
2111
|
+
}
|
2112
|
+
},
|
2113
|
+
"parameters": [
|
2114
|
+
{
|
2115
|
+
"name": "shortcut",
|
2116
|
+
"type": {
|
2117
|
+
"text": "ShortcutDefinition"
|
2118
|
+
}
|
2119
|
+
}
|
2120
|
+
]
|
2121
|
+
},
|
2122
|
+
{
|
2123
|
+
"kind": "method",
|
2124
|
+
"name": "unregisterShortcut",
|
2125
|
+
"return": {
|
2126
|
+
"type": {
|
2127
|
+
"text": "void"
|
2128
|
+
}
|
2129
|
+
},
|
2130
|
+
"parameters": [
|
2131
|
+
{
|
2132
|
+
"name": "context",
|
2133
|
+
"type": {
|
2134
|
+
"text": "string"
|
2135
|
+
}
|
2136
|
+
},
|
2137
|
+
{
|
2138
|
+
"name": "id",
|
2139
|
+
"type": {
|
2140
|
+
"text": "string"
|
2141
|
+
}
|
2142
|
+
}
|
2143
|
+
]
|
2144
|
+
},
|
2145
|
+
{
|
2146
|
+
"kind": "method",
|
2147
|
+
"name": "unregisterShortcutsByContext",
|
2148
|
+
"return": {
|
2149
|
+
"type": {
|
2150
|
+
"text": "void"
|
2151
|
+
}
|
2152
|
+
},
|
2153
|
+
"parameters": [
|
2154
|
+
{
|
2155
|
+
"name": "context",
|
2156
|
+
"type": {
|
2157
|
+
"text": "string"
|
2158
|
+
}
|
2159
|
+
}
|
2160
|
+
]
|
2161
|
+
},
|
2162
|
+
{
|
2163
|
+
"kind": "method",
|
2164
|
+
"name": "executeShortcut",
|
2165
|
+
"return": {
|
2166
|
+
"type": {
|
2167
|
+
"text": "void"
|
2168
|
+
}
|
2169
|
+
},
|
2170
|
+
"parameters": [
|
2171
|
+
{
|
2172
|
+
"name": "id",
|
2173
|
+
"type": {
|
2174
|
+
"text": "string"
|
2175
|
+
}
|
2176
|
+
}
|
2177
|
+
]
|
2178
|
+
},
|
2179
|
+
{
|
2180
|
+
"kind": "method",
|
2181
|
+
"name": "executeShortcutByContext",
|
2182
|
+
"return": {
|
2183
|
+
"type": {
|
2184
|
+
"text": "void"
|
2185
|
+
}
|
2186
|
+
},
|
2187
|
+
"parameters": [
|
2188
|
+
{
|
2189
|
+
"name": "context",
|
2190
|
+
"type": {
|
2191
|
+
"text": "string"
|
2192
|
+
}
|
2193
|
+
},
|
2194
|
+
{
|
2195
|
+
"name": "id",
|
2196
|
+
"type": {
|
2197
|
+
"text": "string"
|
2198
|
+
}
|
2199
|
+
}
|
2200
|
+
]
|
2201
|
+
},
|
2202
|
+
{
|
2203
|
+
"kind": "method",
|
2204
|
+
"name": "getShortcuts",
|
2205
|
+
"return": {
|
2206
|
+
"type": {
|
2207
|
+
"text": "ShortcutDefinition[]"
|
2208
|
+
}
|
2209
|
+
}
|
2210
|
+
},
|
2211
|
+
{
|
2212
|
+
"kind": "method",
|
2213
|
+
"name": "getShortcutsByContext",
|
2214
|
+
"return": {
|
2215
|
+
"type": {
|
2216
|
+
"text": "ShortcutDefinition[]"
|
2217
|
+
}
|
2218
|
+
},
|
2219
|
+
"parameters": [
|
2220
|
+
{
|
2221
|
+
"name": "context",
|
2222
|
+
"type": {
|
2223
|
+
"text": "string"
|
2224
|
+
}
|
2225
|
+
}
|
2226
|
+
]
|
2227
|
+
},
|
2228
|
+
{
|
2229
|
+
"kind": "method",
|
2230
|
+
"name": "findShortcutByKeyCombination",
|
2231
|
+
"return": {
|
2232
|
+
"type": {
|
2233
|
+
"text": "ShortcutDefinition | undefined"
|
2234
|
+
}
|
2235
|
+
},
|
2236
|
+
"parameters": [
|
2237
|
+
{
|
2238
|
+
"name": "key",
|
2239
|
+
"type": {
|
2240
|
+
"text": "string"
|
2241
|
+
}
|
2242
|
+
},
|
2243
|
+
{
|
2244
|
+
"name": "ctrlKey",
|
2245
|
+
"default": "false"
|
2246
|
+
},
|
2247
|
+
{
|
2248
|
+
"name": "altKey",
|
2249
|
+
"default": "false"
|
2250
|
+
},
|
2251
|
+
{
|
2252
|
+
"name": "shiftKey",
|
2253
|
+
"default": "false"
|
2254
|
+
},
|
2255
|
+
{
|
2256
|
+
"name": "metaKey",
|
2257
|
+
"default": "false"
|
2258
|
+
}
|
2259
|
+
]
|
2260
|
+
},
|
2261
|
+
{
|
2262
|
+
"kind": "method",
|
2263
|
+
"name": "getContexts",
|
2264
|
+
"return": {
|
2265
|
+
"type": {
|
2266
|
+
"text": "string[]"
|
2267
|
+
}
|
2268
|
+
}
|
2269
|
+
},
|
2270
|
+
{
|
2271
|
+
"kind": "method",
|
2272
|
+
"name": "getShortcutsByContextMap",
|
2273
|
+
"return": {
|
2274
|
+
"type": {
|
2275
|
+
"text": "Map<string, Map<string, ShortcutDefinition>>"
|
2276
|
+
}
|
2277
|
+
}
|
2278
|
+
},
|
2279
|
+
{
|
2280
|
+
"kind": "method",
|
2281
|
+
"name": "registerContext",
|
2282
|
+
"return": {
|
2283
|
+
"type": {
|
2284
|
+
"text": "void"
|
2285
|
+
}
|
2286
|
+
},
|
2287
|
+
"parameters": [
|
2288
|
+
{
|
2289
|
+
"name": "context",
|
2290
|
+
"type": {
|
2291
|
+
"text": "string"
|
2292
|
+
}
|
2293
|
+
}
|
2294
|
+
]
|
2295
|
+
},
|
2296
|
+
{
|
2297
|
+
"kind": "method",
|
2298
|
+
"name": "setActiveContext",
|
2299
|
+
"return": {
|
2300
|
+
"type": {
|
2301
|
+
"text": "void"
|
2302
|
+
}
|
2303
|
+
},
|
2304
|
+
"parameters": [
|
2305
|
+
{
|
2306
|
+
"name": "context",
|
2307
|
+
"type": {
|
2308
|
+
"text": "string"
|
2309
|
+
}
|
2310
|
+
}
|
2311
|
+
]
|
2312
|
+
},
|
2313
|
+
{
|
2314
|
+
"kind": "method",
|
2315
|
+
"name": "getActiveContext",
|
2316
|
+
"return": {
|
2317
|
+
"type": {
|
2318
|
+
"text": "string | undefined"
|
2319
|
+
}
|
2320
|
+
}
|
2321
|
+
},
|
2322
|
+
{
|
2323
|
+
"kind": "method",
|
2324
|
+
"name": "clearActiveContext",
|
2325
|
+
"return": {
|
2326
|
+
"type": {
|
2327
|
+
"text": "void"
|
2328
|
+
}
|
2329
|
+
}
|
2330
|
+
},
|
2331
|
+
{
|
2332
|
+
"kind": "method",
|
2333
|
+
"name": "pause",
|
2334
|
+
"return": {
|
2335
|
+
"type": {
|
2336
|
+
"text": "void"
|
2337
|
+
}
|
2338
|
+
}
|
2339
|
+
},
|
2340
|
+
{
|
2341
|
+
"kind": "method",
|
2342
|
+
"name": "resume",
|
2343
|
+
"return": {
|
2344
|
+
"type": {
|
2345
|
+
"text": "void"
|
2346
|
+
}
|
2347
|
+
}
|
2348
|
+
},
|
2349
|
+
{
|
2350
|
+
"kind": "method",
|
2351
|
+
"name": "normalizeShortcutDefinition",
|
2352
|
+
"privacy": "private",
|
2353
|
+
"return": {
|
2354
|
+
"type": {
|
2355
|
+
"text": "ShortcutDefinition"
|
2356
|
+
}
|
2357
|
+
},
|
2358
|
+
"parameters": [
|
2359
|
+
{
|
2360
|
+
"name": "shortcut",
|
2361
|
+
"type": {
|
2362
|
+
"text": "ShortcutDefinition"
|
2363
|
+
}
|
2364
|
+
}
|
2365
|
+
],
|
2366
|
+
"description": "Normalizes a shortcut definition to handle option/alt equivalence\nIf optionKey is set, altKey will also be set to true (and vice versa)"
|
2367
|
+
},
|
2368
|
+
{
|
2369
|
+
"kind": "method",
|
2370
|
+
"name": "createKeyCombinationKey",
|
2371
|
+
"privacy": "private",
|
2372
|
+
"return": {
|
2373
|
+
"type": {
|
2374
|
+
"text": "string"
|
2375
|
+
}
|
2376
|
+
},
|
2377
|
+
"parameters": [
|
2378
|
+
{
|
2379
|
+
"name": "key",
|
2380
|
+
"type": {
|
2381
|
+
"text": "string"
|
2382
|
+
}
|
2383
|
+
},
|
2384
|
+
{
|
2385
|
+
"name": "ctrlKey",
|
2386
|
+
"default": "false"
|
2387
|
+
},
|
2388
|
+
{
|
2389
|
+
"name": "altKey",
|
2390
|
+
"default": "false"
|
2391
|
+
},
|
2392
|
+
{
|
2393
|
+
"name": "shiftKey",
|
2394
|
+
"default": "false"
|
2395
|
+
},
|
2396
|
+
{
|
2397
|
+
"name": "metaKey",
|
2398
|
+
"default": "false"
|
2399
|
+
}
|
2400
|
+
]
|
2401
|
+
},
|
2402
|
+
{
|
2403
|
+
"kind": "method",
|
2404
|
+
"name": "isElementFocused",
|
2405
|
+
"privacy": "private",
|
2406
|
+
"return": {
|
2407
|
+
"type": {
|
2408
|
+
"text": "boolean"
|
2409
|
+
}
|
2410
|
+
},
|
2411
|
+
"parameters": [
|
2412
|
+
{
|
2413
|
+
"name": "element",
|
2414
|
+
"type": {
|
2415
|
+
"text": "HTMLElement"
|
2416
|
+
}
|
2417
|
+
}
|
2418
|
+
]
|
2419
|
+
}
|
2420
|
+
]
|
2421
|
+
},
|
2422
|
+
{
|
2423
|
+
"kind": "variable",
|
2424
|
+
"name": "ShortcutManager",
|
2425
|
+
"description": "A dependency injection token for the ShortcutManager interface.",
|
2426
|
+
"privacy": "public"
|
2427
|
+
}
|
2428
|
+
],
|
2429
|
+
"exports": [
|
2430
|
+
{
|
2431
|
+
"kind": "js",
|
2432
|
+
"name": "DefaultShortcutManager",
|
2433
|
+
"declaration": {
|
2434
|
+
"name": "DefaultShortcutManager",
|
2435
|
+
"module": "src/shortcut-manager/shortcut-manager.ts"
|
2436
|
+
}
|
2437
|
+
},
|
2438
|
+
{
|
2439
|
+
"kind": "js",
|
2440
|
+
"name": "ShortcutManager",
|
2441
|
+
"declaration": {
|
2442
|
+
"name": "ShortcutManager",
|
2443
|
+
"module": "src/shortcut-manager/shortcut-manager.ts"
|
2444
|
+
}
|
2445
|
+
}
|
2446
|
+
]
|
2447
|
+
},
|
2448
|
+
{
|
2449
|
+
"kind": "javascript-module",
|
2450
|
+
"path": "src/state/index.ts",
|
2451
|
+
"declarations": [],
|
2452
|
+
"exports": [
|
2453
|
+
{
|
2454
|
+
"kind": "js",
|
2455
|
+
"name": "*",
|
2456
|
+
"declaration": {
|
2457
|
+
"name": "*",
|
2458
|
+
"package": "./reactive"
|
2459
|
+
}
|
2460
|
+
},
|
2461
|
+
{
|
2462
|
+
"kind": "js",
|
2463
|
+
"name": "*",
|
2464
|
+
"declaration": {
|
2465
|
+
"name": "*",
|
2466
|
+
"package": "./visitor"
|
2467
|
+
}
|
2468
|
+
}
|
2469
|
+
]
|
2470
|
+
},
|
2471
|
+
{
|
2472
|
+
"kind": "javascript-module",
|
2473
|
+
"path": "src/state/reactive.ts",
|
2474
|
+
"declarations": [
|
2475
|
+
{
|
2476
|
+
"kind": "function",
|
2477
|
+
"name": "reactive",
|
2478
|
+
"return": {
|
2479
|
+
"type": {
|
2480
|
+
"text": ""
|
1899
2481
|
}
|
1900
2482
|
},
|
1901
2483
|
"parameters": [
|
@@ -2444,6 +3026,105 @@
|
|
2444
3026
|
}
|
2445
3027
|
]
|
2446
3028
|
},
|
3029
|
+
{
|
3030
|
+
"kind": "javascript-module",
|
3031
|
+
"path": "src/utils/os-platform.ts",
|
3032
|
+
"declarations": [
|
3033
|
+
{
|
3034
|
+
"kind": "class",
|
3035
|
+
"description": "Platform detection utilities for cross-platform compatibility",
|
3036
|
+
"name": "OperatingSystemUtils",
|
3037
|
+
"members": [
|
3038
|
+
{
|
3039
|
+
"kind": "field",
|
3040
|
+
"name": "isMacOS",
|
3041
|
+
"type": {
|
3042
|
+
"text": "boolean"
|
3043
|
+
},
|
3044
|
+
"static": true,
|
3045
|
+
"description": "Detects if the current platform is macOS",
|
3046
|
+
"readonly": true
|
3047
|
+
},
|
3048
|
+
{
|
3049
|
+
"kind": "field",
|
3050
|
+
"name": "isWindows",
|
3051
|
+
"type": {
|
3052
|
+
"text": "boolean"
|
3053
|
+
},
|
3054
|
+
"static": true,
|
3055
|
+
"description": "Detects if the current platform is Windows",
|
3056
|
+
"readonly": true
|
3057
|
+
},
|
3058
|
+
{
|
3059
|
+
"kind": "field",
|
3060
|
+
"name": "isLinux",
|
3061
|
+
"type": {
|
3062
|
+
"text": "boolean"
|
3063
|
+
},
|
3064
|
+
"static": true,
|
3065
|
+
"description": "Detects if the current platform is Linux",
|
3066
|
+
"readonly": true
|
3067
|
+
},
|
3068
|
+
{
|
3069
|
+
"kind": "method",
|
3070
|
+
"name": "getModifierSymbols",
|
3071
|
+
"static": true,
|
3072
|
+
"return": {
|
3073
|
+
"type": {
|
3074
|
+
"text": "{\n ctrl: string;\n alt: string;\n shift: string;\n meta: string;\n }"
|
3075
|
+
}
|
3076
|
+
},
|
3077
|
+
"description": "Gets the appropriate modifier key symbols for the current platform"
|
3078
|
+
},
|
3079
|
+
{
|
3080
|
+
"kind": "method",
|
3081
|
+
"name": "formatKeyCombination",
|
3082
|
+
"static": true,
|
3083
|
+
"return": {
|
3084
|
+
"type": {
|
3085
|
+
"text": "string"
|
3086
|
+
}
|
3087
|
+
},
|
3088
|
+
"parameters": [
|
3089
|
+
{
|
3090
|
+
"name": "key",
|
3091
|
+
"type": {
|
3092
|
+
"text": "string"
|
3093
|
+
}
|
3094
|
+
},
|
3095
|
+
{
|
3096
|
+
"name": "ctrlKey",
|
3097
|
+
"default": "false"
|
3098
|
+
},
|
3099
|
+
{
|
3100
|
+
"name": "altKey",
|
3101
|
+
"default": "false"
|
3102
|
+
},
|
3103
|
+
{
|
3104
|
+
"name": "shiftKey",
|
3105
|
+
"default": "false"
|
3106
|
+
},
|
3107
|
+
{
|
3108
|
+
"name": "metaKey",
|
3109
|
+
"default": "false"
|
3110
|
+
}
|
3111
|
+
],
|
3112
|
+
"description": "Formats a key combination with platform-appropriate symbols"
|
3113
|
+
}
|
3114
|
+
]
|
3115
|
+
}
|
3116
|
+
],
|
3117
|
+
"exports": [
|
3118
|
+
{
|
3119
|
+
"kind": "js",
|
3120
|
+
"name": "OperatingSystemUtils",
|
3121
|
+
"declaration": {
|
3122
|
+
"name": "OperatingSystemUtils",
|
3123
|
+
"module": "src/utils/os-platform.ts"
|
3124
|
+
}
|
3125
|
+
}
|
3126
|
+
]
|
3127
|
+
},
|
2447
3128
|
{
|
2448
3129
|
"kind": "javascript-module",
|
2449
3130
|
"path": "src/uuid/index.ts",
|