@eclipse-glsp-examples/workflow-glsp 0.9.0-rc-01 → 0.10.0-next.bb1c2fd.157
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/LICENSE +642 -277
- package/README.md +6 -4
- package/css/diagram.css +58 -38
- package/lib/di.config.d.ts +2 -17
- package/lib/di.config.d.ts.map +1 -1
- package/lib/di.config.js +14 -13
- package/lib/di.config.js.map +1 -1
- package/lib/direct-task-editing/di.config.js +4 -4
- package/lib/direct-task-editing/di.config.js.map +1 -1
- package/lib/direct-task-editing/direct-task-editor.d.ts +1 -1
- package/lib/direct-task-editing/direct-task-editor.d.ts.map +1 -1
- package/lib/direct-task-editing/direct-task-editor.js +86 -186
- package/lib/direct-task-editing/direct-task-editor.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/model.d.ts +6 -1
- package/lib/model.d.ts.map +1 -1
- package/lib/model.js +72 -68
- package/lib/model.js.map +1 -1
- package/lib/workflow-views.d.ts +4 -4
- package/lib/workflow-views.d.ts.map +1 -1
- package/lib/workflow-views.js +29 -50
- package/lib/workflow-views.js.map +1 -1
- package/package.json +7 -16
- package/scripts/download.ts +19 -16
- package/src/di.config.ts +14 -53
- package/src/direct-task-editing/direct-task-editor.ts +11 -9
- package/src/index.ts +1 -2
- package/src/model.ts +39 -4
- package/src/workflow-views.tsx +23 -14
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -21,66 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
21
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
22
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
23
10
|
};
|
|
24
|
-
var
|
|
25
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
34
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
35
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
36
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
37
|
-
function step(op) {
|
|
38
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
39
|
-
while (_) try {
|
|
40
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
41
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
42
|
-
switch (op[0]) {
|
|
43
|
-
case 0: case 1: t = op; break;
|
|
44
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
45
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
46
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
47
|
-
default:
|
|
48
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
49
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
50
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
51
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
52
|
-
if (t[2]) _.ops.pop();
|
|
53
|
-
_.trys.pop(); continue;
|
|
54
|
-
}
|
|
55
|
-
op = body.call(thisArg, _);
|
|
56
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
57
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
61
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
62
|
-
if (!m) return o;
|
|
63
|
-
var i = m.call(o), r, ar = [], e;
|
|
64
|
-
try {
|
|
65
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
66
|
-
}
|
|
67
|
-
catch (error) { e = { error: error }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
71
|
-
}
|
|
72
|
-
finally { if (e) throw e.error; }
|
|
73
|
-
}
|
|
74
|
-
return ar;
|
|
75
|
-
};
|
|
76
|
-
var __spread = (this && this.__spread) || function () {
|
|
77
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
78
|
-
return ar;
|
|
79
|
-
};
|
|
11
|
+
var TaskEditor_1;
|
|
80
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
13
|
exports.TaskEditor = exports.ApplyTaskEditOperation = void 0;
|
|
82
14
|
/********************************************************************************
|
|
83
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
15
|
+
* Copyright (c) 2020-2021 EclipseSource and others.
|
|
84
16
|
*
|
|
85
17
|
* This program and the accompanying materials are made available under the
|
|
86
18
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -94,149 +26,117 @@ exports.TaskEditor = exports.ApplyTaskEditOperation = void 0;
|
|
|
94
26
|
*
|
|
95
27
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
96
28
|
********************************************************************************/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
29
|
+
const client_1 = require("@eclipse-glsp/client");
|
|
30
|
+
const inversify_1 = require("inversify");
|
|
31
|
+
const lib_1 = require("sprotty/lib");
|
|
32
|
+
const dom_helper_1 = require("sprotty/lib/base/views/dom-helper");
|
|
33
|
+
const model_1 = require("../model");
|
|
34
|
+
class ApplyTaskEditOperation {
|
|
35
|
+
constructor(taskId, expression) {
|
|
104
36
|
this.taskId = taskId;
|
|
105
37
|
this.expression = expression;
|
|
106
38
|
this.kind = ApplyTaskEditOperation.KIND;
|
|
107
39
|
}
|
|
108
|
-
|
|
109
|
-
return ApplyTaskEditOperation;
|
|
110
|
-
}());
|
|
40
|
+
}
|
|
111
41
|
exports.ApplyTaskEditOperation = ApplyTaskEditOperation;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
42
|
+
ApplyTaskEditOperation.KIND = 'applyTaskEdit';
|
|
43
|
+
let TaskEditor = TaskEditor_1 = class TaskEditor extends client_1.AbstractUIExtension {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
this.autoSuggestionSettings = {
|
|
117
47
|
noSuggestionsMessage: 'No suggestions available',
|
|
118
48
|
suggestionsClass: 'command-palette-suggestions',
|
|
119
49
|
debounceWaitMs: 50,
|
|
120
50
|
showOnFocus: true
|
|
121
51
|
};
|
|
122
|
-
return _this;
|
|
123
52
|
}
|
|
124
|
-
|
|
125
|
-
TaskEditor.prototype.id = function () {
|
|
53
|
+
id() {
|
|
126
54
|
return TaskEditor_1.ID;
|
|
127
|
-
}
|
|
128
|
-
|
|
55
|
+
}
|
|
56
|
+
containerClass() {
|
|
129
57
|
return 'command-palette';
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.autoSuggestion
|
|
134
|
-
this.autoSuggestion.
|
|
135
|
-
|
|
58
|
+
}
|
|
59
|
+
initializeContents(containerElement) {
|
|
60
|
+
this.autoSuggestion = new client_1.AutoCompleteWidget(this.autoSuggestionSettings, { provideSuggestions: input => this.retrieveSuggestions(input) }, { executeFromSuggestion: input => this.executeFromSuggestion(input) }, () => this.hide(), this.logger);
|
|
61
|
+
this.autoSuggestion.configureValidation({ validate: input => this.validateInput(input) }, new client_1.ValidationDecorator(containerElement));
|
|
62
|
+
this.autoSuggestion.configureTextSubmitHandler({
|
|
63
|
+
executeFromTextOnlyInput: (input) => this.executeFromTextOnlyInput(input)
|
|
64
|
+
});
|
|
136
65
|
this.autoSuggestion.initialize(containerElement);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
141
|
-
contextElementIds[_i - 1] = arguments[_i];
|
|
142
|
-
}
|
|
143
|
-
_super.prototype.show.apply(this, __spread([root], contextElementIds));
|
|
66
|
+
}
|
|
67
|
+
show(root, ...contextElementIds) {
|
|
68
|
+
super.show(root, ...contextElementIds);
|
|
144
69
|
this.autoSuggestion.open(root);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
var contextElementIds = [];
|
|
148
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
149
|
-
contextElementIds[_i - 2] = arguments[_i];
|
|
150
|
-
}
|
|
70
|
+
}
|
|
71
|
+
onBeforeShow(containerElement, root, ...contextElementIds) {
|
|
151
72
|
this.task = getTask(contextElementIds, root)[0];
|
|
152
73
|
this.autoSuggestion.inputField.value = '';
|
|
153
74
|
this.setPosition(containerElement);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
75
|
+
}
|
|
76
|
+
setPosition(containerElement) {
|
|
77
|
+
let x = 0;
|
|
78
|
+
let y = 0;
|
|
158
79
|
if (this.task) {
|
|
159
|
-
|
|
80
|
+
const bounds = client_1.getAbsoluteClientBounds(this.task, this.domHelper, this.viewerOptions);
|
|
160
81
|
x = bounds.x + 5;
|
|
161
82
|
y = bounds.y + 5;
|
|
162
83
|
}
|
|
163
|
-
containerElement.style.left = x
|
|
164
|
-
containerElement.style.top = y
|
|
84
|
+
containerElement.style.left = `${x}px`;
|
|
85
|
+
containerElement.style.top = `${y}px`;
|
|
165
86
|
containerElement.style.width = '200px';
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
TaskEditor.prototype.validateInput = function (input) {
|
|
185
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
186
|
-
var response;
|
|
187
|
-
return __generator(this, function (_a) {
|
|
188
|
-
switch (_a.label) {
|
|
189
|
-
case 0: return [4 /*yield*/, this.actionDispatcher.request(new client_1.RequestEditValidationAction(TaskEditor_1.ID, this.task.id, input))];
|
|
190
|
-
case 1:
|
|
191
|
-
response = _a.sent();
|
|
192
|
-
if (client_1.isSetEditValidationResultAction(response)) {
|
|
193
|
-
return [2 /*return*/, response.status];
|
|
194
|
-
}
|
|
195
|
-
return [2 /*return*/, Promise.reject()];
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
TaskEditor.prototype.executeFromSuggestion = function (input) {
|
|
87
|
+
}
|
|
88
|
+
async retrieveSuggestions(input) {
|
|
89
|
+
const response = await this.actionDispatcher.request(new client_1.RequestContextActions(TaskEditor_1.ID, this.editorContextService.get({ ['text']: input })));
|
|
90
|
+
if (client_1.isSetContextActionsAction(response)) {
|
|
91
|
+
return response.actions;
|
|
92
|
+
}
|
|
93
|
+
return Promise.reject();
|
|
94
|
+
}
|
|
95
|
+
async validateInput(input) {
|
|
96
|
+
const response = await this.actionDispatcher.request(new client_1.RequestEditValidationAction(TaskEditor_1.ID, this.task.id, input));
|
|
97
|
+
if (client_1.isSetEditValidationResultAction(response)) {
|
|
98
|
+
return response.status;
|
|
99
|
+
}
|
|
100
|
+
return Promise.reject();
|
|
101
|
+
}
|
|
102
|
+
executeFromSuggestion(input) {
|
|
201
103
|
this.actionDispatcher.dispatchAll(client_1.toActionArray(input));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
104
|
+
}
|
|
105
|
+
executeFromTextOnlyInput(input) {
|
|
106
|
+
const action = new ApplyTaskEditOperation(this.task.id, input);
|
|
205
107
|
this.actionDispatcher.dispatch(action);
|
|
206
|
-
}
|
|
207
|
-
|
|
108
|
+
}
|
|
109
|
+
hide() {
|
|
208
110
|
this.autoSuggestion.dispose();
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
return TaskEditor;
|
|
237
|
-
}(client_1.AbstractUIExtension));
|
|
111
|
+
super.hide();
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
TaskEditor.ID = 'task-editor';
|
|
115
|
+
__decorate([
|
|
116
|
+
inversify_1.inject(lib_1.TYPES.IActionDispatcher),
|
|
117
|
+
__metadata("design:type", client_1.GLSPActionDispatcher)
|
|
118
|
+
], TaskEditor.prototype, "actionDispatcher", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
inversify_1.inject(client_1.EditorContextService),
|
|
121
|
+
__metadata("design:type", client_1.EditorContextService)
|
|
122
|
+
], TaskEditor.prototype, "editorContextService", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
inversify_1.inject(lib_1.TYPES.ViewerOptions),
|
|
125
|
+
__metadata("design:type", Object)
|
|
126
|
+
], TaskEditor.prototype, "viewerOptions", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
inversify_1.inject(lib_1.TYPES.DOMHelper),
|
|
129
|
+
__metadata("design:type", dom_helper_1.DOMHelper)
|
|
130
|
+
], TaskEditor.prototype, "domHelper", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
inversify_1.inject(lib_1.TYPES.ILogger),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], TaskEditor.prototype, "logger", void 0);
|
|
135
|
+
TaskEditor = TaskEditor_1 = __decorate([
|
|
136
|
+
inversify_1.injectable()
|
|
137
|
+
], TaskEditor);
|
|
238
138
|
exports.TaskEditor = TaskEditor;
|
|
239
139
|
function getTask(ids, element) {
|
|
240
|
-
return ids.map(
|
|
140
|
+
return ids.map(id => element.index.getById(id)).filter(model_1.isTaskNode);
|
|
241
141
|
}
|
|
242
142
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"direct-task-editor.js","sourceRoot":"","sources":["../../src/direct-task-editing/direct-task-editor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAmB8B;AAC9B,yCAA+C;AAC/C,qCAAoC;AACpC,kEAA8D;AAE9D,oCAAgD;AAEhD,MAAa,sBAAsB;IAG/B,YAAqB,MAAc,EAAW,UAAkB;QAA3C,WAAM,GAAN,MAAM,CAAQ;QAAW,eAAU,GAAV,UAAU,CAAQ;QADvD,SAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC;IACuB,CAAC;;AAHxE,wDAIC;AAHmB,2BAAI,GAAG,eAAe,CAAC;AAM3C,IAAa,UAAU,kBAAvB,MAAa,UAAW,SAAQ,4BAAmB;IAAnD;;QAEa,2BAAsB,GAAG;YAC9B,oBAAoB,EAAE,0BAA0B;YAChD,gBAAgB,EAAE,6BAA6B;YAC/C,cAAc,EAAE,EAAE;YAClB,WAAW,EAAE,IAAI;SACpB,CAAC;IAsGN,CAAC;IAlFG,EAAE;QACE,OAAO,YAAU,CAAC,EAAE,CAAC;IACzB,CAAC;IACD,cAAc;QACV,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAES,kBAAkB,CAAC,gBAA6B;QACtD,IAAI,CAAC,cAAc,GAAG,IAAI,2BAAkB,CACxC,IAAI,CAAC,sBAAsB,EAC3B,EAAE,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAChE,EAAE,qBAAqB,EAAE,KAAK,CA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AAC;IAES,wBAAwB,CAAC,KAAa;QAC5C,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC/D,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI;QACA,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;QAC9B,KAAK,CAAC,IAAI,EAAE,CAAC;IACjB,CAAC;CACJ,CAAA;AA5GmB,aAAE,GAAG,aAAa,CAAC;AASnC;IADC,kBAAM,CAAC,WAAK,CAAC,iBAAiB,CAAC;8BACJ,6BAAoB;oDAAC;AAGjD;IADC,kBAAM,CAAC,6BAAoB,CAAC;8BACG,6BAAoB;wDAAC;AAGrD;IADC,kBAAM,CAAC,WAAK,CAAC,aAAa,CAAC;;iDACW;AAGvC;IADC,kBAAM,CAAC,WAAK,CAAC,SAAS,CAAC;8BACH,sBAAS;6CAAC;AAG/B;IADC,kBAAM,CAAC,WAAK,CAAC,OAAO,CAAC;;0CACI;AAtBjB,UAAU;IADtB,sBAAU,EAAE;GACA,UAAU,CA6GtB;AA7GY,gCAAU;AA+GvB,SAAS,OAAO,CAAC,GAAa,EAAE,OAAsB;IAClD,OAAO,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAU,CAAC,CAAC;AACvE,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 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
|
package/lib/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.createWorkflowDiagramContainer = void 0;
|
|
14
14
|
/********************************************************************************
|
|
15
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
15
|
+
* Copyright (c) 2019-2021 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
|
|
@@ -26,7 +26,7 @@ exports.createWorkflowDiagramContainer = void 0;
|
|
|
26
26
|
*
|
|
27
27
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
28
28
|
********************************************************************************/
|
|
29
|
-
|
|
29
|
+
const di_config_1 = require("./di.config");
|
|
30
30
|
exports.createWorkflowDiagramContainer = di_config_1.default;
|
|
31
31
|
__exportStar(require("./model"), exports);
|
|
32
32
|
__exportStar(require("./workflow-views"), 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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2CAAyD;AAKhD,yCALF,mBAA8B,CAKE;AAHvC,0CAAwB;AACxB,mDAAiC;AACjC,2EAAyD"}
|
package/lib/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2020-2021 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
|
|
@@ -56,4 +56,9 @@ export declare class Icon extends SShapeElement implements LayoutContainer {
|
|
|
56
56
|
height: number;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
+
export declare class CategoryNode extends RectangularNode implements Nameable, WithEditableLabel {
|
|
60
|
+
static readonly DEFAULT_FEATURES: symbol[];
|
|
61
|
+
name: string;
|
|
62
|
+
get editableLabel(): (SChildElement & EditableLabel) | undefined;
|
|
63
|
+
}
|
|
59
64
|
//# sourceMappingURL=model.d.ts.map
|
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,MAAM,CAAC,QAAQ,CAAC,gBAAgB,
|
|
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,MAAM,CAAC,QAAQ,CAAC,gBAAgB,WAY9B;IACF,IAAI,SAAM;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,IAAI,aAAa,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,GAAG,SAAS,CAS/D;CACJ;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,IAAI,QAAQ,CAEtE;AAED,qBAAa,YAAa,SAAQ,KAAK;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,YAAa,SAAQ,WAAW;IACzC,QAAQ,EAAE,MAAM,CAA+B;IAC/C,IAAI;;;MAGF;IACF,WAAW,SAAK;CACnB;AAED,yBAAiB,YAAY,CAAC;IAC1B,UAAiB,IAAI,CAAC;QACX,MAAM,OAAO,eAAe,CAAC;QAC7B,MAAM,KAAK,cAAc,CAAC;QAC1B,MAAM,QAAQ,iBAAiB,CAAC;QAChC,MAAM,KAAK,cAAc,CAAC;QAC1B,MAAM,IAAI,aAAa,CAAC;QACxB,MAAM,IAAI,aAAa,CAAC;QACxB,MAAM,SAAS,cAAc,CAAC;KACxC;CACJ;AAED,qBAAa,IAAK,SAAQ,aAAc,YAAW,eAAe;IAC9D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,WAAgF;IAEhH,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC7D,IAAI;;;MAGF;CACL;AAED,qBAAa,YAAa,SAAQ,eAAgB,YAAW,QAAQ,EAAE,iBAAiB;IACpF,MAAM,CAAC,QAAQ,CAAC,gBAAgB,WAW9B;IAEF,IAAI,SAAM;IAEV,IAAI,aAAa,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,GAAG,SAAS,CAM/D;CACJ"}
|
package/lib/model.js
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
extendStatics(d, b);
|
|
11
|
-
function __() { this.constructor = d; }
|
|
12
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.Icon = exports.ActivityNode = exports.WeightedEdge = exports.isTaskNode = exports.TaskNode = void 0;
|
|
3
|
+
exports.CategoryNode = exports.Icon = exports.ActivityNode = exports.WeightedEdge = exports.isTaskNode = exports.TaskNode = void 0;
|
|
17
4
|
/********************************************************************************
|
|
18
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2020-2021 EclipseSource and others.
|
|
19
6
|
*
|
|
20
7
|
* This program and the accompanying materials are made available under the
|
|
21
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -29,63 +16,58 @@ exports.Icon = exports.ActivityNode = exports.WeightedEdge = exports.isTaskNode
|
|
|
29
16
|
*
|
|
30
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
18
|
********************************************************************************/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_this.name = '';
|
|
38
|
-
return _this;
|
|
19
|
+
const client_1 = require("@eclipse-glsp/client");
|
|
20
|
+
class TaskNode extends client_1.RectangularNode {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.name = '';
|
|
39
24
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return label;
|
|
47
|
-
}
|
|
25
|
+
get editableLabel() {
|
|
26
|
+
const headerComp = this.children.find(element => element.type === 'comp:header');
|
|
27
|
+
if (headerComp) {
|
|
28
|
+
const label = headerComp.children.find(element => element.type === 'label:heading');
|
|
29
|
+
if (label && client_1.isEditableLabel(label)) {
|
|
30
|
+
return label;
|
|
48
31
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
TaskNode.DEFAULT_FEATURES = [client_1.connectableFeature, client_1.deletableFeature, client_1.selectFeature, client_1.boundsFeature,
|
|
55
|
-
client_1.moveFeature, client_1.layoutContainerFeature, client_1.fadeFeature, client_1.hoverFeedbackFeature, client_1.popupFeature, client_1.nameFeature, client_1.withEditLabelFeature];
|
|
56
|
-
return TaskNode;
|
|
57
|
-
}(client_1.RectangularNode));
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
58
36
|
exports.TaskNode = TaskNode;
|
|
37
|
+
TaskNode.DEFAULT_FEATURES = [
|
|
38
|
+
client_1.connectableFeature,
|
|
39
|
+
client_1.deletableFeature,
|
|
40
|
+
client_1.selectFeature,
|
|
41
|
+
client_1.boundsFeature,
|
|
42
|
+
client_1.moveFeature,
|
|
43
|
+
client_1.layoutContainerFeature,
|
|
44
|
+
client_1.fadeFeature,
|
|
45
|
+
client_1.hoverFeedbackFeature,
|
|
46
|
+
client_1.popupFeature,
|
|
47
|
+
client_1.nameFeature,
|
|
48
|
+
client_1.withEditLabelFeature
|
|
49
|
+
];
|
|
59
50
|
function isTaskNode(element) {
|
|
60
51
|
return element instanceof TaskNode || false;
|
|
61
52
|
}
|
|
62
53
|
exports.isTaskNode = isTaskNode;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
function WeightedEdge() {
|
|
66
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
-
}
|
|
68
|
-
return WeightedEdge;
|
|
69
|
-
}(client_1.SEdge));
|
|
54
|
+
class WeightedEdge extends client_1.SEdge {
|
|
55
|
+
}
|
|
70
56
|
exports.WeightedEdge = WeightedEdge;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
_this.size = {
|
|
57
|
+
class ActivityNode extends client_1.DiamondNode {
|
|
58
|
+
constructor() {
|
|
59
|
+
super(...arguments);
|
|
60
|
+
this.nodeType = ActivityNode.Type.UNDEFINED;
|
|
61
|
+
this.size = {
|
|
77
62
|
width: 32,
|
|
78
63
|
height: 32
|
|
79
64
|
};
|
|
80
|
-
|
|
81
|
-
return _this;
|
|
65
|
+
this.strokeWidth = 1;
|
|
82
66
|
}
|
|
83
|
-
|
|
84
|
-
}(client_1.DiamondNode));
|
|
67
|
+
}
|
|
85
68
|
exports.ActivityNode = ActivityNode;
|
|
86
|
-
// eslint-disable-next-line no-redeclare
|
|
87
69
|
(function (ActivityNode) {
|
|
88
|
-
|
|
70
|
+
let Type;
|
|
89
71
|
(function (Type) {
|
|
90
72
|
Type.INITIAL = 'initalNode';
|
|
91
73
|
Type.FINAL = 'finalNode';
|
|
@@ -96,19 +78,41 @@ exports.ActivityNode = ActivityNode;
|
|
|
96
78
|
Type.UNDEFINED = 'undefined';
|
|
97
79
|
})(Type = ActivityNode.Type || (ActivityNode.Type = {}));
|
|
98
80
|
})(ActivityNode = exports.ActivityNode || (exports.ActivityNode = {}));
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
104
|
-
_this.size = {
|
|
81
|
+
class Icon extends client_1.SShapeElement {
|
|
82
|
+
constructor() {
|
|
83
|
+
super(...arguments);
|
|
84
|
+
this.size = {
|
|
105
85
|
width: 32,
|
|
106
86
|
height: 32
|
|
107
87
|
};
|
|
108
|
-
return _this;
|
|
109
88
|
}
|
|
110
|
-
|
|
111
|
-
return Icon;
|
|
112
|
-
}(client_1.SShapeElement));
|
|
89
|
+
}
|
|
113
90
|
exports.Icon = Icon;
|
|
91
|
+
Icon.DEFAULT_FEATURES = [client_1.boundsFeature, client_1.layoutContainerFeature, client_1.layoutableChildFeature, client_1.fadeFeature];
|
|
92
|
+
class CategoryNode extends client_1.RectangularNode {
|
|
93
|
+
constructor() {
|
|
94
|
+
super(...arguments);
|
|
95
|
+
this.name = '';
|
|
96
|
+
}
|
|
97
|
+
get editableLabel() {
|
|
98
|
+
const label = this.children.find(element => element.type === 'label:heading');
|
|
99
|
+
if (label && client_1.isEditableLabel(label)) {
|
|
100
|
+
return label;
|
|
101
|
+
}
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.CategoryNode = CategoryNode;
|
|
106
|
+
CategoryNode.DEFAULT_FEATURES = [
|
|
107
|
+
client_1.deletableFeature,
|
|
108
|
+
client_1.selectFeature,
|
|
109
|
+
client_1.boundsFeature,
|
|
110
|
+
client_1.moveFeature,
|
|
111
|
+
client_1.layoutContainerFeature,
|
|
112
|
+
client_1.fadeFeature,
|
|
113
|
+
client_1.hoverFeedbackFeature,
|
|
114
|
+
client_1.popupFeature,
|
|
115
|
+
client_1.nameFeature,
|
|
116
|
+
client_1.withEditLabelFeature
|
|
117
|
+
];
|
|
114
118
|
//# sourceMappingURL=model.js.map
|
package/lib/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAwB8B;AAE9B,MAAa,QAAS,SAAQ,wBAAe;IAA7C;;QAcI,SAAI,GAAG,EAAE,CAAC;IAed,CAAC;IAVG,IAAI,aAAa;QACb,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,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iBAAI,QAQpB;AACL,CAAC,EAVgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAU5B;AAED,MAAa,IAAK,SAAQ,sBAAa;IAAvC;;QAKI,SAAI,GAAG;YACH,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;SACb,CAAC;IACN,CAAC;;AATD,oBASC;AARmB,qBAAgB,GAAG,CAAC,sBAAa,EAAE,+BAAsB,EAAE,+BAAsB,EAAE,oBAAW,CAAC,CAAC;AAUpH,MAAa,YAAa,SAAQ,wBAAe;IAAjD;;QAcI,SAAI,GAAG,EAAE,CAAC;IASd,CAAC;IAPG,IAAI,aAAa;QACb,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,eAAe,CAAC,CAAC;QAC9E,IAAI,KAAK,IAAI,wBAAe,CAAC,KAAK,CAAC,EAAE;YACjC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;;AAtBL,oCAuBC;AAtBmB,6BAAgB,GAAG;IAC/B,yBAAgB;IAChB,sBAAa;IACb,sBAAa;IACb,oBAAW;IACX,+BAAsB;IACtB,oBAAW;IACX,6BAAoB;IACpB,qBAAY;IACZ,oBAAW;IACX,6BAAoB;CACvB,CAAC"}
|
package/lib/workflow-views.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 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,10 +13,10 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
import { VNode } from 'snabbdom
|
|
16
|
+
import { IView, Point, PolylineEdgeViewWithGapsOnIntersections, RenderingContext, SEdge } from '@eclipse-glsp/client';
|
|
17
|
+
import { VNode } from 'snabbdom';
|
|
18
18
|
import { Icon } from './model';
|
|
19
|
-
export declare class WorkflowEdgeView extends
|
|
19
|
+
export declare class WorkflowEdgeView extends PolylineEdgeViewWithGapsOnIntersections {
|
|
20
20
|
protected renderAdditionals(edge: SEdge, segments: Point[], context: RenderingContext): VNode[];
|
|
21
21
|
}
|
|
22
22
|
export declare class IconView implements IView {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-views.d.ts","sourceRoot":"","sources":["../src/workflow-views.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAEH,
|
|
1
|
+
{"version":3,"file":"workflow-views.d.ts","sourceRoot":"","sources":["../src/workflow-views.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAEH,KAAK,EACL,KAAK,EACL,uCAAuC,EACvC,gBAAgB,EAChB,KAAK,EAER,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,qBACa,gBAAiB,SAAQ,uCAAuC;IACzE,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK,EAAE;CAiBlG;AAED,qBACa,QAAS,YAAW,KAAK;IAClC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,KAAK;IAUvD,SAAS,IAAI,MAAM;CAGtB"}
|