@eclipse-glsp-examples/workflow-glsp 0.10.0-next.ca17587.154 → 1.1.0-RC01
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/css/diagram.css +35 -145
- package/lib/di.config.d.ts.map +1 -1
- package/lib/di.config.js +19 -18
- package/lib/di.config.js.map +1 -1
- package/lib/direct-task-editing/di.config.d.ts +0 -15
- package/lib/direct-task-editing/di.config.d.ts.map +1 -1
- package/lib/direct-task-editing/di.config.js +3 -3
- package/lib/direct-task-editing/di.config.js.map +1 -1
- package/lib/direct-task-editing/direct-task-editor.d.ts +24 -8
- package/lib/direct-task-editing/direct-task-editor.d.ts.map +1 -1
- package/lib/direct-task-editing/direct-task-editor.js +28 -26
- package/lib/direct-task-editing/direct-task-editor.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/model.d.ts +2 -2
- package/lib/model.d.ts.map +1 -1
- package/lib/model.js +10 -12
- package/lib/model.js.map +1 -1
- package/lib/workflow-views.d.ts +4 -5
- package/lib/workflow-views.d.ts.map +1 -1
- package/lib/workflow-views.js +35 -13
- package/lib/workflow-views.js.map +1 -1
- package/package.json +7 -8
- package/scripts/config.json +9 -0
- package/scripts/download.ts +9 -8
- package/src/di.config.ts +3 -1
- package/src/direct-task-editing/di.config.ts +2 -3
- package/src/direct-task-editing/direct-task-editor.ts +53 -22
- package/src/model.ts +15 -14
- package/src/workflow-views.tsx +43 -14
package/css/diagram.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2022 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -20,10 +20,6 @@
|
|
|
20
20
|
height: 100%;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.sprotty-popup {
|
|
24
|
-
z-index: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
23
|
.sprotty-text {
|
|
28
24
|
font-size: 12pt;
|
|
29
25
|
text-anchor: middle;
|
|
@@ -34,15 +30,6 @@
|
|
|
34
30
|
font-weight: bold;
|
|
35
31
|
}
|
|
36
32
|
|
|
37
|
-
.sprotty-node.mouseover:not(.selected) {
|
|
38
|
-
stroke-width: 2;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.sprotty-comp {
|
|
42
|
-
line-height: 3px;
|
|
43
|
-
text-align: left;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
33
|
.sprotty-label {
|
|
47
34
|
stroke-width: 0;
|
|
48
35
|
fill: #000;
|
|
@@ -53,132 +40,66 @@
|
|
|
53
40
|
|
|
54
41
|
.sprotty-label.heading {
|
|
55
42
|
font-weight: normal;
|
|
43
|
+
font-size: 0.7em;
|
|
44
|
+
fill: #f0f3f8;
|
|
56
45
|
}
|
|
57
46
|
|
|
58
|
-
.
|
|
59
|
-
stroke: black;
|
|
60
|
-
stroke-width: 0.5;
|
|
61
|
-
fill: #ffffff;
|
|
62
|
-
opacity: 0.5;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.sprotty-label.icon {
|
|
66
|
-
fill: black;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.sprotty-button {
|
|
70
|
-
fill: #152;
|
|
47
|
+
.icon path {
|
|
71
48
|
stroke-width: 0;
|
|
49
|
+
fill: #f0f3f8;
|
|
72
50
|
}
|
|
73
51
|
|
|
74
|
-
.
|
|
75
|
-
fill:
|
|
76
|
-
stroke-width: 1px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.sprotty-edge.selected {
|
|
80
|
-
stroke-width: 3px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.sprotty-edge.mouseover:not(.selected) {
|
|
84
|
-
stroke-width: 2px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.sprotty-edge > .sprotty-routing-handle {
|
|
88
|
-
r: 7px;
|
|
89
|
-
fill: #884;
|
|
90
|
-
stroke: none;
|
|
91
|
-
z-index: 1000;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.sprotty-edge > .sprotty-routing-handle[data-kind='line'] {
|
|
95
|
-
opacity: 0.35;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.sprotty-edge > .sprotty-routing-handle.selected {
|
|
99
|
-
fill: #66a;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.sprotty-edge > .sprotty-routing-handle.mouseover {
|
|
103
|
-
stroke: #112;
|
|
104
|
-
stroke-width: 1;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.sprotty-missing {
|
|
108
|
-
stroke-width: 1;
|
|
109
|
-
stroke: #f00;
|
|
110
|
-
fill: #f00;
|
|
111
|
-
font-size: 14pt;
|
|
112
|
-
text-anchor: middle;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.sprotty-node:not(.selected) {
|
|
116
|
-
stroke-width: 1px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.sprotty-node.marquee {
|
|
120
|
-
fill: lightgray;
|
|
121
|
-
opacity: 0.2;
|
|
52
|
+
.icon .icon-background {
|
|
53
|
+
fill: transparent;
|
|
122
54
|
}
|
|
123
55
|
|
|
124
56
|
.task.automated > .sprotty-node {
|
|
125
|
-
fill:
|
|
57
|
+
fill: #5b9fa8;
|
|
126
58
|
}
|
|
127
59
|
|
|
128
60
|
.task.manual > .sprotty-node {
|
|
129
|
-
fill:
|
|
61
|
+
fill: #db8651;
|
|
130
62
|
}
|
|
131
63
|
|
|
132
64
|
.category > .sprotty-node {
|
|
133
|
-
fill:
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
text {
|
|
137
|
-
stroke-width: 0;
|
|
138
|
-
stroke: #000;
|
|
139
|
-
fill: #000;
|
|
140
|
-
font-family: sans-serif;
|
|
141
|
-
font-size: 8pt;
|
|
142
|
-
text-anchor: middle;
|
|
65
|
+
fill: #5c87bd;
|
|
143
66
|
}
|
|
144
67
|
|
|
145
|
-
.sprotty-
|
|
146
|
-
|
|
147
|
-
stroke:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.sprotty-edge.weighted.low .arrow {
|
|
151
|
-
fill: lightblue;
|
|
68
|
+
.category .category > .sprotty-node {
|
|
69
|
+
/** Add a border to nested categories, so we can distinguish them */
|
|
70
|
+
stroke: #38679a;
|
|
71
|
+
fill: #6f9ad0;
|
|
72
|
+
stroke-width: 1;
|
|
152
73
|
}
|
|
153
74
|
|
|
154
|
-
.sprotty-edge.weighted,
|
|
155
|
-
.sprotty-edge.weighted .arrow
|
|
156
|
-
|
|
157
|
-
.sprotty-edge.weighted.medium .arrow {
|
|
158
|
-
stroke: #007fd4;
|
|
75
|
+
.sprotty-edge.weighted.low:not(.selected),
|
|
76
|
+
.sprotty-edge.weighted.low:not(.selected) .arrow {
|
|
77
|
+
stroke: rgb(128, 90, 233);
|
|
159
78
|
}
|
|
160
79
|
|
|
161
|
-
.sprotty-edge.weighted .arrow
|
|
162
|
-
|
|
163
|
-
fill: #007fd4;
|
|
80
|
+
.sprotty-edge.weighted.low:not(.selected) .arrow {
|
|
81
|
+
fill: rgb(128, 90, 233);
|
|
164
82
|
}
|
|
165
83
|
|
|
166
|
-
.sprotty-edge.weighted.
|
|
167
|
-
.sprotty-edge.weighted.
|
|
168
|
-
|
|
84
|
+
.sprotty-edge.weighted:not(.selected),
|
|
85
|
+
.sprotty-edge.weighted:not(.selected) .arrow,
|
|
86
|
+
.sprotty-edge.weighted.medium:not(.selected),
|
|
87
|
+
.sprotty-edge.weighted.medium:not(.selected) .arrow {
|
|
88
|
+
stroke: rgb(98, 60, 193);
|
|
169
89
|
}
|
|
170
90
|
|
|
171
|
-
.sprotty-edge.weighted.
|
|
172
|
-
|
|
91
|
+
.sprotty-edge.weighted:not(.selected) .arrow,
|
|
92
|
+
.sprotty-edge.weighted.medium:not(.selected) .arrow {
|
|
93
|
+
fill: rgb(98, 60, 193);
|
|
173
94
|
}
|
|
174
95
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
stroke
|
|
96
|
+
.sprotty-edge.weighted.high:not(.selected),
|
|
97
|
+
.sprotty-edge.weighted.high:not(.selected) .arrow {
|
|
98
|
+
stroke: rgb(68, 30, 163);
|
|
178
99
|
}
|
|
179
100
|
|
|
180
|
-
.sprotty-
|
|
181
|
-
|
|
101
|
+
.sprotty-edge.weighted.high:not(.selected) .arrow {
|
|
102
|
+
fill: rgb(68, 30, 163);
|
|
182
103
|
}
|
|
183
104
|
|
|
184
105
|
.sprotty-comp {
|
|
@@ -186,38 +107,7 @@ polygon.sprotty-node {
|
|
|
186
107
|
fill: transparent;
|
|
187
108
|
}
|
|
188
109
|
|
|
189
|
-
.sprotty-comp.debug {
|
|
190
|
-
stroke: deepskyblue;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
svg {
|
|
194
|
-
border-style: solid;
|
|
195
|
-
border-width: 1px;
|
|
196
|
-
border-color: #bbb;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
110
|
.label-edit input {
|
|
200
|
-
margin-top: -
|
|
201
|
-
margin-left: -
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
g .movement-not-allowed > .sprotty-node {
|
|
205
|
-
stroke: var(--glsp-error-foreground) !important;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.sprotty-resize-handle.movement-not-allowed {
|
|
209
|
-
stroke: var(--glsp-error-foreground) !important;
|
|
210
|
-
fill: var(--glsp-error-foreground) !important;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.error > .sprotty-node {
|
|
214
|
-
stroke: var(--glsp-error-foreground) !important;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.warning > .sprotty-node {
|
|
218
|
-
stroke: var(--glsp-warning-foreground) !important;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.info > .sprotty-node {
|
|
222
|
-
stroke: var(--glsp-info-foreground) !important;
|
|
111
|
+
margin-top: -3px;
|
|
112
|
+
margin-left: -3px;
|
|
223
113
|
}
|
package/lib/di.config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../src/di.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../src/di.config.ts"],"names":[],"mappings":"AAwCA,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAmB,MAAM,WAAW,CAAC;AACvD,OAAO,4BAA4B,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAgC5B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAOnE"}
|
package/lib/di.config.js
CHANGED
|
@@ -31,26 +31,27 @@ const workflowDiagramModule = new inversify_1.ContainerModule((bind, unbind, isB
|
|
|
31
31
|
bind(client_1.TYPES.ICommandPaletteActionProvider).to(client_1.RevealNamedElementActionProvider);
|
|
32
32
|
bind(client_1.TYPES.IContextMenuItemProvider).to(client_1.DeleteElementContextMenuItemProvider);
|
|
33
33
|
const context = { bind, unbind, isBound, rebind };
|
|
34
|
-
client_1.configureDefaultModelElements(context);
|
|
35
|
-
client_1.configureModelElement(context, 'task:automated', model_1.TaskNode, client_1.RoundedCornerNodeView);
|
|
36
|
-
client_1.configureModelElement(context, 'task:manual', model_1.TaskNode, client_1.RoundedCornerNodeView);
|
|
37
|
-
client_1.configureModelElement(context, 'label:heading', client_1.SLabel, client_1.SLabelView, { enable: [client_1.editLabelFeature] });
|
|
38
|
-
client_1.configureModelElement(context, 'comp:comp', client_1.SCompartment, client_1.SCompartmentView);
|
|
39
|
-
client_1.configureModelElement(context, 'comp:header', client_1.SCompartment, client_1.SCompartmentView);
|
|
40
|
-
client_1.configureModelElement(context, 'label:icon', client_1.SLabel, client_1.SLabelView);
|
|
41
|
-
client_1.configureModelElement(context, protocol_1.DefaultTypes.EDGE, client_1.SEdge, workflow_views_1.WorkflowEdgeView);
|
|
42
|
-
client_1.configureModelElement(context, 'edge:weighted', model_1.WeightedEdge, workflow_views_1.WorkflowEdgeView);
|
|
43
|
-
client_1.configureModelElement(context, 'icon', model_1.Icon, workflow_views_1.IconView);
|
|
44
|
-
client_1.configureModelElement(context, 'activityNode:merge', model_1.ActivityNode, client_1.DiamondNodeView);
|
|
45
|
-
client_1.configureModelElement(context, 'activityNode:decision', model_1.ActivityNode, client_1.DiamondNodeView);
|
|
46
|
-
client_1.configureModelElement(context, 'activityNode:fork', model_1.ActivityNode, client_1.RectangularNodeView);
|
|
47
|
-
client_1.configureModelElement(context, 'activityNode:join', model_1.ActivityNode, client_1.RectangularNodeView);
|
|
48
|
-
client_1.configureModelElement(context,
|
|
49
|
-
client_1.configureModelElement(context, '
|
|
34
|
+
(0, client_1.configureDefaultModelElements)(context);
|
|
35
|
+
(0, client_1.configureModelElement)(context, 'task:automated', model_1.TaskNode, client_1.RoundedCornerNodeView);
|
|
36
|
+
(0, client_1.configureModelElement)(context, 'task:manual', model_1.TaskNode, client_1.RoundedCornerNodeView);
|
|
37
|
+
(0, client_1.configureModelElement)(context, 'label:heading', client_1.SLabel, client_1.SLabelView, { enable: [client_1.editLabelFeature] });
|
|
38
|
+
(0, client_1.configureModelElement)(context, 'comp:comp', client_1.SCompartment, client_1.SCompartmentView);
|
|
39
|
+
(0, client_1.configureModelElement)(context, 'comp:header', client_1.SCompartment, client_1.SCompartmentView);
|
|
40
|
+
(0, client_1.configureModelElement)(context, 'label:icon', client_1.SLabel, client_1.SLabelView);
|
|
41
|
+
(0, client_1.configureModelElement)(context, protocol_1.DefaultTypes.EDGE, client_1.SEdge, workflow_views_1.WorkflowEdgeView);
|
|
42
|
+
(0, client_1.configureModelElement)(context, 'edge:weighted', model_1.WeightedEdge, workflow_views_1.WorkflowEdgeView);
|
|
43
|
+
(0, client_1.configureModelElement)(context, 'icon', model_1.Icon, workflow_views_1.IconView);
|
|
44
|
+
(0, client_1.configureModelElement)(context, 'activityNode:merge', model_1.ActivityNode, client_1.DiamondNodeView);
|
|
45
|
+
(0, client_1.configureModelElement)(context, 'activityNode:decision', model_1.ActivityNode, client_1.DiamondNodeView);
|
|
46
|
+
(0, client_1.configureModelElement)(context, 'activityNode:fork', model_1.ActivityNode, client_1.RectangularNodeView);
|
|
47
|
+
(0, client_1.configureModelElement)(context, 'activityNode:join', model_1.ActivityNode, client_1.RectangularNodeView);
|
|
48
|
+
(0, client_1.configureModelElement)(context, protocol_1.DefaultTypes.GRAPH, client_1.GLSPGraph, client_1.GLSPProjectionView);
|
|
49
|
+
(0, client_1.configureModelElement)(context, 'category', model_1.CategoryNode, client_1.RoundedCornerNodeView);
|
|
50
|
+
(0, client_1.configureModelElement)(context, 'struct', client_1.SCompartment, client_1.StructureCompartmentView);
|
|
50
51
|
});
|
|
51
52
|
function createContainer(widgetId) {
|
|
52
|
-
const container = client_1.createClientContainer(workflowDiagramModule, di_config_1.directTaskEditor);
|
|
53
|
-
client_1.overrideViewerOptions(container, {
|
|
53
|
+
const container = (0, client_1.createClientContainer)(workflowDiagramModule, di_config_1.directTaskEditor);
|
|
54
|
+
(0, client_1.overrideViewerOptions)(container, {
|
|
54
55
|
baseDiv: widgetId,
|
|
55
56
|
hiddenDiv: widgetId + '_hidden'
|
|
56
57
|
});
|
package/lib/di.config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../src/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../src/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAuB8B;AAC9B,qDAAsD;AACtD,uCAAqC;AACrC,yCAAuD;AACvD,sCAAoC;AACpC,8BAA4B;AAC5B,+DAAmE;AACnE,mCAA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|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020 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
1
|
import { ContainerModule } from 'inversify';
|
|
17
2
|
export declare const directTaskEditor: ContainerModule;
|
|
18
3
|
//# sourceMappingURL=di.config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,eAAO,MAAM,gBAAgB,iBAG3B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.directTaskEditor = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,11 +16,11 @@ exports.directTaskEditor = void 0;
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
+
const client_1 = require("@eclipse-glsp/client");
|
|
19
20
|
const inversify_1 = require("inversify");
|
|
20
|
-
const sprotty_1 = require("sprotty");
|
|
21
21
|
const direct_task_editor_1 = require("./direct-task-editor");
|
|
22
22
|
exports.directTaskEditor = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
23
23
|
bind(direct_task_editor_1.TaskEditor).toSelf().inSingletonScope();
|
|
24
|
-
bind(
|
|
24
|
+
bind(client_1.TYPES.IUIExtension).toService(direct_task_editor_1.TaskEditor);
|
|
25
25
|
});
|
|
26
26
|
//# 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,yCAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../src/direct-task-editing/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA6C;AAC7C,yCAA4C;AAC5C,6DAAkD;AAErC,QAAA,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC3E,IAAI,CAAC,+BAAU,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7C,IAAI,CAAC,cAAK,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,+BAAU,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,15 +13,31 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { AbstractUIExtension, Action, AutoCompleteWidget, EditorContextService, GLSPActionDispatcher, ILogger, LabeledAction, SModelRoot, ValidationStatus, ViewerOptions } from '@eclipse-glsp/client';
|
|
16
|
+
import { AbstractUIExtension, Action, AutoCompleteWidget, EditorContextService, GLSPActionDispatcher, ILogger, LabeledAction, Operation, SModelRoot, ValidationStatus, ViewerOptions } from '@eclipse-glsp/client';
|
|
17
17
|
import { DOMHelper } from 'sprotty/lib/base/views/dom-helper';
|
|
18
18
|
import { TaskNode } from '../model';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Is send from the {@link TaskEditor} to the GLSP server
|
|
21
|
+
* to execute a task edit operation.
|
|
22
|
+
*/
|
|
23
|
+
export interface ApplyTaskEditOperation extends Operation {
|
|
24
|
+
kind: typeof ApplyTaskEditOperation.KIND;
|
|
25
|
+
/**
|
|
26
|
+
* Id of the task that should be edited
|
|
27
|
+
*/
|
|
28
|
+
taskId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The edit expression
|
|
31
|
+
*/
|
|
32
|
+
expression: string;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace ApplyTaskEditOperation {
|
|
35
|
+
const KIND = "applyTaskEdit";
|
|
36
|
+
function is(object: any): object is ApplyTaskEditOperation;
|
|
37
|
+
function create(options: {
|
|
38
|
+
taskId: string;
|
|
39
|
+
expression: string;
|
|
40
|
+
}): ApplyTaskEditOperation;
|
|
25
41
|
}
|
|
26
42
|
export declare class TaskEditor extends AbstractUIExtension {
|
|
27
43
|
static readonly ID = "task-editor";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct-task-editor.d.ts","sourceRoot":"","sources":["../../src/direct-task-editing/direct-task-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,mBAAmB,EACnB,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EAEpB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"direct-task-editor.d.ts","sourceRoot":"","sources":["../../src/direct-task-editing/direct-task-editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,mBAAmB,EACnB,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EAEpB,oBAAoB,EAEpB,OAAO,EACP,aAAa,EAEb,SAAS,EAKT,UAAU,EAIV,gBAAgB,EAChB,aAAa,EAChB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAc,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACrD,IAAI,EAAE,OAAO,sBAAsB,CAAC,IAAI,CAAC;IAEzC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,IAAI,kBAAkB,CAAC;IAEpC,SAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,sBAAsB,CAEhE;IAED,SAAgB,MAAM,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,sBAAsB,CAM9F;CACJ;AAED,qBACa,UAAW,SAAQ,mBAAmB;IAC/C,MAAM,CAAC,QAAQ,CAAC,EAAE,iBAAiB;IACnC,QAAQ,CAAC,sBAAsB;;;;;MAK7B;IAGF,SAAS,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;IAGjD,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAGrD,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IAGvC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAE/B,UACmB,MAAM,EAAE,OAAO,CAAC;IAEnC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC;IACzB,SAAS,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAE7C,EAAE,IAAI,MAAM;IAGZ,cAAc,IAAI,MAAM;IAIxB,SAAS,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;IAkBxD,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,iBAAiB,EAAE,MAAM,EAAE,GAAG,IAAI;cAK5D,YAAY,CAAC,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,GAAG,iBAAiB,EAAE,MAAM,EAAE,GAAG,IAAI;IAMhI,SAAS,CAAC,WAAW,CAAC,gBAAgB,EAAE,WAAW,GAAG,IAAI;cAe1C,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;cAU5D,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAUvE,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI;IAI/E,SAAS,CAAC,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK9C,IAAI,IAAI,IAAI;CAIxB"}
|
|
@@ -12,7 +12,7 @@ var TaskEditor_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.TaskEditor = exports.ApplyTaskEditOperation = void 0;
|
|
14
14
|
/********************************************************************************
|
|
15
|
-
* Copyright (c) 2020-
|
|
15
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
16
16
|
*
|
|
17
17
|
* This program and the accompanying materials are made available under the
|
|
18
18
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -28,18 +28,20 @@ exports.TaskEditor = exports.ApplyTaskEditOperation = void 0;
|
|
|
28
28
|
********************************************************************************/
|
|
29
29
|
const client_1 = require("@eclipse-glsp/client");
|
|
30
30
|
const inversify_1 = require("inversify");
|
|
31
|
-
const lib_1 = require("sprotty/lib");
|
|
32
31
|
const dom_helper_1 = require("sprotty/lib/base/views/dom-helper");
|
|
33
32
|
const model_1 = require("../model");
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
var ApplyTaskEditOperation;
|
|
34
|
+
(function (ApplyTaskEditOperation) {
|
|
35
|
+
ApplyTaskEditOperation.KIND = 'applyTaskEdit';
|
|
36
|
+
function is(object) {
|
|
37
|
+
return client_1.Operation.hasKind(object, ApplyTaskEditOperation.KIND) && (0, client_1.hasStringProp)(object, 'taskId') && (0, client_1.hasStringProp)(object, 'expression');
|
|
39
38
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
ApplyTaskEditOperation.KIND
|
|
39
|
+
ApplyTaskEditOperation.is = is;
|
|
40
|
+
function create(options) {
|
|
41
|
+
return Object.assign({ kind: ApplyTaskEditOperation.KIND, isOperation: true }, options);
|
|
42
|
+
}
|
|
43
|
+
ApplyTaskEditOperation.create = create;
|
|
44
|
+
})(ApplyTaskEditOperation = exports.ApplyTaskEditOperation || (exports.ApplyTaskEditOperation = {}));
|
|
43
45
|
let TaskEditor = TaskEditor_1 = class TaskEditor extends client_1.AbstractUIExtension {
|
|
44
46
|
constructor() {
|
|
45
47
|
super(...arguments);
|
|
@@ -69,7 +71,7 @@ let TaskEditor = TaskEditor_1 = class TaskEditor extends client_1.AbstractUIExte
|
|
|
69
71
|
this.autoSuggestion.open(root);
|
|
70
72
|
}
|
|
71
73
|
onBeforeShow(containerElement, root, ...contextElementIds) {
|
|
72
|
-
this.task = getTask(contextElementIds, root)[0];
|
|
74
|
+
this.task = getTask(contextElementIds, root.index)[0];
|
|
73
75
|
this.autoSuggestion.inputField.value = '';
|
|
74
76
|
this.setPosition(containerElement);
|
|
75
77
|
}
|
|
@@ -77,7 +79,7 @@ let TaskEditor = TaskEditor_1 = class TaskEditor extends client_1.AbstractUIExte
|
|
|
77
79
|
let x = 0;
|
|
78
80
|
let y = 0;
|
|
79
81
|
if (this.task) {
|
|
80
|
-
const bounds = client_1.getAbsoluteClientBounds(this.task, this.domHelper, this.viewerOptions);
|
|
82
|
+
const bounds = (0, client_1.getAbsoluteClientBounds)(this.task, this.domHelper, this.viewerOptions);
|
|
81
83
|
x = bounds.x + 5;
|
|
82
84
|
y = bounds.y + 5;
|
|
83
85
|
}
|
|
@@ -86,24 +88,24 @@ let TaskEditor = TaskEditor_1 = class TaskEditor extends client_1.AbstractUIExte
|
|
|
86
88
|
containerElement.style.width = '200px';
|
|
87
89
|
}
|
|
88
90
|
async retrieveSuggestions(input) {
|
|
89
|
-
const response = await this.actionDispatcher.request(
|
|
90
|
-
if (client_1.
|
|
91
|
+
const response = await this.actionDispatcher.request(client_1.RequestContextActions.create({ contextId: TaskEditor_1.ID, editorContext: this.editorContextService.get({ ['text']: input }) }));
|
|
92
|
+
if (client_1.SetContextActions.is(response)) {
|
|
91
93
|
return response.actions;
|
|
92
94
|
}
|
|
93
95
|
return Promise.reject();
|
|
94
96
|
}
|
|
95
97
|
async validateInput(input) {
|
|
96
|
-
const response = await this.actionDispatcher.request(
|
|
97
|
-
if (client_1.
|
|
98
|
+
const response = await this.actionDispatcher.request(client_1.RequestEditValidationAction.create({ contextId: TaskEditor_1.ID, modelElementId: this.task.id, text: input }));
|
|
99
|
+
if (client_1.SetEditValidationResultAction.is(response)) {
|
|
98
100
|
return response.status;
|
|
99
101
|
}
|
|
100
102
|
return Promise.reject();
|
|
101
103
|
}
|
|
102
104
|
executeFromSuggestion(input) {
|
|
103
|
-
this.actionDispatcher.dispatchAll(client_1.toActionArray(input));
|
|
105
|
+
this.actionDispatcher.dispatchAll((0, client_1.toActionArray)(input));
|
|
104
106
|
}
|
|
105
107
|
executeFromTextOnlyInput(input) {
|
|
106
|
-
const action =
|
|
108
|
+
const action = ApplyTaskEditOperation.create({ taskId: this.task.id, expression: input });
|
|
107
109
|
this.actionDispatcher.dispatch(action);
|
|
108
110
|
}
|
|
109
111
|
hide() {
|
|
@@ -113,30 +115,30 @@ let TaskEditor = TaskEditor_1 = class TaskEditor extends client_1.AbstractUIExte
|
|
|
113
115
|
};
|
|
114
116
|
TaskEditor.ID = 'task-editor';
|
|
115
117
|
__decorate([
|
|
116
|
-
inversify_1.inject(
|
|
118
|
+
(0, inversify_1.inject)(client_1.TYPES.IActionDispatcher),
|
|
117
119
|
__metadata("design:type", client_1.GLSPActionDispatcher)
|
|
118
120
|
], TaskEditor.prototype, "actionDispatcher", void 0);
|
|
119
121
|
__decorate([
|
|
120
|
-
inversify_1.inject(client_1.EditorContextService),
|
|
122
|
+
(0, inversify_1.inject)(client_1.EditorContextService),
|
|
121
123
|
__metadata("design:type", client_1.EditorContextService)
|
|
122
124
|
], TaskEditor.prototype, "editorContextService", void 0);
|
|
123
125
|
__decorate([
|
|
124
|
-
inversify_1.inject(
|
|
126
|
+
(0, inversify_1.inject)(client_1.TYPES.ViewerOptions),
|
|
125
127
|
__metadata("design:type", Object)
|
|
126
128
|
], TaskEditor.prototype, "viewerOptions", void 0);
|
|
127
129
|
__decorate([
|
|
128
|
-
inversify_1.inject(
|
|
130
|
+
(0, inversify_1.inject)(client_1.TYPES.DOMHelper),
|
|
129
131
|
__metadata("design:type", dom_helper_1.DOMHelper)
|
|
130
132
|
], TaskEditor.prototype, "domHelper", void 0);
|
|
131
133
|
__decorate([
|
|
132
|
-
inversify_1.inject(
|
|
134
|
+
(0, inversify_1.inject)(client_1.TYPES.ILogger),
|
|
133
135
|
__metadata("design:type", Object)
|
|
134
136
|
], TaskEditor.prototype, "logger", void 0);
|
|
135
137
|
TaskEditor = TaskEditor_1 = __decorate([
|
|
136
|
-
inversify_1.injectable()
|
|
138
|
+
(0, inversify_1.injectable)()
|
|
137
139
|
], TaskEditor);
|
|
138
140
|
exports.TaskEditor = TaskEditor;
|
|
139
|
-
function getTask(ids,
|
|
140
|
-
return ids.map(id =>
|
|
141
|
+
function getTask(ids, index) {
|
|
142
|
+
return ids.map(id => index.getById(id)).filter(element => element && (0, model_1.isTaskNode)(element));
|
|
141
143
|
}
|
|
142
144
|
//# sourceMappingURL=direct-task-editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct-task-editor.js","sourceRoot":"","sources":["../../src/direct-task-editing/direct-task-editor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"direct-task-editor.js","sourceRoot":"","sources":["../../src/direct-task-editing/direct-task-editor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAsB8B;AAC9B,yCAA+C;AAC/C,kEAA8D;AAC9D,oCAAgD;AAoBhD,IAAiB,sBAAsB,CActC;AAdD,WAAiB,sBAAsB;IACtB,2BAAI,GAAG,eAAe,CAAC;IAEpC,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,kBAAS,CAAC,OAAO,CAAC,MAAM,EAAE,uBAAA,IAAI,CAAC,IAAI,IAAA,sBAAa,EAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,IAAA,sBAAa,EAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACrH,CAAC;IAFe,yBAAE,KAEjB,CAAA;IAED,SAAgB,MAAM,CAAC,OAA+C;QAClE,uBACI,IAAI,EAAE,uBAAA,IAAI,EACV,WAAW,EAAE,IAAI,IACd,OAAO,EACZ;IACN,CAAC;IANe,6BAAM,SAMrB,CAAA;A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AoB;oDAAC;AAGjD;IADC,IAAA,kBAAM,EAAC,6BAAoB,CAAC;8BACG,6BAAoB;wDAAC;AAGrD;IADC,IAAA,kBAAM,EAAC,cAAK,CAAC,aAAa,CAAC;;iDACW;AAGvC;IADC,IAAA,kBAAM,EAAC,cAAK,CAAC,SAAS,CAAC;8BACH,sBAAS;6CAAC;AAG/B;IADC,IAAA,kBAAM,EAAC,cAAK,CAAC,OAAO,CAAC;;0CACa;AAtB1B,UAAU;IADtB,IAAA,sBAAU,GAAE;GACA,UAAU,CA+GtB;AA/GY,gCAAU;AAiHvB,SAAS,OAAO,CAAC,GAAa,EAAE,KAAqB;IACjD,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,IAAI,IAAA,kBAAU,EAAC,OAAO,CAAC,CAAe,CAAC;AAC5G,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
7
7
|
o[k2] = m[k];
|
|
8
8
|
}));
|
|
9
9
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.createWorkflowDiagramContainer = void 0;
|
package/lib/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import { DiamondNode, EditableLabel, LayoutContainer, Nameable, RectangularNode, SChildElement, SEdge, SModelElement, SShapeElement, WithEditableLabel } from '@eclipse-glsp/client';
|
|
17
17
|
export declare class TaskNode extends RectangularNode implements Nameable, WithEditableLabel {
|
|
18
18
|
static readonly DEFAULT_FEATURES: symbol[];
|
|
19
|
-
name: string;
|
|
20
19
|
duration?: number;
|
|
21
20
|
taskType?: string;
|
|
22
21
|
reference?: string;
|
|
23
22
|
get editableLabel(): (SChildElement & EditableLabel) | undefined;
|
|
23
|
+
get name(): string;
|
|
24
24
|
}
|
|
25
25
|
export declare function isTaskNode(element: SModelElement): element is TaskNode;
|
|
26
26
|
export declare class WeightedEdge extends SEdge {
|
package/lib/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAIH,WAAW,EACX,aAAa,EAKb,eAAe,EAGf,QAAQ,EAGR,eAAe,EACf,aAAa,EACb,KAAK,EAEL,aAAa,EACb,aAAa,EACb,iBAAiB,EAEpB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,QAAS,SAAQ,eAAgB,YAAW,QAAQ,EAAE,iBAAiB;IAChF,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAIH,WAAW,EACX,aAAa,EAKb,eAAe,EAGf,QAAQ,EAGR,eAAe,EACf,aAAa,EACb,KAAK,EAEL,aAAa,EACb,aAAa,EACb,iBAAiB,EAEpB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,QAAS,SAAQ,eAAgB,YAAW,QAAQ,EAAE,iBAAiB;IAChF,gBAAyB,gBAAgB,WAYvC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ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