@eclipse-glsp-examples/workflow-glsp 2.2.0-next.343 → 2.2.0-next.345
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/direct-task-editing/di.config.d.ts.map +1 -1
- package/lib/direct-task-editing/di.config.js +1 -1
- package/lib/direct-task-editing/di.config.js.map +1 -1
- package/lib/workflow-diagram-module.d.ts +3 -3
- package/lib/workflow-diagram-module.d.ts.map +1 -1
- package/lib/workflow-diagram-module.js +3 -3
- package/lib/workflow-diagram-module.js.map +1 -1
- package/package.json +3 -3
- package/src/direct-task-editing/di.config.ts +6 -3
- package/src/workflow-diagram-module.ts +40 -36
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAiB,aAAa,EAAS,MAAM,sBAAsB,CAAC;AAG3E,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAiB,aAAa,EAAS,MAAM,sBAAsB,CAAC;AAG3E,eAAO,MAAM,gBAAgB,eAK5B,CAAC"}
|
|
@@ -20,5 +20,5 @@ const client_1 = require("@eclipse-glsp/client");
|
|
|
20
20
|
const direct_task_editor_1 = require("./direct-task-editor");
|
|
21
21
|
exports.directTaskEditor = new client_1.FeatureModule((bind, _unbind, _isBound) => {
|
|
22
22
|
(0, client_1.bindAsService)(bind, client_1.TYPES.IUIExtension, direct_task_editor_1.TaskEditor);
|
|
23
|
-
});
|
|
23
|
+
}, { featureId: Symbol('directTaskEditor') });
|
|
24
24
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA2E;AAC3E,6DAAkD;AAErC,QAAA,gBAAgB,GAAG,IAAI,sBAAa,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA2E;AAC3E,6DAAkD;AAErC,QAAA,gBAAgB,GAAG,IAAI,sBAAa,CAC7C,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IACxB,IAAA,sBAAa,EAAC,IAAI,EAAE,cAAK,CAAC,YAAY,EAAE,+BAAU,CAAC,CAAC;AACxD,CAAC,EACD,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAC5C,CAAC"}
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { ContainerConfiguration } from '@eclipse-glsp/client';
|
|
16
|
+
import { ContainerConfiguration, FeatureModule } from '@eclipse-glsp/client';
|
|
17
17
|
import 'balloon-css/balloon.min.css';
|
|
18
|
-
import { Container
|
|
18
|
+
import { Container } from 'inversify';
|
|
19
19
|
import 'sprotty/css/edit-label.css';
|
|
20
20
|
import '../css/diagram.css';
|
|
21
|
-
export declare const workflowDiagramModule:
|
|
21
|
+
export declare const workflowDiagramModule: FeatureModule;
|
|
22
22
|
export declare function createWorkflowDiagramContainer(...containerConfiguration: ContainerConfiguration): Container;
|
|
23
23
|
export declare function initializeWorkflowDiagramContainer(container: Container, ...containerConfiguration: ContainerConfiguration): Container;
|
|
24
24
|
//# sourceMappingURL=workflow-diagram-module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAEH,sBAAsB,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAEH,sBAAsB,EAKtB,aAAa,EAwBhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAO5B,eAAO,MAAM,qBAAqB,eAuCjC,CAAC;AAEF,wBAAgB,8BAA8B,CAAC,GAAG,sBAAsB,EAAE,sBAAsB,GAAG,SAAS,CAE3G;AAED,wBAAgB,kCAAkC,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,sBAAsB,EAAE,sBAAsB,GAAG,SAAS,CAUrI"}
|
|
@@ -26,7 +26,7 @@ const model_1 = require("./model");
|
|
|
26
26
|
const workflow_snapper_1 = require("./workflow-snapper");
|
|
27
27
|
const workflow_startup_1 = require("./workflow-startup");
|
|
28
28
|
const workflow_views_1 = require("./workflow-views");
|
|
29
|
-
exports.workflowDiagramModule = new
|
|
29
|
+
exports.workflowDiagramModule = new client_1.FeatureModule((bind, unbind, isBound, rebind) => {
|
|
30
30
|
const context = { bind, unbind, isBound, rebind };
|
|
31
31
|
(0, client_1.bindOrRebind)(context, client_1.TYPES.ILogger).to(client_1.ConsoleLogger).inSingletonScope();
|
|
32
32
|
(0, client_1.bindOrRebind)(context, client_1.TYPES.LogLevel).toConstantValue(client_1.LogLevel.warn);
|
|
@@ -57,13 +57,13 @@ exports.workflowDiagramModule = new inversify_1.ContainerModule((bind, unbind, i
|
|
|
57
57
|
});
|
|
58
58
|
(0, client_1.bindAsService)(context, client_1.TYPES.IDiagramStartup, workflow_startup_1.WorkflowStartup);
|
|
59
59
|
(0, client_1.bindOrRebind)(context, client_1.TYPES.ISnapper).to(workflow_snapper_1.WorkflowSnapper);
|
|
60
|
-
});
|
|
60
|
+
}, { featureId: Symbol('workflowDiagram') });
|
|
61
61
|
function createWorkflowDiagramContainer(...containerConfiguration) {
|
|
62
62
|
return initializeWorkflowDiagramContainer(new inversify_1.Container(), ...containerConfiguration);
|
|
63
63
|
}
|
|
64
64
|
exports.createWorkflowDiagramContainer = createWorkflowDiagramContainer;
|
|
65
65
|
function initializeWorkflowDiagramContainer(container, ...containerConfiguration) {
|
|
66
|
-
return (0, client_1.initializeDiagramContainer)(container, di_config_1.directTaskEditor, client_1.helperLineModule, client_1.gridModule, client_1.debugModule, exports.workflowDiagramModule
|
|
66
|
+
return (0, client_1.initializeDiagramContainer)(container, ...containerConfiguration, di_config_1.directTaskEditor, client_1.helperLineModule, client_1.gridModule, client_1.debugModule, exports.workflowDiagramModule);
|
|
67
67
|
}
|
|
68
68
|
exports.initializeWorkflowDiagramContainer = initializeWorkflowDiagramContainer;
|
|
69
69
|
//# sourceMappingURL=workflow-diagram-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDA+B8B;AAC9B,uCAAqC;AACrC,yCAAsC;AACtC,sCAAoC;AACpC,8BAA4B;AAC5B,+DAAmE;AACnE,mCAAyG;AACzG,yDAAqD;AACrD,yDAAqD;AACrD,qDAA8D;AAEjD,QAAA,qBAAqB,GAAG,IAAI,sBAAa,CAClD,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAA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,CAAC,CAAC,EAAE,CAAC,kCAAe,CAAC,CAAC;AAC9D,CAAC,EACD,EAAE,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAC3C,CAAC;AAEF,SAAgB,8BAA8B,CAAC,GAAG,sBAA8C;IAC5F,OAAO,kCAAkC,CAAC,IAAI,qBAAS,EAAE,EAAE,GAAG,sBAAsB,CAAC,CAAC;AAC1F,CAAC;AAFD,wEAEC;AAED,SAAgB,kCAAkC,CAAC,SAAoB,EAAE,GAAG,sBAA8C;IACtH,OAAO,IAAA,mCAA0B,EAC7B,SAAS,EACT,GAAG,sBAAsB,EACzB,4BAAgB,EAChB,yBAAgB,EAChB,mBAAU,EACV,oBAAW,EACX,6BAAqB,CACxB,CAAC;AACN,CAAC;AAVD,gFAUC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-glsp",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.345+76a576b",
|
|
4
4
|
"description": "GLSP diagrams for the Workflow DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"glsp",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"watch": "tsc -w"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@eclipse-glsp/client": "2.2.0-next.
|
|
43
|
+
"@eclipse-glsp/client": "2.2.0-next.345+76a576b",
|
|
44
44
|
"balloon-css": "^0.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "76a576bd47cbb7229cf338ab547deeff871d59a9"
|
|
53
53
|
}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
import { bindAsService, FeatureModule, TYPES } from '@eclipse-glsp/client';
|
|
17
17
|
import { TaskEditor } from './direct-task-editor';
|
|
18
18
|
|
|
19
|
-
export const directTaskEditor = new FeatureModule(
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
export const directTaskEditor = new FeatureModule(
|
|
20
|
+
(bind, _unbind, _isBound) => {
|
|
21
|
+
bindAsService(bind, TYPES.IUIExtension, TaskEditor);
|
|
22
|
+
},
|
|
23
|
+
{ featureId: Symbol('directTaskEditor') }
|
|
24
|
+
);
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
DefaultTypes,
|
|
21
21
|
DeleteElementContextMenuItemProvider,
|
|
22
22
|
DiamondNodeView,
|
|
23
|
+
FeatureModule,
|
|
23
24
|
GCompartment,
|
|
24
25
|
GCompartmentView,
|
|
25
26
|
GEdge,
|
|
@@ -45,7 +46,7 @@ import {
|
|
|
45
46
|
initializeDiagramContainer
|
|
46
47
|
} from '@eclipse-glsp/client';
|
|
47
48
|
import 'balloon-css/balloon.min.css';
|
|
48
|
-
import { Container
|
|
49
|
+
import { Container } from 'inversify';
|
|
49
50
|
import 'sprotty/css/edit-label.css';
|
|
50
51
|
import '../css/diagram.css';
|
|
51
52
|
import { directTaskEditor } from './direct-task-editing/di.config';
|
|
@@ -54,43 +55,46 @@ import { WorkflowSnapper } from './workflow-snapper';
|
|
|
54
55
|
import { WorkflowStartup } from './workflow-startup';
|
|
55
56
|
import { IconView, WorkflowEdgeView } from './workflow-views';
|
|
56
57
|
|
|
57
|
-
export const workflowDiagramModule = new
|
|
58
|
-
|
|
58
|
+
export const workflowDiagramModule = new FeatureModule(
|
|
59
|
+
(bind, unbind, isBound, rebind) => {
|
|
60
|
+
const context = { bind, unbind, isBound, rebind };
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
bindOrRebind(context, TYPES.ILogger).to(ConsoleLogger).inSingletonScope();
|
|
63
|
+
bindOrRebind(context, TYPES.LogLevel).toConstantValue(LogLevel.warn);
|
|
64
|
+
bindAsService(context, TYPES.ICommandPaletteActionProvider, RevealNamedElementActionProvider);
|
|
65
|
+
bindAsService(context, TYPES.IContextMenuItemProvider, DeleteElementContextMenuItemProvider);
|
|
64
66
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
67
|
+
configureDefaultModelElements(context);
|
|
68
|
+
configureModelElement(context, 'task:automated', TaskNode, RoundedCornerNodeView);
|
|
69
|
+
configureModelElement(context, 'task:manual', TaskNode, RoundedCornerNodeView);
|
|
70
|
+
configureModelElement(context, 'label:heading', GLabel, GLabelView, { enable: [editLabelFeature] });
|
|
71
|
+
configureModelElement(context, 'comp:comp', GCompartment, GCompartmentView);
|
|
72
|
+
configureModelElement(context, 'comp:header', GCompartment, GCompartmentView);
|
|
73
|
+
configureModelElement(context, 'label:icon', GLabel, GLabelView);
|
|
74
|
+
configureModelElement(context, DefaultTypes.EDGE, GEdge, WorkflowEdgeView);
|
|
75
|
+
configureModelElement(context, 'edge:weighted', WeightedEdge, WorkflowEdgeView);
|
|
76
|
+
configureModelElement(context, 'icon', Icon, IconView);
|
|
77
|
+
configureModelElement(context, 'activityNode:merge', BranchingNode, DiamondNodeView);
|
|
78
|
+
configureModelElement(context, 'activityNode:decision', BranchingNode, DiamondNodeView);
|
|
79
|
+
configureModelElement(context, 'activityNode:fork', SynchronizationNode, RectangularNodeView);
|
|
80
|
+
configureModelElement(context, 'activityNode:join', SynchronizationNode, RectangularNodeView);
|
|
81
|
+
configureModelElement(context, DefaultTypes.GRAPH, GGraph, GLSPProjectionView);
|
|
82
|
+
configureModelElement(context, 'category', CategoryNode, RoundedCornerNodeView);
|
|
83
|
+
configureModelElement(context, 'struct', GCompartment, StructureCompartmentView);
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
bind<IHelperLineOptions>(TYPES.IHelperLineOptions).toDynamicValue(ctx => {
|
|
86
|
+
const options: IHelperLineOptions = {};
|
|
87
|
+
// skip icons for alignment as well as compartments which are only used for structure
|
|
88
|
+
options.alignmentElementFilter = element =>
|
|
89
|
+
DEFAULT_ALIGNABLE_ELEMENT_FILTER(element) && !(element instanceof Icon) && !(element instanceof GCompartment);
|
|
90
|
+
return options;
|
|
91
|
+
});
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
93
|
+
bindAsService(context, TYPES.IDiagramStartup, WorkflowStartup);
|
|
94
|
+
bindOrRebind(context, TYPES.ISnapper).to(WorkflowSnapper);
|
|
95
|
+
},
|
|
96
|
+
{ featureId: Symbol('workflowDiagram') }
|
|
97
|
+
);
|
|
94
98
|
|
|
95
99
|
export function createWorkflowDiagramContainer(...containerConfiguration: ContainerConfiguration): Container {
|
|
96
100
|
return initializeWorkflowDiagramContainer(new Container(), ...containerConfiguration);
|
|
@@ -99,11 +103,11 @@ export function createWorkflowDiagramContainer(...containerConfiguration: Contai
|
|
|
99
103
|
export function initializeWorkflowDiagramContainer(container: Container, ...containerConfiguration: ContainerConfiguration): Container {
|
|
100
104
|
return initializeDiagramContainer(
|
|
101
105
|
container,
|
|
106
|
+
...containerConfiguration,
|
|
102
107
|
directTaskEditor,
|
|
103
108
|
helperLineModule,
|
|
104
109
|
gridModule,
|
|
105
110
|
debugModule,
|
|
106
|
-
workflowDiagramModule
|
|
107
|
-
...containerConfiguration
|
|
111
|
+
workflowDiagramModule
|
|
108
112
|
);
|
|
109
113
|
}
|