@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.91 → 2.2.0-next.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp-examples/workflow-server-bundled",
3
- "version": "2.2.0-next.91+cfd67f9",
3
+ "version": "2.2.0-next.92+7823455",
4
4
  "description": "GLSP node server for the workflow example (bundled)",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "cfd67f91051bb3f0e156636cef57801cdc5a5999"
52
+ "gitHead": "782345583727f36fe83eed55419052f2f879d9ac"
53
53
  }
@@ -312,6 +312,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
312
312
  };
313
313
  Object.defineProperty(exports, "__esModule", ({ value: true }));
314
314
  exports.CreateDecisionNodeHandler = void 0;
315
+ /********************************************************************************
316
+ * Copyright (c) 2022-2023 STMicroelectronics and others.
317
+ *
318
+ * This program and the accompanying materials are made available under the
319
+ * terms of the Eclipse Public License v. 2.0 which is available at
320
+ * http://www.eclipse.org/legal/epl-2.0.
321
+ *
322
+ * This Source Code may also be made available under the following Secondary
323
+ * Licenses when the conditions for such availability set forth in the Eclipse
324
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
325
+ * with the GNU Classpath Exception which is available at
326
+ * https://www.gnu.org/software/classpath/license.html.
327
+ *
328
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
329
+ ********************************************************************************/
330
+ const server_1 = __webpack_require__(/*! @eclipse-glsp/server */ "../../packages/server/lib/node/index.js");
315
331
  const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/es/inversify.js");
316
332
  const model_types_1 = __webpack_require__(/*! ../util/model-types */ "./lib/common/util/model-types.js");
317
333
  const create_activity_node_handler_1 = __webpack_require__(/*! ./create-activity-node-handler */ "./lib/common/handler/create-activity-node-handler.js");
@@ -322,7 +338,7 @@ let CreateDecisionNodeHandler = class CreateDecisionNodeHandler extends create_a
322
338
  this.label = 'Decision Node';
323
339
  }
324
340
  builder(point) {
325
- return super.builder(point).addCssClass('decision');
341
+ return super.builder(point).addCssClass('decision').resizeLocations(server_1.GResizeLocation.CROSS);
326
342
  }
327
343
  };
328
344
  exports.CreateDecisionNodeHandler = CreateDecisionNodeHandler;
@@ -556,6 +572,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
556
572
  };
557
573
  Object.defineProperty(exports, "__esModule", ({ value: true }));
558
574
  exports.CreateMergeNodeHandler = void 0;
575
+ /********************************************************************************
576
+ * Copyright (c) 2022-2023 STMicroelectronics and others.
577
+ *
578
+ * This program and the accompanying materials are made available under the
579
+ * terms of the Eclipse Public License v. 2.0 which is available at
580
+ * http://www.eclipse.org/legal/epl-2.0.
581
+ *
582
+ * This Source Code may also be made available under the following Secondary
583
+ * Licenses when the conditions for such availability set forth in the Eclipse
584
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
585
+ * with the GNU Classpath Exception which is available at
586
+ * https://www.gnu.org/software/classpath/license.html.
587
+ *
588
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
589
+ ********************************************************************************/
590
+ const server_1 = __webpack_require__(/*! @eclipse-glsp/server */ "../../packages/server/lib/node/index.js");
559
591
  const inversify_1 = __webpack_require__(/*! inversify */ "../../node_modules/inversify/es/inversify.js");
560
592
  const model_types_1 = __webpack_require__(/*! ../util/model-types */ "./lib/common/util/model-types.js");
561
593
  const create_activity_node_handler_1 = __webpack_require__(/*! ./create-activity-node-handler */ "./lib/common/handler/create-activity-node-handler.js");
@@ -566,7 +598,7 @@ let CreateMergeNodeHandler = class CreateMergeNodeHandler extends create_activit
566
598
  this.label = 'Merge Node';
567
599
  }
568
600
  builder(point) {
569
- return super.builder(point).addCssClass('merge');
601
+ return super.builder(point).addCssClass('merge').resizeLocations(server_1.GResizeLocation.CROSS);
570
602
  }
571
603
  };
572
604
  exports.CreateMergeNodeHandler = CreateMergeNodeHandler;
