@aranzatech/diagrams-bpmn 0.2.5 → 0.2.6
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/dist/{catalog-D2AcvrDO.d.cts → catalog-CZsXqhL9.d.cts} +1 -1
- package/dist/{catalog-CQtKEV7q.d.ts → catalog-Clz8sN9x.d.ts} +1 -1
- package/dist/{chunk-ASZ3TFNQ.js → chunk-L64NM77A.js} +65 -6
- package/dist/chunk-L64NM77A.js.map +1 -0
- package/dist/{chunk-QOGZITWB.js → chunk-M46UDUN3.js} +2 -2
- package/dist/{chunk-QOGZITWB.js.map → chunk-M46UDUN3.js.map} +1 -1
- package/dist/{chunk-7MKU37XQ.js → chunk-XTUYPA3E.js} +191 -15
- package/dist/chunk-XTUYPA3E.js.map +1 -0
- package/dist/elements/index.d.cts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/index.cjs +252 -227
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -4
- package/dist/modeling/index.cjs +197 -10
- package/dist/modeling/index.cjs.map +1 -1
- package/dist/modeling/index.d.cts +103 -7
- package/dist/modeling/index.d.ts +103 -7
- package/dist/modeling/index.js +1 -1
- package/dist/simulation/index.cjs.map +1 -1
- package/dist/simulation/index.d.cts +36 -0
- package/dist/simulation/index.d.ts +36 -0
- package/dist/simulation/index.js +1 -1
- package/dist/{types-rWbKYrHH.d.cts → types-BPqNeIU-.d.cts} +2 -0
- package/dist/{types-rWbKYrHH.d.ts → types-BPqNeIU-.d.ts} +2 -0
- package/dist/{types-CIBColRi.d.ts → types-D0Flgue2.d.ts} +1 -1
- package/dist/{types-fDlPLIHd.d.cts → types-exnfq24-.d.cts} +1 -1
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +7 -2
- package/dist/validation/index.d.ts +7 -2
- package/dist/validation/index.js +224 -3
- package/dist/validation/index.js.map +1 -1
- package/dist/xml/index.cjs +62 -6
- package/dist/xml/index.cjs.map +1 -1
- package/dist/xml/index.d.cts +18 -3
- package/dist/xml/index.d.ts +18 -3
- package/dist/xml/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-7MKU37XQ.js.map +0 -1
- package/dist/chunk-ASZ3TFNQ.js.map +0 -1
- package/dist/chunk-ZFGQVLHB.js +0 -226
- package/dist/chunk-ZFGQVLHB.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-
|
|
1
|
+
export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-CZsXqhL9.cjs';
|
|
2
2
|
export { acceptsBoundaryEvents, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './elements/index.cjs';
|
|
3
|
-
export { B as BpmnCategory, a as BpmnDefinitionsSet, b as BpmnEdgeData, c as BpmnEdgeType, d as BpmnElementMeta, e as BpmnElementSize, f as BpmnElementType, g as BpmnErrorDefinition, h as BpmnEscalationDefinition, i as BpmnEventDefinition, j as BpmnEventSemantics, k as BpmnHandlePolicy, l as BpmnMessageDefinition, m as BpmnNodeData, n as BpmnOrientation, o as BpmnProcessVariable, p as BpmnSignalDefinition, q as BpmnTimerDefinition, r as BpmnTimerKind, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-
|
|
3
|
+
export { B as BpmnCategory, a as BpmnDefinitionsSet, b as BpmnEdgeData, c as BpmnEdgeType, d as BpmnElementMeta, e as BpmnElementSize, f as BpmnElementType, g as BpmnErrorDefinition, h as BpmnEscalationDefinition, i as BpmnEventDefinition, j as BpmnEventSemantics, k as BpmnHandlePolicy, l as BpmnMessageDefinition, m as BpmnNodeData, n as BpmnOrientation, o as BpmnProcessVariable, p as BpmnSignalDefinition, q as BpmnTimerDefinition, r as BpmnTimerKind, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-BPqNeIU-.cjs';
|
|
4
4
|
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 './nodes/index.cjs';
|
|
5
5
|
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './edges/index.cjs';
|
|
6
6
|
export { parseBpmnXml, serializeBpmnXml } from './xml/index.cjs';
|
|
7
|
-
export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnProcessModel, c as BpmnRFEdge, d as BpmnRFNode } from './types-
|
|
7
|
+
export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnProcessModel, c as BpmnRFEdge, d as BpmnRFNode } from './types-exnfq24-.cjs';
|
|
8
8
|
export { SimDiagram, SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, SimulationState, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.cjs';
|
|
9
|
-
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, BpmnClipboardState, BpmnConnectionRule, BpmnDiagramDocument, BpmnDiagramState, ConnectBpmnOptions, CreateBpmnNodeOptions, FindBpmnContainerAtOptions, MoveBpmnLaneOptions, PasteBpmnOptions, ReorderBpmnLaneOptions, ReparentBpmnNodeAtPositionOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeOptions, RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnNodeZIndexes } from './modeling/index.cjs';
|
|
10
|
-
export { BpmnValidationIssue, BpmnValidationOptions, BpmnValidationResult, BpmnValidationSeverity
|
|
9
|
+
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, BpmnClipboardState, BpmnConnectionRule, BpmnDiagramDocument, BpmnDiagramSnapshot, BpmnDiagramState, BpmnEventBus, ConnectBpmnOptions, CreateBpmnNodeOptions, FindBpmnContainerAtOptions, GroupAsBpmnSubProcessOptions, MoveBpmnLaneOptions, PasteBpmnOptions, ReorderBpmnLaneOptions, ReparentBpmnNodeAtPositionOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeByHandleOptions, ResizeBpmnNodeOptions, RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from './modeling/index.cjs';
|
|
10
|
+
export { BpmnValidationIssue, BpmnValidationOptions, BpmnValidationResult, BpmnValidationSeverity } from './validation/index.cjs';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
import '@xyflow/react';
|
|
13
13
|
import '@aranzatech/diagrams-core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-
|
|
1
|
+
export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-Clz8sN9x.js';
|
|
2
2
|
export { acceptsBoundaryEvents, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './elements/index.js';
|
|
3
|
-
export { B as BpmnCategory, a as BpmnDefinitionsSet, b as BpmnEdgeData, c as BpmnEdgeType, d as BpmnElementMeta, e as BpmnElementSize, f as BpmnElementType, g as BpmnErrorDefinition, h as BpmnEscalationDefinition, i as BpmnEventDefinition, j as BpmnEventSemantics, k as BpmnHandlePolicy, l as BpmnMessageDefinition, m as BpmnNodeData, n as BpmnOrientation, o as BpmnProcessVariable, p as BpmnSignalDefinition, q as BpmnTimerDefinition, r as BpmnTimerKind, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-
|
|
3
|
+
export { B as BpmnCategory, a as BpmnDefinitionsSet, b as BpmnEdgeData, c as BpmnEdgeType, d as BpmnElementMeta, e as BpmnElementSize, f as BpmnElementType, g as BpmnErrorDefinition, h as BpmnEscalationDefinition, i as BpmnEventDefinition, j as BpmnEventSemantics, k as BpmnHandlePolicy, l as BpmnMessageDefinition, m as BpmnNodeData, n as BpmnOrientation, o as BpmnProcessVariable, p as BpmnSignalDefinition, q as BpmnTimerDefinition, r as BpmnTimerKind, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-BPqNeIU-.js';
|
|
4
4
|
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 './nodes/index.js';
|
|
5
5
|
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './edges/index.js';
|
|
6
6
|
export { parseBpmnXml, serializeBpmnXml } from './xml/index.js';
|
|
7
|
-
export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnProcessModel, c as BpmnRFEdge, d as BpmnRFNode } from './types-
|
|
7
|
+
export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnProcessModel, c as BpmnRFEdge, d as BpmnRFNode } from './types-D0Flgue2.js';
|
|
8
8
|
export { SimDiagram, SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, SimulationState, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.js';
|
|
9
|
-
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, BpmnClipboardState, BpmnConnectionRule, BpmnDiagramDocument, BpmnDiagramState, ConnectBpmnOptions, CreateBpmnNodeOptions, FindBpmnContainerAtOptions, MoveBpmnLaneOptions, PasteBpmnOptions, ReorderBpmnLaneOptions, ReparentBpmnNodeAtPositionOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeOptions, RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnNodeZIndexes } from './modeling/index.js';
|
|
10
|
-
export { BpmnValidationIssue, BpmnValidationOptions, BpmnValidationResult, BpmnValidationSeverity
|
|
9
|
+
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, BpmnClipboardState, BpmnConnectionRule, BpmnDiagramDocument, BpmnDiagramSnapshot, BpmnDiagramState, BpmnEventBus, ConnectBpmnOptions, CreateBpmnNodeOptions, FindBpmnContainerAtOptions, GroupAsBpmnSubProcessOptions, MoveBpmnLaneOptions, PasteBpmnOptions, ReorderBpmnLaneOptions, ReparentBpmnNodeAtPositionOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeByHandleOptions, ResizeBpmnNodeOptions, RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from './modeling/index.js';
|
|
10
|
+
export { BpmnValidationIssue, BpmnValidationOptions, BpmnValidationResult, BpmnValidationSeverity } from './validation/index.js';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
12
|
import '@xyflow/react';
|
|
13
13
|
import '@aranzatech/diagrams-core';
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,9 @@ import './chunk-OZKTOILD.js';
|
|
|
2
2
|
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-IMW6RG6F.js';
|
|
3
3
|
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './chunk-O3NWJ5H7.js';
|
|
4
4
|
import './chunk-PDTXM32P.js';
|
|
5
|
-
export { parseBpmnXml, serializeBpmnXml } from './chunk-
|
|
6
|
-
export { createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './chunk-
|
|
7
|
-
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnNodeZIndexes } from './chunk-
|
|
8
|
-
export { validateBpmnDiagram } from './chunk-ZFGQVLHB.js';
|
|
5
|
+
export { parseBpmnXml, serializeBpmnXml } from './chunk-L64NM77A.js';
|
|
6
|
+
export { createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './chunk-M46UDUN3.js';
|
|
7
|
+
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from './chunk-XTUYPA3E.js';
|
|
9
8
|
export { acceptsBoundaryEvents, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './chunk-RLAJNRF2.js';
|
|
10
9
|
export { BPMN_ELEMENT_CATALOG, BPMN_RESIZABLE_ELEMENT_TYPES, getBpmnElementSize, getElementMeta, isBpmnElementResizable } from './chunk-L5Z22RLX.js';
|
|
11
10
|
//# sourceMappingURL=index.js.map
|
package/dist/modeling/index.cjs
CHANGED
|
@@ -1221,6 +1221,41 @@ function reparentBpmnNodeAtPosition(state, options) {
|
|
|
1221
1221
|
position: nextPosition
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
|
+
var BE_HALF = 18;
|
|
1225
|
+
function clampBoundaryEventsAfterResize(state, hostId, oldW, oldH, newW, newH) {
|
|
1226
|
+
const boundaryEvents = state.nodes.filter(
|
|
1227
|
+
(n) => n.data.elementType === "BoundaryEvent" && n.parentId === hostId
|
|
1228
|
+
);
|
|
1229
|
+
let next = state;
|
|
1230
|
+
for (const be of boundaryEvents) {
|
|
1231
|
+
const px = be.position?.x ?? 0;
|
|
1232
|
+
const py = be.position?.y ?? 0;
|
|
1233
|
+
const cx = px + BE_HALF;
|
|
1234
|
+
const cy = py + BE_HALF;
|
|
1235
|
+
const distLeft = Math.abs(cx);
|
|
1236
|
+
const distRight = Math.abs(cx - oldW);
|
|
1237
|
+
const distTop = Math.abs(cy);
|
|
1238
|
+
const distBottom = Math.abs(cy - oldH);
|
|
1239
|
+
const minDist = Math.min(distLeft, distRight, distTop, distBottom);
|
|
1240
|
+
let newCx;
|
|
1241
|
+
let newCy;
|
|
1242
|
+
if (minDist === distBottom) {
|
|
1243
|
+
newCy = newH;
|
|
1244
|
+
newCx = Math.min(Math.max(cx, BE_HALF), newW - BE_HALF);
|
|
1245
|
+
} else if (minDist === distRight) {
|
|
1246
|
+
newCx = newW;
|
|
1247
|
+
newCy = Math.min(Math.max(cy, BE_HALF), newH - BE_HALF);
|
|
1248
|
+
} else if (minDist === distTop) {
|
|
1249
|
+
newCy = 0;
|
|
1250
|
+
newCx = Math.min(Math.max(cx, BE_HALF), newW - BE_HALF);
|
|
1251
|
+
} else {
|
|
1252
|
+
newCx = 0;
|
|
1253
|
+
newCy = Math.min(Math.max(cy, BE_HALF), newH - BE_HALF);
|
|
1254
|
+
}
|
|
1255
|
+
next = diagramsCore.moveNode(next, be.id, { x: newCx - BE_HALF, y: newCy - BE_HALF });
|
|
1256
|
+
}
|
|
1257
|
+
return next;
|
|
1258
|
+
}
|
|
1224
1259
|
function resizeBpmnNodeCommand(options) {
|
|
1225
1260
|
return {
|
|
1226
1261
|
id: `bpmn.resize.${options.id}`,
|
|
@@ -1232,10 +1267,18 @@ function resizeBpmnNodeCommand(options) {
|
|
|
1232
1267
|
if (!size.resizable) {
|
|
1233
1268
|
throw new Error(`${node.data.elementType} is not resizable in BPMN.`);
|
|
1234
1269
|
}
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1270
|
+
const oldW = node.width ?? size.width;
|
|
1271
|
+
const oldH = node.height ?? size.height;
|
|
1272
|
+
const clampedW = options.width === void 0 ? void 0 : Math.max(size.minWidth, options.width);
|
|
1273
|
+
const clampedH = options.height === void 0 ? void 0 : Math.max(size.minHeight, options.height);
|
|
1274
|
+
const resized = diagramsCore.resizeNode(state, options.id, {
|
|
1275
|
+
width: clampedW,
|
|
1276
|
+
height: clampedH
|
|
1238
1277
|
});
|
|
1278
|
+
const updatedNode = diagramsCore.getNode(resized, options.id);
|
|
1279
|
+
const newW = updatedNode?.width ?? clampedW ?? oldW;
|
|
1280
|
+
const newH = updatedNode?.height ?? clampedH ?? oldH;
|
|
1281
|
+
return clampBoundaryEventsAfterResize(resized, options.id, oldW, oldH, newW, newH);
|
|
1239
1282
|
}
|
|
1240
1283
|
};
|
|
1241
1284
|
}
|
|
@@ -1315,10 +1358,15 @@ function createBpmnDiagramDocument(state, options = {}) {
|
|
|
1315
1358
|
});
|
|
1316
1359
|
}
|
|
1317
1360
|
function serializeBpmnDiagram(state, options = {}) {
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1361
|
+
const { viewport, ...docOptions } = options;
|
|
1362
|
+
const normalized = diagramsCore.normalizeDiagramState(state);
|
|
1363
|
+
if (viewport) {
|
|
1364
|
+
return serialization.serializeDiagramSnapshot(
|
|
1365
|
+
{ nodes: normalized.nodes, edges: normalized.edges, viewport },
|
|
1366
|
+
{ ...docOptions, diagramType: "bpmn" }
|
|
1367
|
+
);
|
|
1368
|
+
}
|
|
1369
|
+
return serialization.serializeDiagram(normalized, { ...docOptions, diagramType: "bpmn" });
|
|
1322
1370
|
}
|
|
1323
1371
|
function parseBpmnDiagramDocument(json) {
|
|
1324
1372
|
const document = serialization.parseDiagramDocument(json);
|
|
@@ -1331,11 +1379,139 @@ function deserializeBpmnDiagram(json) {
|
|
|
1331
1379
|
const document = parseBpmnDiagramDocument(json);
|
|
1332
1380
|
return serialization.deserializeDiagram(JSON.stringify(document));
|
|
1333
1381
|
}
|
|
1334
|
-
function
|
|
1335
|
-
|
|
1382
|
+
function deserializeBpmnDiagramSnapshot(json) {
|
|
1383
|
+
const document = parseBpmnDiagramDocument(json);
|
|
1384
|
+
return serialization.deserializeDiagramSnapshot(JSON.stringify(document));
|
|
1385
|
+
}
|
|
1386
|
+
function createBpmnEventBus() {
|
|
1387
|
+
return diagramsCore.createDiagramEventBus();
|
|
1388
|
+
}
|
|
1389
|
+
function runBpmnCommand(stack, command, bus) {
|
|
1390
|
+
const next = diagramsCore.executeCommand(stack, command);
|
|
1391
|
+
bus?.emit("command:executed", {
|
|
1392
|
+
commandId: command.id,
|
|
1393
|
+
...command.label !== void 0 ? { label: command.label } : {},
|
|
1394
|
+
state: next.current
|
|
1395
|
+
});
|
|
1396
|
+
return next;
|
|
1336
1397
|
}
|
|
1337
1398
|
function runBpmnCommands(stack, commands, options = {}) {
|
|
1338
|
-
|
|
1399
|
+
const { bus, ...execOptions } = options;
|
|
1400
|
+
const next = diagramsCore.executeCommands(stack, commands, execOptions);
|
|
1401
|
+
bus?.emit("command:executed", {
|
|
1402
|
+
commandId: execOptions.id ?? "bpmn.batch",
|
|
1403
|
+
...execOptions.label !== void 0 ? { label: execOptions.label } : {},
|
|
1404
|
+
state: next.current
|
|
1405
|
+
});
|
|
1406
|
+
return next;
|
|
1407
|
+
}
|
|
1408
|
+
function persistBpmnHistory(stack, diagramId) {
|
|
1409
|
+
diagramsCore.persistCommandHistory(stack, `bpmn.history.${diagramId}`);
|
|
1410
|
+
}
|
|
1411
|
+
function restoreBpmnHistory(diagramId) {
|
|
1412
|
+
return diagramsCore.restoreCommandHistory(`bpmn.history.${diagramId}`);
|
|
1413
|
+
}
|
|
1414
|
+
function computeBpmnSmartGuides(movingNodes, state, poolId) {
|
|
1415
|
+
const movingIds = new Set(movingNodes.map((n) => n.id));
|
|
1416
|
+
const staticNodes = state.nodes.filter((n) => {
|
|
1417
|
+
if (movingIds.has(n.id)) return false;
|
|
1418
|
+
const et = n.data.elementType;
|
|
1419
|
+
if (et === "BoundaryEvent" || et === "Lane" || et === "Pool") return false;
|
|
1420
|
+
if (poolId) {
|
|
1421
|
+
const inPool = n.parentId === poolId || n.parentId !== void 0 && diagramsCore.getNode(state, n.parentId)?.parentId === poolId;
|
|
1422
|
+
if (!inPool) return false;
|
|
1423
|
+
}
|
|
1424
|
+
return true;
|
|
1425
|
+
});
|
|
1426
|
+
return diagramsCore.computeSmartGuides(movingNodes, staticNodes);
|
|
1427
|
+
}
|
|
1428
|
+
function groupAsBpmnSubProcessCommand(options) {
|
|
1429
|
+
return {
|
|
1430
|
+
id: `bpmn.groupAsSubProcess.${options.groupId ?? options.nodeIds.join(".")}`,
|
|
1431
|
+
label: "Group as SubProcess",
|
|
1432
|
+
execute: (state) => {
|
|
1433
|
+
for (const nodeId of options.nodeIds) {
|
|
1434
|
+
const node = diagramsCore.getNode(state, nodeId);
|
|
1435
|
+
if (!node) continue;
|
|
1436
|
+
const result = canContainBpmnElement("SubProcess", node.data.elementType);
|
|
1437
|
+
if (result !== true) throw new Error(result);
|
|
1438
|
+
}
|
|
1439
|
+
const groupId = options.groupId ?? diagramsCore.createUniqueId("subprocess", state.nodes.map((n) => n.id));
|
|
1440
|
+
const groupNode = createBpmnNode({
|
|
1441
|
+
id: groupId,
|
|
1442
|
+
elementType: "SubProcess",
|
|
1443
|
+
position: { x: 0, y: 0 },
|
|
1444
|
+
...options.label !== void 0 ? { label: options.label } : {},
|
|
1445
|
+
...options.data !== void 0 ? { data: options.data } : {}
|
|
1446
|
+
});
|
|
1447
|
+
return diagramsCore.groupNodes(state, {
|
|
1448
|
+
groupNode,
|
|
1449
|
+
nodeIds: options.nodeIds,
|
|
1450
|
+
padding: options.padding ?? 20
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
function getBpmnTabOrder(state, poolId) {
|
|
1456
|
+
if (!poolId) return diagramsCore.getNodeTabOrder(state);
|
|
1457
|
+
const pool = diagramsCore.getNode(state, poolId);
|
|
1458
|
+
if (!pool) return [];
|
|
1459
|
+
const scopeIds = state.nodes.filter((n) => {
|
|
1460
|
+
if (n.id === poolId) return false;
|
|
1461
|
+
if (n.parentId === poolId) return true;
|
|
1462
|
+
const parent = diagramsCore.getNode(state, n.parentId ?? "");
|
|
1463
|
+
return parent?.parentId === poolId;
|
|
1464
|
+
}).map((n) => n.id);
|
|
1465
|
+
return diagramsCore.getNodeTabOrder(state, scopeIds);
|
|
1466
|
+
}
|
|
1467
|
+
function getBpmnEdgeLabelLayout(edgeId, state, options) {
|
|
1468
|
+
const edge = state.edges.find((e) => e.id === edgeId);
|
|
1469
|
+
if (!edge) return null;
|
|
1470
|
+
const routingPoints = edge.data?.routingPoints ?? [];
|
|
1471
|
+
if (routingPoints.length >= 2) {
|
|
1472
|
+
return diagramsCore.getEdgeLabelLayout(routingPoints, options);
|
|
1473
|
+
}
|
|
1474
|
+
const sourceNode = diagramsCore.getNode(state, edge.source);
|
|
1475
|
+
const targetNode = diagramsCore.getNode(state, edge.target);
|
|
1476
|
+
if (!sourceNode || !targetNode) return null;
|
|
1477
|
+
const sourceAbsPos = getBpmnNodeAbsolutePosition(state, edge.source) ?? sourceNode.position;
|
|
1478
|
+
const targetAbsPos = getBpmnNodeAbsolutePosition(state, edge.target) ?? targetNode.position;
|
|
1479
|
+
const sourceCenter = diagramsCore.getNodeCenterPosition(sourceAbsPos, getBpmnNodeSize(sourceNode));
|
|
1480
|
+
const targetCenter = diagramsCore.getNodeCenterPosition(targetAbsPos, getBpmnNodeSize(targetNode));
|
|
1481
|
+
return diagramsCore.getEdgeLabelLayout([sourceCenter, targetCenter], options);
|
|
1482
|
+
}
|
|
1483
|
+
function resizeBpmnNodeByHandleCommand(options) {
|
|
1484
|
+
return {
|
|
1485
|
+
id: `bpmn.resizeByHandle.${options.id}`,
|
|
1486
|
+
label: "Resize BPMN element",
|
|
1487
|
+
execute: (state) => {
|
|
1488
|
+
const node = diagramsCore.getNode(state, options.id);
|
|
1489
|
+
if (!node) throw new Error(`Element "${options.id}" does not exist.`);
|
|
1490
|
+
const size = getBpmnElementSize(node.data.elementType);
|
|
1491
|
+
if (!size.resizable) {
|
|
1492
|
+
throw new Error(`${node.data.elementType} is not resizable in BPMN.`);
|
|
1493
|
+
}
|
|
1494
|
+
const oldW = node.width ?? size.width;
|
|
1495
|
+
const oldH = node.height ?? size.height;
|
|
1496
|
+
const resized = diagramsCore.resizeNodeByHandle(state, {
|
|
1497
|
+
id: options.id,
|
|
1498
|
+
handle: options.handle,
|
|
1499
|
+
dx: options.dx,
|
|
1500
|
+
dy: options.dy,
|
|
1501
|
+
constraints: { minWidth: size.minWidth, minHeight: size.minHeight }
|
|
1502
|
+
});
|
|
1503
|
+
const updatedNode = diagramsCore.getNode(resized, options.id);
|
|
1504
|
+
const newW = updatedNode?.width ?? oldW;
|
|
1505
|
+
const newH = updatedNode?.height ?? oldH;
|
|
1506
|
+
return clampBoundaryEventsAfterResize(resized, options.id, oldW, oldH, newW, newH);
|
|
1507
|
+
}
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
function createBpmnLayoutCache(options) {
|
|
1511
|
+
return diagramsCore.createLayoutCache(options);
|
|
1512
|
+
}
|
|
1513
|
+
function withBpmnLayoutCache(layoutFn, cache) {
|
|
1514
|
+
return diagramsCore.withLayoutCache(layoutFn, cache ?? diagramsCore.createLayoutCache());
|
|
1339
1515
|
}
|
|
1340
1516
|
|
|
1341
1517
|
exports.BPMN_EDGE_CONNECTION_RULES = BPMN_EDGE_CONNECTION_RULES;
|
|
@@ -1346,15 +1522,20 @@ exports.BPMN_SELECTION_STYLE = BPMN_SELECTION_STYLE;
|
|
|
1346
1522
|
exports.attachBoundaryEventCommand = attachBoundaryEventCommand;
|
|
1347
1523
|
exports.bpmnConnectionValidators = bpmnConnectionValidators;
|
|
1348
1524
|
exports.canContainBpmnElement = canContainBpmnElement;
|
|
1525
|
+
exports.computeBpmnSmartGuides = computeBpmnSmartGuides;
|
|
1349
1526
|
exports.connectBpmnCommand = connectBpmnCommand;
|
|
1350
1527
|
exports.copyBpmnElements = copyBpmnElements;
|
|
1351
1528
|
exports.createBpmnDiagramDocument = createBpmnDiagramDocument;
|
|
1529
|
+
exports.createBpmnEventBus = createBpmnEventBus;
|
|
1530
|
+
exports.createBpmnLayoutCache = createBpmnLayoutCache;
|
|
1352
1531
|
exports.createBpmnNode = createBpmnNode;
|
|
1353
1532
|
exports.createBpmnNodeCommand = createBpmnNodeCommand;
|
|
1354
1533
|
exports.deleteBpmnElementsCommand = deleteBpmnElementsCommand;
|
|
1355
1534
|
exports.deserializeBpmnDiagram = deserializeBpmnDiagram;
|
|
1535
|
+
exports.deserializeBpmnDiagramSnapshot = deserializeBpmnDiagramSnapshot;
|
|
1356
1536
|
exports.findBpmnContainerAt = findBpmnContainerAt;
|
|
1357
1537
|
exports.getBpmnDragHandleSelector = getBpmnDragHandleSelector;
|
|
1538
|
+
exports.getBpmnEdgeLabelLayout = getBpmnEdgeLabelLayout;
|
|
1358
1539
|
exports.getBpmnElementSize = getBpmnElementSize;
|
|
1359
1540
|
exports.getBpmnLaneIndexAtPosition = getBpmnLaneIndexAtPosition;
|
|
1360
1541
|
exports.getBpmnNodeAbsolutePosition = getBpmnNodeAbsolutePosition;
|
|
@@ -1362,6 +1543,8 @@ exports.getBpmnNodeCenter = getBpmnNodeCenter;
|
|
|
1362
1543
|
exports.getBpmnNodeSize = getBpmnNodeSize;
|
|
1363
1544
|
exports.getBpmnNodeZIndex = getBpmnNodeZIndex;
|
|
1364
1545
|
exports.getBpmnPoolLanes = getBpmnPoolLanes;
|
|
1546
|
+
exports.getBpmnTabOrder = getBpmnTabOrder;
|
|
1547
|
+
exports.groupAsBpmnSubProcessCommand = groupAsBpmnSubProcessCommand;
|
|
1365
1548
|
exports.inferBpmnEdgeType = inferBpmnEdgeType;
|
|
1366
1549
|
exports.isBpmnEdgeRoutingEditable = isBpmnEdgeRoutingEditable;
|
|
1367
1550
|
exports.isBpmnElementResizable = isBpmnElementResizable;
|
|
@@ -1371,13 +1554,16 @@ exports.layoutBpmnPoolLanes = layoutBpmnPoolLanes;
|
|
|
1371
1554
|
exports.moveBpmnLaneCommand = moveBpmnLaneCommand;
|
|
1372
1555
|
exports.parseBpmnDiagramDocument = parseBpmnDiagramDocument;
|
|
1373
1556
|
exports.pasteBpmnElementsCommand = pasteBpmnElementsCommand;
|
|
1557
|
+
exports.persistBpmnHistory = persistBpmnHistory;
|
|
1374
1558
|
exports.reorderBpmnLane = reorderBpmnLane;
|
|
1375
1559
|
exports.reorderBpmnLaneAfterDrop = reorderBpmnLaneAfterDrop;
|
|
1376
1560
|
exports.reorderBpmnLaneCommand = reorderBpmnLaneCommand;
|
|
1377
1561
|
exports.reparentBpmnNodeAtPosition = reparentBpmnNodeAtPosition;
|
|
1378
1562
|
exports.reparentBpmnNodeCommand = reparentBpmnNodeCommand;
|
|
1379
1563
|
exports.replaceBpmnNodeCommand = replaceBpmnNodeCommand;
|
|
1564
|
+
exports.resizeBpmnNodeByHandleCommand = resizeBpmnNodeByHandleCommand;
|
|
1380
1565
|
exports.resizeBpmnNodeCommand = resizeBpmnNodeCommand;
|
|
1566
|
+
exports.restoreBpmnHistory = restoreBpmnHistory;
|
|
1381
1567
|
exports.routeBpmnEdgeCommand = routeBpmnEdgeCommand;
|
|
1382
1568
|
exports.runBpmnCommand = runBpmnCommand;
|
|
1383
1569
|
exports.runBpmnCommands = runBpmnCommands;
|
|
@@ -1385,6 +1571,7 @@ exports.selectBpmnElementsCommand = selectBpmnElementsCommand;
|
|
|
1385
1571
|
exports.serializeBpmnDiagram = serializeBpmnDiagram;
|
|
1386
1572
|
exports.toBpmnRelativePosition = toBpmnRelativePosition;
|
|
1387
1573
|
exports.validateBpmnConnectionForEdgeType = validateBpmnConnectionForEdgeType;
|
|
1574
|
+
exports.withBpmnLayoutCache = withBpmnLayoutCache;
|
|
1388
1575
|
exports.withBpmnNodeZIndexes = withBpmnNodeZIndexes;
|
|
1389
1576
|
//# sourceMappingURL=index.cjs.map
|
|
1390
1577
|
//# sourceMappingURL=index.cjs.map
|