@eclipse-glsp/client 2.4.0-next.406 → 2.4.0-next.408
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/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +3 -2
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/routing-point-handle-view.d.ts +23 -0
- package/lib/views/routing-point-handle-view.d.ts.map +1 -0
- package/lib/views/routing-point-handle-view.js +41 -0
- package/lib/views/routing-point-handle-view.js.map +1 -0
- package/package.json +3 -3
- package/src/views/base-view-module.ts +1 -1
- package/src/views/routing-point-handle-view.tsx +32 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-view-module.d.ts","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,cAAc,EAOd,aAAa,
|
|
1
|
+
{"version":3,"file":"base-view-module.d.ts","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,cAAc,EAOd,aAAa,EAuBhB,MAAM,uBAAuB,CAAC;AAS/B,eAAO,MAAM,cAAc,eAM1B,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,IAAI,CAiCrG"}
|
|
@@ -23,6 +23,7 @@ const gedge_view_1 = require("./gedge-view");
|
|
|
23
23
|
const ggraph_view_1 = require("./ggraph-view");
|
|
24
24
|
const issue_marker_view_1 = require("./issue-marker-view");
|
|
25
25
|
const rounded_corner_view_1 = require("./rounded-corner-view");
|
|
26
|
+
const routing_point_handle_view_1 = require("./routing-point-handle-view");
|
|
26
27
|
exports.baseViewModule = new sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => {
|
|
27
28
|
const context = { bind, unbind, isBound, rebind };
|
|
28
29
|
configureDefaultModelElements(context);
|
|
@@ -45,8 +46,8 @@ function configureDefaultModelElements(context) {
|
|
|
45
46
|
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.COMPARTMENT_HEADER, sprotty_1.GCompartment, sprotty_1.GCompartmentView);
|
|
46
47
|
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.EDGE, model_1.GEdge, gedge_view_1.GEdgeView);
|
|
47
48
|
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.PORT, sprotty_1.GPort, sprotty_1.RectangularNodeView);
|
|
48
|
-
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.ROUTING_POINT, sprotty_1.GRoutingHandle,
|
|
49
|
-
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.VOLATILE_ROUTING_POINT, sprotty_1.GRoutingHandle,
|
|
49
|
+
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.ROUTING_POINT, sprotty_1.GRoutingHandle, routing_point_handle_view_1.GRoutingHandleView);
|
|
50
|
+
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.VOLATILE_ROUTING_POINT, sprotty_1.GRoutingHandle, routing_point_handle_view_1.GRoutingHandleView);
|
|
50
51
|
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.LABEL, sprotty_1.GLabel, sprotty_1.GLabelView);
|
|
51
52
|
// UI elements
|
|
52
53
|
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.BUTTON_EXPAND, sprotty_1.GButton, sprotty_1.ExpandButtonView);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-view-module.js","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"base-view-module.js","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;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CAAC;AACtG,CAAC;AAjCD,sEAiCC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2025 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 { SRoutingHandleView, type GRoutingHandle, type RenderingContext, type RoutedPoint } from '@eclipse-glsp/sprotty';
|
|
17
|
+
import type { VNode } from 'snabbdom';
|
|
18
|
+
export declare class GRoutingHandleView extends SRoutingHandleView {
|
|
19
|
+
render(handle: Readonly<GRoutingHandle>, context: RenderingContext, args?: {
|
|
20
|
+
route?: RoutedPoint[];
|
|
21
|
+
}): VNode;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=routing-point-handle-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-point-handle-view.d.ts","sourceRoot":"","sources":["../../src/views/routing-point-handle-view.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,qBACa,kBAAmB,SAAQ,kBAAkB;IAC7C,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,WAAW,EAAE,CAAA;KAAE,GAAG,KAAK;CAQxH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2025 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.GRoutingHandleView = void 0;
|
|
25
|
+
const sprotty_1 = require("@eclipse-glsp/sprotty");
|
|
26
|
+
const inversify_1 = require("inversify");
|
|
27
|
+
const model_1 = require("../features/reconnect/model");
|
|
28
|
+
let GRoutingHandleView = class GRoutingHandleView extends sprotty_1.SRoutingHandleView {
|
|
29
|
+
render(handle, context, args) {
|
|
30
|
+
// We have our own handle view for the reconnect handles
|
|
31
|
+
if ((0, model_1.isReconnectHandle)(handle)) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
return super.render(handle, context, args);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.GRoutingHandleView = GRoutingHandleView;
|
|
38
|
+
exports.GRoutingHandleView = GRoutingHandleView = __decorate([
|
|
39
|
+
(0, inversify_1.injectable)()
|
|
40
|
+
], GRoutingHandleView);
|
|
41
|
+
//# sourceMappingURL=routing-point-handle-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing-point-handle-view.js","sourceRoot":"","sources":["../../src/views/routing-point-handle-view.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,mDAAyH;AACzH,yCAAuC;AAEvC,uDAAgE;AAGzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4BAAkB;IAC7C,MAAM,CAAC,MAAgC,EAAE,OAAyB,EAAE,IAAgC;QACzG,wDAAwD;QACxD,IAAI,IAAA,yBAAiB,EAAC,MAAM,CAAC,EAAE,CAAC;YAC5B,OAAO,SAAgB,CAAC;QAC5B,CAAC;QAED,OAAO,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;CACJ,CAAA;AATY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAS9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "2.4.0-next.
|
|
3
|
+
"version": "2.4.0-next.408+69be937",
|
|
4
4
|
"description": "A sprotty-based client for GLSP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"watch": "tsc -w"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@eclipse-glsp/sprotty": "2.4.0-next.
|
|
49
|
+
"@eclipse-glsp/sprotty": "2.4.0-next.408+69be937",
|
|
50
50
|
"autocompleter": "^9.1.2",
|
|
51
51
|
"file-saver": "^2.0.5",
|
|
52
52
|
"lodash": "4.17.21",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "69be937e2137b929c3a1c8caa544f0f04c331ac3"
|
|
67
67
|
}
|
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
GPort,
|
|
35
35
|
GPreRenderedElement,
|
|
36
36
|
GRoutingHandle,
|
|
37
|
-
GRoutingHandleView,
|
|
38
37
|
GShapedPreRenderedElement,
|
|
39
38
|
GViewportRootElement,
|
|
40
39
|
HtmlRootView,
|
|
@@ -52,6 +51,7 @@ import { GEdgeView } from './gedge-view';
|
|
|
52
51
|
import { GGraphView } from './ggraph-view';
|
|
53
52
|
import { GIssueMarkerView } from './issue-marker-view';
|
|
54
53
|
import { RoundedCornerNodeView } from './rounded-corner-view';
|
|
54
|
+
import { GRoutingHandleView } from './routing-point-handle-view';
|
|
55
55
|
|
|
56
56
|
export const baseViewModule = new FeatureModule(
|
|
57
57
|
(bind, unbind, isBound, rebind) => {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2025 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 { SRoutingHandleView, type GRoutingHandle, type RenderingContext, type RoutedPoint } from '@eclipse-glsp/sprotty';
|
|
18
|
+
import { injectable } from 'inversify';
|
|
19
|
+
import type { VNode } from 'snabbdom';
|
|
20
|
+
import { isReconnectHandle } from '../features/reconnect/model';
|
|
21
|
+
|
|
22
|
+
@injectable()
|
|
23
|
+
export class GRoutingHandleView extends SRoutingHandleView {
|
|
24
|
+
override render(handle: Readonly<GRoutingHandle>, context: RenderingContext, args?: { route?: RoutedPoint[] }): VNode {
|
|
25
|
+
// We have our own handle view for the reconnect handles
|
|
26
|
+
if (isReconnectHandle(handle)) {
|
|
27
|
+
return undefined as any;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return super.render(handle, context, args);
|
|
31
|
+
}
|
|
32
|
+
}
|