@@ -45051,6 +45083,70 @@ class GPreRenderedElementBuilder extends gmodel_element_1.GModelElementBuilder {
45051
45083
  exports.GPreRenderedElementBuilder = GPreRenderedElementBuilder;
45052
45084
 
45053
45085
 
45086
+ /***/ }),
45087
+
45088
+ /***/ "../../packages/graph/lib/gresizable.js":
45089
+ /*!**********************************************!*\
45090
+ !*** ../../packages/graph/lib/gresizable.js ***!
45091
+ \**********************************************/
45092
+ /***/ ((__unused_webpack_module, exports) => {
45093
+
45094
+ "use strict";
45095
+
45096
+ /********************************************************************************
45097
+ * Copyright (c) 2024 EclipseSource and others.
45098
+ *
45099
+ * This program and the accompanying materials are made available under the
45100
+ * terms of the Eclipse Public License v. 2.0 which is available at
45101
+ * http://www.eclipse.org/legal/epl-2.0.
45102
+ *
45103
+ * This Source Code may also be made available under the following Secondary
45104
+ * Licenses when the conditions for such availability set forth in the Eclipse
45105
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
45106
+ * with the GNU Classpath Exception which is available at
45107
+ * https://www.gnu.org/software/classpath/license.html.
45108
+ *
45109
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
45110
+ ********************************************************************************/
45111
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
45112
+ exports.GResizeLocation = exports.GResizableBuilder = exports.isGResizable = exports.GResizable = void 0;
45113
+ exports.GResizable = Symbol('GResizable');
45114
+ function isGResizable(element) {
45115
+ return exports.GResizable in element && element[exports.GResizable] === true;
45116
+ }
45117
+ exports.isGResizable = isGResizable;
45118
+ var GResizableBuilder;
45119
+ (function (GResizableBuilder) {
45120
+ function resizeLocations(builder, resizeLocations) {
45121
+ const proxy = builder['proxy'];
45122
+ proxy.resizeLocations = resizeLocations;
45123
+ return builder;
45124
+ }
45125
+ GResizableBuilder.resizeLocations = resizeLocations;
45126
+ })(GResizableBuilder || (exports.GResizableBuilder = GResizableBuilder = {}));
45127
+ var GResizeLocation;
45128
+ (function (GResizeLocation) {
45129
+ GResizeLocation["TopLeft"] = "top-left";
45130
+ GResizeLocation["Top"] = "top";
45131
+ GResizeLocation["TopRight"] = "top-right";
45132
+ GResizeLocation["Right"] = "right";
45133
+ GResizeLocation["BottomRight"] = "bottom-right";
45134
+ GResizeLocation["Bottom"] = "bottom";
45135
+ GResizeLocation["BottomLeft"] = "bottom-left";
45136
+ GResizeLocation["Left"] = "left";
45137
+ })(GResizeLocation || (exports.GResizeLocation = GResizeLocation = {}));
45138
+ (function (GResizeLocation) {
45139
+ GResizeLocation.CORNERS = [
45140
+ GResizeLocation.TopLeft,
45141
+ GResizeLocation.TopRight,
45142
+ GResizeLocation.BottomRight,
45143
+ GResizeLocation.BottomLeft
45144
+ ];
45145
+ GResizeLocation.CROSS = [GResizeLocation.Top, GResizeLocation.Right, GResizeLocation.Bottom, GResizeLocation.Left];
45146
+ GResizeLocation.ALL = [...GResizeLocation.CORNERS, ...GResizeLocation.CROSS];
45147
+ })(GResizeLocation || (exports.GResizeLocation = GResizeLocation = {}));
45148
+
45149
+
45054
45150
  /***/ }),
45055
45151
 
45056
45152
  /***/ "../../packages/graph/lib/gshape-element.js":
@@ -45061,21 +45157,23 @@ exports.GPreRenderedElementBuilder = GPreRenderedElementBuilder;
45061
45157
 
45062
45158
  "use strict";
45063
45159
 
45064
- var _a, _b;
45160
+ var _a, _b, _c;
45065
45161
  Object.defineProperty(exports, "__esModule", ({ value: true }));
45066
45162
  exports.GShapeElementBuilder = exports.GShapeElement = void 0;
45067
45163
  const gbounds_aware_1 = __webpack_require__(/*! ./gbounds-aware */ "../../packages/graph/lib/gbounds-aware.js");
45068
45164
  const glayoutable_1 = __webpack_require__(/*! ./glayoutable */ "../../packages/graph/lib/glayoutable.js");
45069
45165
  const gmodel_element_1 = __webpack_require__(/*! ./gmodel-element */ "../../packages/graph/lib/gmodel-element.js");
45166
+ const gresizable_1 = __webpack_require__(/*! ./gresizable */ "../../packages/graph/lib/gresizable.js");
45070
45167
  class GShapeElement extends gmodel_element_1.GModelElement {
45071
45168
  constructor() {
45072
45169
  super(...arguments);
45073
45170
  this[_a] = true;
45074
45171
  this[_b] = true;
45172
+ this[_c] = true;
45075
45173
  }
45076
45174
  }
45077
45175
  exports.GShapeElement = GShapeElement;
45078
- _a = gbounds_aware_1.GBoundsAware, _b = glayoutable_1.GLayoutable;
45176
+ _a = gbounds_aware_1.GBoundsAware, _b = glayoutable_1.GLayoutable, _c = gresizable_1.GResizable;
45079
45177
  class GShapeElementBuilder extends gmodel_element_1.GModelElementBuilder {
45080
45178
  position(pointOrX, y) {
45081
45179
  return gbounds_aware_1.GBoundsAwareBuilder.position(this, pointOrX, y);
@@ -45089,6 +45187,9 @@ class GShapeElementBuilder extends gmodel_element_1.GModelElementBuilder {
45089
45187
  addLayoutOptions(layoutOptions) {
45090
45188
  return glayoutable_1.GLayoutableBuilder.addLayoutOptions(this, layoutOptions);
45091
45189
  }
45190
+ resizeLocations(resizeLocations) {
45191
+ return gresizable_1.GResizableBuilder.resizeLocations(this, resizeLocations);
45192
+ }
45092
45193
  }
45093
45194
  exports.GShapeElementBuilder = GShapeElementBuilder;
45094
45195
 
@@ -45218,6 +45319,7 @@ __exportStar(__webpack_require__(/*! ./gmodel-util */ "../../packages/graph/lib/
45218
45319
  __exportStar(__webpack_require__(/*! ./gnode */ "../../packages/graph/lib/gnode.js"), exports);
45219
45320
  __exportStar(__webpack_require__(/*! ./gport */ "../../packages/graph/lib/gport.js"), exports);
45220
45321
  __exportStar(__webpack_require__(/*! ./gpre-rendered-element */ "../../packages/graph/lib/gpre-rendered-element.js"), exports);
45322
+ __exportStar(__webpack_require__(/*! ./gresizable */ "../../packages/graph/lib/gresizable.js"), exports);
45221
45323
  __exportStar(__webpack_require__(/*! ./gshape-element */ "../../packages/graph/lib/gshape-element.js"), exports);
45222
45324
  __exportStar(__webpack_require__(/*! ./gshaped-prerendered-element */ "../../packages/graph/lib/gshaped-prerendered-element.js"), exports);
45223
45325