lecom-modeler 0.1.23 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.cts CHANGED
@@ -19,7 +19,8 @@ declare enum EditorMode {
19
19
  declare enum ElementType {
20
20
  ACTIVITY = "activity",
21
21
  ROUTING = "routing",
22
- GATEWAY = "gateway"
22
+ GATEWAY = "gateway",
23
+ SUB_PROCESS = "sub_process"
23
24
  }
24
25
  declare enum ActivityVariant {
25
26
  START = "start",
@@ -33,7 +34,8 @@ declare enum RoutingVariant {
33
34
  COMPLEX = "complex",
34
35
  EXCLUSIVE = "exclusive",
35
36
  PARALLEL = "parallel",
36
- FINAL = "final"
37
+ FINAL = "final",
38
+ TO_SUB_PROCESS = "to_sub_process"
37
39
  }
38
40
  declare enum ComplexVariant {
39
41
  SCRIPT = "script",
@@ -52,6 +54,14 @@ interface ActivityElement {
52
54
  targets?: Element[];
53
55
  edgeTargets?: Element[];
54
56
  }
57
+ interface SubProcessElement {
58
+ id: string;
59
+ type: ElementType.SUB_PROCESS;
60
+ variant?: ActivityVariant;
61
+ label?: string;
62
+ targets?: Element[];
63
+ edgeTargets?: Element[];
64
+ }
55
65
  interface RoutingElement {
56
66
  id: string;
57
67
  type: ElementType.ROUTING;
@@ -68,7 +78,7 @@ interface GatewayElement {
68
78
  subVariant?: ComplexVariant | ExclusiveVariant;
69
79
  targets?: Element[];
70
80
  }
71
- type Element = ActivityElement | RoutingElement | GatewayElement;
81
+ type Element = ActivityElement | RoutingElement | GatewayElement | SubProcessElement;
72
82
  interface SelectionUtils {
73
83
  deselectAll?: () => Promise<unknown>;
74
84
  selectElement?: (elementId: string) => boolean;
package/lib/index.d.ts CHANGED
@@ -19,7 +19,8 @@ declare enum EditorMode {
19
19
  declare enum ElementType {
20
20
  ACTIVITY = "activity",
21
21
  ROUTING = "routing",
22
- GATEWAY = "gateway"
22
+ GATEWAY = "gateway",
23
+ SUB_PROCESS = "sub_process"
23
24
  }
24
25
  declare enum ActivityVariant {
25
26
  START = "start",
@@ -33,7 +34,8 @@ declare enum RoutingVariant {
33
34
  COMPLEX = "complex",
34
35
  EXCLUSIVE = "exclusive",
35
36
  PARALLEL = "parallel",
36
- FINAL = "final"
37
+ FINAL = "final",
38
+ TO_SUB_PROCESS = "to_sub_process"
37
39
  }
38
40
  declare enum ComplexVariant {
39
41
  SCRIPT = "script",
@@ -52,6 +54,14 @@ interface ActivityElement {
52
54
  targets?: Element[];
53
55
  edgeTargets?: Element[];
54
56
  }
57
+ interface SubProcessElement {
58
+ id: string;
59
+ type: ElementType.SUB_PROCESS;
60
+ variant?: ActivityVariant;
61
+ label?: string;
62
+ targets?: Element[];
63
+ edgeTargets?: Element[];
64
+ }
55
65
  interface RoutingElement {
56
66
  id: string;
57
67
  type: ElementType.ROUTING;
@@ -68,7 +78,7 @@ interface GatewayElement {
68
78
  subVariant?: ComplexVariant | ExclusiveVariant;
69
79
  targets?: Element[];
70
80
  }
71
- type Element = ActivityElement | RoutingElement | GatewayElement;
81
+ type Element = ActivityElement | RoutingElement | GatewayElement | SubProcessElement;
72
82
  interface SelectionUtils {
73
83
  deselectAll?: () => Promise<unknown>;
74
84
  selectElement?: (elementId: string) => boolean;