@aranzatech/diagrams-bpmn 0.1.3 → 0.2.1
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/CHANGELOG.md +20 -0
- package/README.md +121 -0
- package/dist/catalog-OVnBDD8R.d.ts +9 -0
- package/dist/catalog-OWfI_yHU.d.cts +9 -0
- package/dist/{chunk-W3ROOC6E.js → chunk-33AR3PXF.js} +177 -40
- package/dist/chunk-33AR3PXF.js.map +1 -0
- package/dist/{chunk-3AFZDIMQ.js → chunk-ECTJRD7Z.js} +3 -3
- package/dist/{chunk-3AFZDIMQ.js.map → chunk-ECTJRD7Z.js.map} +1 -1
- package/dist/{chunk-NXMUX67A.js → chunk-H3YMTGFG.js} +79 -38
- package/dist/chunk-H3YMTGFG.js.map +1 -0
- package/dist/chunk-KALSGH4D.js +36 -0
- package/dist/chunk-KALSGH4D.js.map +1 -0
- package/dist/{chunk-DNR5WBQH.js → chunk-L5Z22RLX.js} +81 -20
- package/dist/chunk-L5Z22RLX.js.map +1 -0
- package/dist/chunk-OZKTOILD.js +3 -0
- package/dist/chunk-OZKTOILD.js.map +1 -0
- package/dist/{chunk-4AX573IV.js → chunk-RLAJNRF2.js} +3 -3
- package/dist/{chunk-4AX573IV.js.map → chunk-RLAJNRF2.js.map} +1 -1
- package/dist/chunk-YQTIODXH.js +532 -0
- package/dist/chunk-YQTIODXH.js.map +1 -0
- package/dist/chunk-ZFGQVLHB.js +226 -0
- package/dist/chunk-ZFGQVLHB.js.map +1 -0
- package/dist/edges/index.cjs +1 -1
- package/dist/edges/index.cjs.map +1 -1
- package/dist/edges/index.js +2 -2
- package/dist/elements/index.cjs +81 -17
- package/dist/elements/index.cjs.map +1 -1
- package/dist/elements/index.d.cts +4 -6
- package/dist/elements/index.d.ts +4 -6
- package/dist/elements/index.js +3 -2
- package/dist/index.cjs +1120 -118
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -63
- package/dist/index.d.ts +10 -63
- package/dist/index.js +9 -42
- package/dist/index.js.map +1 -1
- package/dist/modeling/index.cjs +1241 -0
- package/dist/modeling/index.cjs.map +1 -0
- package/dist/modeling/index.d.cts +146 -0
- package/dist/modeling/index.d.ts +146 -0
- package/dist/modeling/index.js +5 -0
- package/dist/modeling/index.js.map +1 -0
- package/dist/nodes/index.cjs +91 -38
- package/dist/nodes/index.cjs.map +1 -1
- package/dist/nodes/index.js +2 -2
- package/dist/types-BxjCV2oX.d.ts +20 -0
- package/dist/{types-C78d_Kdh.d.cts → types-DznxZxpV.d.cts} +17 -19
- package/dist/{types-C78d_Kdh.d.ts → types-DznxZxpV.d.ts} +17 -19
- package/dist/types-vVi5T7qj.d.cts +20 -0
- package/dist/validation/index.cjs +848 -0
- package/dist/validation/index.cjs.map +1 -0
- package/dist/validation/index.d.cts +25 -0
- package/dist/validation/index.d.ts +25 -0
- package/dist/validation/index.js +5 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/xml/index.cjs +215 -54
- package/dist/xml/index.cjs.map +1 -1
- package/dist/xml/index.d.cts +4 -19
- package/dist/xml/index.d.ts +4 -19
- package/dist/xml/index.js +2 -2
- package/package.json +16 -4
- package/dist/chunk-23B2IGK5.js +0 -24
- package/dist/chunk-23B2IGK5.js.map +0 -1
- package/dist/chunk-DNR5WBQH.js.map +0 -1
- package/dist/chunk-NXMUX67A.js.map +0 -1
- package/dist/chunk-W3ROOC6E.js.map +0 -1
package/dist/nodes/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from '../chunk-H3YMTGFG.js';
|
|
2
|
+
import '../chunk-KALSGH4D.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
import { h as BpmnNodeData, a as BpmnEdgeData } from './types-DznxZxpV.js';
|
|
3
|
+
|
|
4
|
+
type BpmnRFNode = Node<BpmnNodeData>;
|
|
5
|
+
type BpmnRFEdge = Edge<BpmnEdgeData>;
|
|
6
|
+
interface BpmnImportResult {
|
|
7
|
+
nodes: BpmnRFNode[];
|
|
8
|
+
edges: BpmnRFEdge[];
|
|
9
|
+
warnings: string[];
|
|
10
|
+
}
|
|
11
|
+
interface BpmnExportOptions {
|
|
12
|
+
/** Diagram name written into the XML. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** Definitions element id. Defaults to "Definitions_1". */
|
|
15
|
+
id?: string;
|
|
16
|
+
/** Pretty-print the XML output. Defaults to true. */
|
|
17
|
+
format?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type { BpmnExportOptions as B, BpmnImportResult as a, BpmnRFEdge as b, BpmnRFNode as c };
|
|
@@ -14,6 +14,9 @@ interface BpmnElementMeta {
|
|
|
14
14
|
category: BpmnCategory;
|
|
15
15
|
defaultWidth: number;
|
|
16
16
|
defaultHeight: number;
|
|
17
|
+
minWidth?: number;
|
|
18
|
+
minHeight?: number;
|
|
19
|
+
resizable?: boolean;
|
|
17
20
|
/** Default handle exposure for the rendered node shape. */
|
|
18
21
|
handlePolicy: BpmnHandlePolicy;
|
|
19
22
|
/** Preferred orientation when the element acts as a container. */
|
|
@@ -37,6 +40,13 @@ interface BpmnElementMeta {
|
|
|
37
40
|
/** Max number of outgoing sequence flows. undefined = unlimited. */
|
|
38
41
|
maxOutgoing?: number;
|
|
39
42
|
}
|
|
43
|
+
interface BpmnElementSize {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
minWidth: number;
|
|
47
|
+
minHeight: number;
|
|
48
|
+
resizable: boolean;
|
|
49
|
+
}
|
|
40
50
|
interface BpmnNodeData extends Record<string, unknown> {
|
|
41
51
|
label?: string;
|
|
42
52
|
elementType: BpmnElementType;
|
|
@@ -51,6 +61,10 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
51
61
|
trigger?: EventTrigger;
|
|
52
62
|
/** True for non-interrupting boundary events / event sub-process starts. */
|
|
53
63
|
isNonInterrupting?: boolean;
|
|
64
|
+
/** BoundaryEvent only: BPMN element id this boundary event is attached to. */
|
|
65
|
+
attachedToRef?: string;
|
|
66
|
+
/** Raw BPMN documentation text. */
|
|
67
|
+
documentation?: string;
|
|
54
68
|
/** Task instance markers shown at the bottom of the task box. */
|
|
55
69
|
markers?: TaskMarker[];
|
|
56
70
|
/** Sub-process structural variant (defaults to "embedded"). */
|
|
@@ -76,24 +90,6 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
76
90
|
owner?: string;
|
|
77
91
|
/** ISO 8601 duration, e.g. "PT4H". */
|
|
78
92
|
sla?: string;
|
|
79
|
-
/** flowable:assignee — UEL expression or static user id. */
|
|
80
|
-
flowableAssignee?: string;
|
|
81
|
-
/** flowable:candidateGroups — comma-separated group ids or UEL expression. */
|
|
82
|
-
flowableCandidateGroups?: string;
|
|
83
|
-
/** flowable:candidateUsers — comma-separated user ids or UEL expression. */
|
|
84
|
-
flowableCandidateUsers?: string;
|
|
85
|
-
/** flowable:formKey — form definition key (for UserTask / StartEvent). */
|
|
86
|
-
flowableFormKey?: string;
|
|
87
|
-
/** flowable:dueDate — UEL expression resolving to a Date. */
|
|
88
|
-
flowableDueDate?: string;
|
|
89
|
-
/** flowable:type — service task type: "http" | "mail" | "camel" | "mule". */
|
|
90
|
-
flowableType?: string;
|
|
91
|
-
/** flowable:expression — UEL expression for ServiceTask / SequenceFlow. */
|
|
92
|
-
flowableExpression?: string;
|
|
93
|
-
/** flowable:class — fully-qualified Java class name for ServiceTask. */
|
|
94
|
-
flowableClass?: string;
|
|
95
|
-
/** flowable:delegateExpression — UEL expression resolving to a JavaDelegate. */
|
|
96
|
-
flowableDelegateExpression?: string;
|
|
97
93
|
}
|
|
98
94
|
interface BpmnEdgeData extends Record<string, unknown> {
|
|
99
95
|
label?: string;
|
|
@@ -101,6 +97,8 @@ interface BpmnEdgeData extends Record<string, unknown> {
|
|
|
101
97
|
conditionExpression?: string;
|
|
102
98
|
/** Sequence flow marked as the default path of a gateway/activity. */
|
|
103
99
|
isDefault?: boolean;
|
|
100
|
+
/** Raw BPMN documentation text. */
|
|
101
|
+
documentation?: string;
|
|
104
102
|
/** Directionality for associations. */
|
|
105
103
|
associationDirection?: "none" | "one" | "both";
|
|
106
104
|
/** Routing points produced by ELK. */
|
|
@@ -110,4 +108,4 @@ interface BpmnEdgeData extends Record<string, unknown> {
|
|
|
110
108
|
}>;
|
|
111
109
|
}
|
|
112
110
|
|
|
113
|
-
export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnEdgeData as a, BpmnEdgeType as b, BpmnElementMeta as c,
|
|
111
|
+
export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnEdgeData as a, BpmnEdgeType as b, BpmnElementMeta as c, BpmnElementSize as d, BpmnElementType as e, BpmnEventSemantics as f, BpmnHandlePolicy as g, BpmnNodeData as h, BpmnOrientation as i };
|
|
@@ -14,6 +14,9 @@ interface BpmnElementMeta {
|
|
|
14
14
|
category: BpmnCategory;
|
|
15
15
|
defaultWidth: number;
|
|
16
16
|
defaultHeight: number;
|
|
17
|
+
minWidth?: number;
|
|
18
|
+
minHeight?: number;
|
|
19
|
+
resizable?: boolean;
|
|
17
20
|
/** Default handle exposure for the rendered node shape. */
|
|
18
21
|
handlePolicy: BpmnHandlePolicy;
|
|
19
22
|
/** Preferred orientation when the element acts as a container. */
|
|
@@ -37,6 +40,13 @@ interface BpmnElementMeta {
|
|
|
37
40
|
/** Max number of outgoing sequence flows. undefined = unlimited. */
|
|
38
41
|
maxOutgoing?: number;
|
|
39
42
|
}
|
|
43
|
+
interface BpmnElementSize {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
minWidth: number;
|
|
47
|
+
minHeight: number;
|
|
48
|
+
resizable: boolean;
|
|
49
|
+
}
|
|
40
50
|
interface BpmnNodeData extends Record<string, unknown> {
|
|
41
51
|
label?: string;
|
|
42
52
|
elementType: BpmnElementType;
|
|
@@ -51,6 +61,10 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
51
61
|
trigger?: EventTrigger;
|
|
52
62
|
/** True for non-interrupting boundary events / event sub-process starts. */
|
|
53
63
|
isNonInterrupting?: boolean;
|
|
64
|
+
/** BoundaryEvent only: BPMN element id this boundary event is attached to. */
|
|
65
|
+
attachedToRef?: string;
|
|
66
|
+
/** Raw BPMN documentation text. */
|
|
67
|
+
documentation?: string;
|
|
54
68
|
/** Task instance markers shown at the bottom of the task box. */
|
|
55
69
|
markers?: TaskMarker[];
|
|
56
70
|
/** Sub-process structural variant (defaults to "embedded"). */
|
|
@@ -76,24 +90,6 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
76
90
|
owner?: string;
|
|
77
91
|
/** ISO 8601 duration, e.g. "PT4H". */
|
|
78
92
|
sla?: string;
|
|
79
|
-
/** flowable:assignee — UEL expression or static user id. */
|
|
80
|
-
flowableAssignee?: string;
|
|
81
|
-
/** flowable:candidateGroups — comma-separated group ids or UEL expression. */
|
|
82
|
-
flowableCandidateGroups?: string;
|
|
83
|
-
/** flowable:candidateUsers — comma-separated user ids or UEL expression. */
|
|
84
|
-
flowableCandidateUsers?: string;
|
|
85
|
-
/** flowable:formKey — form definition key (for UserTask / StartEvent). */
|
|
86
|
-
flowableFormKey?: string;
|
|
87
|
-
/** flowable:dueDate — UEL expression resolving to a Date. */
|
|
88
|
-
flowableDueDate?: string;
|
|
89
|
-
/** flowable:type — service task type: "http" | "mail" | "camel" | "mule". */
|
|
90
|
-
flowableType?: string;
|
|
91
|
-
/** flowable:expression — UEL expression for ServiceTask / SequenceFlow. */
|
|
92
|
-
flowableExpression?: string;
|
|
93
|
-
/** flowable:class — fully-qualified Java class name for ServiceTask. */
|
|
94
|
-
flowableClass?: string;
|
|
95
|
-
/** flowable:delegateExpression — UEL expression resolving to a JavaDelegate. */
|
|
96
|
-
flowableDelegateExpression?: string;
|
|
97
93
|
}
|
|
98
94
|
interface BpmnEdgeData extends Record<string, unknown> {
|
|
99
95
|
label?: string;
|
|
@@ -101,6 +97,8 @@ interface BpmnEdgeData extends Record<string, unknown> {
|
|
|
101
97
|
conditionExpression?: string;
|
|
102
98
|
/** Sequence flow marked as the default path of a gateway/activity. */
|
|
103
99
|
isDefault?: boolean;
|
|
100
|
+
/** Raw BPMN documentation text. */
|
|
101
|
+
documentation?: string;
|
|
104
102
|
/** Directionality for associations. */
|
|
105
103
|
associationDirection?: "none" | "one" | "both";
|
|
106
104
|
/** Routing points produced by ELK. */
|
|
@@ -110,4 +108,4 @@ interface BpmnEdgeData extends Record<string, unknown> {
|
|
|
110
108
|
}>;
|
|
111
109
|
}
|
|
112
110
|
|
|
113
|
-
export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnEdgeData as a, BpmnEdgeType as b, BpmnElementMeta as c,
|
|
111
|
+
export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnEdgeData as a, BpmnEdgeType as b, BpmnElementMeta as c, BpmnElementSize as d, BpmnElementType as e, BpmnEventSemantics as f, BpmnHandlePolicy as g, BpmnNodeData as h, BpmnOrientation as i };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
import { h as BpmnNodeData, a as BpmnEdgeData } from './types-DznxZxpV.cjs';
|
|
3
|
+
|
|
4
|
+
type BpmnRFNode = Node<BpmnNodeData>;
|
|
5
|
+
type BpmnRFEdge = Edge<BpmnEdgeData>;
|
|
6
|
+
interface BpmnImportResult {
|
|
7
|
+
nodes: BpmnRFNode[];
|
|
8
|
+
edges: BpmnRFEdge[];
|
|
9
|
+
warnings: string[];
|
|
10
|
+
}
|
|
11
|
+
interface BpmnExportOptions {
|
|
12
|
+
/** Diagram name written into the XML. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** Definitions element id. Defaults to "Definitions_1". */
|
|
15
|
+
id?: string;
|
|
16
|
+
/** Pretty-print the XML output. Defaults to true. */
|
|
17
|
+
format?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type { BpmnExportOptions as B, BpmnImportResult as a, BpmnRFEdge as b, BpmnRFNode as c };
|