@eclipse-glsp-examples/workflow-server 0.9.0-next.397cddd.4 → 0.9.0-next.95961ba.7

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.
@@ -13,10 +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 { GlspLayoutConfigurator, SModelIndex } from '@eclipse-glsp/layout-elk';
16
+ import { AbstractLayoutConfigurator, LayoutOptions } from '@eclipse-glsp/layout-elk';
17
17
  import { GGraph } from '@eclipse-glsp/server-node';
18
- import { LayoutOptions } from 'elkjs';
19
- export declare class WorkflowLayoutConfigurator extends GlspLayoutConfigurator {
20
- protected graphOptions(sgraph: GGraph, index: SModelIndex): LayoutOptions | undefined;
18
+ export declare class WorkflowLayoutConfigurator extends AbstractLayoutConfigurator {
19
+ protected graphOptions(graph: GGraph): LayoutOptions | undefined;
21
20
  }
22
21
  //# sourceMappingURL=workflow-layout-configurator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-layout-configurator.d.ts","sourceRoot":"","sources":["../../src/layout/workflow-layout-configurator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtC,qBACa,0BAA2B,SAAQ,sBAAsB;IAClE,SAAS,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,aAAa,GAAG,SAAS;CAKxF"}
1
+ {"version":3,"file":"workflow-layout-configurator.d.ts","sourceRoot":"","sources":["../../src/layout/workflow-layout-configurator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAGnD,qBACa,0BAA2B,SAAQ,0BAA0B;IACtE,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;CAKnE"}
@@ -24,8 +24,8 @@ exports.WorkflowLayoutConfigurator = void 0;
24
24
  ********************************************************************************/
25
25
  const layout_elk_1 = require("@eclipse-glsp/layout-elk");
26
26
  const inversify_1 = require("inversify");
27
- let WorkflowLayoutConfigurator = class WorkflowLayoutConfigurator extends layout_elk_1.GlspLayoutConfigurator {
28
- graphOptions(sgraph, index) {
27
+ let WorkflowLayoutConfigurator = class WorkflowLayoutConfigurator extends layout_elk_1.AbstractLayoutConfigurator {
28
+ graphOptions(graph) {
29
29
  return {
30
30
  'elk.algorithm': 'layered'
31
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-layout-configurator.js","sourceRoot":"","sources":["../../src/layout/workflow-layout-configurator.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAA+E;AAG/E,yCAAuC;AAGvC,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,mCAAsB;IACxD,YAAY,CAAC,MAAc,EAAE,KAAkB;QACrD,OAAO;YACH,eAAe,EAAE,SAAS;SAC7B,CAAC;IACN,CAAC;CACJ,CAAA;AANY,0BAA0B;IADtC,sBAAU,EAAE;GACA,0BAA0B,CAMtC;AANY,gEAA0B"}
1
+ {"version":3,"file":"workflow-layout-configurator.js","sourceRoot":"","sources":["../../src/layout/workflow-layout-configurator.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAAqF;AAErF,yCAAuC;AAGvC,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,uCAA0B;IAC5D,YAAY,CAAC,KAAa;QAChC,OAAO;YACH,eAAe,EAAE,SAAS;SAC7B,CAAC;IACN,CAAC;CACJ,CAAA;AANY,0BAA0B;IADtC,sBAAU,EAAE;GACA,0BAA0B,CAMtC;AANY,gEAA0B"}
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,iBAAiB,EAMjB,mBAAmB,EAEnB,oBAAoB,EAIpB,wBAAwB,EAExB,2BAA2B,EAE3B,YAAY,EAEf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAc,UAAU,EAAE,MAAM,WAAW,CAAC;AAuBnD,qBACa,oBAAqB,SAAQ,YAAY;IAClD,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI;CAM5H;AAED,qBACa,qBAAsB,SAAQ,mBAAmB;IAC1D,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI;IAanI,SAAS,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,GAAG,IAAI;IAatG,SAAS,CAAC,kCAAkC,CAAC,OAAO,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,IAAI;CAM3G"}
1
+ {"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,iBAAiB,EAMjB,mBAAmB,EACnB,oBAAoB,EAIpB,wBAAwB,EAExB,2BAA2B,EAE3B,YAAY,EAEf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAc,UAAU,EAAE,MAAM,WAAW,CAAC;AAsBnD,qBACa,oBAAqB,SAAQ,YAAY;IAClD,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI;CAM5H;AAED,qBACa,qBAAsB,SAAQ,mBAAmB;IAC1D,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI;IAYnI,SAAS,CAAC,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,GAAG,IAAI;IAatG,SAAS,CAAC,kCAAkC,CAAC,OAAO,EAAE,iBAAiB,CAAC,wBAAwB,CAAC,GAAG,IAAI;CAM3G"}
@@ -43,7 +43,6 @@ const workflow_command_palette_action_provider_1 = require("./provider/workflow-
43
43
  const workflow_context_menu_item_provider_1 = require("./provider/workflow-context-menu-item-provider");
44
44
  const workflow_diagram_configuration_1 = require("./workflow-diagram-configuration");
45
45
  const workflow_glsp_server_1 = require("./workflow-glsp-server");
46
- const workflow_model_index_1 = require("./workflow-model-index");
47
46
  const workflow_popup_factory_1 = require("./workflow-popup-factory");
48
47
  let WorkflowServerModule = class WorkflowServerModule extends server_node_1.ServerModule {
49
48
  configure(bind, unbind, isBound, rebind) {
@@ -71,7 +70,6 @@ let WorkflowDiagramModule = class WorkflowDiagramModule extends server_node_1.GM
71
70
  bind(server_node_1.PopupModelFactory).to(workflow_popup_factory_1.WorkflowPopupFactory).inSingletonScope();
72
71
  bind(server_node_1.ModelValidator).to(workflow_model_validator_1.WorkflowModelValidator).inSingletonScope();
73
72
  bind(server_node_1.ToolPaletteItemProvider).to(server_node_1.DefaultToolPaletteItemProvider).inSingletonScope();
74
- rebind(server_node_1.GModelIndex).to(workflow_model_index_1.WorkflowModelIndex).inSingletonScope();
75
73
  }
76
74
  configureOperationHandlers(binding) {
77
75
  super.configureOperationHandlers(binding);
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAmBmC;AACnC,yCAAmD;AACnD,2FAAqF;AACrF,+EAA0E;AAC1E,yFAAmF;AACnF,uEAAkE;AAClE,iFAA2E;AAC3E,iFAA2E;AAC3E,qFAA+E;AAC/E,mFAA6E;AAC7E,yFAAmF;AACnF,6FAAuF;AACvF,gFAA2E;AAC3E,qGAA+F;AAC/F,0GAAmG;AACnG,4HAAqH;AACrH,kHAA2G;AAC3G,kHAA2G;AAC3G,wGAAiG;AACjG,qFAAgF;AAChF,iEAA4D;AAC5D,iEAA4D;AAC5D,qEAAgE;AAGhE,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,0BAAY;IAClD,SAAS,CAAC,IAAqB,EAAE,MAAyB,EAAE,OAA2B,EAAE,MAAyB;QAC9G,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,IAAI,CAAC,yCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;QACrD,MAAM,CAAC,wBAAU,CAAC,CAAC,SAAS,CAAC,yCAAkB,CAAC,CAAC;QACjD,MAAM,CAAC,+BAAiB,CAAC,CAAC,SAAS,CAAC,yCAAkB,CAAC,CAAC;IAC5D,CAAC;CACJ,CAAA;AAPY,oBAAoB;IADhC,sBAAU,EAA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clipse-glsp-examples/workflow-server",
3
- "version": "0.9.0-next.397cddd.4+397cddd",
3
+ "version": "0.9.0-next.95961ba.7+95961ba",
4
4
  "description": "GLSP node server for the workflow example",
5
5
  "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
6
6
  "keywords": [
@@ -37,8 +37,8 @@
37
37
  "src"
38
38
  ],
39
39
  "dependencies": {
40
- "@eclipse-glsp/layout-elk": "0.9.0-next.397cddd.4+397cddd",
41
- "@eclipse-glsp/server-node": "0.9.0-next.397cddd.4+397cddd"
40
+ "@eclipse-glsp/layout-elk": "0.9.0-next.95961ba.7+95961ba",
41
+ "@eclipse-glsp/server-node": "0.9.0-next.95961ba.7+95961ba"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "^3.9.2"
@@ -57,5 +57,5 @@
57
57
  },
58
58
  "main": "lib/index",
59
59
  "types": "lib/index",
60
- "gitHead": "397cddd532e9596bbe3717d931ae5ca826d949dd"
60
+ "gitHead": "95961ba417aa103e0a7c59273daa6462ae538dde"
61
61
  }
@@ -13,14 +13,13 @@
13
13
  *
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
- import { GlspLayoutConfigurator, SModelIndex } from '@eclipse-glsp/layout-elk';
16
+ import { AbstractLayoutConfigurator, LayoutOptions } from '@eclipse-glsp/layout-elk';
17
17
  import { GGraph } from '@eclipse-glsp/server-node';
18
- import { LayoutOptions } from 'elkjs';
19
18
  import { injectable } from 'inversify';
20
19
 
21
20
  @injectable()
22
- export class WorkflowLayoutConfigurator extends GlspLayoutConfigurator {
23
- protected graphOptions(sgraph: GGraph, index: SModelIndex): LayoutOptions | undefined {
21
+ export class WorkflowLayoutConfigurator extends AbstractLayoutConfigurator {
22
+ protected graphOptions(graph: GGraph): LayoutOptions | undefined {
24
23
  return {
25
24
  'elk.algorithm': 'layered'
26
25
  };
@@ -21,7 +21,6 @@ import {
21
21
  DiagramConfiguration,
22
22
  GLSPServer,
23
23
  GModelDiagramModule,
24
- GModelIndex,
25
24
  InstanceMultiBinding,
26
25
  JsonRpcGLSPServer,
27
26
  LabelEditValidator,
@@ -53,7 +52,6 @@ import { WorkflowCommandPaletteActionProvider } from './provider/workflow-comman
53
52
  import { WorkflowContextMenuItemProvider } from './provider/workflow-context-menu-item-provider';
54
53
  import { WorkflowDiagramConfiguration } from './workflow-diagram-configuration';
55
54
  import { WorkflowGLSPServer } from './workflow-glsp-server';
56
- import { WorkflowModelIndex } from './workflow-model-index';
57
55
  import { WorkflowPopupFactory } from './workflow-popup-factory';
58
56
 
59
57
  @injectable()
@@ -82,7 +80,6 @@ export class WorkflowDiagramModule extends GModelDiagramModule {
82
80
  bind(PopupModelFactory).to(WorkflowPopupFactory).inSingletonScope();
83
81
  bind(ModelValidator).to(WorkflowModelValidator).inSingletonScope();
84
82
  bind(ToolPaletteItemProvider).to(DefaultToolPaletteItemProvider).inSingletonScope();
85
- rebind(GModelIndex).to(WorkflowModelIndex).inSingletonScope();
86
83
  }
87
84
 
88
85
  protected configureOperationHandlers(binding: InstanceMultiBinding<OperationHandlerConstructor>): void {
@@ -1,20 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2022 STMicroelectronics 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 { GEdge, GModelIndex } from '@eclipse-glsp/server-node';
17
- export declare class WorkflowModelIndex extends GModelIndex {
18
- getAllEdges(): GEdge[];
19
- }
20
- //# sourceMappingURL=workflow-model-index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow-model-index.d.ts","sourceRoot":"","sources":["../src/workflow-model-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAI/D,qBACa,kBAAmB,SAAQ,WAAW;IAC/C,WAAW,IAAI,KAAK,EAAE;CASzB"}
@@ -1,43 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.WorkflowModelIndex = void 0;
10
- /********************************************************************************
11
- * Copyright (c) 2022 STMicroelectronics and others.
12
- *
13
- * This program and the accompanying materials are made available under the
14
- * terms of the Eclipse Public License v. 2.0 which is available at
15
- * http://www.eclipse.org/legal/epl-2.0.
16
- *
17
- * This Source Code may also be made available under the following Secondary
18
- * Licenses when the conditions for such availability set forth in the Eclipse
19
- * Public License v. 2.0 are satisfied: GNU General Public License, version 2
20
- * with the GNU Classpath Exception which is available at
21
- * https://www.gnu.org/software/classpath/license.html.
22
- *
23
- * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
24
- ********************************************************************************/
25
- const server_node_1 = require("@eclipse-glsp/server-node");
26
- const inversify_1 = require("inversify");
27
- const model_types_1 = require("./util/model-types");
28
- let WorkflowModelIndex = class WorkflowModelIndex extends server_node_1.GModelIndex {
29
- getAllEdges() {
30
- const edges = super.getAllEdges();
31
- this.getElements(model_types_1.ModelTypes.WEIGHTED_EDGE).forEach(weighted => {
32
- if (weighted instanceof server_node_1.GEdge) {
33
- edges.push(weighted);
34
- }
35
- });
36
- return edges;
37
- }
38
- };
39
- WorkflowModelIndex = __decorate([
40
- inversify_1.injectable()
41
- ], WorkflowModelIndex);
42
- exports.WorkflowModelIndex = WorkflowModelIndex;
43
- //# sourceMappingURL=workflow-model-index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow-model-index.js","sourceRoot":"","sources":["../src/workflow-model-index.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAA+D;AAC/D,yCAAuC;AACvC,oDAAgD;AAGhD,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,yBAAW;IAC/C,WAAW;QACP,MAAM,KAAK,GAAY,KAAK,CAAC,WAAW,EAAE,CAAC;QAC3C,IAAI,CAAC,WAAW,CAAC,wBAAU,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC1D,IAAI,QAAQ,YAAY,mBAAK,EAAE;gBAC3B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACxB;QACL,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AAVY,kBAAkB;IAD9B,sBAAU,EAAE;GACA,kBAAkB,CAU9B;AAVY,gDAAkB"}
@@ -1,31 +0,0 @@
1
- /********************************************************************************
2
- * Copyright (c) 2022 STMicroelectronics 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 { GEdge, GModelIndex } from '@eclipse-glsp/server-node';
17
- import { injectable } from 'inversify';
18
- import { ModelTypes } from './util/model-types';
19
-
20
- @injectable()
21
- export class WorkflowModelIndex extends GModelIndex {
22
- getAllEdges(): GEdge[] {
23
- const edges: GEdge[] = super.getAllEdges();
24
- this.getElements(ModelTypes.WEIGHTED_EDGE).forEach(weighted => {
25
- if (weighted instanceof GEdge) {
26
- edges.push(weighted);
27
- }
28
- });
29
- return edges;
30
- }
31
- }