@eclipse-glsp/sprotty 2.5.0 → 2.6.0-next.11
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/action-handler-override.d.ts +55 -0
- package/lib/action-handler-override.d.ts.map +1 -0
- package/lib/action-handler-override.js +55 -0
- package/lib/action-handler-override.js.map +1 -0
- package/lib/api-override.d.ts +14 -9
- package/lib/api-override.d.ts.map +1 -1
- package/lib/api-override.js +24 -1
- package/lib/api-override.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/re-exports.d.ts +10 -10
- package/lib/re-exports.d.ts.map +1 -1
- package/lib/re-exports.js +22 -20
- package/lib/re-exports.js.map +1 -1
- package/lib/types.d.ts +2 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +3 -1
- package/lib/types.js.map +1 -1
- package/package.json +3 -3
- package/src/action-handler-override.ts +90 -0
- package/src/api-override.ts +25 -10
- package/src/index.ts +1 -0
- package/src/re-exports.ts +29 -33
- package/src/types.ts +3 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 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 { Action } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { interfaces } from 'inversify';
|
|
18
|
+
import { ICommand, MultiInstanceRegistry } from 'sprotty';
|
|
19
|
+
import { ActionHandlerRegistry as SActionHandlerRegistry, IActionHandler as SIActionHandler } from 'sprotty/lib/base/actions/action-handler';
|
|
20
|
+
export type SyncActionHandleResult = ICommand | Action | void;
|
|
21
|
+
export type ASyncActionHandleResult = Promise<SyncActionHandleResult>;
|
|
22
|
+
export type ActionHandleResult = SyncActionHandleResult | ASyncActionHandleResult;
|
|
23
|
+
/**
|
|
24
|
+
* An action handler accepts an action and reacts to it by returning either a command to be
|
|
25
|
+
* executed, or another action to be dispatched.
|
|
26
|
+
*/
|
|
27
|
+
export interface IActionHandler {
|
|
28
|
+
handle(action: Action): ActionHandleResult;
|
|
29
|
+
}
|
|
30
|
+
export interface ActionHandlerRegistration {
|
|
31
|
+
actionKind: string;
|
|
32
|
+
factory: () => IActionHandler;
|
|
33
|
+
}
|
|
34
|
+
export interface IActionHandlerInitializer {
|
|
35
|
+
initialize(registry: ActionHandlerRegistry): void;
|
|
36
|
+
}
|
|
37
|
+
export type ActionHandler = IActionHandler & SIActionHandler;
|
|
38
|
+
export declare class ActionHandlerRegistry extends MultiInstanceRegistry<ActionHandler> implements SActionHandlerRegistry {
|
|
39
|
+
constructor(registrations: ActionHandlerRegistration[], initializers: IActionHandlerInitializer[]);
|
|
40
|
+
register(key: string, instance: IActionHandler): void;
|
|
41
|
+
register(key: string, instance: SIActionHandler): void;
|
|
42
|
+
initializeActionHandler(initializer: IActionHandlerInitializer): void;
|
|
43
|
+
}
|
|
44
|
+
export declare function configureActionHandler(context: {
|
|
45
|
+
bind: interfaces.Bind;
|
|
46
|
+
isBound: interfaces.IsBound;
|
|
47
|
+
}, kind: string, constr: interfaces.ServiceIdentifier<IActionHandler>): void;
|
|
48
|
+
/**
|
|
49
|
+
* Utility function to register an action handler for an action kind.
|
|
50
|
+
*/
|
|
51
|
+
export declare function onAction(context: {
|
|
52
|
+
bind: interfaces.Bind;
|
|
53
|
+
isBound: interfaces.IsBound;
|
|
54
|
+
}, kind: string, handle: (action: Action) => ReturnType<IActionHandler['handle']>): void;
|
|
55
|
+
//# sourceMappingURL=action-handler-override.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-override.d.ts","sourceRoot":"","sources":["../src/action-handler-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAc,UAAU,EAAyB,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAS,MAAM,SAAS,CAAC;AACjE,OAAO,EACH,qBAAqB,IAAI,sBAAsB,EAC/C,cAAc,IAAI,eAAe,EAEpC,MAAM,yCAAyC,CAAC;AAEjD,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,uBAAuB,CAAC;AAElF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAAC;CAC9C;AAED,MAAM,WAAW,yBAAyB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,cAAc,CAAC;CACjC;AAED,MAAM,WAAW,yBAAyB;IACtC,UAAU,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACrD;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,eAAe,CAAC;AAE7D,qBACa,qBAAsB,SAAQ,qBAAqB,CAAC,aAAa,CAAE,YAAW,sBAAsB;gBAE/C,aAAa,EAAE,yBAAyB,EAAE,EAC1C,YAAY,EAAE,yBAAyB,EAAE;IAO9F,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;IACrD,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI;IAK/D,uBAAuB,CAAC,WAAW,EAAE,yBAAyB,GAAG,IAAI;CAGxE;AAED,wBAAgB,sBAAsB,CAClC,OAAO,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAA;CAAE,EAC/D,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,GACrD,IAAI,CAEN;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACpB,OAAO,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAA;CAAE,EAC/D,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,GACjE,IAAI,CAKN"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ActionHandlerRegistry = void 0;
|
|
16
|
+
exports.configureActionHandler = configureActionHandler;
|
|
17
|
+
exports.onAction = onAction;
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const sprotty_1 = require("sprotty");
|
|
20
|
+
const action_handler_1 = require("sprotty/lib/base/actions/action-handler");
|
|
21
|
+
let ActionHandlerRegistry = class ActionHandlerRegistry extends sprotty_1.MultiInstanceRegistry {
|
|
22
|
+
constructor(registrations, initializers) {
|
|
23
|
+
super();
|
|
24
|
+
registrations.forEach(registration => this.register(registration.actionKind, registration.factory()));
|
|
25
|
+
initializers.forEach(initializer => this.initializeActionHandler(initializer));
|
|
26
|
+
}
|
|
27
|
+
register(key, instance) {
|
|
28
|
+
super.register(key, instance);
|
|
29
|
+
}
|
|
30
|
+
initializeActionHandler(initializer) {
|
|
31
|
+
initializer.initialize(this);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.ActionHandlerRegistry = ActionHandlerRegistry;
|
|
35
|
+
exports.ActionHandlerRegistry = ActionHandlerRegistry = __decorate([
|
|
36
|
+
(0, inversify_1.injectable)(),
|
|
37
|
+
__param(0, (0, inversify_1.multiInject)(sprotty_1.TYPES.ActionHandlerRegistration)),
|
|
38
|
+
__param(0, (0, inversify_1.optional)()),
|
|
39
|
+
__param(1, (0, inversify_1.multiInject)(sprotty_1.TYPES.IActionHandlerInitializer)),
|
|
40
|
+
__param(1, (0, inversify_1.optional)()),
|
|
41
|
+
__metadata("design:paramtypes", [Array, Array])
|
|
42
|
+
], ActionHandlerRegistry);
|
|
43
|
+
function configureActionHandler(context, kind, constr) {
|
|
44
|
+
(0, action_handler_1.configureActionHandler)(context, kind, constr);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Utility function to register an action handler for an action kind.
|
|
48
|
+
*/
|
|
49
|
+
function onAction(context, kind, handle) {
|
|
50
|
+
context.bind(sprotty_1.TYPES.ActionHandlerRegistration).toConstantValue({
|
|
51
|
+
actionKind: kind,
|
|
52
|
+
factory: () => ({ handle })
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=action-handler-override.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-handler-override.js","sourceRoot":"","sources":["../src/action-handler-override.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqEA,wDAMC;AAKD,4BASC;AAzED,yCAA0E;AAC1E,qCAAiE;AACjE,4EAIiD;AA0B1C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,+BAAoC;IAC3E,YAC8D,aAA0C,EAC1C,YAAyC;QAEnG,KAAK,EAAE,CAAC;QACR,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACtG,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC;IACnF,CAAC;IAIQ,QAAQ,CAAC,GAAW,EAAE,QAAuB;QAClD,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAClC,CAAC;IAED,uBAAuB,CAAC,WAAsC;QAC1D,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACJ,CAAA;AAnBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,sBAAU,GAAE;IAGJ,WAAA,IAAA,uBAAW,EAAC,eAAK,CAAC,yBAAyB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;IACxD,WAAA,IAAA,uBAAW,EAAC,eAAK,CAAC,yBAAyB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;;GAHpD,qBAAqB,CAmBjC;AAED,SAAgB,sBAAsB,CAClC,OAA+D,EAC/D,IAAY,EACZ,MAAoD;IAEpD,IAAA,uCAAuB,EAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACnD,CAAC;AAED;;GAEG;AACH,SAAgB,QAAQ,CACpB,OAA+D,EAC/D,IAAY,EACZ,MAAgE;IAEhE,OAAO,CAAC,IAAI,CAAC,eAAK,CAAC,yBAAyB,CAAC,CAAC,eAAe,CAAC;QAC1D,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;KAC9B,CAAC,CAAC;AACP,CAAC"}
|
package/lib/api-override.d.ts
CHANGED
|
@@ -13,16 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, Event, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { Action, Event, LabeledAction, MenuItem, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { VNode } from 'snabbdom';
|
|
18
|
-
import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionDispatcher as SIActionDispatcher,
|
|
19
|
-
/**
|
|
20
|
-
* An action handler accepts an action and reacts to it by returning either a command to be
|
|
21
|
-
* executed, or another action to be dispatched.
|
|
22
|
-
*/
|
|
23
|
-
export interface IActionHandler extends SIActionHandler {
|
|
24
|
-
handle(action: Action): ICommand | Action | void;
|
|
25
|
-
}
|
|
18
|
+
import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionDispatcher as SIActionDispatcher, IButtonHandler as SIButtonHandler, ICommandPaletteActionProvider as SICommandPaletteActionProvider, ICommandStack as SICommandStack, IContextMenuItemProvider as SIContextMenuItemProvider, IVNodePostprocessor as SIVNodePostprocessor, KeyListener as SKeyListener, MenuItem as SMenuItem, MouseListener as SMouseListener } from 'sprotty';
|
|
26
19
|
export interface IButtonHandler extends SIButtonHandler {
|
|
27
20
|
buttonPressed(button: GButton): (Action | Promise<Action>)[];
|
|
28
21
|
}
|
|
@@ -161,4 +154,16 @@ export interface ICommandStack extends SICommandStack {
|
|
|
161
154
|
* using a provider to avoid cyclic injection dependencies.
|
|
162
155
|
*/
|
|
163
156
|
export type CommandStackProvider = () => Promise<ICommandStack>;
|
|
157
|
+
export type ClientMenuItem = SMenuItem;
|
|
158
|
+
export declare namespace ClientMenuItem {
|
|
159
|
+
/**
|
|
160
|
+
* Converts a {@link MenuItem} into a {@link ClientMenuItem}.
|
|
161
|
+
* Note that functions are created for the boolean attributes of the server item.
|
|
162
|
+
* If the server item does not define a particular attribute, the corresponding function in the client item will be `undefined`.
|
|
163
|
+
* The children are recursively converted as well.
|
|
164
|
+
* @param serverItem The server menu item to convert.
|
|
165
|
+
* @returns The converted client menu item.
|
|
166
|
+
*/
|
|
167
|
+
function convert(item: MenuItem): ClientMenuItem;
|
|
168
|
+
}
|
|
164
169
|
//# sourceMappingURL=api-override.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-override.d.ts","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"api-override.d.ts","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,O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G,IAAI,CAAC;IAEzD;;OAEG;IACH,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;OAIG;IACH,uBAAuB,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACvD;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,sDAAsD;IACtD,OAAO,EAAE,QAAQ,CAAC;IAClB,qDAAqD;IACrD,OAAO,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc;IACjD;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEhD;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEtD;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;AAEhE,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC;AACvC,yBAAiB,cAAc,CAAC;IAC5B;;;;;;;OAOG;IACH,SAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,CAUtD;CACJ"}
|
package/lib/api-override.js
CHANGED
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.MouseListener = exports.KeyListener = void 0;
|
|
9
|
+
exports.ClientMenuItem = exports.MouseListener = exports.KeyListener = void 0;
|
|
10
10
|
const inversify_1 = require("inversify");
|
|
11
11
|
const sprotty_1 = require("sprotty");
|
|
12
12
|
let KeyListener = class KeyListener extends sprotty_1.KeyListener {
|
|
@@ -66,4 +66,27 @@ exports.MouseListener = MouseListener;
|
|
|
66
66
|
exports.MouseListener = MouseListener = __decorate([
|
|
67
67
|
(0, inversify_1.injectable)()
|
|
68
68
|
], MouseListener);
|
|
69
|
+
var ClientMenuItem;
|
|
70
|
+
(function (ClientMenuItem) {
|
|
71
|
+
/**
|
|
72
|
+
* Converts a {@link MenuItem} into a {@link ClientMenuItem}.
|
|
73
|
+
* Note that functions are created for the boolean attributes of the server item.
|
|
74
|
+
* If the server item does not define a particular attribute, the corresponding function in the client item will be `undefined`.
|
|
75
|
+
* The children are recursively converted as well.
|
|
76
|
+
* @param serverItem The server menu item to convert.
|
|
77
|
+
* @returns The converted client menu item.
|
|
78
|
+
*/
|
|
79
|
+
function convert(item) {
|
|
80
|
+
const { children, isEnabled, isToggled, isVisible, ...coreProps } = item;
|
|
81
|
+
const clientItem = {
|
|
82
|
+
...coreProps,
|
|
83
|
+
isEnabled: isEnabled !== undefined ? () => isEnabled : undefined,
|
|
84
|
+
isVisible: isVisible !== undefined ? () => isVisible : undefined,
|
|
85
|
+
isToggled: isToggled !== undefined ? () => isToggled : undefined,
|
|
86
|
+
children: children === null || children === void 0 ? void 0 : children.map(child => ClientMenuItem.convert(child))
|
|
87
|
+
};
|
|
88
|
+
return clientItem;
|
|
89
|
+
}
|
|
90
|
+
ClientMenuItem.convert = convert;
|
|
91
|
+
})(ClientMenuItem || (exports.ClientMenuItem = ClientMenuItem = {}));
|
|
69
92
|
//# sourceMappingURL=api-override.js.map
|
package/lib/api-override.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-override.js","sourceRoot":"","sources":["../src/api-override.ts"],"names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 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
export * from './action-handler-override';
|
|
16
17
|
export * from './api-override';
|
|
17
18
|
export * from './feature-modules';
|
|
18
19
|
export * from './layout-override';
|
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,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -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("./action-handler-override"), exports);
|
|
32
33
|
__exportStar(require("./api-override"), exports);
|
|
33
34
|
__exportStar(require("./feature-modules"), exports);
|
|
34
35
|
__exportStar(require("./layout-override"), 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,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,uDAAqC;AACrC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4DAA0C;AAC1C,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,uDAAqC;AACrC,0CAAwB"}
|
package/lib/re-exports.d.ts
CHANGED
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
export * from '@eclipse-glsp/protocol';
|
|
20
20
|
export * from '@eclipse-glsp/protocol/lib/di';
|
|
21
21
|
export { ActionDispatcher, PostponedAction } from 'sprotty/lib/base/actions/action-dispatcher';
|
|
22
|
-
export { ActionHandlerRegistration, ActionHandlerRegistry, IActionHandlerInitializer, configureActionHandler, onAction } from 'sprotty/lib/base/actions/action-handler';
|
|
23
22
|
export * from 'sprotty/lib/base/actions/diagram-locker';
|
|
24
23
|
export * from 'sprotty/lib/base/animations/animation';
|
|
25
24
|
export * from 'sprotty/lib/base/animations/animation-frame-syncer';
|
|
@@ -30,8 +29,8 @@ export { CommandStack, CommandStackState } from 'sprotty/lib/base/commands/comma
|
|
|
30
29
|
export * from 'sprotty/lib/base/commands/command-stack-options';
|
|
31
30
|
export * from 'sprotty/lib/base/features/initialize-canvas';
|
|
32
31
|
export * from 'sprotty/lib/base/features/set-model';
|
|
33
|
-
export { FeatureSet, SChildElementImpl as GChildElement, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, SParentElementImpl as GParentElement, IModelIndex,
|
|
34
|
-
export { CustomFeatures, EMPTY_ROOT, SModelElementConstructor as GModelElementConstructor, SModelElementRegistration as GModelElementRegistration, SModelFactory as GModelFactory, IModelFactory, SModelRegistry
|
|
32
|
+
export { createRandomId, FeatureSet, SChildElementImpl as GChildElement, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, SParentElementImpl as GParentElement, IModelIndex, isParent, ModelIndexImpl } from 'sprotty/lib/base/model/smodel';
|
|
33
|
+
export { createFeatureSet, CustomFeatures, EMPTY_ROOT, SModelElementConstructor as GModelElementConstructor, SModelElementRegistration as GModelElementRegistration, SModelFactory as GModelFactory, IModelFactory, SModelRegistry } from 'sprotty/lib/base/model/smodel-factory';
|
|
35
34
|
export * from 'sprotty/lib/base/model/smodel-utils';
|
|
36
35
|
export * from 'sprotty/lib/base/ui-extensions/ui-extension';
|
|
37
36
|
export * from 'sprotty/lib/base/ui-extensions/ui-extension-registry';
|
|
@@ -50,19 +49,19 @@ export { HBoxLayoutOptions } from 'sprotty/lib/features/bounds/hbox-layout';
|
|
|
50
49
|
export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
51
50
|
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
52
51
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
53
|
-
export { InternalBoundsAware as BoundsAware,
|
|
52
|
+
export { alignFeature, InternalBoundsAware as BoundsAware, boundsFeature, findChildrenAtPosition, getAbsoluteBounds, getAbsoluteClientBounds, SShapeElementImpl as GShapeElement, isAlignable, isBoundsAware, isLayoutableChild, isLayoutContainer, isSizeable, InternalLayoutableChild as LayoutableChild, layoutableChildFeature, InternalLayoutContainer as LayoutContainer, layoutContainerFeature, ModelLayoutOptions } from 'sprotty/lib/features/bounds/model';
|
|
54
53
|
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
55
54
|
export * from 'sprotty/lib/features/bounds/views';
|
|
56
|
-
export { ButtonHandlerRegistry,
|
|
55
|
+
export { ButtonHandlerRegistry, configureButtonHandler, IButtonHandlerRegistration } from 'sprotty/lib/features/button/button-handler';
|
|
57
56
|
export { SButtonImpl as GButton } from 'sprotty/lib/features/button/model';
|
|
58
57
|
export { CommandPaletteActionProviderRegistry, RevealNamedElementActionProvider } from 'sprotty/lib/features/command-palette/action-providers';
|
|
59
58
|
export * from 'sprotty/lib/features/command-palette/command-palette';
|
|
60
|
-
export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
59
|
+
export { Anchor, IContextMenuService, IContextMenuServiceProvider, toAnchor } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
61
60
|
export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
|
|
62
61
|
export * from 'sprotty/lib/features/context-menu/mouse-listener';
|
|
63
62
|
export * from 'sprotty/lib/features/edge-layout/di.config';
|
|
64
63
|
export * from 'sprotty/lib/features/edge-layout/edge-layout';
|
|
65
|
-
export {
|
|
64
|
+
export { checkEdgePlacement, DEFAULT_EDGE_PLACEMENT, edgeLayoutFeature, isEdgeLayoutable } from 'sprotty/lib/features/edge-layout/model';
|
|
66
65
|
export * from 'sprotty/lib/features/edit/delete';
|
|
67
66
|
export * from 'sprotty/lib/features/edit/edit-label';
|
|
68
67
|
export * from 'sprotty/lib/features/edit/edit-label-ui';
|
|
@@ -73,6 +72,7 @@ export { expandFeature, isExpandable } from 'sprotty/lib/features/expand/model';
|
|
|
73
72
|
export * from 'sprotty/lib/features/expand/views';
|
|
74
73
|
export { ExportSvgCommand, ExportSvgKeyListener, ExportSvgPostprocessor } from 'sprotty/lib/features/export/export';
|
|
75
74
|
export * from 'sprotty/lib/features/export/model';
|
|
75
|
+
export * from 'sprotty/lib/features/export/svg-export-postprocessor';
|
|
76
76
|
export { SvgExporter } from 'sprotty/lib/features/export/svg-exporter';
|
|
77
77
|
export * from 'sprotty/lib/features/fade/fade';
|
|
78
78
|
export { fadeFeature, isFadeable } from 'sprotty/lib/features/fade/model';
|
|
@@ -80,7 +80,7 @@ export * from 'sprotty/lib/features/hover/hover';
|
|
|
80
80
|
export { hasPopupFeature, hoverFeedbackFeature, isHoverable, popupFeature } from 'sprotty/lib/features/hover/model';
|
|
81
81
|
export * from 'sprotty/lib/features/hover/popup-position-updater';
|
|
82
82
|
export * from 'sprotty/lib/features/decoration/decoration-placer';
|
|
83
|
-
export { Decoration, SDecoration as GDecoration,
|
|
83
|
+
export { Decoration, decorationFeature, SDecoration as GDecoration, isDecoration, SIssueMarkerImpl } from 'sprotty/lib/features/decoration/model';
|
|
84
84
|
export * from 'sprotty/lib/features/decoration/views';
|
|
85
85
|
export * from 'sprotty/lib/features/edge-intersection/intersection-finder';
|
|
86
86
|
export * from 'sprotty/lib/features/edge-intersection/sweepline';
|
|
@@ -91,7 +91,7 @@ export * from 'sprotty/lib/features/move/snap';
|
|
|
91
91
|
export * from 'sprotty/lib/features/nameable/model';
|
|
92
92
|
export * from 'sprotty/lib/features/open/model';
|
|
93
93
|
export * from 'sprotty/lib/features/open/open';
|
|
94
|
-
export {
|
|
94
|
+
export { getModelBounds, getProjectedBounds, getProjections, isProjectable, ViewProjection } from 'sprotty/lib/features/projection/model';
|
|
95
95
|
export * from 'sprotty/lib/features/projection/views';
|
|
96
96
|
export * from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
97
97
|
export * from 'sprotty/lib/features/routing/anchor';
|
|
@@ -99,7 +99,7 @@ export * from 'sprotty/lib/features/routing/bezier-anchors';
|
|
|
99
99
|
export * from 'sprotty/lib/features/routing/bezier-edge-router';
|
|
100
100
|
export * from 'sprotty/lib/features/routing/manhattan-anchors';
|
|
101
101
|
export * from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
102
|
-
export { Connectable, SConnectableElementImpl as GConnectableElement, SDanglingAnchorImpl as GDanglingAnchor, SRoutableElementImpl as GRoutableElement, SRoutingHandleImpl as GRoutingHandle,
|
|
102
|
+
export { Connectable, connectableFeature, edgeInProgressID, edgeInProgressTargetHandleID, SConnectableElementImpl as GConnectableElement, SDanglingAnchorImpl as GDanglingAnchor, getAbsoluteRouteBounds, getRouteBounds, SRoutableElementImpl as GRoutableElement, SRoutingHandleImpl as GRoutingHandle, isConnectable, RoutingHandleKind } from 'sprotty/lib/features/routing/model';
|
|
103
103
|
export * from 'sprotty/lib/features/routing/polyline-anchors';
|
|
104
104
|
export * from 'sprotty/lib/features/routing/polyline-edge-router';
|
|
105
105
|
export * from 'sprotty/lib/features/routing/routing';
|
package/lib/re-exports.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-exports.d.ts","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAU9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"re-exports.d.ts","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAU9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAE/F,cAAc,yCAAyC,CAAC;AAExD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oCAAoC,CAAC;AAEnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gDAAgD,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC1F,cAAc,iDAAiD,CAAC;AAEhE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AAEpD,OAAO,EACH,cAAc,EACd,UAAU,EACV,iBAAiB,IAAI,aAAa,EAClC,iBAAiB,IAAI,aAAa,EAClC,cAAc,IAAI,UAAU,EAC5B,kBAAkB,IAAI,cAAc,EACpC,WAAW,EACX,QAAQ,EACR,cAAc,EACjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACH,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV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,EAAE,MAAM,2BAA2B,CAAC;AAGjG,cAAc,uCAAuC,CAAC;AAItD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAItD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
package/lib/re-exports.js
CHANGED
|
@@ -29,9 +29,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.ExportSvgCommand = exports.isExpandable = exports.expandFeature = exports.isEdgeLayoutable = exports.edgeLayoutFeature = exports.
|
|
33
|
-
exports.GBezierCreateHandleView = exports.GBezierControlHandleView = exports.BezierCurveEdgeView = exports.SGraphImpl = exports.SEdgeImpl = exports.GPort = exports.GNode = exports.GLabel = exports.GGraphIndex = exports.GCompartment = exports.SprottyBringToFrontCommand = exports.GViewportRootElement = exports.SprottySelectCommand = exports.SprottySelectAllCommand = exports.SelectMouseListener = exports.SelectKeyboardListener = exports.GetSelectionCommand = exports.selectFeature = exports.isSelected = exports.isSelectable = exports.isConnectable = exports.
|
|
34
|
-
exports.SvgViewportView = exports.RectangularNodeView = exports.EmptyGroupView = exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SRoutingHandleView = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView =
|
|
32
|
+
exports.ExportSvgPostprocessor = exports.ExportSvgKeyListener = exports.ExportSvgCommand = exports.isExpandable = exports.expandFeature = exports.isEdgeLayoutable = exports.edgeLayoutFeature = exports.DEFAULT_EDGE_PLACEMENT = exports.checkEdgePlacement = exports.DeleteContextMenuItemProvider = exports.ContextMenuProviderRegistry = exports.toAnchor = exports.RevealNamedElementActionProvider = exports.CommandPaletteActionProviderRegistry = exports.GButton = exports.configureButtonHandler = exports.ButtonHandlerRegistry = exports.layoutContainerFeature = exports.layoutableChildFeature = exports.isSizeable = exports.isLayoutContainer = exports.isLayoutableChild = exports.isBoundsAware = exports.isAlignable = exports.GShapeElement = exports.getAbsoluteClientBounds = exports.getAbsoluteBounds = exports.findChildrenAtPosition = exports.boundsFeature = exports.alignFeature = exports.StatefulLayouter = exports.Layouter = exports.FocusFixPostprocessor = exports.PopupMouseTool = exports.MouseTool = exports.MousePositionTracker = exports.KeyTool = exports.SModelRegistry = exports.GModelFactory = exports.EMPTY_ROOT = exports.createFeatureSet = exports.ModelIndexImpl = exports.isParent = exports.GParentElement = exports.GModelRoot = exports.GModelElement = exports.GChildElement = exports.createRandomId = exports.CommandStack = exports.ActionDispatcher = void 0;
|
|
33
|
+
exports.GLabelView = exports.GCompartmentView = exports.GBezierCreateHandleView = exports.GBezierControlHandleView = exports.BezierCurveEdgeView = exports.SGraphImpl = exports.SEdgeImpl = exports.GPort = exports.GNode = exports.GLabel = exports.GGraphIndex = exports.GCompartment = exports.SprottyBringToFrontCommand = exports.GViewportRootElement = exports.SprottySelectCommand = exports.SprottySelectAllCommand = exports.SelectMouseListener = exports.SelectKeyboardListener = exports.GetSelectionCommand = exports.selectFeature = exports.isSelected = exports.isSelectable = exports.isConnectable = exports.GRoutingHandle = exports.GRoutableElement = exports.getRouteBounds = exports.getAbsoluteRouteBounds = exports.GDanglingAnchor = exports.GConnectableElement = exports.edgeInProgressTargetHandleID = exports.edgeInProgressID = exports.connectableFeature = exports.isProjectable = exports.getProjections = exports.getProjectedBounds = exports.getModelBounds = exports.moveFeature = exports.isMoveable = exports.isLocateable = exports.SIssueMarkerImpl = exports.isDecoration = exports.GDecoration = exports.decorationFeature = exports.popupFeature = exports.isHoverable = exports.hoverFeedbackFeature = exports.hasPopupFeature = exports.isFadeable = exports.fadeFeature = exports.SvgExporter = void 0;
|
|
34
|
+
exports.SvgViewportView = exports.RectangularNodeView = exports.EmptyGroupView = exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SRoutingHandleView = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView = void 0;
|
|
35
35
|
/**
|
|
36
36
|
* @eclipse-glsp/protocol
|
|
37
37
|
*/
|
|
@@ -46,10 +46,7 @@ __exportStar(require("@eclipse-glsp/protocol/lib/di"), exports);
|
|
|
46
46
|
// Exclude IActionDispatcher and IActionDispatcherProvider. Exported via api-override module instead
|
|
47
47
|
var action_dispatcher_1 = require("sprotty/lib/base/actions/action-dispatcher");
|
|
48
48
|
Object.defineProperty(exports, "ActionDispatcher", { enumerable: true, get: function () { return action_dispatcher_1.ActionDispatcher; } });
|
|
49
|
-
|
|
50
|
-
Object.defineProperty(exports, "ActionHandlerRegistry", { enumerable: true, get: function () { return action_handler_1.ActionHandlerRegistry; } });
|
|
51
|
-
Object.defineProperty(exports, "configureActionHandler", { enumerable: true, get: function () { return action_handler_1.configureActionHandler; } });
|
|
52
|
-
Object.defineProperty(exports, "onAction", { enumerable: true, get: function () { return action_handler_1.onAction; } });
|
|
49
|
+
// export * from 'sprotty/lib/base/actions/action-handler';
|
|
53
50
|
__exportStar(require("sprotty/lib/base/actions/diagram-locker"), exports);
|
|
54
51
|
__exportStar(require("sprotty/lib/base/animations/animation"), exports);
|
|
55
52
|
__exportStar(require("sprotty/lib/base/animations/animation-frame-syncer"), exports);
|
|
@@ -64,19 +61,19 @@ __exportStar(require("sprotty/lib/base/features/initialize-canvas"), exports);
|
|
|
64
61
|
__exportStar(require("sprotty/lib/base/features/set-model"), exports);
|
|
65
62
|
// Exclude SModelElementImpl as it as exported with augmentation module
|
|
66
63
|
var smodel_1 = require("sprotty/lib/base/model/smodel");
|
|
64
|
+
Object.defineProperty(exports, "createRandomId", { enumerable: true, get: function () { return smodel_1.createRandomId; } });
|
|
67
65
|
Object.defineProperty(exports, "GChildElement", { enumerable: true, get: function () { return smodel_1.SChildElementImpl; } });
|
|
68
66
|
Object.defineProperty(exports, "GModelElement", { enumerable: true, get: function () { return smodel_1.SModelElementImpl; } });
|
|
69
67
|
Object.defineProperty(exports, "GModelRoot", { enumerable: true, get: function () { return smodel_1.SModelRootImpl; } });
|
|
70
68
|
Object.defineProperty(exports, "GParentElement", { enumerable: true, get: function () { return smodel_1.SParentElementImpl; } });
|
|
71
|
-
Object.defineProperty(exports, "ModelIndexImpl", { enumerable: true, get: function () { return smodel_1.ModelIndexImpl; } });
|
|
72
|
-
Object.defineProperty(exports, "createRandomId", { enumerable: true, get: function () { return smodel_1.createRandomId; } });
|
|
73
69
|
Object.defineProperty(exports, "isParent", { enumerable: true, get: function () { return smodel_1.isParent; } });
|
|
70
|
+
Object.defineProperty(exports, "ModelIndexImpl", { enumerable: true, get: function () { return smodel_1.ModelIndexImpl; } });
|
|
74
71
|
var smodel_factory_1 = require("sprotty/lib/base/model/smodel-factory");
|
|
72
|
+
Object.defineProperty(exports, "createFeatureSet", { enumerable: true, get: function () { return smodel_factory_1.createFeatureSet; } });
|
|
75
73
|
Object.defineProperty(exports, "EMPTY_ROOT", { enumerable: true, get: function () { return smodel_factory_1.EMPTY_ROOT; } });
|
|
76
74
|
Object.defineProperty(exports, "GModelFactory", { enumerable: true, get: function () { return smodel_factory_1.SModelFactory; } });
|
|
77
75
|
// exported without alias we extend it in glsp-client to `GModelRegistry`
|
|
78
76
|
Object.defineProperty(exports, "SModelRegistry", { enumerable: true, get: function () { return smodel_factory_1.SModelRegistry; } });
|
|
79
|
-
Object.defineProperty(exports, "createFeatureSet", { enumerable: true, get: function () { return smodel_factory_1.createFeatureSet; } });
|
|
80
77
|
__exportStar(require("sprotty/lib/base/model/smodel-utils"), exports);
|
|
81
78
|
__exportStar(require("sprotty/lib/base/ui-extensions/ui-extension"), exports);
|
|
82
79
|
__exportStar(require("sprotty/lib/base/ui-extensions/ui-extension-registry"), exports);
|
|
@@ -105,29 +102,33 @@ var layout_1 = require("sprotty/lib/features/bounds/layout");
|
|
|
105
102
|
Object.defineProperty(exports, "Layouter", { enumerable: true, get: function () { return layout_1.Layouter; } });
|
|
106
103
|
Object.defineProperty(exports, "StatefulLayouter", { enumerable: true, get: function () { return layout_1.StatefulLayouter; } });
|
|
107
104
|
var model_1 = require("sprotty/lib/features/bounds/model");
|
|
108
|
-
Object.defineProperty(exports, "GShapeElement", { enumerable: true, get: function () { return model_1.SShapeElementImpl; } });
|
|
109
105
|
Object.defineProperty(exports, "alignFeature", { enumerable: true, get: function () { return model_1.alignFeature; } });
|
|
110
106
|
Object.defineProperty(exports, "boundsFeature", { enumerable: true, get: function () { return model_1.boundsFeature; } });
|
|
111
107
|
Object.defineProperty(exports, "findChildrenAtPosition", { enumerable: true, get: function () { return model_1.findChildrenAtPosition; } });
|
|
112
108
|
Object.defineProperty(exports, "getAbsoluteBounds", { enumerable: true, get: function () { return model_1.getAbsoluteBounds; } });
|
|
113
109
|
Object.defineProperty(exports, "getAbsoluteClientBounds", { enumerable: true, get: function () { return model_1.getAbsoluteClientBounds; } });
|
|
110
|
+
Object.defineProperty(exports, "GShapeElement", { enumerable: true, get: function () { return model_1.SShapeElementImpl; } });
|
|
114
111
|
Object.defineProperty(exports, "isAlignable", { enumerable: true, get: function () { return model_1.isAlignable; } });
|
|
115
112
|
Object.defineProperty(exports, "isBoundsAware", { enumerable: true, get: function () { return model_1.isBoundsAware; } });
|
|
116
|
-
Object.defineProperty(exports, "isLayoutContainer", { enumerable: true, get: function () { return model_1.isLayoutContainer; } });
|
|
117
113
|
Object.defineProperty(exports, "isLayoutableChild", { enumerable: true, get: function () { return model_1.isLayoutableChild; } });
|
|
114
|
+
Object.defineProperty(exports, "isLayoutContainer", { enumerable: true, get: function () { return model_1.isLayoutContainer; } });
|
|
118
115
|
Object.defineProperty(exports, "isSizeable", { enumerable: true, get: function () { return model_1.isSizeable; } });
|
|
119
|
-
Object.defineProperty(exports, "layoutContainerFeature", { enumerable: true, get: function () { return model_1.layoutContainerFeature; } });
|
|
120
116
|
Object.defineProperty(exports, "layoutableChildFeature", { enumerable: true, get: function () { return model_1.layoutableChildFeature; } });
|
|
117
|
+
Object.defineProperty(exports, "layoutContainerFeature", { enumerable: true, get: function () { return model_1.layoutContainerFeature; } });
|
|
121
118
|
__exportStar(require("sprotty/lib/features/bounds/views"), exports);
|
|
122
119
|
var button_handler_1 = require("sprotty/lib/features/button/button-handler");
|
|
123
120
|
Object.defineProperty(exports, "ButtonHandlerRegistry", { enumerable: true, get: function () { return button_handler_1.ButtonHandlerRegistry; } });
|
|
124
121
|
Object.defineProperty(exports, "configureButtonHandler", { enumerable: true, get: function () { return button_handler_1.configureButtonHandler; } });
|
|
125
122
|
var model_2 = require("sprotty/lib/features/button/model");
|
|
126
123
|
Object.defineProperty(exports, "GButton", { enumerable: true, get: function () { return model_2.SButtonImpl; } });
|
|
124
|
+
// exclude ICommandPaletteActionProvider. Exported via api-override module instead
|
|
127
125
|
var action_providers_1 = require("sprotty/lib/features/command-palette/action-providers");
|
|
128
126
|
Object.defineProperty(exports, "CommandPaletteActionProviderRegistry", { enumerable: true, get: function () { return action_providers_1.CommandPaletteActionProviderRegistry; } });
|
|
129
127
|
Object.defineProperty(exports, "RevealNamedElementActionProvider", { enumerable: true, get: function () { return action_providers_1.RevealNamedElementActionProvider; } });
|
|
130
128
|
__exportStar(require("sprotty/lib/features/command-palette/command-palette"), exports);
|
|
129
|
+
// Exclude MenuItem. Exported via api-override as ClientMenu instead
|
|
130
|
+
var context_menu_service_1 = require("sprotty/lib/features/context-menu/context-menu-service");
|
|
131
|
+
Object.defineProperty(exports, "toAnchor", { enumerable: true, get: function () { return context_menu_service_1.toAnchor; } });
|
|
131
132
|
var menu_providers_1 = require("sprotty/lib/features/context-menu/menu-providers");
|
|
132
133
|
Object.defineProperty(exports, "ContextMenuProviderRegistry", { enumerable: true, get: function () { return menu_providers_1.ContextMenuProviderRegistry; } });
|
|
133
134
|
Object.defineProperty(exports, "DeleteContextMenuItemProvider", { enumerable: true, get: function () { return menu_providers_1.DeleteContextMenuItemProvider; } });
|
|
@@ -135,8 +136,8 @@ __exportStar(require("sprotty/lib/features/context-menu/mouse-listener"), export
|
|
|
135
136
|
__exportStar(require("sprotty/lib/features/edge-layout/di.config"), exports);
|
|
136
137
|
__exportStar(require("sprotty/lib/features/edge-layout/edge-layout"), exports);
|
|
137
138
|
var model_3 = require("sprotty/lib/features/edge-layout/model");
|
|
138
|
-
Object.defineProperty(exports, "DEFAULT_EDGE_PLACEMENT", { enumerable: true, get: function () { return model_3.DEFAULT_EDGE_PLACEMENT; } });
|
|
139
139
|
Object.defineProperty(exports, "checkEdgePlacement", { enumerable: true, get: function () { return model_3.checkEdgePlacement; } });
|
|
140
|
+
Object.defineProperty(exports, "DEFAULT_EDGE_PLACEMENT", { enumerable: true, get: function () { return model_3.DEFAULT_EDGE_PLACEMENT; } });
|
|
140
141
|
Object.defineProperty(exports, "edgeLayoutFeature", { enumerable: true, get: function () { return model_3.edgeLayoutFeature; } });
|
|
141
142
|
Object.defineProperty(exports, "isEdgeLayoutable", { enumerable: true, get: function () { return model_3.isEdgeLayoutable; } });
|
|
142
143
|
// Exclude client-side creation features (not supported in GLSP)
|
|
@@ -160,6 +161,7 @@ Object.defineProperty(exports, "ExportSvgKeyListener", { enumerable: true, get:
|
|
|
160
161
|
Object.defineProperty(exports, "ExportSvgPostprocessor", { enumerable: true, get: function () { return export_1.ExportSvgPostprocessor; } });
|
|
161
162
|
__exportStar(require("sprotty/lib/features/export/model"), exports);
|
|
162
163
|
// Exclude ExportSvgAction. Already provided by glsp-protocol
|
|
164
|
+
__exportStar(require("sprotty/lib/features/export/svg-export-postprocessor"), exports);
|
|
163
165
|
var svg_exporter_1 = require("sprotty/lib/features/export/svg-exporter");
|
|
164
166
|
Object.defineProperty(exports, "SvgExporter", { enumerable: true, get: function () { return svg_exporter_1.SvgExporter; } });
|
|
165
167
|
__exportStar(require("sprotty/lib/features/fade/fade"), exports);
|
|
@@ -176,10 +178,10 @@ __exportStar(require("sprotty/lib/features/hover/popup-position-updater"), expor
|
|
|
176
178
|
// Alias SModel types
|
|
177
179
|
__exportStar(require("sprotty/lib/features/decoration/decoration-placer"), exports);
|
|
178
180
|
var model_7 = require("sprotty/lib/features/decoration/model");
|
|
179
|
-
Object.defineProperty(exports, "GDecoration", { enumerable: true, get: function () { return model_7.SDecoration; } });
|
|
180
|
-
Object.defineProperty(exports, "SIssueMarkerImpl", { enumerable: true, get: function () { return model_7.SIssueMarkerImpl; } });
|
|
181
181
|
Object.defineProperty(exports, "decorationFeature", { enumerable: true, get: function () { return model_7.decorationFeature; } });
|
|
182
|
+
Object.defineProperty(exports, "GDecoration", { enumerable: true, get: function () { return model_7.SDecoration; } });
|
|
182
183
|
Object.defineProperty(exports, "isDecoration", { enumerable: true, get: function () { return model_7.isDecoration; } });
|
|
184
|
+
Object.defineProperty(exports, "SIssueMarkerImpl", { enumerable: true, get: function () { return model_7.SIssueMarkerImpl; } });
|
|
183
185
|
__exportStar(require("sprotty/lib/features/decoration/views"), exports);
|
|
184
186
|
__exportStar(require("sprotty/lib/features/edge-intersection/intersection-finder"), exports);
|
|
185
187
|
__exportStar(require("sprotty/lib/features/edge-intersection/sweepline"), exports);
|
|
@@ -207,15 +209,15 @@ __exportStar(require("sprotty/lib/features/routing/manhattan-anchors"), exports)
|
|
|
207
209
|
__exportStar(require("sprotty/lib/features/routing/manhattan-edge-router"), exports);
|
|
208
210
|
// Alias SModel types
|
|
209
211
|
var model_10 = require("sprotty/lib/features/routing/model");
|
|
210
|
-
Object.defineProperty(exports, "GConnectableElement", { enumerable: true, get: function () { return model_10.SConnectableElementImpl; } });
|
|
211
|
-
Object.defineProperty(exports, "GDanglingAnchor", { enumerable: true, get: function () { return model_10.SDanglingAnchorImpl; } });
|
|
212
|
-
Object.defineProperty(exports, "GRoutableElement", { enumerable: true, get: function () { return model_10.SRoutableElementImpl; } });
|
|
213
|
-
Object.defineProperty(exports, "GRoutingHandle", { enumerable: true, get: function () { return model_10.SRoutingHandleImpl; } });
|
|
214
212
|
Object.defineProperty(exports, "connectableFeature", { enumerable: true, get: function () { return model_10.connectableFeature; } });
|
|
215
213
|
Object.defineProperty(exports, "edgeInProgressID", { enumerable: true, get: function () { return model_10.edgeInProgressID; } });
|
|
216
214
|
Object.defineProperty(exports, "edgeInProgressTargetHandleID", { enumerable: true, get: function () { return model_10.edgeInProgressTargetHandleID; } });
|
|
215
|
+
Object.defineProperty(exports, "GConnectableElement", { enumerable: true, get: function () { return model_10.SConnectableElementImpl; } });
|
|
216
|
+
Object.defineProperty(exports, "GDanglingAnchor", { enumerable: true, get: function () { return model_10.SDanglingAnchorImpl; } });
|
|
217
217
|
Object.defineProperty(exports, "getAbsoluteRouteBounds", { enumerable: true, get: function () { return model_10.getAbsoluteRouteBounds; } });
|
|
218
218
|
Object.defineProperty(exports, "getRouteBounds", { enumerable: true, get: function () { return model_10.getRouteBounds; } });
|
|
219
|
+
Object.defineProperty(exports, "GRoutableElement", { enumerable: true, get: function () { return model_10.SRoutableElementImpl; } });
|
|
220
|
+
Object.defineProperty(exports, "GRoutingHandle", { enumerable: true, get: function () { return model_10.SRoutingHandleImpl; } });
|
|
219
221
|
Object.defineProperty(exports, "isConnectable", { enumerable: true, get: function () { return model_10.isConnectable; } });
|
|
220
222
|
__exportStar(require("sprotty/lib/features/routing/polyline-anchors"), exports);
|
|
221
223
|
__exportStar(require("sprotty/lib/features/routing/polyline-edge-router"), exports);
|
package/lib/re-exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;AAElF;;GAEG;AACH,yDAAuC;AACvC,gEAA8C;AAE9C;;GAEG;AACH,6CAA6C;AAE7C,0CAA0C;AAC1C,mDAAmD;AACnD,oGAAoG;AACpG,gFAA+F;AAAtF,qHAAA,gBAAgB,OAAA;AACzB,
|
|
1
|
+
{"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;AAElF;;GAEG;AACH,yDAAuC;AACvC,gEAA8C;AAE9C;;GAEG;AACH,6CAA6C;AAE7C,0CAA0C;AAC1C,mDAAmD;AACnD,oGAAoG;AACpG,gFAA+F;AAAtF,qHAAA,gBAAgB,OAAA;AACzB,2DAA2D;AAC3D,0EAAwD;AAExD,wEAAsD;AACtD,qFAAmE;AACnE,qEAAmD;AAEnD,oEAAkD;AAClD,iFAA+D;AAC/D,4FAA4F;AAC5F,yEAA0F;AAAjF,6GAAA,YAAY,OAAA;AACrB,kFAAgE;AAEhE,8EAA4D;AAC5D,sEAAoD;AACpD,uEAAuE;AACvE,wDAUuC;AATnC,wGAAA,cAAc,OAAA;AAEd,uGAAA,iBAAiB,OAAiB;AAClC,uGAAA,iBAAiB,OAAiB;AAClC,oGAAA,cAAc,OAAc;AAC5B,wGAAA,kBAAkB,OAAkB;AAEpC,kGAAA,QAAQ,OAAA;AACR,wGAAA,cAAc,OAAA;AAGlB,wEAU+C;AAT3C,kHAAA,gBAAgB,OAAA;AAEhB,4GAAA,UAAU,OAAA;AAGV,+GAAA,aAAa,OAAiB;AAE9B,yEAAyE;AACzE,gHAAA,cAAc,OAAA;AAElB,sEAAoD;AAEpD,8EAA4D;AAC5D,uFAAqE;AAErE,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wDAAwD;AACxD,oGAAA,UAAU,OAAA;AAEd,qBAAqB;AACrB,iDAWiC;AAV7B,4GAAA,mBAAmB,OAAA;AACnB,iHAAA,wBAAwB,OAA4B;AACpD,gHAAA,uBAAuB,OAA2B;AAClD,yGAAA,gBAAgB,OAAoB;AACpC,mGAAA,UAAU,OAAc;AACxB,gHAAA,uBAAuB,OAAA;AACvB,yGAAA,gBAAgB,OAAA;AAChB,gIAAA,uCAAuC,OAAA;AACvC,mGAAA,UAAU,OAAA;AACV,2GAAA,kBAAkB,OAAA;AAGtB,gDAAgD;AAEhD,gEAA8C;AAC9C,6DAA2C;AAC3C,sDAAoC;AACpC,qBAAqB;AACrB,gDAU+B;AAT3B,sGAAA,YAAY,OAAA;AACZ,sGAAA,YAAY,OAAA;AACZ,qGAAA,WAAW,OAAA;AACX,+GAAA,wBAAwB,OAAyB;AACjD,mGAAA,YAAY,OAAa;AACzB,6GAAA,sBAAsB,OAAuB;AAC7C,mHAAA,4BAA4B,OAA6B;AACzD,yGAAA,eAAe,OAAA;AACf,yGAAA,eAAe,OAAA;AAEnB,0DAAwC;AACxC,uDAAiG;AAAxF,2GAAA,cAAc,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAAE,4GAAA,eAAe,OAAA;AAE7D,qDAAqD;AACrD,wEAAsD;AACtD,mCAAmC;AACnC,2DAA2D;AAC3D,+DAA+D;AAC/D,mEAAiD;AACjD,wEAAsD;AACtD,sDAAsD;AAEtD,kDAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C"}
|
package/lib/types.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export declare const TYPES: {
|
|
|
39
39
|
* The API is not stable yet.
|
|
40
40
|
*/
|
|
41
41
|
IShortcutManager: symbol;
|
|
42
|
+
IAutocompleteSuggestionProvider: symbol;
|
|
43
|
+
IAutocompleteSuggestionProviderRegistry: symbol;
|
|
42
44
|
Action: symbol;
|
|
43
45
|
IActionDispatcher: symbol;
|
|
44
46
|
IActionDispatcherProvider: symbol;
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,KAAK;;IAMd,uHAAuH;;;IAGvH,qGAAqG;;;;;;;;IAQrG,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;IAuBhE;;;OAGG
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,KAAK;;IAMd,uHAAuH;;;IAGvH,qGAAqG;;;;;;;;IAQrG,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;IAuBhE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIN,CAAC"}
|
package/lib/types.js
CHANGED
|
@@ -67,6 +67,8 @@ exports.TYPES = {
|
|
|
67
67
|
* Experimental shortcut manager.
|
|
68
68
|
* The API is not stable yet.
|
|
69
69
|
*/
|
|
70
|
-
IShortcutManager: Symbol('IShortcutManager')
|
|
70
|
+
IShortcutManager: Symbol('IShortcutManager'),
|
|
71
|
+
IAutocompleteSuggestionProvider: Symbol('IAutocompleteSuggestionProvider'),
|
|
72
|
+
IAutocompleteSuggestionProviderRegistry: Symbol('IAutocompleteSuggestionProviderRegistry')
|
|
71
73
|
};
|
|
72
74
|
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4CAA4C;AAC5C,qCAAgD;AAEhD;;;GAGG;AAEH,MAAM,mBAAmB,GAA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|
3
|
+
"version": "2.6.0-next.11+609c2ba",
|
|
4
4
|
"description": "Augmented reexport of the sprotty API for GLSP",
|
|
5
5
|
"homepage": "https://www.eclipse.org/glsp/",
|
|
6
6
|
"bugs": "https://github.com/eclipse-glsp/glsp/issues",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"watch": "tsc -w"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@eclipse-glsp/protocol": "2.
|
|
36
|
+
"@eclipse-glsp/protocol": "2.6.0-next.11+609c2ba",
|
|
37
37
|
"autocompleter": "^9.1.0",
|
|
38
38
|
"snabbdom": "~3.5.1",
|
|
39
39
|
"sprotty": "1.4.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "609c2ba9aeaac6d673c35de54aa23df50078e51b"
|
|
55
55
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 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 { Action } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { injectable, interfaces, multiInject, optional } from 'inversify';
|
|
18
|
+
import { ICommand, MultiInstanceRegistry, TYPES } from 'sprotty';
|
|
19
|
+
import {
|
|
20
|
+
ActionHandlerRegistry as SActionHandlerRegistry,
|
|
21
|
+
IActionHandler as SIActionHandler,
|
|
22
|
+
configureActionHandler as sconfigureActionHandler
|
|
23
|
+
} from 'sprotty/lib/base/actions/action-handler';
|
|
24
|
+
|
|
25
|
+
export type SyncActionHandleResult = ICommand | Action | void;
|
|
26
|
+
export type ASyncActionHandleResult = Promise<SyncActionHandleResult>;
|
|
27
|
+
export type ActionHandleResult = SyncActionHandleResult | ASyncActionHandleResult;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* An action handler accepts an action and reacts to it by returning either a command to be
|
|
31
|
+
* executed, or another action to be dispatched.
|
|
32
|
+
*/
|
|
33
|
+
export interface IActionHandler {
|
|
34
|
+
handle(action: Action): ActionHandleResult;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface ActionHandlerRegistration {
|
|
38
|
+
actionKind: string;
|
|
39
|
+
factory: () => IActionHandler;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IActionHandlerInitializer {
|
|
43
|
+
initialize(registry: ActionHandlerRegistry): void;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type ActionHandler = IActionHandler & SIActionHandler;
|
|
47
|
+
|
|
48
|
+
@injectable()
|
|
49
|
+
export class ActionHandlerRegistry extends MultiInstanceRegistry<ActionHandler> implements SActionHandlerRegistry {
|
|
50
|
+
constructor(
|
|
51
|
+
@multiInject(TYPES.ActionHandlerRegistration) @optional() registrations: ActionHandlerRegistration[],
|
|
52
|
+
@multiInject(TYPES.IActionHandlerInitializer) @optional() initializers: IActionHandlerInitializer[]
|
|
53
|
+
) {
|
|
54
|
+
super();
|
|
55
|
+
registrations.forEach(registration => this.register(registration.actionKind, registration.factory()));
|
|
56
|
+
initializers.forEach(initializer => this.initializeActionHandler(initializer));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
override register(key: string, instance: IActionHandler): void;
|
|
60
|
+
override register(key: string, instance: SIActionHandler): void;
|
|
61
|
+
override register(key: string, instance: ActionHandler): void {
|
|
62
|
+
super.register(key, instance);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
initializeActionHandler(initializer: IActionHandlerInitializer): void {
|
|
66
|
+
initializer.initialize(this);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function configureActionHandler(
|
|
71
|
+
context: { bind: interfaces.Bind; isBound: interfaces.IsBound },
|
|
72
|
+
kind: string,
|
|
73
|
+
constr: interfaces.ServiceIdentifier<IActionHandler>
|
|
74
|
+
): void {
|
|
75
|
+
sconfigureActionHandler(context, kind, constr);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Utility function to register an action handler for an action kind.
|
|
80
|
+
*/
|
|
81
|
+
export function onAction(
|
|
82
|
+
context: { bind: interfaces.Bind; isBound: interfaces.IsBound },
|
|
83
|
+
kind: string,
|
|
84
|
+
handle: (action: Action) => ReturnType<IActionHandler['handle']>
|
|
85
|
+
): void {
|
|
86
|
+
context.bind(TYPES.ActionHandlerRegistration).toConstantValue({
|
|
87
|
+
actionKind: kind,
|
|
88
|
+
factory: () => ({ handle })
|
|
89
|
+
});
|
|
90
|
+
}
|
package/src/api-override.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, Event, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { Action, Event, LabeledAction, MenuItem, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { VNode } from 'snabbdom';
|
|
19
19
|
import {
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
SModelRootImpl as GModelRoot,
|
|
23
23
|
ICommand,
|
|
24
24
|
IActionDispatcher as SIActionDispatcher,
|
|
25
|
-
IActionHandler as SIActionHandler,
|
|
26
25
|
IButtonHandler as SIButtonHandler,
|
|
27
26
|
ICommandPaletteActionProvider as SICommandPaletteActionProvider,
|
|
28
27
|
ICommandStack as SICommandStack,
|
|
29
28
|
IContextMenuItemProvider as SIContextMenuItemProvider,
|
|
30
29
|
IVNodePostprocessor as SIVNodePostprocessor,
|
|
31
30
|
KeyListener as SKeyListener,
|
|
31
|
+
MenuItem as SMenuItem,
|
|
32
32
|
MouseListener as SMouseListener
|
|
33
33
|
} from 'sprotty';
|
|
34
34
|
|
|
@@ -42,14 +42,6 @@ import {
|
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* An action handler accepts an action and reacts to it by returning either a command to be
|
|
47
|
-
* executed, or another action to be dispatched.
|
|
48
|
-
*/
|
|
49
|
-
export interface IActionHandler extends SIActionHandler {
|
|
50
|
-
handle(action: Action): ICommand | Action | void;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
45
|
export interface IButtonHandler extends SIButtonHandler {
|
|
54
46
|
buttonPressed(button: GButton): (Action | Promise<Action>)[];
|
|
55
47
|
}
|
|
@@ -253,3 +245,26 @@ export interface ICommandStack extends SICommandStack {
|
|
|
253
245
|
* using a provider to avoid cyclic injection dependencies.
|
|
254
246
|
*/
|
|
255
247
|
export type CommandStackProvider = () => Promise<ICommandStack>;
|
|
248
|
+
|
|
249
|
+
export type ClientMenuItem = SMenuItem;
|
|
250
|
+
export namespace ClientMenuItem {
|
|
251
|
+
/**
|
|
252
|
+
* Converts a {@link MenuItem} into a {@link ClientMenuItem}.
|
|
253
|
+
* Note that functions are created for the boolean attributes of the server item.
|
|
254
|
+
* If the server item does not define a particular attribute, the corresponding function in the client item will be `undefined`.
|
|
255
|
+
* The children are recursively converted as well.
|
|
256
|
+
* @param serverItem The server menu item to convert.
|
|
257
|
+
* @returns The converted client menu item.
|
|
258
|
+
*/
|
|
259
|
+
export function convert(item: MenuItem): ClientMenuItem {
|
|
260
|
+
const { children, isEnabled, isToggled, isVisible, ...coreProps } = item;
|
|
261
|
+
const clientItem: ClientMenuItem = {
|
|
262
|
+
...coreProps,
|
|
263
|
+
isEnabled: isEnabled !== undefined ? () => isEnabled : undefined,
|
|
264
|
+
isVisible: isVisible !== undefined ? () => isVisible : undefined,
|
|
265
|
+
isToggled: isToggled !== undefined ? () => isToggled : undefined,
|
|
266
|
+
children: children?.map(child => ClientMenuItem.convert(child))
|
|
267
|
+
};
|
|
268
|
+
return clientItem;
|
|
269
|
+
}
|
|
270
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -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 './action-handler-override';
|
|
16
17
|
export * from './api-override';
|
|
17
18
|
export * from './feature-modules';
|
|
18
19
|
export * from './layout-override';
|
package/src/re-exports.ts
CHANGED
|
@@ -29,13 +29,7 @@ export * from '@eclipse-glsp/protocol/lib/di';
|
|
|
29
29
|
// export * from 'sprotty/lib/base/actions/action';
|
|
30
30
|
// Exclude IActionDispatcher and IActionDispatcherProvider. Exported via api-override module instead
|
|
31
31
|
export { ActionDispatcher, PostponedAction } from 'sprotty/lib/base/actions/action-dispatcher';
|
|
32
|
-
export
|
|
33
|
-
ActionHandlerRegistration,
|
|
34
|
-
ActionHandlerRegistry,
|
|
35
|
-
IActionHandlerInitializer,
|
|
36
|
-
configureActionHandler,
|
|
37
|
-
onAction
|
|
38
|
-
} from 'sprotty/lib/base/actions/action-handler';
|
|
32
|
+
// export * from 'sprotty/lib/base/actions/action-handler';
|
|
39
33
|
export * from 'sprotty/lib/base/actions/diagram-locker';
|
|
40
34
|
|
|
41
35
|
export * from 'sprotty/lib/base/animations/animation';
|
|
@@ -52,18 +46,19 @@ export * from 'sprotty/lib/base/features/initialize-canvas';
|
|
|
52
46
|
export * from 'sprotty/lib/base/features/set-model';
|
|
53
47
|
// Exclude SModelElementImpl as it as exported with augmentation module
|
|
54
48
|
export {
|
|
49
|
+
createRandomId,
|
|
55
50
|
FeatureSet,
|
|
56
51
|
SChildElementImpl as GChildElement,
|
|
57
52
|
SModelElementImpl as GModelElement,
|
|
58
53
|
SModelRootImpl as GModelRoot,
|
|
59
54
|
SParentElementImpl as GParentElement,
|
|
60
55
|
IModelIndex,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
isParent
|
|
56
|
+
isParent,
|
|
57
|
+
ModelIndexImpl
|
|
64
58
|
} from 'sprotty/lib/base/model/smodel';
|
|
65
59
|
|
|
66
60
|
export {
|
|
61
|
+
createFeatureSet,
|
|
67
62
|
CustomFeatures,
|
|
68
63
|
EMPTY_ROOT,
|
|
69
64
|
SModelElementConstructor as GModelElementConstructor,
|
|
@@ -71,8 +66,7 @@ export {
|
|
|
71
66
|
SModelFactory as GModelFactory,
|
|
72
67
|
IModelFactory,
|
|
73
68
|
// exported without alias we extend it in glsp-client to `GModelRegistry`
|
|
74
|
-
SModelRegistry
|
|
75
|
-
createFeatureSet
|
|
69
|
+
SModelRegistry
|
|
76
70
|
} from 'sprotty/lib/base/model/smodel-factory';
|
|
77
71
|
export * from 'sprotty/lib/base/model/smodel-utils';
|
|
78
72
|
|
|
@@ -101,46 +95,47 @@ export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
|
101
95
|
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
102
96
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
103
97
|
export {
|
|
104
|
-
InternalBoundsAware as BoundsAware,
|
|
105
|
-
SShapeElementImpl as GShapeElement,
|
|
106
|
-
InternalLayoutContainer as LayoutContainer,
|
|
107
|
-
InternalLayoutableChild as LayoutableChild,
|
|
108
|
-
ModelLayoutOptions,
|
|
109
98
|
alignFeature,
|
|
99
|
+
InternalBoundsAware as BoundsAware,
|
|
110
100
|
boundsFeature,
|
|
111
101
|
findChildrenAtPosition,
|
|
112
102
|
getAbsoluteBounds,
|
|
113
103
|
getAbsoluteClientBounds,
|
|
104
|
+
SShapeElementImpl as GShapeElement,
|
|
114
105
|
isAlignable,
|
|
115
106
|
isBoundsAware,
|
|
116
|
-
isLayoutContainer,
|
|
117
107
|
isLayoutableChild,
|
|
108
|
+
isLayoutContainer,
|
|
118
109
|
isSizeable,
|
|
110
|
+
InternalLayoutableChild as LayoutableChild,
|
|
111
|
+
layoutableChildFeature,
|
|
112
|
+
InternalLayoutContainer as LayoutContainer,
|
|
119
113
|
layoutContainerFeature,
|
|
120
|
-
|
|
114
|
+
ModelLayoutOptions
|
|
121
115
|
} from 'sprotty/lib/features/bounds/model';
|
|
122
116
|
// exclude stack layout as its not supported in GLSP
|
|
123
117
|
// export * from 'sprotty/lib/features/bounds/stack-layout';
|
|
124
118
|
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
125
119
|
export * from 'sprotty/lib/features/bounds/views';
|
|
126
120
|
|
|
127
|
-
export { ButtonHandlerRegistry,
|
|
121
|
+
export { ButtonHandlerRegistry, configureButtonHandler, IButtonHandlerRegistration } from 'sprotty/lib/features/button/button-handler';
|
|
128
122
|
export { SButtonImpl as GButton } from 'sprotty/lib/features/button/model';
|
|
129
123
|
|
|
124
|
+
// exclude ICommandPaletteActionProvider. Exported via api-override module instead
|
|
130
125
|
export {
|
|
131
126
|
CommandPaletteActionProviderRegistry,
|
|
132
127
|
RevealNamedElementActionProvider
|
|
133
128
|
} from 'sprotty/lib/features/command-palette/action-providers';
|
|
134
129
|
export * from 'sprotty/lib/features/command-palette/command-palette';
|
|
135
130
|
|
|
136
|
-
// Exclude
|
|
137
|
-
export { Anchor, IContextMenuService, IContextMenuServiceProvider } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
131
|
+
// Exclude MenuItem. Exported via api-override as ClientMenu instead
|
|
132
|
+
export { Anchor, IContextMenuService, IContextMenuServiceProvider, toAnchor } from 'sprotty/lib/features/context-menu/context-menu-service';
|
|
138
133
|
export { ContextMenuProviderRegistry, DeleteContextMenuItemProvider } from 'sprotty/lib/features/context-menu/menu-providers';
|
|
139
134
|
export * from 'sprotty/lib/features/context-menu/mouse-listener';
|
|
140
135
|
|
|
141
136
|
export * from 'sprotty/lib/features/edge-layout/di.config';
|
|
142
137
|
export * from 'sprotty/lib/features/edge-layout/edge-layout';
|
|
143
|
-
export {
|
|
138
|
+
export { checkEdgePlacement, DEFAULT_EDGE_PLACEMENT, edgeLayoutFeature, isEdgeLayoutable } from 'sprotty/lib/features/edge-layout/model';
|
|
144
139
|
// Exclude client-side creation features (not supported in GLSP)
|
|
145
140
|
// export * from 'sprotty/lib/features/edit/create';
|
|
146
141
|
// export * from 'sprotty/lib/features/edit/create-on-drag';
|
|
@@ -158,6 +153,7 @@ export * from 'sprotty/lib/features/expand/views';
|
|
|
158
153
|
export { ExportSvgCommand, ExportSvgKeyListener, ExportSvgPostprocessor } from 'sprotty/lib/features/export/export';
|
|
159
154
|
export * from 'sprotty/lib/features/export/model';
|
|
160
155
|
// Exclude ExportSvgAction. Already provided by glsp-protocol
|
|
156
|
+
export * from 'sprotty/lib/features/export/svg-export-postprocessor';
|
|
161
157
|
export { SvgExporter } from 'sprotty/lib/features/export/svg-exporter';
|
|
162
158
|
|
|
163
159
|
export * from 'sprotty/lib/features/fade/fade';
|
|
@@ -171,10 +167,10 @@ export * from 'sprotty/lib/features/hover/popup-position-updater';
|
|
|
171
167
|
export * from 'sprotty/lib/features/decoration/decoration-placer';
|
|
172
168
|
export {
|
|
173
169
|
Decoration,
|
|
174
|
-
SDecoration as GDecoration,
|
|
175
|
-
SIssueMarkerImpl,
|
|
176
170
|
decorationFeature,
|
|
177
|
-
|
|
171
|
+
SDecoration as GDecoration,
|
|
172
|
+
isDecoration,
|
|
173
|
+
SIssueMarkerImpl
|
|
178
174
|
} from 'sprotty/lib/features/decoration/model';
|
|
179
175
|
export * from 'sprotty/lib/features/decoration/views';
|
|
180
176
|
|
|
@@ -192,7 +188,7 @@ export * from 'sprotty/lib/features/nameable/model';
|
|
|
192
188
|
export * from 'sprotty/lib/features/open/model';
|
|
193
189
|
export * from 'sprotty/lib/features/open/open';
|
|
194
190
|
|
|
195
|
-
export {
|
|
191
|
+
export { getModelBounds, getProjectedBounds, getProjections, isProjectable, ViewProjection } from 'sprotty/lib/features/projection/model';
|
|
196
192
|
export * from 'sprotty/lib/features/projection/views';
|
|
197
193
|
|
|
198
194
|
export * from 'sprotty/lib/features/routing/abstract-edge-router';
|
|
@@ -205,17 +201,17 @@ export * from 'sprotty/lib/features/routing/manhattan-edge-router';
|
|
|
205
201
|
// Alias SModel types
|
|
206
202
|
export {
|
|
207
203
|
Connectable,
|
|
208
|
-
SConnectableElementImpl as GConnectableElement,
|
|
209
|
-
SDanglingAnchorImpl as GDanglingAnchor,
|
|
210
|
-
SRoutableElementImpl as GRoutableElement,
|
|
211
|
-
SRoutingHandleImpl as GRoutingHandle,
|
|
212
|
-
RoutingHandleKind,
|
|
213
204
|
connectableFeature,
|
|
214
205
|
edgeInProgressID,
|
|
215
206
|
edgeInProgressTargetHandleID,
|
|
207
|
+
SConnectableElementImpl as GConnectableElement,
|
|
208
|
+
SDanglingAnchorImpl as GDanglingAnchor,
|
|
216
209
|
getAbsoluteRouteBounds,
|
|
217
210
|
getRouteBounds,
|
|
218
|
-
|
|
211
|
+
SRoutableElementImpl as GRoutableElement,
|
|
212
|
+
SRoutingHandleImpl as GRoutingHandle,
|
|
213
|
+
isConnectable,
|
|
214
|
+
RoutingHandleKind
|
|
219
215
|
} from 'sprotty/lib/features/routing/model';
|
|
220
216
|
export * from 'sprotty/lib/features/routing/polyline-anchors';
|
|
221
217
|
export * from 'sprotty/lib/features/routing/polyline-edge-router';
|
package/src/types.ts
CHANGED
|
@@ -66,5 +66,7 @@ export const TYPES = {
|
|
|
66
66
|
* Experimental shortcut manager.
|
|
67
67
|
* The API is not stable yet.
|
|
68
68
|
*/
|
|
69
|
-
IShortcutManager: Symbol('IShortcutManager')
|
|
69
|
+
IShortcutManager: Symbol('IShortcutManager'),
|
|
70
|
+
IAutocompleteSuggestionProvider: Symbol('IAutocompleteSuggestionProvider'),
|
|
71
|
+
IAutocompleteSuggestionProviderRegistry: Symbol('IAutocompleteSuggestionProviderRegistry')
|
|
70
72
|
};
|