@eclipse-glsp/client 2.2.0-next.325 → 2.2.0-next.326
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/default-modules.d.ts.map +1 -1
- package/lib/default-modules.js +2 -1
- package/lib/default-modules.js.map +1 -1
- package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-module.js +2 -1
- package/lib/features/command-palette/command-palette-module.js.map +1 -1
- package/lib/features/command-palette/command-palette.d.ts +21 -0
- package/lib/features/command-palette/command-palette.d.ts.map +1 -0
- package/lib/features/command-palette/command-palette.js +46 -0
- package/lib/features/command-palette/command-palette.js.map +1 -0
- package/lib/features/command-palette/index.d.ts +1 -0
- package/lib/features/command-palette/index.d.ts.map +1 -1
- package/lib/features/command-palette/index.js +1 -0
- package/lib/features/command-palette/index.js.map +1 -1
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts +18 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.js +27 -0
- package/lib/features/label-edit-ui/label-edit-ui-module.js.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui.d.ts +21 -0
- package/lib/features/label-edit-ui/label-edit-ui.d.ts.map +1 -0
- package/lib/features/label-edit-ui/label-edit-ui.js +46 -0
- package/lib/features/label-edit-ui/label-edit-ui.js.map +1 -0
- package/package.json +3 -3
- package/src/default-modules.ts +1 -1
- package/src/features/command-palette/command-palette-module.ts +3 -2
- package/src/features/command-palette/command-palette.ts +34 -0
- package/src/features/command-palette/index.ts +1 -0
- package/src/features/label-edit-ui/label-edit-ui-module.ts +24 -0
- package/src/features/label-edit-ui/label-edit-ui.ts +33 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-modules.d.ts","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,aAAa,EAEb,aAAa,
|
|
1
|
+
{"version":3,"file":"default-modules.d.ts","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,cAAc,EACd,sBAAsB,EACtB,aAAa,EAEb,aAAa,EAUhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AA8B9D,eAAO,MAAM,eAAe,sjBAsClB,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa,CAElF;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACnC,OAAO,EAAE,cAAc,EACvB,cAAc,EAAE,eAAe,EAC/B,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GACvC,IAAI,CAQN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,uBAAuB,EAAE,sBAAsB,GAAG,SAAS,CAY9H"}
|
package/lib/default-modules.js
CHANGED
|
@@ -45,6 +45,7 @@ const node_creation_module_1 = require("./features/tools/node-creation/node-crea
|
|
|
45
45
|
const tool_focus_loss_module_1 = require("./features/tools/tool-focus-loss-module");
|
|
46
46
|
const validation_modules_1 = require("./features/validation/validation-modules");
|
|
47
47
|
const viewport_modules_1 = require("./features/viewport/viewport-modules");
|
|
48
|
+
const label_edit_ui_module_1 = require("./features/label-edit-ui/label-edit-ui-module");
|
|
48
49
|
exports.DEFAULT_MODULES = [
|
|
49
50
|
default_module_1.defaultModule,
|
|
50
51
|
sprotty_1.buttonModule,
|
|
@@ -62,7 +63,7 @@ exports.DEFAULT_MODULES = [
|
|
|
62
63
|
select_module_1.selectModule,
|
|
63
64
|
copy_paste_modules_1.copyPasteModule,
|
|
64
65
|
viewport_modules_1.viewportModule,
|
|
65
|
-
|
|
66
|
+
label_edit_ui_module_1.labelEditUiModule,
|
|
66
67
|
layout_module_1.layoutModule,
|
|
67
68
|
validation_modules_1.markerNavigatorModule,
|
|
68
69
|
type_hints_module_1.typeHintsModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-modules.js","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,
|
|
1
|
+
{"version":3,"file":"default-modules.js","sourceRoot":"","sources":["../src/default-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,mDAe+B;AAE/B,0DAAsD;AAEtD,mEAA+D;AAC/D,8FAAyF;AACzF,qFAAgF;AAChF,iFAA2E;AAC3E,+EAA2E;AAC3E,iGAA4F;AAC5F,qEAAgE;AAChE,0EAAqE;AACrE,gEAA4D;AAC5D,+EAA0E;AAC1E,mEAA+D;AAC/D,+EAA2E;AAC3E,sEAAkE;AAClE,mEAA+D;AAC/D,6GAAuG;AACvG,mEAA+D;AAC/D,qFAAgF;AAChF,qFAAgF;AAChF,wGAAkG;AAClG,yFAAoF;AACpF,gGAA8F;AAC9F,kFAAiF;AACjF,0GAAyG;AACzG,8FAA6F;AAC7F,oFAA8E;AAC9E,iFAAmG;AACnG,2EAAsE;AACtE,wFAAkF;AAErE,QAAA,eAAe,GAAG;IAC3B,8BAAa;IACb,sBAAY;IACZ,gCAAsB;IACtB,0BAAgB;IAChB,sBAAY;IACZ,6BAAY;IACZ,oBAAU;IACV,4BAAY;IACZ,6CAAoB;IACpB,uCAAiB;IACjB,oCAAgB;IAChB,mCAAe;IACf,0BAAW;IACX,4BAAY;IACZ,oCAAe;IACf,iCAAc;IACd,wCAAiB;IACjB,4BAAY;IACZ,0CAAqB;IACrB,mCAAe;IACf,2BAAiB;IACjB,sDAAwB;IACxB,oCAAgB;IAChB,8BAAa;IACb,uCAAiB;IACjB,8CAAsB;IACtB,qCAAkB;IAClB,yCAAkB;IAClB,+CAAqB;IACrB,6CAAsB;IACtB,kDAAsB;IACtB,qDAA0B;IAC1B,4CAAmB;IACnB,qCAAgB;IAChB,sBAAY;IACZ,uCAAiB;IACjB,4BAAY;CACN,CAAC;AAEX;;;;;;GAMG;AACH,SAAgB,0BAA0B,CAAC,OAAwB;IAC/D,OAAO,IAAI,uBAAa,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AACrI,CAAC;AAFD,gEAEC;AAED;;;;;;;GAOG;AACH,SAAgB,uBAAuB,CACnC,OAAuB,EACvB,cAA+B,EAC/B,aAAsC;IAEtC,IAAA,gCAAsB,EAAC,OAAO,kBAC1B,OAAO,EAAE,cAAc,CAAC,QAAQ,EAChC,SAAS,EAAE,cAAc,CAAC,QAAQ,GAAG,SAAS,EAC9C,UAAU,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,IAC9B,aAAa,EAClB,CAAC;IACH,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,eAAe,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;AACxE,CAAC;AAZD,0DAYC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,0BAA0B,CAAC,SAAoB,EAAE,GAAG,uBAA+C;IAC/G,MAAM,OAAO,GAAG,IAAA,uCAA6B,EAAC,GAAG,uBAAe,EAAE,GAAG,uBAAuB,CAAC,CAAC;IAC9F,oHAAoH;IACpH,4BAA4B;IAC5B,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC/B,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,YAAY,uBAAa,IAAI,WAAW,CAAC,SAAS,KAAK,8BAAa,CAAC,SAAS,CAAC,EAAE;QAC9G,MAAM,IAAI,KAAK,CACX,4HAA4H,CAC/H,CAAC;KACL;IACD,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;IAC3B,OAAO,SAAS,CAAC;AACrB,CAAC;AAZD,gEAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-module.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"command-palette-module.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAwC,aAAa,EAAwB,MAAM,uBAAuB,CAAC;AAClH,OAAO,kCAAkC,CAAC;AAK1C,eAAO,MAAM,oBAAoB,eAK/B,CAAC"}
|
|
@@ -18,10 +18,11 @@ exports.commandPaletteModule = void 0;
|
|
|
18
18
|
********************************************************************************/
|
|
19
19
|
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
20
20
|
require("../../../css/command-palette.css");
|
|
21
|
+
const command_palette_1 = require("./command-palette");
|
|
21
22
|
const command_palette_tool_1 = require("./command-palette-tool");
|
|
22
23
|
const server_command_palette_provider_1 = require("./server-command-palette-provider");
|
|
23
24
|
exports.commandPaletteModule = new sprotty_1.FeatureModule(bind => {
|
|
24
|
-
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.IUIExtension,
|
|
25
|
+
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.IUIExtension, command_palette_1.GlspCommandPalette);
|
|
25
26
|
bind(sprotty_1.TYPES.ICommandPaletteActionProviderRegistry).to(sprotty_1.CommandPaletteActionProviderRegistry).inSingletonScope();
|
|
26
27
|
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.ICommandPaletteActionProvider, server_command_palette_provider_1.ServerCommandPaletteActionProvider);
|
|
27
28
|
(0, sprotty_1.bindAsService)(bind, sprotty_1.TYPES.IDefaultTool, command_palette_tool_1.CommandPaletteTool);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-module.js","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"command-palette-module.js","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAkH;AAClH,4CAA0C;AAC1C,uDAAuD;AACvD,iEAA4D;AAC5D,uFAAuF;AAE1E,QAAA,oBAAoB,GAAG,IAAI,uBAAa,CAAC,IAAI,CAAC,EAAE;IACzD,IAAA,uBAAa,EAAC,IAAI,EAAE,eAAK,CAAC,YAAY,EAAE,oCAAkB,CAAC,CAAC;IAC5D,IAAI,CAAC,eAAK,CAAC,qCAAqC,CAAC,CAAC,EAAE,CAAC,8CAAoC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC9G,IAAA,uBAAa,EAAC,IAAI,EAAE,eAAK,CAAC,6BAA6B,EAAE,oEAAkC,CAAC,CAAC;IAC7F,IAAA,uBAAa,EAAC,IAAI,EAAE,eAAK,CAAC,YAAY,EAAE,yCAAkB,CAAC,CAAC;AAChE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource 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 { CommandPalette } from '@eclipse-glsp/sprotty';
|
|
17
|
+
export declare class GlspCommandPalette extends CommandPalette {
|
|
18
|
+
protected initializeContents(containerElement: HTMLElement): void;
|
|
19
|
+
protected setContainerVisible(visible: boolean): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=command-palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAsD,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG3G,qBACa,kBAAmB,SAAQ,cAAc;cAC/B,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;cAKvD,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAOjE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2024 EclipseSource 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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.GlspCommandPalette = void 0;
|
|
25
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
|
+
const inversify_1 = require("inversify");
|
|
27
|
+
let GlspCommandPalette = class GlspCommandPalette extends sprotty_1.CommandPalette {
|
|
28
|
+
initializeContents(containerElement) {
|
|
29
|
+
super.initializeContents(containerElement);
|
|
30
|
+
containerElement.classList.add(sprotty_1.CSS_UI_EXTENSION_CLASS);
|
|
31
|
+
}
|
|
32
|
+
setContainerVisible(visible) {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
if (visible) {
|
|
35
|
+
(_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.classList.remove(sprotty_1.CSS_HIDDEN_EXTENSION_CLASS);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
(_b = this.containerElement) === null || _b === void 0 ? void 0 : _b.classList.add(sprotty_1.CSS_HIDDEN_EXTENSION_CLASS);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.GlspCommandPalette = GlspCommandPalette;
|
|
43
|
+
exports.GlspCommandPalette = GlspCommandPalette = __decorate([
|
|
44
|
+
(0, inversify_1.injectable)()
|
|
45
|
+
], GlspCommandPalette);
|
|
46
|
+
//# sourceMappingURL=command-palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-palette.js","sourceRoot":"","sources":["../../../src/features/command-palette/command-palette.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,mDAA2G;AAC3G,yCAAuC;AAGhC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAc;IAC/B,kBAAkB,CAAC,gBAA6B;QAC/D,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;QAC3C,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,gCAAsB,CAAC,CAAC;IAC3D,CAAC;IAEkB,mBAAmB,CAAC,OAAgB;;QACnD,IAAI,OAAO,EAAE;YACT,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,MAAM,CAAC,oCAA0B,CAAC,CAAC;SACvE;aAAM;YACH,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,GAAG,CAAC,oCAA0B,CAAC,CAAC;SACpE;IACL,CAAC;CACJ,CAAA;AAbY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAa9B"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
export * from './command-palette';
|
|
16
17
|
export * from './command-palette-module';
|
|
17
18
|
export * from './command-palette-tool';
|
|
18
19
|
export * from './server-command-palette-provider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC"}
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
*
|
|
30
30
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
31
|
********************************************************************************/
|
|
32
|
+
__exportStar(require("./command-palette"), exports);
|
|
32
33
|
__exportStar(require("./command-palette-module"), exports);
|
|
33
34
|
__exportStar(require("./command-palette-tool"), exports);
|
|
34
35
|
__exportStar(require("./server-command-palette-provider"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAAyC;AACzC,yDAAuC;AACvC,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/command-palette/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,oDAAkC;AAClC,2DAAyC;AACzC,yDAAuC;AACvC,oEAAkD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource 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 { FeatureModule } from '@eclipse-glsp/sprotty';
|
|
17
|
+
export declare const labelEditUiModule: FeatureModule;
|
|
18
|
+
//# sourceMappingURL=label-edit-ui-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-edit-ui-module.d.ts","sourceRoot":"","sources":["../../../src/features/label-edit-ui/label-edit-ui-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAA2C,aAAa,EAAiC,MAAM,uBAAuB,CAAC;AAG9H,eAAO,MAAM,iBAAiB,eAK5B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.labelEditUiModule = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
20
|
+
const label_edit_ui_1 = require("./label-edit-ui");
|
|
21
|
+
exports.labelEditUiModule = new sprotty_1.FeatureModule((bind, unbind, isBound, rebind, ...rest) => {
|
|
22
|
+
const context = { bind, unbind, isBound, rebind };
|
|
23
|
+
(0, sprotty_1.configureActionHandler)(context, sprotty_1.EditLabelAction.KIND, sprotty_1.EditLabelActionHandler);
|
|
24
|
+
bind(label_edit_ui_1.GlspEditLabelUI).toSelf().inSingletonScope();
|
|
25
|
+
bind(sprotty_1.TYPES.IUIExtension).toService(label_edit_ui_1.GlspEditLabelUI);
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=label-edit-ui-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-edit-ui-module.js","sourceRoot":"","sources":["../../../src/features/label-edit-ui/label-edit-ui-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAA8H;AAC9H,mDAAkD;AAErC,QAAA,iBAAiB,GAAG,IAAI,uBAAa,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE;IAC1F,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClD,IAAA,gCAAsB,EAAC,OAAO,EAAE,yBAAe,CAAC,IAAI,EAAE,gCAAsB,CAAC,CAAC;IAC9E,IAAI,CAAC,+BAAe,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClD,IAAI,CAAC,eAAK,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,+BAAe,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource 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 { EditLabelUI } from '@eclipse-glsp/sprotty';
|
|
17
|
+
export declare class GlspEditLabelUI extends EditLabelUI {
|
|
18
|
+
protected initializeContents(containerElement: HTMLElement): void;
|
|
19
|
+
protected setContainerVisible(visible: boolean): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=label-edit-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-edit-ui.d.ts","sourceRoot":"","sources":["../../../src/features/label-edit-ui/label-edit-ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAsD,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGxG,qBACa,eAAgB,SAAQ,WAAW;cACzB,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;cAKvD,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;CAOjE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GlspEditLabelUI = void 0;
|
|
10
|
+
/********************************************************************************
|
|
11
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
12
|
+
*
|
|
13
|
+
* This program and the accompanying materials are made available under the
|
|
14
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
15
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
16
|
+
*
|
|
17
|
+
* This Source Code may also be made available under the following Secondary
|
|
18
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
19
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
20
|
+
* with the GNU Classpath Exception which is available at
|
|
21
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
22
|
+
*
|
|
23
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
|
+
********************************************************************************/
|
|
25
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
|
+
const inversify_1 = require("inversify");
|
|
27
|
+
let GlspEditLabelUI = class GlspEditLabelUI extends sprotty_1.EditLabelUI {
|
|
28
|
+
initializeContents(containerElement) {
|
|
29
|
+
super.initializeContents(containerElement);
|
|
30
|
+
containerElement.classList.add(sprotty_1.CSS_UI_EXTENSION_CLASS);
|
|
31
|
+
}
|
|
32
|
+
setContainerVisible(visible) {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
if (visible) {
|
|
35
|
+
(_a = this.containerElement) === null || _a === void 0 ? void 0 : _a.classList.remove(sprotty_1.CSS_HIDDEN_EXTENSION_CLASS);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
(_b = this.containerElement) === null || _b === void 0 ? void 0 : _b.classList.add(sprotty_1.CSS_HIDDEN_EXTENSION_CLASS);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.GlspEditLabelUI = GlspEditLabelUI;
|
|
43
|
+
exports.GlspEditLabelUI = GlspEditLabelUI = __decorate([
|
|
44
|
+
(0, inversify_1.injectable)()
|
|
45
|
+
], GlspEditLabelUI);
|
|
46
|
+
//# sourceMappingURL=label-edit-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-edit-ui.js","sourceRoot":"","sources":["../../../src/features/label-edit-ui/label-edit-ui.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAAwG;AACxG,yCAAuC;AAGhC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAW;IACzB,kBAAkB,CAAC,gBAA6B;QAC/D,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;QAC3C,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,gCAAsB,CAAC,CAAC;IAC3D,CAAC;IAEkB,mBAAmB,CAAC,OAAgB;;QACnD,IAAI,OAAO,EAAE;YACT,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,MAAM,CAAC,oCAA0B,CAAC,CAAC;SACvE;aAAM;YACH,MAAA,IAAI,CAAC,gBAAgB,0CAAE,SAAS,CAAC,GAAG,CAAC,oCAA0B,CAAC,CAAC;SACpE;IACL,CAAC;CACJ,CAAA;AAbY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,sBAAU,GAAE;GACA,eAAe,CAa3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.326+43b1470",
|
|
4
4
|
"description": "A sprotty-based client for GLSP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"watch": "tsc -w"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@eclipse-glsp/sprotty": "2.2.0-next.
|
|
48
|
+
"@eclipse-glsp/sprotty": "2.2.0-next.326+43b1470",
|
|
49
49
|
"autocompleter": "^9.1.0",
|
|
50
50
|
"file-saver": "^2.0.5",
|
|
51
51
|
"lodash": "4.17.21"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "43b14705d06f9b42eccc78108951ebd04198471e"
|
|
64
64
|
}
|
package/src/default-modules.ts
CHANGED
|
@@ -26,7 +26,6 @@ import {
|
|
|
26
26
|
edgeLayoutModule,
|
|
27
27
|
expandModule,
|
|
28
28
|
fadeModule,
|
|
29
|
-
labelEditUiModule,
|
|
30
29
|
modelSourceModule,
|
|
31
30
|
resolveContainerConfiguration,
|
|
32
31
|
zorderModule
|
|
@@ -61,6 +60,7 @@ import { nodeCreationToolModule } from './features/tools/node-creation/node-crea
|
|
|
61
60
|
import { toolFocusLossModule } from './features/tools/tool-focus-loss-module';
|
|
62
61
|
import { markerNavigatorModule, validationModule } from './features/validation/validation-modules';
|
|
63
62
|
import { viewportModule } from './features/viewport/viewport-modules';
|
|
63
|
+
import { labelEditUiModule } from './features/label-edit-ui/label-edit-ui-module';
|
|
64
64
|
|
|
65
65
|
export const DEFAULT_MODULES = [
|
|
66
66
|
defaultModule,
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { CommandPaletteActionProviderRegistry, FeatureModule, TYPES, bindAsService } from '@eclipse-glsp/sprotty';
|
|
17
17
|
import '../../../css/command-palette.css';
|
|
18
|
+
import { GlspCommandPalette } from './command-palette';
|
|
18
19
|
import { CommandPaletteTool } from './command-palette-tool';
|
|
19
20
|
import { ServerCommandPaletteActionProvider } from './server-command-palette-provider';
|
|
20
21
|
|
|
21
22
|
export const commandPaletteModule = new FeatureModule(bind => {
|
|
22
|
-
bindAsService(bind, TYPES.IUIExtension,
|
|
23
|
+
bindAsService(bind, TYPES.IUIExtension, GlspCommandPalette);
|
|
23
24
|
bind(TYPES.ICommandPaletteActionProviderRegistry).to(CommandPaletteActionProviderRegistry).inSingletonScope();
|
|
24
25
|
bindAsService(bind, TYPES.ICommandPaletteActionProvider, ServerCommandPaletteActionProvider);
|
|
25
26
|
bindAsService(bind, TYPES.IDefaultTool, CommandPaletteTool);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource 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 { CSS_HIDDEN_EXTENSION_CLASS, CSS_UI_EXTENSION_CLASS, CommandPalette } from '@eclipse-glsp/sprotty';
|
|
18
|
+
import { injectable } from 'inversify';
|
|
19
|
+
|
|
20
|
+
@injectable()
|
|
21
|
+
export class GlspCommandPalette extends CommandPalette {
|
|
22
|
+
protected override initializeContents(containerElement: HTMLElement): void {
|
|
23
|
+
super.initializeContents(containerElement);
|
|
24
|
+
containerElement.classList.add(CSS_UI_EXTENSION_CLASS);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
protected override setContainerVisible(visible: boolean): void {
|
|
28
|
+
if (visible) {
|
|
29
|
+
this.containerElement?.classList.remove(CSS_HIDDEN_EXTENSION_CLASS);
|
|
30
|
+
} else {
|
|
31
|
+
this.containerElement?.classList.add(CSS_HIDDEN_EXTENSION_CLASS);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
export * from './command-palette';
|
|
16
17
|
export * from './command-palette-module';
|
|
17
18
|
export * from './command-palette-tool';
|
|
18
19
|
export * from './server-command-palette-provider';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource 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 { EditLabelAction, EditLabelActionHandler, FeatureModule, TYPES, configureActionHandler } from '@eclipse-glsp/sprotty';
|
|
17
|
+
import { GlspEditLabelUI } from './label-edit-ui';
|
|
18
|
+
|
|
19
|
+
export const labelEditUiModule = new FeatureModule((bind, unbind, isBound, rebind, ...rest) => {
|
|
20
|
+
const context = { bind, unbind, isBound, rebind };
|
|
21
|
+
configureActionHandler(context, EditLabelAction.KIND, EditLabelActionHandler);
|
|
22
|
+
bind(GlspEditLabelUI).toSelf().inSingletonScope();
|
|
23
|
+
bind(TYPES.IUIExtension).toService(GlspEditLabelUI);
|
|
24
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource 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 { CSS_HIDDEN_EXTENSION_CLASS, CSS_UI_EXTENSION_CLASS, EditLabelUI } from '@eclipse-glsp/sprotty';
|
|
17
|
+
import { injectable } from 'inversify';
|
|
18
|
+
|
|
19
|
+
@injectable()
|
|
20
|
+
export class GlspEditLabelUI extends EditLabelUI {
|
|
21
|
+
protected override initializeContents(containerElement: HTMLElement): void {
|
|
22
|
+
super.initializeContents(containerElement);
|
|
23
|
+
containerElement.classList.add(CSS_UI_EXTENSION_CLASS);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
protected override setContainerVisible(visible: boolean): void {
|
|
27
|
+
if (visible) {
|
|
28
|
+
this.containerElement?.classList.remove(CSS_HIDDEN_EXTENSION_CLASS);
|
|
29
|
+
} else {
|
|
30
|
+
this.containerElement?.classList.add(CSS_HIDDEN_EXTENSION_CLASS);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|