lecom-modeler 0.1.2 → 0.1.4
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.cjs +10 -10
- package/lib/index.d.cts +45 -6
- package/lib/index.d.ts +45 -6
- package/lib/index.js +10 -10
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -1,24 +1,63 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
declare enum GatewayVariant {
|
|
4
|
+
EXCLUSIVE = "EXCLUSIVE",
|
|
5
|
+
PARALLEL = "PARALLEL",
|
|
6
|
+
COMPLEX = "COMPLEX"
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
declare enum EditorMode {
|
|
4
10
|
EDIT = "edit",
|
|
5
11
|
READONLY = "readonly"
|
|
6
12
|
}
|
|
7
13
|
declare enum ElementType {
|
|
8
14
|
ACTIVITY = "activity",
|
|
9
|
-
ROUTING = "routing"
|
|
15
|
+
ROUTING = "routing",
|
|
16
|
+
GATEWAY = "gateway"
|
|
10
17
|
}
|
|
11
|
-
declare enum
|
|
18
|
+
declare enum ActivityVariant {
|
|
12
19
|
START = "start",
|
|
13
20
|
END = "end",
|
|
14
21
|
BETWEEN = "between"
|
|
15
22
|
}
|
|
16
|
-
|
|
23
|
+
declare enum RoutingVariant {
|
|
24
|
+
SIMPLE = "simple",
|
|
25
|
+
LOOP = "loop",
|
|
26
|
+
SCRIPT = "script",
|
|
27
|
+
COMPLEX = "complex",
|
|
28
|
+
EXCLUSIVE = "exclusive",
|
|
29
|
+
PARALLEL = "parallel",
|
|
30
|
+
FINAL = "final"
|
|
31
|
+
}
|
|
32
|
+
declare enum ComplexVariant {
|
|
33
|
+
SCRIPT = "script",
|
|
34
|
+
LOOP = "loop",
|
|
35
|
+
SCRIPT_LOOP = "script_loop"
|
|
36
|
+
}
|
|
37
|
+
declare enum ExclusiveVariant {
|
|
38
|
+
SCRIPT = "script",
|
|
39
|
+
LOOP = "loop"
|
|
40
|
+
}
|
|
41
|
+
interface ActivityElement {
|
|
42
|
+
id: string;
|
|
43
|
+
type: ElementType.ACTIVITY;
|
|
44
|
+
variant?: ActivityVariant;
|
|
45
|
+
label?: string;
|
|
46
|
+
}
|
|
47
|
+
interface RoutingElement {
|
|
48
|
+
id: string;
|
|
49
|
+
type: ElementType.ROUTING;
|
|
50
|
+
variant?: RoutingVariant;
|
|
51
|
+
subVariant?: ComplexVariant | ExclusiveVariant;
|
|
52
|
+
label?: string;
|
|
53
|
+
}
|
|
54
|
+
interface GatewayElement {
|
|
17
55
|
id: string;
|
|
18
|
-
type: ElementType;
|
|
19
|
-
variant?:
|
|
56
|
+
type: ElementType.GATEWAY;
|
|
57
|
+
variant?: GatewayVariant;
|
|
20
58
|
label?: string;
|
|
21
59
|
}
|
|
60
|
+
type Element = ActivityElement | RoutingElement | GatewayElement;
|
|
22
61
|
interface ModelerProps {
|
|
23
62
|
mode?: EditorMode;
|
|
24
63
|
locale?: string;
|
|
@@ -27,4 +66,4 @@ interface ModelerProps {
|
|
|
27
66
|
|
|
28
67
|
declare const Modeler: (props: ModelerProps) => react_jsx_runtime.JSX.Element;
|
|
29
68
|
|
|
30
|
-
export { EditorMode, type Element, ElementType,
|
|
69
|
+
export { ActivityVariant, EditorMode, type Element, ElementType, GatewayVariant, Modeler, RoutingVariant };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,24 +1,63 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
+
declare enum GatewayVariant {
|
|
4
|
+
EXCLUSIVE = "EXCLUSIVE",
|
|
5
|
+
PARALLEL = "PARALLEL",
|
|
6
|
+
COMPLEX = "COMPLEX"
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
declare enum EditorMode {
|
|
4
10
|
EDIT = "edit",
|
|
5
11
|
READONLY = "readonly"
|
|
6
12
|
}
|
|
7
13
|
declare enum ElementType {
|
|
8
14
|
ACTIVITY = "activity",
|
|
9
|
-
ROUTING = "routing"
|
|
15
|
+
ROUTING = "routing",
|
|
16
|
+
GATEWAY = "gateway"
|
|
10
17
|
}
|
|
11
|
-
declare enum
|
|
18
|
+
declare enum ActivityVariant {
|
|
12
19
|
START = "start",
|
|
13
20
|
END = "end",
|
|
14
21
|
BETWEEN = "between"
|
|
15
22
|
}
|
|
16
|
-
|
|
23
|
+
declare enum RoutingVariant {
|
|
24
|
+
SIMPLE = "simple",
|
|
25
|
+
LOOP = "loop",
|
|
26
|
+
SCRIPT = "script",
|
|
27
|
+
COMPLEX = "complex",
|
|
28
|
+
EXCLUSIVE = "exclusive",
|
|
29
|
+
PARALLEL = "parallel",
|
|
30
|
+
FINAL = "final"
|
|
31
|
+
}
|
|
32
|
+
declare enum ComplexVariant {
|
|
33
|
+
SCRIPT = "script",
|
|
34
|
+
LOOP = "loop",
|
|
35
|
+
SCRIPT_LOOP = "script_loop"
|
|
36
|
+
}
|
|
37
|
+
declare enum ExclusiveVariant {
|
|
38
|
+
SCRIPT = "script",
|
|
39
|
+
LOOP = "loop"
|
|
40
|
+
}
|
|
41
|
+
interface ActivityElement {
|
|
42
|
+
id: string;
|
|
43
|
+
type: ElementType.ACTIVITY;
|
|
44
|
+
variant?: ActivityVariant;
|
|
45
|
+
label?: string;
|
|
46
|
+
}
|
|
47
|
+
interface RoutingElement {
|
|
48
|
+
id: string;
|
|
49
|
+
type: ElementType.ROUTING;
|
|
50
|
+
variant?: RoutingVariant;
|
|
51
|
+
subVariant?: ComplexVariant | ExclusiveVariant;
|
|
52
|
+
label?: string;
|
|
53
|
+
}
|
|
54
|
+
interface GatewayElement {
|
|
17
55
|
id: string;
|
|
18
|
-
type: ElementType;
|
|
19
|
-
variant?:
|
|
56
|
+
type: ElementType.GATEWAY;
|
|
57
|
+
variant?: GatewayVariant;
|
|
20
58
|
label?: string;
|
|
21
59
|
}
|
|
60
|
+
type Element = ActivityElement | RoutingElement | GatewayElement;
|
|
22
61
|
interface ModelerProps {
|
|
23
62
|
mode?: EditorMode;
|
|
24
63
|
locale?: string;
|
|
@@ -27,4 +66,4 @@ interface ModelerProps {
|
|
|
27
66
|
|
|
28
67
|
declare const Modeler: (props: ModelerProps) => react_jsx_runtime.JSX.Element;
|
|
29
68
|
|
|
30
|
-
export { EditorMode, type Element, ElementType,
|
|
69
|
+
export { ActivityVariant, EditorMode, type Element, ElementType, GatewayVariant, Modeler, RoutingVariant };
|