@eclipse-glsp/client 1.1.0-next.d3b810d.243 → 1.1.0-next.d81a1ea.249
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/css/autocomplete-palette.css +22 -0
- package/css/glsp-sprotty.css +16 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +8 -2
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +25 -6
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/features/accessibility/di.config.d.ts +21 -0
- package/lib/features/accessibility/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/di.config.js +34 -0
- package/lib/features/accessibility/di.config.js.map +1 -0
- package/lib/features/accessibility/move-zoom/di.config.d.ts +23 -0
- package/lib/features/accessibility/move-zoom/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/di.config.js +41 -0
- package/lib/features/accessibility/move-zoom/di.config.js.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.d.ts +81 -0
- package/lib/features/accessibility/move-zoom/move-handler.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.js +173 -0
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts +74 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.js +159 -0
- package/lib/features/accessibility/move-zoom/zoom-handler.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/di.config.d.ts +23 -0
- package/lib/features/accessibility/resize-key-tool/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/di.config.js +38 -0
- package/lib/features/accessibility/resize-key-tool/di.config.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts +55 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js +126 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +44 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +127 -0
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -0
- package/lib/features/accessibility/search/di.config.d.ts +20 -0
- package/lib/features/accessibility/search/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/search/di.config.js +33 -0
- package/lib/features/accessibility/search/di.config.js.map +1 -0
- package/lib/features/accessibility/search/search-palette.d.ts +47 -0
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-palette.js +155 -0
- package/lib/features/accessibility/search/search-palette.js.map +1 -0
- package/lib/features/accessibility/search/search-tool.d.ts +30 -0
- package/lib/features/accessibility/search/search-tool.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-tool.js +73 -0
- package/lib/features/accessibility/search/search-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts +35 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js +87 -0
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/di.config.d.ts +20 -0
- package/lib/features/accessibility/view-key-tools/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/di.config.js +35 -0
- package/lib/features/accessibility/view-key-tools/di.config.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +49 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js +131 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +43 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +109 -0
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts +35 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts.map +1 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js +18 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts +41 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js +82 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +1 -0
- package/lib/index.d.ts +12 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +62 -48
- package/lib/index.js.map +1 -1
- package/package.json +5 -3
- package/src/base/auto-complete/auto-complete-widget.ts +31 -7
- package/src/features/accessibility/README.md +65 -0
- package/src/features/accessibility/di.config.ts +32 -0
- package/src/features/accessibility/move-zoom/di.config.ts +43 -0
- package/src/features/accessibility/move-zoom/move-handler.ts +198 -0
- package/src/features/accessibility/move-zoom/zoom-handler.ts +178 -0
- package/src/features/accessibility/resize-key-tool/di.config.ts +37 -0
- package/src/features/accessibility/resize-key-tool/resize-key-handler.ts +120 -0
- package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +108 -0
- package/src/features/accessibility/search/di.config.ts +31 -0
- package/src/features/accessibility/search/search-palette.ts +181 -0
- package/src/features/accessibility/search/search-tool.ts +60 -0
- package/src/features/accessibility/view-key-tools/deselect-key-tool.ts +80 -0
- package/src/features/accessibility/view-key-tools/di.config.ts +33 -0
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +115 -0
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +94 -0
- package/src/features/autocomplete-palette/autocomplete-suggestion-providers.ts +37 -0
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +88 -0
- package/src/index.ts +17 -3
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.BaseAutocompletePalette = void 0;
|
|
28
|
+
const inversify_1 = require("inversify");
|
|
29
|
+
const sprotty_1 = require("sprotty");
|
|
30
|
+
require("../../../css/autocomplete-palette.css");
|
|
31
|
+
const action_dispatcher_1 = require("../../base/action-dispatcher");
|
|
32
|
+
const auto_complete_widget_1 = require("../../base/auto-complete/auto-complete-widget");
|
|
33
|
+
class BaseAutocompletePalette extends sprotty_1.AbstractUIExtension {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
this.autoSuggestionSettings = {
|
|
37
|
+
noSuggestionsMessage: 'No suggestions available',
|
|
38
|
+
suggestionsClass: 'command-palette-suggestions',
|
|
39
|
+
debounceWaitMs: 50,
|
|
40
|
+
showOnFocus: true
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
containerClass() {
|
|
44
|
+
return 'autocomplete-palette';
|
|
45
|
+
}
|
|
46
|
+
show(root, ...contextElementIds) {
|
|
47
|
+
super.show(root, ...contextElementIds);
|
|
48
|
+
this.root = root;
|
|
49
|
+
this.autocompleteWidget.open(root);
|
|
50
|
+
}
|
|
51
|
+
hide() {
|
|
52
|
+
this.autocompleteWidget.dispose();
|
|
53
|
+
this.root = undefined;
|
|
54
|
+
super.hide();
|
|
55
|
+
}
|
|
56
|
+
initializeContents(containerElement) {
|
|
57
|
+
containerElement.classList.add('command-palette');
|
|
58
|
+
this.autocompleteWidget = new auto_complete_widget_1.AutoCompleteWidget(this.autoSuggestionSettings, { provideSuggestions: input => this.retrieveSuggestions(this.root, input) }, { executeFromSuggestion: input => this.executeSuggestion(input) }, reason => this.autocompleteHide(reason), this.logger, {
|
|
59
|
+
visibleSuggestionsChanged: suggestions => this.visibleSuggestionsChanged(this.root, suggestions),
|
|
60
|
+
selectedSuggestionChanged: suggestion => this.selectedSuggestionChanged(this.root, suggestion)
|
|
61
|
+
});
|
|
62
|
+
this.autocompleteWidget.initialize(containerElement);
|
|
63
|
+
}
|
|
64
|
+
async visibleSuggestionsChanged(root, labeledActions) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
async selectedSuggestionChanged(root, labeledAction) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
autocompleteHide(reason) {
|
|
71
|
+
this.hide();
|
|
72
|
+
}
|
|
73
|
+
executeSuggestion(input) {
|
|
74
|
+
this.actionDispatcher.dispatchAll((0, auto_complete_widget_1.toActionArray)(input));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, inversify_1.inject)(sprotty_1.TYPES.IActionDispatcher),
|
|
79
|
+
__metadata("design:type", action_dispatcher_1.GLSPActionDispatcher)
|
|
80
|
+
], BaseAutocompletePalette.prototype, "actionDispatcher", void 0);
|
|
81
|
+
exports.BaseAutocompletePalette = BaseAutocompletePalette;
|
|
82
|
+
//# sourceMappingURL=base-autocomplete-palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-autocomplete-palette.js","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/base-autocomplete-palette.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAGlF,yCAAmC;AACnC,qCAAgF;AAChF,iDAA+C;AAC/C,oEAAoE;AACpE,wFAA+G;AAE/G,MAAsB,uBAAwB,SAAQ,6BAAmB;IAAzE;;QACuB,2BAAsB,GAAG;YACxC,oBAAoB,EAAE,0BAA0B;YAChD,gBAAgB,EAAE,6BAA6B;YAC/C,cAAc,EAAE,EAAE;YAClB,WAAW,EAAE,IAAI;SACpB,CAAC;IA0DN,CAAC;IAlDG,cAAc;QACV,OAAO,sBAAsB,CAAC;IAClC,CAAC;IAEQ,IAAI,CAAC,IAA0B,EAAE,GAAG,iBAA2B;QACpE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,iBAAiB,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC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IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,IAAA,oCAAa,EAAC,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC;CACJ;AArDG;IAAC,IAAA,kBAAM,EAAC,eAAK,CAAC,iBAAiB,CAAC;8BACJ,wCAAoB;iEAAC;AAZrD,0DAgEC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -14,11 +14,15 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import defaultGLSPModule from './base/di.config';
|
|
17
|
+
import { glspAccessibilityModule } from './features/accessibility/di.config';
|
|
18
|
+
import { glspMoveZoomModule } from './features/accessibility/move-zoom/di.config';
|
|
19
|
+
import { glspResizeKeyModule } from './features/accessibility/resize-key-tool/di.config';
|
|
20
|
+
import { glspSearchPaletteModule } from './features/accessibility/search/di.config';
|
|
21
|
+
import { glspViewKeyToolsModule } from './features/accessibility/view-key-tools/di.config';
|
|
17
22
|
import glspCommandPaletteModule from './features/command-palette/di.config';
|
|
18
23
|
import glspContextMenuModule from './features/context-menu/di.config';
|
|
19
24
|
import { copyPasteContextMenuModule, glspServerCopyPasteModule } from './features/copy-paste/di.config';
|
|
20
25
|
import glspDecorationModule from './features/decoration/di.config';
|
|
21
|
-
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
22
26
|
import glspEditLabelModule from './features/edit-label/di.config';
|
|
23
27
|
import modelHintsModule from './features/hints/di.config';
|
|
24
28
|
import glspHoverModule from './features/hover/di.config';
|
|
@@ -28,6 +32,7 @@ import navigationModule from './features/navigation/di.config';
|
|
|
28
32
|
import saveModule from './features/save/di.config';
|
|
29
33
|
import glspSelectModule from './features/select/di.config';
|
|
30
34
|
import sourceModelWatcherModule from './features/source-model-watcher/di.config';
|
|
35
|
+
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
31
36
|
import toolFeedbackModule from './features/tool-feedback/di.config';
|
|
32
37
|
import paletteModule from './features/tool-palette/di.config';
|
|
33
38
|
import { enableDefaultToolsOnFocusLossModule, toolsModule } from './features/tools/di.config';
|
|
@@ -54,6 +59,10 @@ export * from './base/tool-manager/glsp-tool-manager';
|
|
|
54
59
|
export * from './base/tool-manager/tool-actions';
|
|
55
60
|
export * from './base/types';
|
|
56
61
|
export * from './base/view/view-registry';
|
|
62
|
+
export * from './features/accessibility/resize-key-tool/resize-key-tool';
|
|
63
|
+
export * from './features/accessibility/view-key-tools/deselect-key-tool';
|
|
64
|
+
export * from './features/accessibility/view-key-tools/movement-key-tool';
|
|
65
|
+
export * from './features/accessibility/view-key-tools/zoom-key-tool';
|
|
57
66
|
export * from './features/bounds/freeform-layout';
|
|
58
67
|
export * from './features/bounds/glsp-hidden-bounds-updater';
|
|
59
68
|
export * from './features/bounds/hbox-layout';
|
|
@@ -70,7 +79,6 @@ export * from './features/context-menu/server-context-menu-provider';
|
|
|
70
79
|
export * from './features/copy-paste/copy-paste-context-menu';
|
|
71
80
|
export * from './features/copy-paste/copy-paste-handler';
|
|
72
81
|
export * from './features/decoration/decoration-placer';
|
|
73
|
-
export * from './features/svg-metadata/metadata-placer';
|
|
74
82
|
export * from './features/edit-label/edit-label-tool';
|
|
75
83
|
export * from './features/edit-label/edit-label-validator';
|
|
76
84
|
export * from './features/export/glsp-svg-exporter';
|
|
@@ -89,6 +97,7 @@ export * from './features/select/select-feedback-action';
|
|
|
89
97
|
export * from './features/select/select-mouse-listener';
|
|
90
98
|
export * from './features/select/selection-service';
|
|
91
99
|
export * from './features/source-model-watcher/source-model-changed-action-handler';
|
|
100
|
+
export * from './features/svg-metadata/metadata-placer';
|
|
92
101
|
export * from './features/tool-feedback/change-bounds-tool-feedback';
|
|
93
102
|
export * from './features/tool-feedback/creation-tool-feedback';
|
|
94
103
|
export * from './features/tool-feedback/css-feedback';
|
|
@@ -123,5 +132,5 @@ export * from './utils/marker';
|
|
|
123
132
|
export * from './utils/smodel-util';
|
|
124
133
|
export * from './utils/viewpoint-util';
|
|
125
134
|
export * from './views';
|
|
126
|
-
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutModule, glspEditLabelModule, glspHoverModule, toolsModule, enableDefaultToolsOnFocusLossModule, navigationModule, markerNavigatorModule, glspDecorationModule, sourceModelWatcherModule, markerNavigatorContextMenuModule, glspViewportModule, svgMetadataModule };
|
|
135
|
+
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutModule, glspEditLabelModule, glspHoverModule, toolsModule, enableDefaultToolsOnFocusLossModule, navigationModule, markerNavigatorModule, glspDecorationModule, sourceModelWatcherModule, markerNavigatorContextMenuModule, glspViewportModule, svgMetadataModule, glspResizeKeyModule, glspSearchPaletteModule, glspAccessibilityModule, glspViewKeyToolsModule, glspMoveZoomModule };
|
|
127
136
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,iBAAiB,MAAM,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AC;AACvC,cAAc,SAAS,CAAC;AAExB,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,mCAAmC,EACnC,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EACrB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.svgMetadataModule = exports.glspViewportModule = exports.markerNavigatorContextMenuModule = exports.sourceModelWatcherModule = exports.glspDecorationModule = exports.markerNavigatorModule = exports.navigationModule = exports.enableDefaultToolsOnFocusLossModule = exports.toolsModule = exports.glspHoverModule = exports.glspEditLabelModule = exports.layoutModule = exports.glspMouseToolModule = exports.glspSelectModule = exports.copyPasteContextMenuModule = exports.glspServerCopyPasteModule = exports.glspContextMenuModule = exports.glspCommandPaletteModule = exports.modelHintsModule = exports.defaultGLSPModule = exports.toolFeedbackModule = exports.paletteModule = exports.saveModule = exports.validationModule = exports.configureMarqueeTool = exports.configureServerActions = void 0;
|
|
17
|
+
exports.glspMoveZoomModule = exports.glspViewKeyToolsModule = exports.glspAccessibilityModule = exports.glspSearchPaletteModule = exports.glspResizeKeyModule = exports.svgMetadataModule = exports.glspViewportModule = exports.markerNavigatorContextMenuModule = exports.sourceModelWatcherModule = exports.glspDecorationModule = exports.markerNavigatorModule = exports.navigationModule = exports.enableDefaultToolsOnFocusLossModule = exports.toolsModule = exports.glspHoverModule = exports.glspEditLabelModule = exports.layoutModule = exports.glspMouseToolModule = exports.glspSelectModule = exports.copyPasteContextMenuModule = exports.glspServerCopyPasteModule = exports.glspContextMenuModule = exports.glspCommandPaletteModule = exports.modelHintsModule = exports.defaultGLSPModule = exports.toolFeedbackModule = exports.paletteModule = exports.saveModule = exports.validationModule = exports.configureMarqueeTool = exports.configureServerActions = void 0;
|
|
18
18
|
/********************************************************************************
|
|
19
19
|
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
20
20
|
*
|
|
@@ -32,48 +32,58 @@ exports.svgMetadataModule = exports.glspViewportModule = exports.markerNavigator
|
|
|
32
32
|
********************************************************************************/
|
|
33
33
|
const di_config_1 = require("./base/di.config");
|
|
34
34
|
exports.defaultGLSPModule = di_config_1.default;
|
|
35
|
-
const di_config_2 = require("./features/
|
|
36
|
-
exports
|
|
37
|
-
const di_config_3 = require("./features/
|
|
38
|
-
exports
|
|
39
|
-
const di_config_4 = require("./features/
|
|
40
|
-
Object.defineProperty(exports, "
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
exports
|
|
52
|
-
const di_config_10 = require("./features/
|
|
53
|
-
exports.
|
|
54
|
-
const di_config_11 = require("./features/
|
|
55
|
-
exports.
|
|
56
|
-
const di_config_12 = require("./features/
|
|
57
|
-
exports.
|
|
58
|
-
const di_config_13 = require("./features/
|
|
59
|
-
exports.
|
|
60
|
-
const di_config_14 = require("./features/
|
|
61
|
-
exports.
|
|
62
|
-
const di_config_15 = require("./features/
|
|
63
|
-
exports.
|
|
64
|
-
const di_config_16 = require("./features/
|
|
65
|
-
exports.
|
|
66
|
-
const di_config_17 = require("./features/
|
|
67
|
-
exports.
|
|
68
|
-
const di_config_18 = require("./features/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
35
|
+
const di_config_2 = require("./features/accessibility/di.config");
|
|
36
|
+
Object.defineProperty(exports, "glspAccessibilityModule", { enumerable: true, get: function () { return di_config_2.glspAccessibilityModule; } });
|
|
37
|
+
const di_config_3 = require("./features/accessibility/move-zoom/di.config");
|
|
38
|
+
Object.defineProperty(exports, "glspMoveZoomModule", { enumerable: true, get: function () { return di_config_3.glspMoveZoomModule; } });
|
|
39
|
+
const di_config_4 = require("./features/accessibility/resize-key-tool/di.config");
|
|
40
|
+
Object.defineProperty(exports, "glspResizeKeyModule", { enumerable: true, get: function () { return di_config_4.glspResizeKeyModule; } });
|
|
41
|
+
const di_config_5 = require("./features/accessibility/search/di.config");
|
|
42
|
+
Object.defineProperty(exports, "glspSearchPaletteModule", { enumerable: true, get: function () { return di_config_5.glspSearchPaletteModule; } });
|
|
43
|
+
const di_config_6 = require("./features/accessibility/view-key-tools/di.config");
|
|
44
|
+
Object.defineProperty(exports, "glspViewKeyToolsModule", { enumerable: true, get: function () { return di_config_6.glspViewKeyToolsModule; } });
|
|
45
|
+
const di_config_7 = require("./features/command-palette/di.config");
|
|
46
|
+
exports.glspCommandPaletteModule = di_config_7.default;
|
|
47
|
+
const di_config_8 = require("./features/context-menu/di.config");
|
|
48
|
+
exports.glspContextMenuModule = di_config_8.default;
|
|
49
|
+
const di_config_9 = require("./features/copy-paste/di.config");
|
|
50
|
+
Object.defineProperty(exports, "copyPasteContextMenuModule", { enumerable: true, get: function () { return di_config_9.copyPasteContextMenuModule; } });
|
|
51
|
+
Object.defineProperty(exports, "glspServerCopyPasteModule", { enumerable: true, get: function () { return di_config_9.glspServerCopyPasteModule; } });
|
|
52
|
+
const di_config_10 = require("./features/decoration/di.config");
|
|
53
|
+
exports.glspDecorationModule = di_config_10.default;
|
|
54
|
+
const di_config_11 = require("./features/edit-label/di.config");
|
|
55
|
+
exports.glspEditLabelModule = di_config_11.default;
|
|
56
|
+
const di_config_12 = require("./features/hints/di.config");
|
|
57
|
+
exports.modelHintsModule = di_config_12.default;
|
|
58
|
+
const di_config_13 = require("./features/hover/di.config");
|
|
59
|
+
exports.glspHoverModule = di_config_13.default;
|
|
60
|
+
const di_config_14 = require("./features/layout/di.config");
|
|
61
|
+
exports.layoutModule = di_config_14.default;
|
|
62
|
+
const di_config_15 = require("./features/mouse-tool/di.config");
|
|
63
|
+
exports.glspMouseToolModule = di_config_15.default;
|
|
64
|
+
const di_config_16 = require("./features/navigation/di.config");
|
|
65
|
+
exports.navigationModule = di_config_16.default;
|
|
66
|
+
const di_config_17 = require("./features/save/di.config");
|
|
67
|
+
exports.saveModule = di_config_17.default;
|
|
68
|
+
const di_config_18 = require("./features/select/di.config");
|
|
69
|
+
exports.glspSelectModule = di_config_18.default;
|
|
70
|
+
const di_config_19 = require("./features/source-model-watcher/di.config");
|
|
71
|
+
exports.sourceModelWatcherModule = di_config_19.default;
|
|
72
|
+
const di_config_20 = require("./features/svg-metadata/di.config");
|
|
73
|
+
exports.svgMetadataModule = di_config_20.default;
|
|
74
|
+
const di_config_21 = require("./features/tool-feedback/di.config");
|
|
75
|
+
exports.toolFeedbackModule = di_config_21.default;
|
|
76
|
+
const di_config_22 = require("./features/tool-palette/di.config");
|
|
77
|
+
exports.paletteModule = di_config_22.default;
|
|
78
|
+
const di_config_23 = require("./features/tools/di.config");
|
|
79
|
+
Object.defineProperty(exports, "enableDefaultToolsOnFocusLossModule", { enumerable: true, get: function () { return di_config_23.enableDefaultToolsOnFocusLossModule; } });
|
|
80
|
+
Object.defineProperty(exports, "toolsModule", { enumerable: true, get: function () { return di_config_23.toolsModule; } });
|
|
81
|
+
const di_config_24 = require("./features/validation/di.config");
|
|
82
|
+
Object.defineProperty(exports, "markerNavigatorContextMenuModule", { enumerable: true, get: function () { return di_config_24.markerNavigatorContextMenuModule; } });
|
|
83
|
+
Object.defineProperty(exports, "markerNavigatorModule", { enumerable: true, get: function () { return di_config_24.markerNavigatorModule; } });
|
|
84
|
+
Object.defineProperty(exports, "validationModule", { enumerable: true, get: function () { return di_config_24.validationModule; } });
|
|
85
|
+
const di_config_25 = require("./features/viewport/di.config");
|
|
86
|
+
exports.glspViewportModule = di_config_25.default;
|
|
77
87
|
// ------------------ Base ------------------
|
|
78
88
|
__exportStar(require("./base/action-dispatcher"), exports);
|
|
79
89
|
__exportStar(require("./base/actions/focus-change-action"), exports);
|
|
@@ -83,8 +93,8 @@ __exportStar(require("./base/auto-complete/auto-complete-widget"), exports);
|
|
|
83
93
|
__exportStar(require("./base/auto-complete/validation-decorator"), exports);
|
|
84
94
|
__exportStar(require("./base/command-stack"), exports);
|
|
85
95
|
__exportStar(require("./base/container-modules"), exports);
|
|
86
|
-
var
|
|
87
|
-
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return
|
|
96
|
+
var di_config_26 = require("./base/di.config");
|
|
97
|
+
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return di_config_26.configureServerActions; } });
|
|
88
98
|
__exportStar(require("./base/drag-aware-mouse-listener"), exports);
|
|
89
99
|
__exportStar(require("./base/editor-context-service"), exports);
|
|
90
100
|
__exportStar(require("./base/focus-tracker"), exports);
|
|
@@ -97,6 +107,10 @@ __exportStar(require("./base/tool-manager/glsp-tool-manager"), exports);
|
|
|
97
107
|
__exportStar(require("./base/tool-manager/tool-actions"), exports);
|
|
98
108
|
__exportStar(require("./base/types"), exports);
|
|
99
109
|
__exportStar(require("./base/view/view-registry"), exports);
|
|
110
|
+
__exportStar(require("./features/accessibility/resize-key-tool/resize-key-tool"), exports);
|
|
111
|
+
__exportStar(require("./features/accessibility/view-key-tools/deselect-key-tool"), exports);
|
|
112
|
+
__exportStar(require("./features/accessibility/view-key-tools/movement-key-tool"), exports);
|
|
113
|
+
__exportStar(require("./features/accessibility/view-key-tools/zoom-key-tool"), exports);
|
|
100
114
|
//
|
|
101
115
|
// ------------------ Features ------------------
|
|
102
116
|
__exportStar(require("./features/bounds/freeform-layout"), exports);
|
|
@@ -115,7 +129,6 @@ __exportStar(require("./features/context-menu/server-context-menu-provider"), ex
|
|
|
115
129
|
__exportStar(require("./features/copy-paste/copy-paste-context-menu"), exports);
|
|
116
130
|
__exportStar(require("./features/copy-paste/copy-paste-handler"), exports);
|
|
117
131
|
__exportStar(require("./features/decoration/decoration-placer"), exports);
|
|
118
|
-
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
119
132
|
__exportStar(require("./features/edit-label/edit-label-tool"), exports);
|
|
120
133
|
__exportStar(require("./features/edit-label/edit-label-validator"), exports);
|
|
121
134
|
__exportStar(require("./features/export/glsp-svg-exporter"), exports);
|
|
@@ -134,6 +147,7 @@ __exportStar(require("./features/select/select-feedback-action"), exports);
|
|
|
134
147
|
__exportStar(require("./features/select/select-mouse-listener"), exports);
|
|
135
148
|
__exportStar(require("./features/select/selection-service"), exports);
|
|
136
149
|
__exportStar(require("./features/source-model-watcher/source-model-changed-action-handler"), exports);
|
|
150
|
+
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
137
151
|
__exportStar(require("./features/tool-feedback/change-bounds-tool-feedback"), exports);
|
|
138
152
|
__exportStar(require("./features/tool-feedback/creation-tool-feedback"), exports);
|
|
139
153
|
__exportStar(require("./features/tool-feedback/css-feedback"), exports);
|
|
@@ -146,8 +160,8 @@ __exportStar(require("./features/tool-palette/tool-palette"), exports);
|
|
|
146
160
|
__exportStar(require("./features/tools/base-glsp-tool"), exports);
|
|
147
161
|
__exportStar(require("./features/tools/change-bounds-tool"), exports);
|
|
148
162
|
__exportStar(require("./features/tools/delete-tool"), exports);
|
|
149
|
-
var
|
|
150
|
-
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return
|
|
163
|
+
var di_config_27 = require("./features/tools/di.config");
|
|
164
|
+
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return di_config_27.configureMarqueeTool; } });
|
|
151
165
|
__exportStar(require("./features/tools/edge-creation-tool"), exports);
|
|
152
166
|
__exportStar(require("./features/tools/edge-edit-tool"), exports);
|
|
153
167
|
__exportStar(require("./features/tools/enable-default-tools-on-focus-loss"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;AAmI7C,4BAnIG,mBAAiB,CAmIH;AAlIrB,kEAA6E;AAwJzE,wGAxJK,mCAAuB,OAwJL;AAvJ3B,4EAAkF;AAyJ9E,mGAzJK,8BAAkB,OAyJL;AAxJtB,kFAAyF;AAoJrF,oGApJK,+BAAmB,OAoJL;AAnJvB,yEAAoF;AAoJhF,wGApJK,mCAAuB,OAoJL;AAnJ3B,iFAA2F;AAqJvF,uGArJK,kCAAsB,OAqJL;AApJ1B,oEAA4E;AA+HxE,mCA/HG,mBAAwB,CA+HH;AA9H5B,iEAAsE;AA+HlE,gCA/HG,mBAAqB,CA+HH;AA9HzB,+DAAwG;AAgIpG,2GAhIK,sCAA0B,OAgIL;AAD1B,0GA/HiC,qCAAyB,OA+HjC;AA9H7B,gEAAmE;AAyI/D,+BAzIG,oBAAoB,CAyIH;AAxIxB,gEAAkE;AAkI9D,8BAlIG,oBAAmB,CAkIH;AAjIvB,2DAA0D;AAyHtD,2BAzHG,oBAAgB,CAyHH;AAxHpB,2DAAyD;AAiIrD,0BAjIG,oBAAe,CAiIH;AAhInB,4DAAuD;AA8HnD,uBA9HG,oBAAY,CA8HH;AA7HhB,gEAAkE;AA4H9D,8BA5HG,oBAAmB,CA4HH;AA3Hv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,gFAA8D;AAC9D,2EAAyD;AACzD,0EAAwD;AACxD,wEAAsD;AACtD,6EAA2D;AAC3D,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,2EAAyD;AACzD,mEAAiD;AACjD,kFAAgE;AAChE,mFAAiE;AACjE,wDAAsC;AACtC,6DAA2C;AAC3C,wDAAsC;AACtC,mEAAiD;AACjD,2EAAyD;AACzD,0EAAwD;AACxD,sEAAoD;AACpD,sGAAoF;AACpF,0EAAwD;AACxD,uFAAqE;AACrE,kFAAgE;AAChE,wEAAsD;AACtD,mFAAiE;AACjE,sFAAoE;AACpE,iFAA+D;AAC/D,iEAA+C;AAC/C,gEAA8C;AAC9C,uEAAqD;AACrD,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,yDAAkE;AAAzD,kHAAA,oBAAoB,OAAA;AAC7B,sEAAoD;AACpD,kEAAgD;AAChD,sFAAoE;AACpE,8EAA4D;AAC5D,oEAAkD;AAClD,yDAAuC;AACvC,sEAAoD;AACpD,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,iFAA+D;AAC/D,EAAE;AACF,6CAA6C;AAC7C,8CAA4B;AAC5B,qEAAmD;AACnD,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,yDAAuC;AACvC,0CAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "1.1.0-next.
|
|
3
|
+
"version": "1.1.0-next.d81a1ea.249+d81a1ea",
|
|
4
4
|
"description": "A sprotty-based client for GLSP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -47,15 +47,17 @@
|
|
|
47
47
|
"watch": "tsc -w"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@eclipse-glsp/protocol": "1.1.0-next.
|
|
50
|
+
"@eclipse-glsp/protocol": "1.1.0-next.d81a1ea.249+d81a1ea",
|
|
51
51
|
"autocompleter": "5.1.0",
|
|
52
|
+
"lodash": "4.17.21",
|
|
52
53
|
"sprotty": "0.13.0-next.f4445dd.342"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
56
|
+
"@types/lodash": "4.14.191",
|
|
55
57
|
"@vscode/codicons": "^0.0.25"
|
|
56
58
|
},
|
|
57
59
|
"publishConfig": {
|
|
58
60
|
"access": "public"
|
|
59
61
|
},
|
|
60
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d81a1ea5335410d2daeaa0b869ed7573eaff6471"
|
|
61
63
|
}
|
|
@@ -28,6 +28,7 @@ export interface AutoCompleteSettings {
|
|
|
28
28
|
readonly showOnFocus?: boolean;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export type CloseReason = 'submission' | 'blur' | 'escape';
|
|
31
32
|
export interface InputValidator {
|
|
32
33
|
validate(input: string): Promise<ValidationStatus>;
|
|
33
34
|
}
|
|
@@ -48,6 +49,11 @@ export interface TextSubmitHandler {
|
|
|
48
49
|
executeFromTextOnlyInput(input: string): void;
|
|
49
50
|
}
|
|
50
51
|
|
|
52
|
+
export interface AutoCompleteWidgetOptions {
|
|
53
|
+
visibleSuggestionsChanged?: (suggestions: LabeledAction[]) => void;
|
|
54
|
+
selectedSuggestionChanged?: (suggestion?: LabeledAction) => void;
|
|
55
|
+
}
|
|
56
|
+
|
|
51
57
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
52
58
|
const configureAutocomplete: (settings: AutocompleteSettings<LabeledAction>) => AutocompleteResult = require('autocompleter');
|
|
53
59
|
|
|
@@ -78,8 +84,9 @@ export class AutoCompleteWidget {
|
|
|
78
84
|
public suggestionProvider: SuggestionProvider,
|
|
79
85
|
public suggestionSubmitHandler: SuggestionSubmitHandler,
|
|
80
86
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
81
|
-
protected notifyClose: () => void = () => {},
|
|
82
|
-
protected logger?: ILogger
|
|
87
|
+
protected notifyClose: (reason: CloseReason) => void = () => {},
|
|
88
|
+
protected logger?: ILogger,
|
|
89
|
+
protected options?: AutoCompleteWidgetOptions
|
|
83
90
|
) {}
|
|
84
91
|
|
|
85
92
|
configureValidation(
|
|
@@ -109,13 +116,18 @@ export class AutoCompleteWidget {
|
|
|
109
116
|
inputElement.autocomplete = 'false';
|
|
110
117
|
inputElement.style.width = '100%';
|
|
111
118
|
inputElement.addEventListener('keydown', event => this.handleKeyDown(event));
|
|
112
|
-
inputElement.addEventListener('blur', () =>
|
|
119
|
+
inputElement.addEventListener('blur', () => {
|
|
120
|
+
if (this.containerElement.style.visibility !== 'hidden') {
|
|
121
|
+
window.setTimeout(() => this.notifyClose('blur'), 200);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
|
|
113
125
|
return inputElement;
|
|
114
126
|
}
|
|
115
127
|
|
|
116
128
|
protected handleKeyDown(event: KeyboardEvent): void {
|
|
117
129
|
if (matchesKeystroke(event, 'Escape')) {
|
|
118
|
-
this.notifyClose();
|
|
130
|
+
this.notifyClose('escape');
|
|
119
131
|
return;
|
|
120
132
|
}
|
|
121
133
|
if (matchesKeystroke(event, 'Enter') && !this.isInputElementChanged() && this.isSuggestionAvailable()) {
|
|
@@ -133,7 +145,7 @@ export class AutoCompleteWidget {
|
|
|
133
145
|
}
|
|
134
146
|
if (this.textSubmitHandler) {
|
|
135
147
|
this.executeFromTextOnlyInput();
|
|
136
|
-
this.notifyClose();
|
|
148
|
+
this.notifyClose('submission');
|
|
137
149
|
}
|
|
138
150
|
}
|
|
139
151
|
|
|
@@ -175,6 +187,17 @@ export class AutoCompleteWidget {
|
|
|
175
187
|
// move container into our UIExtension container as this is already positioned correctly
|
|
176
188
|
if (this.containerElement) {
|
|
177
189
|
this.containerElement.appendChild(container);
|
|
190
|
+
|
|
191
|
+
if (this.options && this.options.selectedSuggestionChanged) {
|
|
192
|
+
const selectedElement = container.querySelector('.selected');
|
|
193
|
+
// eslint-disable-next-line no-null/no-null
|
|
194
|
+
if (selectedElement !== null && selectedElement !== undefined) {
|
|
195
|
+
const index = Array.from(container.children).indexOf(selectedElement);
|
|
196
|
+
this.options.selectedSuggestionChanged(this.contextActions?.[index]);
|
|
197
|
+
} else {
|
|
198
|
+
this.options.selectedSuggestionChanged(undefined);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
178
201
|
}
|
|
179
202
|
}
|
|
180
203
|
|
|
@@ -189,6 +212,7 @@ export class AutoCompleteWidget {
|
|
|
189
212
|
.then(actions => {
|
|
190
213
|
this.contextActions = this.filterActions(text, actions);
|
|
191
214
|
update(this.contextActions);
|
|
215
|
+
this.options?.visibleSuggestionsChanged?.(this.contextActions);
|
|
192
216
|
this.onLoaded('success');
|
|
193
217
|
})
|
|
194
218
|
.catch(reason => {
|
|
@@ -228,7 +252,7 @@ export class AutoCompleteWidget {
|
|
|
228
252
|
if (item.icon) {
|
|
229
253
|
this.renderIcon(itemElement, item.icon);
|
|
230
254
|
}
|
|
231
|
-
itemElement.innerHTML += item.label.replace(regex, match => '<em>' + match + '</em>');
|
|
255
|
+
itemElement.innerHTML += item.label.replace(regex, match => '<em>' + match + '</em>').replace(/ /g, ' ');
|
|
232
256
|
return itemElement;
|
|
233
257
|
}
|
|
234
258
|
|
|
@@ -257,7 +281,7 @@ export class AutoCompleteWidget {
|
|
|
257
281
|
window.setTimeout(() => this.inputElement.dispatchEvent(new Event('keyup')));
|
|
258
282
|
} else {
|
|
259
283
|
this.executeFromSuggestion(item);
|
|
260
|
-
this.notifyClose();
|
|
284
|
+
this.notifyClose('submission');
|
|
261
285
|
}
|
|
262
286
|
}
|
|
263
287
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Keyboard-Only: Accessibility Features
|
|
2
|
+
|
|
3
|
+
The features presented in the following are introduced for disability-aware conceptual modeling and allow basic user model interactions to be performed only with the keyboard.
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
In order to activate and use all of the currently provided keyboard only accessibility features, the module `glspAccessibilityModule` needs to be in use.
|
|
8
|
+
To activate and use only specific accessibility features, the respective module (see list below) needs to be in use.
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
Below is a list of the keyboard only accessibility features:<br>
|
|
13
|
+
|
|
14
|
+
| Feature | Description | Shortcut | Module |
|
|
15
|
+
| ------- | :----------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------: | :-----------------------: |
|
|
16
|
+
| Search | Search for elements or edges using labels, types, etc. <br> with respective diagram highlighting | <kbd>CTRL</kbd>+<kbd>F</kbd> | `glspSearchPaletteModule` |
|
|
17
|
+
| Move | Move elements, edges or viewport into the directions | <kbd>←</kbd> \|\| <kbd>↑</kbd> \|\| <kbd>→</kbd> \|\| <kbd>↓</kbd> | `glspMoveZoomModule` |
|
|
18
|
+
| Zoom | Zoom in or out gradually to elements or viewport or reset to default zoom level. | <kbd>+</kbd> \|\| <kbd>-</kbd> \|\| <kbd>CTRL</kbd>+<kbd>0</kbd> | `glspMoveZoomModule` |
|
|
19
|
+
| Resize | Increase or decrease element sizes gradually or reset to default element size. | <kbd>ALT</kbd>+<kbd>A</kbd> then <kbd>+</kbd> \|\| <kbd>-</kbd> \|\| <kbd>CTRL</kbd>+<kbd>0</kbd> | `glspResizeKeyModule` |
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
#### Search
|
|
24
|
+
|
|
25
|
+
The search palette allows to search labelled elements or edges that have a labelled node as source or target. The result set will be highlighted accordingly, to also be able to visually distinguish between the searched and the remaining parts of the given diagram.
|
|
26
|
+
|
|
27
|
+
#### Read / Select via Search
|
|
28
|
+
|
|
29
|
+
1. <kbd>CTRL</kbd> + <kbd>F</kbd>: Open the search palette
|
|
30
|
+
2. In the palette's input field enter either the **type** or the **label** of nodes or edges. The arrow keys can be used to navigate in the search result list.
|
|
31
|
+
3. <kbd>ENTER</kbd>: Select the node or edge that is highlighted in the search result list.
|
|
32
|
+
|
|
33
|
+
### Model Exploration
|
|
34
|
+
|
|
35
|
+
#### Move
|
|
36
|
+
|
|
37
|
+
The move functionality can be used to move parts of the model, such as selected nodes or edges or the whole viewport in all directions.
|
|
38
|
+
|
|
39
|
+
##### Steps
|
|
40
|
+
|
|
41
|
+
1. Select one or multiple elements or the viewport.
|
|
42
|
+
2. Use arrow keys (<kbd>←</kbd> || <kbd>↑</kbd> || <kbd>→</kbd> || <kbd>↓</kbd>) to move element(s) or viewport to the desired location.
|
|
43
|
+
|
|
44
|
+
#### Zoom
|
|
45
|
+
|
|
46
|
+
This zoom functionality can be used to gradually adapt the zoom level of one element, a set of elements or the
|
|
47
|
+
viewport.
|
|
48
|
+
|
|
49
|
+
#### Steps
|
|
50
|
+
|
|
51
|
+
1. Select one or multiple elements or the viewport.
|
|
52
|
+
2. Use <kbd>+</kbd> or <kbd>-</kbd> to zoom in or out gradually.
|
|
53
|
+
3. <kbd>CTRL</kbd>+<kbd>0</kbd>: Set the zoom level to default.
|
|
54
|
+
|
|
55
|
+
### Resize element
|
|
56
|
+
|
|
57
|
+
The resize functionality helps to set the size of the nodes, by either increasing or decreasing the size of the nodes’ shape gradually.
|
|
58
|
+
|
|
59
|
+
#### Steps
|
|
60
|
+
|
|
61
|
+
1. Select one or multiple elements.
|
|
62
|
+
2. <kbd>ALT</kbd>+<kbd>A</kbd>: Activate the resize mode.
|
|
63
|
+
3. <kbd>+</kbd> or <kbd>-</kbd> to increase or decrease the size of the element(s) gradually.
|
|
64
|
+
4. <kbd>CTRL</kbd>+<kbd>0</kbd>: Set the size of the element(s) to default.
|
|
65
|
+
5. <kbd>ESC</kbd>: Deactivate the resize mode.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
import { ContainerModule } from 'inversify';
|
|
18
|
+
import { configureMoveZoom } from './move-zoom/di.config';
|
|
19
|
+
import { configureResizeTools } from './resize-key-tool/di.config';
|
|
20
|
+
import { configureSearchPaletteModule } from './search/di.config';
|
|
21
|
+
import { configureViewKeyTools } from './view-key-tools/di.config';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Enables the accessibility tools for a keyboard-only-usage
|
|
25
|
+
*/
|
|
26
|
+
export const glspAccessibilityModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
27
|
+
const context = { bind, unbind, isBound, rebind };
|
|
28
|
+
configureResizeTools(context);
|
|
29
|
+
configureViewKeyTools(context);
|
|
30
|
+
configureMoveZoom(context);
|
|
31
|
+
configureSearchPaletteModule(context);
|
|
32
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
|
|
17
|
+
import { BindingContext } from '@eclipse-glsp/protocol';
|
|
18
|
+
import { ContainerModule } from 'inversify';
|
|
19
|
+
import { configureActionHandler } from 'sprotty';
|
|
20
|
+
import { MoveElementAction, MoveElementHandler, MoveViewportAction, MoveViewportHandler } from './move-handler';
|
|
21
|
+
import { ZoomElementAction, ZoomElementHandler, ZoomViewportAction, ZoomViewportHandler } from './zoom-handler';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Handles move and zoom actions.
|
|
25
|
+
*/
|
|
26
|
+
export const glspMoveZoomModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
27
|
+
const context = { bind, unbind, isBound, rebind };
|
|
28
|
+
configureMoveZoom(context);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function configureMoveZoom(context: BindingContext): void {
|
|
32
|
+
context.bind(MoveViewportHandler).toSelf().inSingletonScope();
|
|
33
|
+
context.bind(MoveElementHandler).toSelf().inSingletonScope();
|
|
34
|
+
|
|
35
|
+
context.bind(ZoomViewportHandler).toSelf().inSingletonScope();
|
|
36
|
+
context.bind(ZoomElementHandler).toSelf().inSingletonScope();
|
|
37
|
+
|
|
38
|
+
configureActionHandler(context, MoveViewportAction.KIND, MoveViewportHandler);
|
|
39
|
+
configureActionHandler(context, MoveElementAction.KIND, MoveElementHandler);
|
|
40
|
+
|
|
41
|
+
configureActionHandler(context, ZoomViewportAction.KIND, ZoomViewportHandler);
|
|
42
|
+
configureActionHandler(context, ZoomElementAction.KIND, ZoomElementHandler);
|
|
43
|
+
}
|