@eclipse-glsp/client 1.1.0-next.462aba6.238 → 1.1.0-next.4e10035.245
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/{lib/features/change-bounds/snap.spec.d.ts → css/autocomplete-palette.css} +8 -3
- 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 +28 -0
- package/lib/features/accessibility/di.config.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/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/{tools/marquee-behavior.spec.d.ts → autocomplete-palette/autocomplete-suggestion-providers.js} +4 -3
- 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/features/tool-feedback/creation-tool-feedback.d.ts +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +1 -1
- package/lib/index.d.ts +5 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +52 -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 +26 -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/autocomplete-palette/autocomplete-suggestion-providers.ts +37 -0
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +88 -0
- package/src/features/tool-feedback/creation-tool-feedback.ts +1 -1
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +1 -1
- package/src/index.ts +7 -3
- package/lib/features/bounds/freeform-layout.spec.d.ts +0 -3
- package/lib/features/bounds/freeform-layout.spec.d.ts.map +0 -1
- package/lib/features/bounds/freeform-layout.spec.js +0 -201
- package/lib/features/bounds/freeform-layout.spec.js.map +0 -1
- package/lib/features/bounds/hbox-layout.spec.d.ts +0 -3
- package/lib/features/bounds/hbox-layout.spec.d.ts.map +0 -1
- package/lib/features/bounds/hbox-layout.spec.js +0 -161
- package/lib/features/bounds/hbox-layout.spec.js.map +0 -1
- package/lib/features/bounds/layouter-test-util.spec.d.ts +0 -33
- package/lib/features/bounds/layouter-test-util.spec.d.ts.map +0 -1
- package/lib/features/bounds/layouter-test-util.spec.js +0 -96
- package/lib/features/bounds/layouter-test-util.spec.js.map +0 -1
- package/lib/features/bounds/vbox-layout.spec.d.ts +0 -3
- package/lib/features/bounds/vbox-layout.spec.d.ts.map +0 -1
- package/lib/features/bounds/vbox-layout.spec.js +0 -161
- package/lib/features/bounds/vbox-layout.spec.js.map +0 -1
- package/lib/features/change-bounds/snap.spec.d.ts.map +0 -1
- package/lib/features/change-bounds/snap.spec.js +0 -82
- package/lib/features/change-bounds/snap.spec.js.map +0 -1
- package/lib/features/layout/layout-elements-action.spec.d.ts +0 -3
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +0 -1
- package/lib/features/layout/layout-elements-action.spec.js +0 -325
- package/lib/features/layout/layout-elements-action.spec.js.map +0 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +0 -3
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +0 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +0 -54
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +0 -1
- package/lib/features/select/selection-service.spec.d.ts +0 -2
- package/lib/features/select/selection-service.spec.d.ts.map +0 -1
- package/lib/features/select/selection-service.spec.js +0 -363
- package/lib/features/select/selection-service.spec.js.map +0 -1
- package/lib/features/tools/marquee-behavior.spec.d.ts.map +0 -1
- package/lib/features/tools/marquee-behavior.spec.js +0 -165
- package/lib/features/tools/marquee-behavior.spec.js.map +0 -1
- package/lib/features/validation/marker-navigator.spec.d.ts +0 -3
- package/lib/features/validation/marker-navigator.spec.d.ts.map +0 -1
- package/lib/features/validation/marker-navigator.spec.js +0 -169
- package/lib/features/validation/marker-navigator.spec.js.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
var SearchAutocompletePaletteTool_1;
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SearchAutocompletePaletteKeyListener = exports.SearchAutocompletePaletteTool = void 0;
|
|
29
|
+
const inversify_1 = require("inversify");
|
|
30
|
+
const sprotty_1 = require("sprotty");
|
|
31
|
+
const keyboard_1 = require("sprotty/lib/utils/keyboard");
|
|
32
|
+
const search_palette_1 = require("./search-palette");
|
|
33
|
+
let SearchAutocompletePaletteTool = SearchAutocompletePaletteTool_1 = class SearchAutocompletePaletteTool {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.keyListener = new SearchAutocompletePaletteKeyListener();
|
|
36
|
+
}
|
|
37
|
+
get id() {
|
|
38
|
+
return SearchAutocompletePaletteTool_1.ID;
|
|
39
|
+
}
|
|
40
|
+
enable() {
|
|
41
|
+
this.keyTool.register(this.keyListener);
|
|
42
|
+
}
|
|
43
|
+
disable() {
|
|
44
|
+
this.keyTool.deregister(this.keyListener);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
SearchAutocompletePaletteTool.ID = 'glsp.search-autocomplete-palette-tool';
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, inversify_1.inject)(sprotty_1.KeyTool),
|
|
50
|
+
__metadata("design:type", sprotty_1.KeyTool)
|
|
51
|
+
], SearchAutocompletePaletteTool.prototype, "keyTool", void 0);
|
|
52
|
+
SearchAutocompletePaletteTool = SearchAutocompletePaletteTool_1 = __decorate([
|
|
53
|
+
(0, inversify_1.injectable)()
|
|
54
|
+
], SearchAutocompletePaletteTool);
|
|
55
|
+
exports.SearchAutocompletePaletteTool = SearchAutocompletePaletteTool;
|
|
56
|
+
class SearchAutocompletePaletteKeyListener extends sprotty_1.KeyListener {
|
|
57
|
+
keyDown(element, event) {
|
|
58
|
+
if (this.matchesSearchActivateKeystroke(event)) {
|
|
59
|
+
return [
|
|
60
|
+
sprotty_1.SetUIExtensionVisibilityAction.create({
|
|
61
|
+
extensionId: search_palette_1.SearchAutocompletePalette.ID,
|
|
62
|
+
visible: true
|
|
63
|
+
})
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
return [];
|
|
67
|
+
}
|
|
68
|
+
matchesSearchActivateKeystroke(event) {
|
|
69
|
+
return (0, keyboard_1.matchesKeystroke)(event, 'KeyF', 'ctrl');
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.SearchAutocompletePaletteKeyListener = SearchAutocompletePaletteKeyListener;
|
|
73
|
+
//# sourceMappingURL=search-tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-tool.js","sourceRoot":"","sources":["../../../../src/features/accessibility/search/search-tool.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAGlF,yCAA+C;AAC/C,qCAAoG;AACpG,yDAA8D;AAC9D,qDAA6D;AAGtD,IAAM,6BAA6B,qCAAnC,MAAM,6BAA6B;IAAnC;QAGgB,gBAAW,GAAG,IAAI,oCAAoC,EAAE,CAAC;IAehF,CAAC;IAXG,IAAI,EAAE;QACF,OAAO,+BAA6B,CAAC,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM;QACF,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO;QACH,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC;;AAhBe,gCAAE,GAAG,uCAAuC,CAAC;AAI7D;IAAC,IAAA,kBAAM,EAAC,iBAAO,CAAC;8BAAoB,iBAAO;8DAAC;AALnC,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAkBzC;AAlBY,sEAA6B;AAoB1C,MAAa,oCAAqC,SAAQ,qBAAW;IACxD,OAAO,CAAC,OAAsB,EAAE,KAAoB;QACzD,IAAI,IAAI,CAAC,8BAA8B,CAAC,KAAK,CAAC,EAAE;YAC5C,OAAO;gBACH,wCAA8B,CAAC,MAAM,CAAC;oBAClC,WAAW,EAAE,0CAAyB,CAAC,EAAE;oBACzC,OAAO,EAAE,IAAI;iBAChB,CAAC;aACL,CAAC;SACL;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAES,8BAA8B,CAAC,KAAoB;QACzD,OAAO,IAAA,2BAAgB,EAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;CACJ;AAhBD,oFAgBC"}
|
|
@@ -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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
3
|
+
* Copyright (c) 2023 Business Informatics Group (TU Wien) and others.
|
|
3
4
|
*
|
|
4
5
|
* This program and the accompanying materials are made available under the
|
|
5
6
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,5 +14,5 @@
|
|
|
13
14
|
*
|
|
14
15
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
16
|
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
//# sourceMappingURL=
|
|
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,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAS,MAAM,SAAS,CAAC;AAChF,OAAO,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAiB,MAAM,+CAA+C,CAAC;AAE/G,8BAAsB,uBAAwB,SAAQ,mBAAmB;IACrE,SAAS,CAAC,QAAQ,CAAC,sBAAsB;;;;;MAKvC;IAEF,SAAS,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC;IACtC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAGjD,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;IAEjD,cAAc,IAAI,MAAM;IAIf,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,iBAAiB,EAAE,MAAM,EAAE,GAAG,IAAI;IAMtE,IAAI,IAAI,IAAI;IAMrB,SAAS,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;IAiBjE,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;cAE3F,yBAAyB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;cAIrG,yBAAyB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAInH,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIrD,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,GAAG,MAAM,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,KAA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AAE,aAA6B;QAC/F,OAAO;IACX,CAAC;IAES,gBAAgB,CAAC,MAAmB;QAC1C,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAES,iBAAiB,CAAC,KAAwC;QAChE,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.removeFeedbackEdge = exports.drawFeedbackEdge = exports.defaultFeedbackEdgeSchema = exports.feedbackEdgeEndId = exports.feedbackEdgeId = exports.FeedbackEdgeEndMovingMouseListener = exports.FeedbackEdgeEnd = exports.RemoveFeedbackEdgeCommand = exports.RemoveFeedbackEdgeAction = exports.DrawFeedbackEdgeCommand = exports.DrawFeedbackEdgeAction = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
18
18
|
*
|
|
19
19
|
* This program and the accompanying materials are made available under the
|
|
20
20
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.FeedbackEdgeRouteMovingMouseListener = exports.FeedbackEdgeSourceMovingMouseListener = exports.FeedbackEdgeTargetMovingMouseListener = exports.DrawFeedbackEdgeSourceCommand = exports.DrawFeedbackEdgeSourceAction = exports.SwitchRoutingModeCommand = exports.SwitchRoutingModeAction = exports.HideEdgeReconnectHandlesFeedbackCommand = exports.ShowEdgeReconnectHandlesFeedbackCommand = exports.HideEdgeReconnectHandlesFeedbackAction = exports.ShowEdgeReconnectHandlesFeedbackAction = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
18
18
|
*
|
|
19
19
|
* This program and the accompanying materials are made available under the
|
|
20
20
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
package/lib/index.d.ts
CHANGED
|
@@ -14,11 +14,12 @@
|
|
|
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 { glspSearchPaletteModule } from './features/accessibility/search/di.config';
|
|
17
19
|
import glspCommandPaletteModule from './features/command-palette/di.config';
|
|
18
20
|
import glspContextMenuModule from './features/context-menu/di.config';
|
|
19
21
|
import { copyPasteContextMenuModule, glspServerCopyPasteModule } from './features/copy-paste/di.config';
|
|
20
22
|
import glspDecorationModule from './features/decoration/di.config';
|
|
21
|
-
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
22
23
|
import glspEditLabelModule from './features/edit-label/di.config';
|
|
23
24
|
import modelHintsModule from './features/hints/di.config';
|
|
24
25
|
import glspHoverModule from './features/hover/di.config';
|
|
@@ -28,6 +29,7 @@ import navigationModule from './features/navigation/di.config';
|
|
|
28
29
|
import saveModule from './features/save/di.config';
|
|
29
30
|
import glspSelectModule from './features/select/di.config';
|
|
30
31
|
import sourceModelWatcherModule from './features/source-model-watcher/di.config';
|
|
32
|
+
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
31
33
|
import toolFeedbackModule from './features/tool-feedback/di.config';
|
|
32
34
|
import paletteModule from './features/tool-palette/di.config';
|
|
33
35
|
import { enableDefaultToolsOnFocusLossModule, toolsModule } from './features/tools/di.config';
|
|
@@ -70,7 +72,6 @@ export * from './features/context-menu/server-context-menu-provider';
|
|
|
70
72
|
export * from './features/copy-paste/copy-paste-context-menu';
|
|
71
73
|
export * from './features/copy-paste/copy-paste-handler';
|
|
72
74
|
export * from './features/decoration/decoration-placer';
|
|
73
|
-
export * from './features/svg-metadata/metadata-placer';
|
|
74
75
|
export * from './features/edit-label/edit-label-tool';
|
|
75
76
|
export * from './features/edit-label/edit-label-validator';
|
|
76
77
|
export * from './features/export/glsp-svg-exporter';
|
|
@@ -89,6 +90,7 @@ export * from './features/select/select-feedback-action';
|
|
|
89
90
|
export * from './features/select/select-mouse-listener';
|
|
90
91
|
export * from './features/select/selection-service';
|
|
91
92
|
export * from './features/source-model-watcher/source-model-changed-action-handler';
|
|
93
|
+
export * from './features/svg-metadata/metadata-placer';
|
|
92
94
|
export * from './features/tool-feedback/change-bounds-tool-feedback';
|
|
93
95
|
export * from './features/tool-feedback/creation-tool-feedback';
|
|
94
96
|
export * from './features/tool-feedback/css-feedback';
|
|
@@ -123,5 +125,5 @@ export * from './utils/marker';
|
|
|
123
125
|
export * from './utils/smodel-util';
|
|
124
126
|
export * from './utils/viewpoint-util';
|
|
125
127
|
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 };
|
|
128
|
+
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, glspSearchPaletteModule, glspAccessibilityModule };
|
|
127
129
|
//# 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,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,q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+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.glspAccessibilityModule = exports.glspSearchPaletteModule = 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,52 @@ 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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
exports
|
|
46
|
-
const di_config_7 = require("./features/
|
|
47
|
-
exports.
|
|
48
|
-
const di_config_8 = require("./features/
|
|
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
|
-
Object.defineProperty(exports, "
|
|
74
|
-
Object.defineProperty(exports, "
|
|
75
|
-
const
|
|
76
|
-
exports
|
|
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/search/di.config");
|
|
38
|
+
Object.defineProperty(exports, "glspSearchPaletteModule", { enumerable: true, get: function () { return di_config_3.glspSearchPaletteModule; } });
|
|
39
|
+
const di_config_4 = require("./features/command-palette/di.config");
|
|
40
|
+
exports.glspCommandPaletteModule = di_config_4.default;
|
|
41
|
+
const di_config_5 = require("./features/context-menu/di.config");
|
|
42
|
+
exports.glspContextMenuModule = di_config_5.default;
|
|
43
|
+
const di_config_6 = require("./features/copy-paste/di.config");
|
|
44
|
+
Object.defineProperty(exports, "copyPasteContextMenuModule", { enumerable: true, get: function () { return di_config_6.copyPasteContextMenuModule; } });
|
|
45
|
+
Object.defineProperty(exports, "glspServerCopyPasteModule", { enumerable: true, get: function () { return di_config_6.glspServerCopyPasteModule; } });
|
|
46
|
+
const di_config_7 = require("./features/decoration/di.config");
|
|
47
|
+
exports.glspDecorationModule = di_config_7.default;
|
|
48
|
+
const di_config_8 = require("./features/edit-label/di.config");
|
|
49
|
+
exports.glspEditLabelModule = di_config_8.default;
|
|
50
|
+
const di_config_9 = require("./features/hints/di.config");
|
|
51
|
+
exports.modelHintsModule = di_config_9.default;
|
|
52
|
+
const di_config_10 = require("./features/hover/di.config");
|
|
53
|
+
exports.glspHoverModule = di_config_10.default;
|
|
54
|
+
const di_config_11 = require("./features/layout/di.config");
|
|
55
|
+
exports.layoutModule = di_config_11.default;
|
|
56
|
+
const di_config_12 = require("./features/mouse-tool/di.config");
|
|
57
|
+
exports.glspMouseToolModule = di_config_12.default;
|
|
58
|
+
const di_config_13 = require("./features/navigation/di.config");
|
|
59
|
+
exports.navigationModule = di_config_13.default;
|
|
60
|
+
const di_config_14 = require("./features/save/di.config");
|
|
61
|
+
exports.saveModule = di_config_14.default;
|
|
62
|
+
const di_config_15 = require("./features/select/di.config");
|
|
63
|
+
exports.glspSelectModule = di_config_15.default;
|
|
64
|
+
const di_config_16 = require("./features/source-model-watcher/di.config");
|
|
65
|
+
exports.sourceModelWatcherModule = di_config_16.default;
|
|
66
|
+
const di_config_17 = require("./features/svg-metadata/di.config");
|
|
67
|
+
exports.svgMetadataModule = di_config_17.default;
|
|
68
|
+
const di_config_18 = require("./features/tool-feedback/di.config");
|
|
69
|
+
exports.toolFeedbackModule = di_config_18.default;
|
|
70
|
+
const di_config_19 = require("./features/tool-palette/di.config");
|
|
71
|
+
exports.paletteModule = di_config_19.default;
|
|
72
|
+
const di_config_20 = require("./features/tools/di.config");
|
|
73
|
+
Object.defineProperty(exports, "enableDefaultToolsOnFocusLossModule", { enumerable: true, get: function () { return di_config_20.enableDefaultToolsOnFocusLossModule; } });
|
|
74
|
+
Object.defineProperty(exports, "toolsModule", { enumerable: true, get: function () { return di_config_20.toolsModule; } });
|
|
75
|
+
const di_config_21 = require("./features/validation/di.config");
|
|
76
|
+
Object.defineProperty(exports, "markerNavigatorContextMenuModule", { enumerable: true, get: function () { return di_config_21.markerNavigatorContextMenuModule; } });
|
|
77
|
+
Object.defineProperty(exports, "markerNavigatorModule", { enumerable: true, get: function () { return di_config_21.markerNavigatorModule; } });
|
|
78
|
+
Object.defineProperty(exports, "validationModule", { enumerable: true, get: function () { return di_config_21.validationModule; } });
|
|
79
|
+
const di_config_22 = require("./features/viewport/di.config");
|
|
80
|
+
exports.glspViewportModule = di_config_22.default;
|
|
77
81
|
// ------------------ Base ------------------
|
|
78
82
|
__exportStar(require("./base/action-dispatcher"), exports);
|
|
79
83
|
__exportStar(require("./base/actions/focus-change-action"), exports);
|
|
@@ -83,8 +87,8 @@ __exportStar(require("./base/auto-complete/auto-complete-widget"), exports);
|
|
|
83
87
|
__exportStar(require("./base/auto-complete/validation-decorator"), exports);
|
|
84
88
|
__exportStar(require("./base/command-stack"), exports);
|
|
85
89
|
__exportStar(require("./base/container-modules"), exports);
|
|
86
|
-
var
|
|
87
|
-
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return
|
|
90
|
+
var di_config_23 = require("./base/di.config");
|
|
91
|
+
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return di_config_23.configureServerActions; } });
|
|
88
92
|
__exportStar(require("./base/drag-aware-mouse-listener"), exports);
|
|
89
93
|
__exportStar(require("./base/editor-context-service"), exports);
|
|
90
94
|
__exportStar(require("./base/focus-tracker"), exports);
|
|
@@ -115,7 +119,6 @@ __exportStar(require("./features/context-menu/server-context-menu-provider"), ex
|
|
|
115
119
|
__exportStar(require("./features/copy-paste/copy-paste-context-menu"), exports);
|
|
116
120
|
__exportStar(require("./features/copy-paste/copy-paste-handler"), exports);
|
|
117
121
|
__exportStar(require("./features/decoration/decoration-placer"), exports);
|
|
118
|
-
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
119
122
|
__exportStar(require("./features/edit-label/edit-label-tool"), exports);
|
|
120
123
|
__exportStar(require("./features/edit-label/edit-label-validator"), exports);
|
|
121
124
|
__exportStar(require("./features/export/glsp-svg-exporter"), exports);
|
|
@@ -134,6 +137,7 @@ __exportStar(require("./features/select/select-feedback-action"), exports);
|
|
|
134
137
|
__exportStar(require("./features/select/select-mouse-listener"), exports);
|
|
135
138
|
__exportStar(require("./features/select/selection-service"), exports);
|
|
136
139
|
__exportStar(require("./features/source-model-watcher/source-model-changed-action-handler"), exports);
|
|
140
|
+
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
137
141
|
__exportStar(require("./features/tool-feedback/change-bounds-tool-feedback"), exports);
|
|
138
142
|
__exportStar(require("./features/tool-feedback/creation-tool-feedback"), exports);
|
|
139
143
|
__exportStar(require("./features/tool-feedback/css-feedback"), exports);
|
|
@@ -146,8 +150,8 @@ __exportStar(require("./features/tool-palette/tool-palette"), exports);
|
|
|
146
150
|
__exportStar(require("./features/tools/base-glsp-tool"), exports);
|
|
147
151
|
__exportStar(require("./features/tools/change-bounds-tool"), exports);
|
|
148
152
|
__exportStar(require("./features/tools/delete-tool"), exports);
|
|
149
|
-
var
|
|
150
|
-
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return
|
|
153
|
+
var di_config_24 = require("./features/tools/di.config");
|
|
154
|
+
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return di_config_24.configureMarqueeTool; } });
|
|
151
155
|
__exportStar(require("./features/tools/edge-creation-tool"), exports);
|
|
152
156
|
__exportStar(require("./features/tools/edge-edit-tool"), exports);
|
|
153
157
|
__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;AA4H7C,4BA5HG,mBAAiB,CA4HH;AA3HrB,kEAA6E;AAgJzE,wGAhJK,mCAAuB,OAgJL;AA/I3B,yEAAoF;AA8IhF,wGA9IK,mCAAuB,OA8IL;AA7I3B,oEAA4E;AA2HxE,mCA3HG,mBAAwB,CA2HH;AA1H5B,iEAAsE;AA2HlE,gCA3HG,mBAAqB,CA2HH;AA1HzB,+DAAwG;AA4HpG,2GA5HK,sCAA0B,OA4HL;AAD1B,0GA3HiC,qCAAyB,OA2HjC;AA1H7B,+DAAmE;AAqI/D,+BArIG,mBAAoB,CAqIH;AApIxB,+DAAkE;AA8H9D,8BA9HG,mBAAmB,CA8HH;AA7HvB,0DAA0D;AAqHtD,2BArHG,mBAAgB,CAqHH;AApHpB,2DAAyD;AA6HrD,0BA7HG,oBAAe,CA6HH;AA5HnB,4DAAuD;AA0HnD,uBA1HG,oBAAY,CA0HH;AAzHhB,gEAAkE;AAwH9D,8BAxHG,oBAAmB,CAwHH;AAvHvB,gEAA+D;AA6H3D,2BA7HG,oBAAgB,CA6HH;AA5HpB,0DAAmD;AA4G/C,qBA5GG,oBAAU,CA4GH;AA3Gd,4DAA2D;AAoHvD,2BApHG,oBAAgB,CAoHH;AAnHpB,0EAAiF;AA6H7E,mCA7HG,oBAAwB,CA6HH;AA5H5B,kEAAkE;AA+H9D,4BA/HG,oBAAiB,CA+HH;AA9HrB,mEAAoE;AA0GhE,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qE;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.4e10035.245+4e10035",
|
|
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.4e10035.245+4e10035",
|
|
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": "4e100359fa5e72415368d0670906e1d03c1d6b05"
|
|
61
63
|
}
|