@eclipse-glsp/client 1.1.0-next.93fd4ec.241 → 1.1.0-next.97e90c6.246
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 +32 -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/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 +10 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +59 -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/di.config.ts +30 -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/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 +14 -3
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
import { LabeledAction, SModelElement, SModelRoot } from 'sprotty';
|
|
17
|
+
/**
|
|
18
|
+
* Interface for a provider that provides suggestions that can be used to fill the autocomplete
|
|
19
|
+
*/
|
|
20
|
+
export interface IAutocompleteSuggestionProvider {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the suggestions based on the provided parameters.
|
|
23
|
+
* @param root: The root model
|
|
24
|
+
* @param text: The text input provided by the user.
|
|
25
|
+
*/
|
|
26
|
+
retrieveSuggestions(root: Readonly<SModelRoot>, text: string): Promise<AutocompleteSuggestion[]>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Interface for autocomplete suggestions.
|
|
30
|
+
*/
|
|
31
|
+
export interface AutocompleteSuggestion {
|
|
32
|
+
element: SModelElement;
|
|
33
|
+
action: LabeledAction;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=autocomplete-suggestion-providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete-suggestion-providers.d.ts","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/autocomplete-suggestion-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;CACpG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;CACzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=autocomplete-suggestion-providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autocomplete-suggestion-providers.js","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/autocomplete-suggestion-providers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
import { Action } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { AbstractUIExtension, LabeledAction, SModelRoot } from 'sprotty';
|
|
18
|
+
import '../../../css/autocomplete-palette.css';
|
|
19
|
+
import { GLSPActionDispatcher } from '../../base/action-dispatcher';
|
|
20
|
+
import { AutoCompleteWidget, CloseReason } from '../../base/auto-complete/auto-complete-widget';
|
|
21
|
+
export declare abstract class BaseAutocompletePalette extends AbstractUIExtension {
|
|
22
|
+
protected readonly autoSuggestionSettings: {
|
|
23
|
+
noSuggestionsMessage: string;
|
|
24
|
+
suggestionsClass: string;
|
|
25
|
+
debounceWaitMs: number;
|
|
26
|
+
showOnFocus: boolean;
|
|
27
|
+
};
|
|
28
|
+
protected root?: Readonly<SModelRoot>;
|
|
29
|
+
protected autocompleteWidget: AutoCompleteWidget;
|
|
30
|
+
protected actionDispatcher: GLSPActionDispatcher;
|
|
31
|
+
containerClass(): string;
|
|
32
|
+
show(root: Readonly<SModelRoot>, ...contextElementIds: string[]): void;
|
|
33
|
+
hide(): void;
|
|
34
|
+
protected initializeContents(containerElement: HTMLElement): void;
|
|
35
|
+
protected abstract retrieveSuggestions(root: Readonly<SModelRoot>, input: string): Promise<LabeledAction[]>;
|
|
36
|
+
protected visibleSuggestionsChanged(root: Readonly<SModelRoot>, labeledActions: LabeledAction[]): Promise<void>;
|
|
37
|
+
protected selectedSuggestionChanged(root: Readonly<SModelRoot>, labeledAction?: LabeledAction): Promise<void>;
|
|
38
|
+
protected autocompleteHide(reason: CloseReason): void;
|
|
39
|
+
protected executeSuggestion(input: LabeledAction | Action[] | Action): void;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=base-autocomplete-palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-autocomplete-palette.d.ts","sourceRoot":"","sources":["../../../src/features/autocomplete-palette/base-autocomplete-palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,C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GAAG,IAAI;CAG9E"}
|
|
@@ -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,IAAI,CAAC,CAAC;IACvC,CAAC;IAEQ,IAAI;QACT,IAAI,CAAC,kBAAkB,CAAC,OAAO,E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AC5D,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,14 @@
|
|
|
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 { glspSearchPaletteModule } from './features/accessibility/search/di.config';
|
|
20
|
+
import { glspViewKeyToolsModule } from './features/accessibility/view-key-tools/di.config';
|
|
17
21
|
import glspCommandPaletteModule from './features/command-palette/di.config';
|
|
18
22
|
import glspContextMenuModule from './features/context-menu/di.config';
|
|
19
23
|
import { copyPasteContextMenuModule, glspServerCopyPasteModule } from './features/copy-paste/di.config';
|
|
20
24
|
import glspDecorationModule from './features/decoration/di.config';
|
|
21
|
-
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
22
25
|
import glspEditLabelModule from './features/edit-label/di.config';
|
|
23
26
|
import modelHintsModule from './features/hints/di.config';
|
|
24
27
|
import glspHoverModule from './features/hover/di.config';
|
|
@@ -28,6 +31,7 @@ import navigationModule from './features/navigation/di.config';
|
|
|
28
31
|
import saveModule from './features/save/di.config';
|
|
29
32
|
import glspSelectModule from './features/select/di.config';
|
|
30
33
|
import sourceModelWatcherModule from './features/source-model-watcher/di.config';
|
|
34
|
+
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
31
35
|
import toolFeedbackModule from './features/tool-feedback/di.config';
|
|
32
36
|
import paletteModule from './features/tool-palette/di.config';
|
|
33
37
|
import { enableDefaultToolsOnFocusLossModule, toolsModule } from './features/tools/di.config';
|
|
@@ -54,6 +58,9 @@ export * from './base/tool-manager/glsp-tool-manager';
|
|
|
54
58
|
export * from './base/tool-manager/tool-actions';
|
|
55
59
|
export * from './base/types';
|
|
56
60
|
export * from './base/view/view-registry';
|
|
61
|
+
export * from './features/accessibility/view-key-tools/deselect-key-tool';
|
|
62
|
+
export * from './features/accessibility/view-key-tools/movement-key-tool';
|
|
63
|
+
export * from './features/accessibility/view-key-tools/zoom-key-tool';
|
|
57
64
|
export * from './features/bounds/freeform-layout';
|
|
58
65
|
export * from './features/bounds/glsp-hidden-bounds-updater';
|
|
59
66
|
export * from './features/bounds/hbox-layout';
|
|
@@ -70,7 +77,6 @@ export * from './features/context-menu/server-context-menu-provider';
|
|
|
70
77
|
export * from './features/copy-paste/copy-paste-context-menu';
|
|
71
78
|
export * from './features/copy-paste/copy-paste-handler';
|
|
72
79
|
export * from './features/decoration/decoration-placer';
|
|
73
|
-
export * from './features/svg-metadata/metadata-placer';
|
|
74
80
|
export * from './features/edit-label/edit-label-tool';
|
|
75
81
|
export * from './features/edit-label/edit-label-validator';
|
|
76
82
|
export * from './features/export/glsp-svg-exporter';
|
|
@@ -89,6 +95,7 @@ export * from './features/select/select-feedback-action';
|
|
|
89
95
|
export * from './features/select/select-mouse-listener';
|
|
90
96
|
export * from './features/select/selection-service';
|
|
91
97
|
export * from './features/source-model-watcher/source-model-changed-action-handler';
|
|
98
|
+
export * from './features/svg-metadata/metadata-placer';
|
|
92
99
|
export * from './features/tool-feedback/change-bounds-tool-feedback';
|
|
93
100
|
export * from './features/tool-feedback/creation-tool-feedback';
|
|
94
101
|
export * from './features/tool-feedback/css-feedback';
|
|
@@ -123,5 +130,5 @@ export * from './utils/marker';
|
|
|
123
130
|
export * from './utils/smodel-util';
|
|
124
131
|
export * from './utils/viewpoint-util';
|
|
125
132
|
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 };
|
|
133
|
+
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, glspViewKeyToolsModule, glspMoveZoomModule, glspAccessibilityModule, glspSearchPaletteModule };
|
|
127
134
|
//# 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,kBAAkB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,sBA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BAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EAC1B,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.glspSearchPaletteModule = exports.glspAccessibilityModule = exports.glspMoveZoomModule = exports.glspViewKeyToolsModule = 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,56 @@ 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
|
-
exports
|
|
50
|
-
const di_config_9 = require("./features/
|
|
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/search/di.config");
|
|
40
|
+
Object.defineProperty(exports, "glspSearchPaletteModule", { enumerable: true, get: function () { return di_config_4.glspSearchPaletteModule; } });
|
|
41
|
+
const di_config_5 = require("./features/accessibility/view-key-tools/di.config");
|
|
42
|
+
Object.defineProperty(exports, "glspViewKeyToolsModule", { enumerable: true, get: function () { return di_config_5.glspViewKeyToolsModule; } });
|
|
43
|
+
const di_config_6 = require("./features/command-palette/di.config");
|
|
44
|
+
exports.glspCommandPaletteModule = di_config_6.default;
|
|
45
|
+
const di_config_7 = require("./features/context-menu/di.config");
|
|
46
|
+
exports.glspContextMenuModule = di_config_7.default;
|
|
47
|
+
const di_config_8 = require("./features/copy-paste/di.config");
|
|
48
|
+
Object.defineProperty(exports, "copyPasteContextMenuModule", { enumerable: true, get: function () { return di_config_8.copyPasteContextMenuModule; } });
|
|
49
|
+
Object.defineProperty(exports, "glspServerCopyPasteModule", { enumerable: true, get: function () { return di_config_8.glspServerCopyPasteModule; } });
|
|
50
|
+
const di_config_9 = require("./features/decoration/di.config");
|
|
51
|
+
exports.glspDecorationModule = di_config_9.default;
|
|
52
|
+
const di_config_10 = require("./features/edit-label/di.config");
|
|
53
|
+
exports.glspEditLabelModule = di_config_10.default;
|
|
54
|
+
const di_config_11 = require("./features/hints/di.config");
|
|
55
|
+
exports.modelHintsModule = di_config_11.default;
|
|
56
|
+
const di_config_12 = require("./features/hover/di.config");
|
|
57
|
+
exports.glspHoverModule = di_config_12.default;
|
|
58
|
+
const di_config_13 = require("./features/layout/di.config");
|
|
59
|
+
exports.layoutModule = di_config_13.default;
|
|
60
|
+
const di_config_14 = require("./features/mouse-tool/di.config");
|
|
61
|
+
exports.glspMouseToolModule = di_config_14.default;
|
|
62
|
+
const di_config_15 = require("./features/navigation/di.config");
|
|
63
|
+
exports.navigationModule = di_config_15.default;
|
|
64
|
+
const di_config_16 = require("./features/save/di.config");
|
|
65
|
+
exports.saveModule = di_config_16.default;
|
|
66
|
+
const di_config_17 = require("./features/select/di.config");
|
|
67
|
+
exports.glspSelectModule = di_config_17.default;
|
|
68
|
+
const di_config_18 = require("./features/source-model-watcher/di.config");
|
|
69
|
+
exports.sourceModelWatcherModule = di_config_18.default;
|
|
70
|
+
const di_config_19 = require("./features/svg-metadata/di.config");
|
|
71
|
+
exports.svgMetadataModule = di_config_19.default;
|
|
72
|
+
const di_config_20 = require("./features/tool-feedback/di.config");
|
|
73
|
+
exports.toolFeedbackModule = di_config_20.default;
|
|
74
|
+
const di_config_21 = require("./features/tool-palette/di.config");
|
|
75
|
+
exports.paletteModule = di_config_21.default;
|
|
76
|
+
const di_config_22 = require("./features/tools/di.config");
|
|
77
|
+
Object.defineProperty(exports, "enableDefaultToolsOnFocusLossModule", { enumerable: true, get: function () { return di_config_22.enableDefaultToolsOnFocusLossModule; } });
|
|
78
|
+
Object.defineProperty(exports, "toolsModule", { enumerable: true, get: function () { return di_config_22.toolsModule; } });
|
|
79
|
+
const di_config_23 = require("./features/validation/di.config");
|
|
80
|
+
Object.defineProperty(exports, "markerNavigatorContextMenuModule", { enumerable: true, get: function () { return di_config_23.markerNavigatorContextMenuModule; } });
|
|
81
|
+
Object.defineProperty(exports, "markerNavigatorModule", { enumerable: true, get: function () { return di_config_23.markerNavigatorModule; } });
|
|
82
|
+
Object.defineProperty(exports, "validationModule", { enumerable: true, get: function () { return di_config_23.validationModule; } });
|
|
83
|
+
const di_config_24 = require("./features/viewport/di.config");
|
|
84
|
+
exports.glspViewportModule = di_config_24.default;
|
|
77
85
|
// ------------------ Base ------------------
|
|
78
86
|
__exportStar(require("./base/action-dispatcher"), exports);
|
|
79
87
|
__exportStar(require("./base/actions/focus-change-action"), exports);
|
|
@@ -83,8 +91,8 @@ __exportStar(require("./base/auto-complete/auto-complete-widget"), exports);
|
|
|
83
91
|
__exportStar(require("./base/auto-complete/validation-decorator"), exports);
|
|
84
92
|
__exportStar(require("./base/command-stack"), exports);
|
|
85
93
|
__exportStar(require("./base/container-modules"), exports);
|
|
86
|
-
var
|
|
87
|
-
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return
|
|
94
|
+
var di_config_25 = require("./base/di.config");
|
|
95
|
+
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return di_config_25.configureServerActions; } });
|
|
88
96
|
__exportStar(require("./base/drag-aware-mouse-listener"), exports);
|
|
89
97
|
__exportStar(require("./base/editor-context-service"), exports);
|
|
90
98
|
__exportStar(require("./base/focus-tracker"), exports);
|
|
@@ -97,6 +105,9 @@ __exportStar(require("./base/tool-manager/glsp-tool-manager"), exports);
|
|
|
97
105
|
__exportStar(require("./base/tool-manager/tool-actions"), exports);
|
|
98
106
|
__exportStar(require("./base/types"), exports);
|
|
99
107
|
__exportStar(require("./base/view/view-registry"), exports);
|
|
108
|
+
__exportStar(require("./features/accessibility/view-key-tools/deselect-key-tool"), exports);
|
|
109
|
+
__exportStar(require("./features/accessibility/view-key-tools/movement-key-tool"), exports);
|
|
110
|
+
__exportStar(require("./features/accessibility/view-key-tools/zoom-key-tool"), exports);
|
|
100
111
|
//
|
|
101
112
|
// ------------------ Features ------------------
|
|
102
113
|
__exportStar(require("./features/bounds/freeform-layout"), exports);
|
|
@@ -115,7 +126,6 @@ __exportStar(require("./features/context-menu/server-context-menu-provider"), ex
|
|
|
115
126
|
__exportStar(require("./features/copy-paste/copy-paste-context-menu"), exports);
|
|
116
127
|
__exportStar(require("./features/copy-paste/copy-paste-handler"), exports);
|
|
117
128
|
__exportStar(require("./features/decoration/decoration-placer"), exports);
|
|
118
|
-
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
119
129
|
__exportStar(require("./features/edit-label/edit-label-tool"), exports);
|
|
120
130
|
__exportStar(require("./features/edit-label/edit-label-validator"), exports);
|
|
121
131
|
__exportStar(require("./features/export/glsp-svg-exporter"), exports);
|
|
@@ -134,6 +144,7 @@ __exportStar(require("./features/select/select-feedback-action"), exports);
|
|
|
134
144
|
__exportStar(require("./features/select/select-mouse-listener"), exports);
|
|
135
145
|
__exportStar(require("./features/select/selection-service"), exports);
|
|
136
146
|
__exportStar(require("./features/source-model-watcher/source-model-changed-action-handler"), exports);
|
|
147
|
+
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
137
148
|
__exportStar(require("./features/tool-feedback/change-bounds-tool-feedback"), exports);
|
|
138
149
|
__exportStar(require("./features/tool-feedback/creation-tool-feedback"), exports);
|
|
139
150
|
__exportStar(require("./features/tool-feedback/css-feedback"), exports);
|
|
@@ -146,8 +157,8 @@ __exportStar(require("./features/tool-palette/tool-palette"), exports);
|
|
|
146
157
|
__exportStar(require("./features/tools/base-glsp-tool"), exports);
|
|
147
158
|
__exportStar(require("./features/tools/change-bounds-tool"), exports);
|
|
148
159
|
__exportStar(require("./features/tools/delete-tool"), exports);
|
|
149
|
-
var
|
|
150
|
-
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return
|
|
160
|
+
var di_config_26 = require("./features/tools/di.config");
|
|
161
|
+
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return di_config_26.configureMarqueeTool; } });
|
|
151
162
|
__exportStar(require("./features/tools/edge-creation-tool"), exports);
|
|
152
163
|
__exportStar(require("./features/tools/edge-edit-tool"), exports);
|
|
153
164
|
__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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AAA;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.97e90c6.246+97e90c6",
|
|
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.97e90c6.246+97e90c6",
|
|
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": "97e90c674e0112fabfe4259fbf5f1c944f40da67"
|
|
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,30 @@
|
|
|
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 { configureSearchPaletteModule } from './search/di.config';
|
|
20
|
+
import { configureViewKeyTools } from './view-key-tools/di.config';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Enables the accessibility tools for a keyboard-only-usage
|
|
24
|
+
*/
|
|
25
|
+
export const glspAccessibilityModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26
|
+
const context = { bind, unbind, isBound, rebind };
|
|
27
|
+
configureViewKeyTools(context);
|
|
28
|
+
configureMoveZoom(context);
|
|
29
|
+
configureSearchPaletteModule(context);
|
|
30
|
+
});
|