@aranzatech/diagrams-bpmn 0.1.2 → 0.2.0
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/{chunk-MLUJKUTG.js → chunk-5GRCJ5X6.js} +3 -3
- package/dist/{chunk-MLUJKUTG.js.map → chunk-5GRCJ5X6.js.map} +1 -1
- package/dist/{chunk-6TUC5QX5.js → chunk-DNR5WBQH.js} +83 -2
- package/dist/chunk-DNR5WBQH.js.map +1 -0
- package/dist/chunk-G5S4ASP3.js +277 -0
- package/dist/chunk-G5S4ASP3.js.map +1 -0
- package/dist/{chunk-4OAEWYYU.js → chunk-MF2WE3OM.js} +146 -37
- package/dist/chunk-MF2WE3OM.js.map +1 -0
- package/dist/chunk-OZKTOILD.js +3 -0
- package/dist/chunk-OZKTOILD.js.map +1 -0
- package/dist/{chunk-NXMUX67A.js → chunk-S3GGEEA5.js} +31 -8
- package/dist/chunk-S3GGEEA5.js.map +1 -0
- package/dist/elements/index.cjs +81 -0
- package/dist/elements/index.cjs.map +1 -1
- package/dist/elements/index.d.cts +2 -2
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +3 -2
- package/dist/index.cjs +535 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -62
- package/dist/index.d.ts +7 -62
- package/dist/index.js +6 -40
- package/dist/index.js.map +1 -1
- package/dist/modeling/index.cjs +894 -0
- package/dist/modeling/index.cjs.map +1 -0
- package/dist/modeling/index.d.cts +88 -0
- package/dist/modeling/index.d.ts +88 -0
- package/dist/modeling/index.js +5 -0
- package/dist/modeling/index.js.map +1 -0
- package/dist/nodes/index.cjs +29 -6
- package/dist/nodes/index.cjs.map +1 -1
- package/dist/nodes/index.js +1 -1
- package/dist/{types-CxzazgBX.d.cts → types-BKA0GZz5.d.cts} +9 -19
- package/dist/{types-CxzazgBX.d.ts → types-BKA0GZz5.d.ts} +9 -19
- package/dist/types-CCkHqtC_.d.cts +20 -0
- package/dist/types-hj621ZRJ.d.ts +20 -0
- package/dist/xml/index.cjs +224 -34
- 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 +12 -4
- package/dist/chunk-4OAEWYYU.js.map +0 -1
- package/dist/chunk-6TUC5QX5.js.map +0 -1
- package/dist/chunk-NXMUX67A.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-
|
|
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-S3GGEEA5.js';
|
|
2
2
|
import '../chunk-23B2IGK5.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,13 +2,15 @@ type BpmnCategory = "event" | "task" | "gateway" | "container" | "artifact" | "d
|
|
|
2
2
|
type BpmnHandlePolicy = "all" | "source" | "target" | "none";
|
|
3
3
|
type BpmnOrientation = "horizontal" | "vertical" | "free";
|
|
4
4
|
type BpmnEventSemantics = "start" | "intermediateCatch" | "intermediateThrow" | "boundary" | "end";
|
|
5
|
-
type BpmnElementType = "StartEvent" | "EndEvent" | "IntermediateCatchEvent" | "IntermediateThrowEvent" | "BoundaryEvent" | "Task" | "UserTask" | "ServiceTask" | "ScriptTask" | "ManualTask" | "BusinessRuleTask" | "ReceiveTask" | "SendTask" | "CallActivity" | "ExclusiveGateway" | "InclusiveGateway" | "ParallelGateway" | "EventBasedGateway" | "ComplexGateway" | "SubProcess" | "Pool" | "Lane" | "Annotation" | "Group" | "DataObject" | "DataObjectReference" | "DataInput" | "DataOutput" | "DataStore" | "DataStoreReference" | "Conversation" | "SubConversation" | "CallConversation" | "ChoreographyTask" | "SubChoreography" | "CallChoreography";
|
|
5
|
+
type BpmnElementType = "StartEvent" | "EndEvent" | "IntermediateCatchEvent" | "IntermediateThrowEvent" | "BoundaryEvent" | "Task" | "UserTask" | "ServiceTask" | "ScriptTask" | "ManualTask" | "BusinessRuleTask" | "ReceiveTask" | "SendTask" | "CallActivity" | "ExclusiveGateway" | "InclusiveGateway" | "ParallelGateway" | "EventBasedGateway" | "ComplexGateway" | "SubProcess" | "Transaction" | "EventSubProcess" | "AdHocSubProcess" | "Pool" | "Lane" | "Annotation" | "Group" | "DataObject" | "DataObjectReference" | "DataInput" | "DataOutput" | "DataStore" | "DataStoreReference" | "Conversation" | "SubConversation" | "CallConversation" | "ChoreographyTask" | "SubChoreography" | "CallChoreography";
|
|
6
6
|
type BpmnEdgeType = "sequenceFlow" | "messageFlow" | "association" | "dataAssociation" | "conversationLink";
|
|
7
7
|
type EventTrigger = "none" | "message" | "timer" | "escalation" | "conditional" | "error" | "cancel" | "compensation" | "signal" | "link" | "terminate" | "multiple" | "parallelMultiple";
|
|
8
8
|
type TaskMarker = "loop" | "parallelMultiple" | "sequentialMultiple" | "compensation";
|
|
9
9
|
type SubProcessVariant = "embedded" | "event" | "transaction" | "adhoc";
|
|
10
10
|
interface BpmnElementMeta {
|
|
11
11
|
label: string;
|
|
12
|
+
/** lucide-react icon name, e.g. "User", "Settings", "Circle". */
|
|
13
|
+
icon: string;
|
|
12
14
|
category: BpmnCategory;
|
|
13
15
|
defaultWidth: number;
|
|
14
16
|
defaultHeight: number;
|
|
@@ -49,6 +51,10 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
49
51
|
trigger?: EventTrigger;
|
|
50
52
|
/** True for non-interrupting boundary events / event sub-process starts. */
|
|
51
53
|
isNonInterrupting?: boolean;
|
|
54
|
+
/** BoundaryEvent only: BPMN element id this boundary event is attached to. */
|
|
55
|
+
attachedToRef?: string;
|
|
56
|
+
/** Raw BPMN documentation text. */
|
|
57
|
+
documentation?: string;
|
|
52
58
|
/** Task instance markers shown at the bottom of the task box. */
|
|
53
59
|
markers?: TaskMarker[];
|
|
54
60
|
/** Sub-process structural variant (defaults to "embedded"). */
|
|
@@ -74,24 +80,6 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
74
80
|
owner?: string;
|
|
75
81
|
/** ISO 8601 duration, e.g. "PT4H". */
|
|
76
82
|
sla?: string;
|
|
77
|
-
/** flowable:assignee — UEL expression or static user id. */
|
|
78
|
-
flowableAssignee?: string;
|
|
79
|
-
/** flowable:candidateGroups — comma-separated group ids or UEL expression. */
|
|
80
|
-
flowableCandidateGroups?: string;
|
|
81
|
-
/** flowable:candidateUsers — comma-separated user ids or UEL expression. */
|
|
82
|
-
flowableCandidateUsers?: string;
|
|
83
|
-
/** flowable:formKey — form definition key (for UserTask / StartEvent). */
|
|
84
|
-
flowableFormKey?: string;
|
|
85
|
-
/** flowable:dueDate — UEL expression resolving to a Date. */
|
|
86
|
-
flowableDueDate?: string;
|
|
87
|
-
/** flowable:type — service task type: "http" | "mail" | "camel" | "mule". */
|
|
88
|
-
flowableType?: string;
|
|
89
|
-
/** flowable:expression — UEL expression for ServiceTask / SequenceFlow. */
|
|
90
|
-
flowableExpression?: string;
|
|
91
|
-
/** flowable:class — fully-qualified Java class name for ServiceTask. */
|
|
92
|
-
flowableClass?: string;
|
|
93
|
-
/** flowable:delegateExpression — UEL expression resolving to a JavaDelegate. */
|
|
94
|
-
flowableDelegateExpression?: string;
|
|
95
83
|
}
|
|
96
84
|
interface BpmnEdgeData extends Record<string, unknown> {
|
|
97
85
|
label?: string;
|
|
@@ -99,6 +87,8 @@ interface BpmnEdgeData extends Record<string, unknown> {
|
|
|
99
87
|
conditionExpression?: string;
|
|
100
88
|
/** Sequence flow marked as the default path of a gateway/activity. */
|
|
101
89
|
isDefault?: boolean;
|
|
90
|
+
/** Raw BPMN documentation text. */
|
|
91
|
+
documentation?: string;
|
|
102
92
|
/** Directionality for associations. */
|
|
103
93
|
associationDirection?: "none" | "one" | "both";
|
|
104
94
|
/** Routing points produced by ELK. */
|
|
@@ -2,13 +2,15 @@ type BpmnCategory = "event" | "task" | "gateway" | "container" | "artifact" | "d
|
|
|
2
2
|
type BpmnHandlePolicy = "all" | "source" | "target" | "none";
|
|
3
3
|
type BpmnOrientation = "horizontal" | "vertical" | "free";
|
|
4
4
|
type BpmnEventSemantics = "start" | "intermediateCatch" | "intermediateThrow" | "boundary" | "end";
|
|
5
|
-
type BpmnElementType = "StartEvent" | "EndEvent" | "IntermediateCatchEvent" | "IntermediateThrowEvent" | "BoundaryEvent" | "Task" | "UserTask" | "ServiceTask" | "ScriptTask" | "ManualTask" | "BusinessRuleTask" | "ReceiveTask" | "SendTask" | "CallActivity" | "ExclusiveGateway" | "InclusiveGateway" | "ParallelGateway" | "EventBasedGateway" | "ComplexGateway" | "SubProcess" | "Pool" | "Lane" | "Annotation" | "Group" | "DataObject" | "DataObjectReference" | "DataInput" | "DataOutput" | "DataStore" | "DataStoreReference" | "Conversation" | "SubConversation" | "CallConversation" | "ChoreographyTask" | "SubChoreography" | "CallChoreography";
|
|
5
|
+
type BpmnElementType = "StartEvent" | "EndEvent" | "IntermediateCatchEvent" | "IntermediateThrowEvent" | "BoundaryEvent" | "Task" | "UserTask" | "ServiceTask" | "ScriptTask" | "ManualTask" | "BusinessRuleTask" | "ReceiveTask" | "SendTask" | "CallActivity" | "ExclusiveGateway" | "InclusiveGateway" | "ParallelGateway" | "EventBasedGateway" | "ComplexGateway" | "SubProcess" | "Transaction" | "EventSubProcess" | "AdHocSubProcess" | "Pool" | "Lane" | "Annotation" | "Group" | "DataObject" | "DataObjectReference" | "DataInput" | "DataOutput" | "DataStore" | "DataStoreReference" | "Conversation" | "SubConversation" | "CallConversation" | "ChoreographyTask" | "SubChoreography" | "CallChoreography";
|
|
6
6
|
type BpmnEdgeType = "sequenceFlow" | "messageFlow" | "association" | "dataAssociation" | "conversationLink";
|
|
7
7
|
type EventTrigger = "none" | "message" | "timer" | "escalation" | "conditional" | "error" | "cancel" | "compensation" | "signal" | "link" | "terminate" | "multiple" | "parallelMultiple";
|
|
8
8
|
type TaskMarker = "loop" | "parallelMultiple" | "sequentialMultiple" | "compensation";
|
|
9
9
|
type SubProcessVariant = "embedded" | "event" | "transaction" | "adhoc";
|
|
10
10
|
interface BpmnElementMeta {
|
|
11
11
|
label: string;
|
|
12
|
+
/** lucide-react icon name, e.g. "User", "Settings", "Circle". */
|
|
13
|
+
icon: string;
|
|
12
14
|
category: BpmnCategory;
|
|
13
15
|
defaultWidth: number;
|
|
14
16
|
defaultHeight: number;
|
|
@@ -49,6 +51,10 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
49
51
|
trigger?: EventTrigger;
|
|
50
52
|
/** True for non-interrupting boundary events / event sub-process starts. */
|
|
51
53
|
isNonInterrupting?: boolean;
|
|
54
|
+
/** BoundaryEvent only: BPMN element id this boundary event is attached to. */
|
|
55
|
+
attachedToRef?: string;
|
|
56
|
+
/** Raw BPMN documentation text. */
|
|
57
|
+
documentation?: string;
|
|
52
58
|
/** Task instance markers shown at the bottom of the task box. */
|
|
53
59
|
markers?: TaskMarker[];
|
|
54
60
|
/** Sub-process structural variant (defaults to "embedded"). */
|
|
@@ -74,24 +80,6 @@ interface BpmnNodeData extends Record<string, unknown> {
|
|
|
74
80
|
owner?: string;
|
|
75
81
|
/** ISO 8601 duration, e.g. "PT4H". */
|
|
76
82
|
sla?: string;
|
|
77
|
-
/** flowable:assignee — UEL expression or static user id. */
|
|
78
|
-
flowableAssignee?: string;
|
|
79
|
-
/** flowable:candidateGroups — comma-separated group ids or UEL expression. */
|
|
80
|
-
flowableCandidateGroups?: string;
|
|
81
|
-
/** flowable:candidateUsers — comma-separated user ids or UEL expression. */
|
|
82
|
-
flowableCandidateUsers?: string;
|
|
83
|
-
/** flowable:formKey — form definition key (for UserTask / StartEvent). */
|
|
84
|
-
flowableFormKey?: string;
|
|
85
|
-
/** flowable:dueDate — UEL expression resolving to a Date. */
|
|
86
|
-
flowableDueDate?: string;
|
|
87
|
-
/** flowable:type — service task type: "http" | "mail" | "camel" | "mule". */
|
|
88
|
-
flowableType?: string;
|
|
89
|
-
/** flowable:expression — UEL expression for ServiceTask / SequenceFlow. */
|
|
90
|
-
flowableExpression?: string;
|
|
91
|
-
/** flowable:class — fully-qualified Java class name for ServiceTask. */
|
|
92
|
-
flowableClass?: string;
|
|
93
|
-
/** flowable:delegateExpression — UEL expression resolving to a JavaDelegate. */
|
|
94
|
-
flowableDelegateExpression?: string;
|
|
95
83
|
}
|
|
96
84
|
interface BpmnEdgeData extends Record<string, unknown> {
|
|
97
85
|
label?: string;
|
|
@@ -99,6 +87,8 @@ interface BpmnEdgeData extends Record<string, unknown> {
|
|
|
99
87
|
conditionExpression?: string;
|
|
100
88
|
/** Sequence flow marked as the default path of a gateway/activity. */
|
|
101
89
|
isDefault?: boolean;
|
|
90
|
+
/** Raw BPMN documentation text. */
|
|
91
|
+
documentation?: string;
|
|
102
92
|
/** Directionality for associations. */
|
|
103
93
|
associationDirection?: "none" | "one" | "both";
|
|
104
94
|
/** Routing points produced by ELK. */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
import { g as BpmnNodeData, a as BpmnEdgeData } from './types-BKA0GZz5.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 };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
import { g as BpmnNodeData, a as BpmnEdgeData } from './types-BKA0GZz5.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 };
|