@aranzatech/diagrams-bpmn 0.2.13 → 0.2.15
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-Di2nzGs9.d.ts → catalog-CK3_4cOb.d.ts} +1 -1
- package/dist/{catalog-BiLXVn-2.d.cts → catalog-xOMF2ifW.d.cts} +1 -1
- package/dist/{chunk-UAWLUDKC.js → chunk-HOWK3ZOO.js} +105 -13
- package/dist/chunk-HOWK3ZOO.js.map +1 -0
- package/dist/{chunk-O3NWJ5H7.js → chunk-QSMP34CT.js} +38 -5
- package/dist/chunk-QSMP34CT.js.map +1 -0
- package/dist/{chunk-IMW6RG6F.js → chunk-X54NHLBA.js} +43 -190
- package/dist/chunk-X54NHLBA.js.map +1 -0
- package/dist/chunk-XMVV7FRZ.js +163 -0
- package/dist/chunk-XMVV7FRZ.js.map +1 -0
- package/dist/edges/index.cjs +35 -2
- package/dist/edges/index.cjs.map +1 -1
- package/dist/edges/index.js +1 -1
- package/dist/elements/index.d.cts +4 -4
- package/dist/elements/index.d.ts +4 -4
- package/dist/elk-FSFIEL6O.js +6 -0
- package/dist/elk-FSFIEL6O.js.map +1 -0
- package/dist/{guards-DPHXfpY8.d.cts → guards-C70uIY_O.d.cts} +1 -1
- package/dist/{guards-qgSeZEU4.d.ts → guards-foB6XIfZ.d.ts} +1 -1
- package/dist/index.cjs +180 -200
- 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 -3
- package/dist/layout/index.cjs +1428 -755
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.d.cts +23 -12
- package/dist/layout/index.d.ts +23 -12
- package/dist/layout/index.js +547 -72
- package/dist/layout/index.js.map +1 -1
- package/dist/modeling/index.cjs +103 -10
- package/dist/modeling/index.cjs.map +1 -1
- package/dist/modeling/index.d.cts +23 -6
- package/dist/modeling/index.d.ts +23 -6
- package/dist/modeling/index.js +1 -1
- package/dist/nodes/index.cjs +42 -188
- package/dist/nodes/index.cjs.map +1 -1
- package/dist/nodes/index.d.cts +1 -1
- package/dist/nodes/index.d.ts +1 -1
- package/dist/nodes/index.js +1 -1
- package/dist/{types-rEfHsPr5.d.ts → types-DG5yPKld.d.ts} +1 -1
- package/dist/{types-s2_VvPGf.d.cts → types-jIDz306Y.d.cts} +1 -1
- package/dist/{types-Dfrt0wVs.d.cts → types-y-ZbX-ff.d.cts} +3 -0
- package/dist/{types-Dfrt0wVs.d.ts → types-y-ZbX-ff.d.ts} +3 -0
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/xml/index.d.cts +3 -3
- package/dist/xml/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/chunk-IMW6RG6F.js.map +0 -1
- package/dist/chunk-O3NWJ5H7.js.map +0 -1
- package/dist/chunk-UAWLUDKC.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModelingRules, ClipboardState, DiagramSnapshot, DiagramState, DiagramEventBus, ResizeHandlePosition, DiagramCommand, ConnectionValidator, SmartGuideResult, SelectionState, LayoutCacheOptions, LayoutCache, EdgeLabelOffsetOptions, EdgeLabelLayout, CommandStackState, Viewport, LayoutFn } from '@aranzatech/diagrams-core';
|
|
2
2
|
import { DiagramDocument, CreateDiagramDocumentOptions } from '@aranzatech/diagrams-core/serialization';
|
|
3
|
-
import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-
|
|
4
|
-
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-
|
|
5
|
-
export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-
|
|
3
|
+
import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-y-ZbX-ff.cjs';
|
|
4
|
+
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-jIDz306Y.cjs';
|
|
5
|
+
export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-xOMF2ifW.cjs';
|
|
6
6
|
import '@xyflow/react';
|
|
7
7
|
|
|
8
8
|
type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
|
|
@@ -63,6 +63,20 @@ interface ReparentBpmnNodeAtPositionOptions {
|
|
|
63
63
|
y: number;
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
+
interface ResolveBpmnDropTargetOptions {
|
|
67
|
+
elementType: BpmnElementType;
|
|
68
|
+
position: {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
};
|
|
72
|
+
excludeId?: string;
|
|
73
|
+
}
|
|
74
|
+
interface BpmnDropTargetResolution {
|
|
75
|
+
container?: BpmnRFNode | undefined;
|
|
76
|
+
highlightedContainerId: string | null;
|
|
77
|
+
invalidContainerId: string | null;
|
|
78
|
+
isValid: boolean;
|
|
79
|
+
}
|
|
66
80
|
interface ResizeBpmnNodeOptions {
|
|
67
81
|
id: string;
|
|
68
82
|
width?: number;
|
|
@@ -115,8 +129,10 @@ declare function createBpmnNode(options: CreateBpmnNodeOptions): BpmnRFNode;
|
|
|
115
129
|
declare function getBpmnNodeZIndex(elementType: BpmnElementType): number;
|
|
116
130
|
declare function withBpmnNodeZIndexes(nodes: BpmnRFNode[]): BpmnRFNode[];
|
|
117
131
|
declare const BPMN_POOL_LANE_LAYOUT: {
|
|
118
|
-
readonly
|
|
119
|
-
|
|
132
|
+
readonly poolPad: 8;
|
|
133
|
+
/** @deprecated use poolPad */
|
|
134
|
+
readonly poolHeaderSize: 8;
|
|
135
|
+
readonly laneHeaderSize: 28;
|
|
120
136
|
readonly laneGap: 0;
|
|
121
137
|
readonly verticalPoolHeaderSize: 28;
|
|
122
138
|
readonly minLaneSize: 96;
|
|
@@ -164,6 +180,7 @@ declare function toBpmnRelativePosition(state: BpmnDiagramState, absolutePositio
|
|
|
164
180
|
y: number;
|
|
165
181
|
};
|
|
166
182
|
declare function findBpmnContainerAt(state: BpmnDiagramState, options: FindBpmnContainerAtOptions): BpmnRFNode | undefined;
|
|
183
|
+
declare function resolveBpmnDropTarget(state: BpmnDiagramState, options: ResolveBpmnDropTargetOptions): BpmnDropTargetResolution;
|
|
167
184
|
declare function getBpmnNodeCenter(node: BpmnRFNode, absolutePosition: {
|
|
168
185
|
x: number;
|
|
169
186
|
y: number;
|
|
@@ -285,4 +302,4 @@ declare function createBpmnLayoutCache(options?: LayoutCacheOptions): LayoutCach
|
|
|
285
302
|
*/
|
|
286
303
|
declare function withBpmnLayoutCache(layoutFn: LayoutFn<BpmnRFNode, BpmnRFEdge>, cache?: LayoutCache): LayoutFn<BpmnRFNode, BpmnRFEdge>;
|
|
287
304
|
|
|
288
|
-
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type 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, isBpmnDroppableInContainer, 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 };
|
|
305
|
+
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnDropTargetResolution, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type ResolveBpmnDropTargetOptions, type 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, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, resolveBpmnDropTarget, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
|
package/dist/modeling/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModelingRules, ClipboardState, DiagramSnapshot, DiagramState, DiagramEventBus, ResizeHandlePosition, DiagramCommand, ConnectionValidator, SmartGuideResult, SelectionState, LayoutCacheOptions, LayoutCache, EdgeLabelOffsetOptions, EdgeLabelLayout, CommandStackState, Viewport, LayoutFn } from '@aranzatech/diagrams-core';
|
|
2
2
|
import { DiagramDocument, CreateDiagramDocumentOptions } from '@aranzatech/diagrams-core/serialization';
|
|
3
|
-
import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-
|
|
4
|
-
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-
|
|
5
|
-
export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-
|
|
3
|
+
import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-y-ZbX-ff.js';
|
|
4
|
+
import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-DG5yPKld.js';
|
|
5
|
+
export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-CK3_4cOb.js';
|
|
6
6
|
import '@xyflow/react';
|
|
7
7
|
|
|
8
8
|
type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
|
|
@@ -63,6 +63,20 @@ interface ReparentBpmnNodeAtPositionOptions {
|
|
|
63
63
|
y: number;
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
+
interface ResolveBpmnDropTargetOptions {
|
|
67
|
+
elementType: BpmnElementType;
|
|
68
|
+
position: {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
};
|
|
72
|
+
excludeId?: string;
|
|
73
|
+
}
|
|
74
|
+
interface BpmnDropTargetResolution {
|
|
75
|
+
container?: BpmnRFNode | undefined;
|
|
76
|
+
highlightedContainerId: string | null;
|
|
77
|
+
invalidContainerId: string | null;
|
|
78
|
+
isValid: boolean;
|
|
79
|
+
}
|
|
66
80
|
interface ResizeBpmnNodeOptions {
|
|
67
81
|
id: string;
|
|
68
82
|
width?: number;
|
|
@@ -115,8 +129,10 @@ declare function createBpmnNode(options: CreateBpmnNodeOptions): BpmnRFNode;
|
|
|
115
129
|
declare function getBpmnNodeZIndex(elementType: BpmnElementType): number;
|
|
116
130
|
declare function withBpmnNodeZIndexes(nodes: BpmnRFNode[]): BpmnRFNode[];
|
|
117
131
|
declare const BPMN_POOL_LANE_LAYOUT: {
|
|
118
|
-
readonly
|
|
119
|
-
|
|
132
|
+
readonly poolPad: 8;
|
|
133
|
+
/** @deprecated use poolPad */
|
|
134
|
+
readonly poolHeaderSize: 8;
|
|
135
|
+
readonly laneHeaderSize: 28;
|
|
120
136
|
readonly laneGap: 0;
|
|
121
137
|
readonly verticalPoolHeaderSize: 28;
|
|
122
138
|
readonly minLaneSize: 96;
|
|
@@ -164,6 +180,7 @@ declare function toBpmnRelativePosition(state: BpmnDiagramState, absolutePositio
|
|
|
164
180
|
y: number;
|
|
165
181
|
};
|
|
166
182
|
declare function findBpmnContainerAt(state: BpmnDiagramState, options: FindBpmnContainerAtOptions): BpmnRFNode | undefined;
|
|
183
|
+
declare function resolveBpmnDropTarget(state: BpmnDiagramState, options: ResolveBpmnDropTargetOptions): BpmnDropTargetResolution;
|
|
167
184
|
declare function getBpmnNodeCenter(node: BpmnRFNode, absolutePosition: {
|
|
168
185
|
x: number;
|
|
169
186
|
y: number;
|
|
@@ -285,4 +302,4 @@ declare function createBpmnLayoutCache(options?: LayoutCacheOptions): LayoutCach
|
|
|
285
302
|
*/
|
|
286
303
|
declare function withBpmnLayoutCache(layoutFn: LayoutFn<BpmnRFNode, BpmnRFEdge>, cache?: LayoutCache): LayoutFn<BpmnRFNode, BpmnRFEdge>;
|
|
287
304
|
|
|
288
|
-
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type 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, isBpmnDroppableInContainer, 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 };
|
|
305
|
+
export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnDropTargetResolution, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type ResolveBpmnDropTargetOptions, type 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, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, resolveBpmnDropTarget, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
|
package/dist/modeling/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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, isBpmnDroppableInContainer, 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-
|
|
1
|
+
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, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, resolveBpmnDropTarget, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from '../chunk-HOWK3ZOO.js';
|
|
2
2
|
import '../chunk-RLAJNRF2.js';
|
|
3
3
|
export { getBpmnElementSize, isBpmnElementResizable } from '../chunk-L5Z22RLX.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/nodes/index.cjs
CHANGED
|
@@ -49,6 +49,7 @@ var BPMN_THEME = {
|
|
|
49
49
|
fillSoft: "#f8fbff",
|
|
50
50
|
fillSubtle: "#eef6ff",
|
|
51
51
|
stroke: "#334155",
|
|
52
|
+
strokeMuted: "#64748b",
|
|
52
53
|
strokeSelected: "#2563eb",
|
|
53
54
|
strokeWidth: 1.5,
|
|
54
55
|
strokeWidthSelected: 2.5,
|
|
@@ -688,71 +689,33 @@ function SubProcessNode({ data, selected }) {
|
|
|
688
689
|
}
|
|
689
690
|
);
|
|
690
691
|
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
const
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
flexDirection: "column",
|
|
709
|
-
border: `${sw}px solid ${stroke}`,
|
|
710
|
-
borderRadius: 4,
|
|
711
|
-
boxSizing: "border-box",
|
|
712
|
-
background: fill,
|
|
713
|
-
boxShadow: resolveNodeShadow(selected),
|
|
714
|
-
overflow: "hidden",
|
|
715
|
-
fontFamily: BPMN_THEME.fontFamily,
|
|
716
|
-
transition: BPMN_THEME.transition
|
|
717
|
-
},
|
|
718
|
-
children: [
|
|
719
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
720
|
-
"div",
|
|
721
|
-
{
|
|
722
|
-
"aria-label": "pool-header",
|
|
723
|
-
className: "pool-drag-handle",
|
|
724
|
-
style: {
|
|
725
|
-
height: HEADER_HEIGHT,
|
|
726
|
-
minHeight: HEADER_HEIGHT,
|
|
727
|
-
borderBottom: `${sw}px solid ${stroke}`,
|
|
728
|
-
display: "flex",
|
|
729
|
-
alignItems: "center",
|
|
730
|
-
justifyContent: "center",
|
|
731
|
-
background: headerFill,
|
|
732
|
-
padding: "0 8px",
|
|
733
|
-
cursor: "grab"
|
|
734
|
-
},
|
|
735
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
736
|
-
"span",
|
|
737
|
-
{
|
|
738
|
-
style: {
|
|
739
|
-
fontSize: BPMN_THEME.fontSize,
|
|
740
|
-
fontWeight: 600,
|
|
741
|
-
color: BPMN_THEME.labelColor,
|
|
742
|
-
whiteSpace: "nowrap",
|
|
743
|
-
overflow: "hidden",
|
|
744
|
-
textOverflow: "ellipsis"
|
|
745
|
-
},
|
|
746
|
-
children: d.label
|
|
747
|
-
}
|
|
748
|
-
)
|
|
749
|
-
}
|
|
750
|
-
),
|
|
751
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1, position: "relative" } })
|
|
752
|
-
]
|
|
692
|
+
function PoolNode({ selected }) {
|
|
693
|
+
const sw = selected ? 2.5 : 2;
|
|
694
|
+
const borderColor = selected ? "var(--color-accent)" : "color-mix(in srgb, var(--color-accent) 40%, transparent)";
|
|
695
|
+
const bg = "color-mix(in srgb, var(--color-accent) 3%, white)";
|
|
696
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
697
|
+
"div",
|
|
698
|
+
{
|
|
699
|
+
style: {
|
|
700
|
+
width: "100%",
|
|
701
|
+
height: "100%",
|
|
702
|
+
border: `${sw}px solid ${borderColor}`,
|
|
703
|
+
borderRadius: 6,
|
|
704
|
+
boxSizing: "border-box",
|
|
705
|
+
background: bg,
|
|
706
|
+
fontFamily: BPMN_THEME.fontFamily,
|
|
707
|
+
transition: "border-color 140ms ease",
|
|
708
|
+
overflow: "visible"
|
|
753
709
|
}
|
|
754
|
-
|
|
755
|
-
|
|
710
|
+
}
|
|
711
|
+
);
|
|
712
|
+
}
|
|
713
|
+
var LABEL_W = 28;
|
|
714
|
+
function LaneNode({ data, selected }) {
|
|
715
|
+
const d = data;
|
|
716
|
+
const stroke = selected ? BPMN_THEME.strokeSelected : d.color?.stroke ?? BPMN_THEME.strokeMuted;
|
|
717
|
+
const bodyFill = "#fbfdff";
|
|
718
|
+
const labelFill = d.color?.fill ?? "#eef6ff";
|
|
756
719
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
757
720
|
"div",
|
|
758
721
|
{
|
|
@@ -760,11 +723,11 @@ function PoolNode({ data, selected }) {
|
|
|
760
723
|
width: "100%",
|
|
761
724
|
height: "100%",
|
|
762
725
|
display: "flex",
|
|
763
|
-
|
|
764
|
-
|
|
726
|
+
flexDirection: "row",
|
|
727
|
+
border: `1px solid ${stroke}`,
|
|
728
|
+
borderRadius: 3,
|
|
765
729
|
boxSizing: "border-box",
|
|
766
|
-
background:
|
|
767
|
-
boxShadow: resolveNodeShadow(selected),
|
|
730
|
+
background: bodyFill,
|
|
768
731
|
overflow: "hidden",
|
|
769
732
|
fontFamily: BPMN_THEME.fontFamily,
|
|
770
733
|
transition: BPMN_THEME.transition
|
|
@@ -773,17 +736,19 @@ function PoolNode({ data, selected }) {
|
|
|
773
736
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
774
737
|
"div",
|
|
775
738
|
{
|
|
776
|
-
"aria-label": "
|
|
777
|
-
className: "
|
|
739
|
+
"aria-label": "lane-header",
|
|
740
|
+
className: "lane-drag-handle",
|
|
778
741
|
style: {
|
|
779
|
-
width:
|
|
780
|
-
minWidth:
|
|
781
|
-
borderRight:
|
|
742
|
+
width: LABEL_W,
|
|
743
|
+
minWidth: LABEL_W,
|
|
744
|
+
borderRight: `1px solid ${stroke}`,
|
|
782
745
|
display: "flex",
|
|
783
746
|
alignItems: "center",
|
|
784
747
|
justifyContent: "center",
|
|
785
|
-
background:
|
|
786
|
-
cursor: "grab"
|
|
748
|
+
background: labelFill,
|
|
749
|
+
cursor: "grab",
|
|
750
|
+
userSelect: "none",
|
|
751
|
+
flexShrink: 0
|
|
787
752
|
},
|
|
788
753
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
789
754
|
"span",
|
|
@@ -792,7 +757,7 @@ function PoolNode({ data, selected }) {
|
|
|
792
757
|
writingMode: "vertical-rl",
|
|
793
758
|
transform: "rotate(180deg)",
|
|
794
759
|
fontSize: BPMN_THEME.fontSize,
|
|
795
|
-
fontWeight:
|
|
760
|
+
fontWeight: 500,
|
|
796
761
|
color: BPMN_THEME.labelColor,
|
|
797
762
|
whiteSpace: "nowrap",
|
|
798
763
|
overflow: "hidden",
|
|
@@ -804,118 +769,7 @@ function PoolNode({ data, selected }) {
|
|
|
804
769
|
)
|
|
805
770
|
}
|
|
806
771
|
),
|
|
807
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1, position: "relative" } })
|
|
808
|
-
]
|
|
809
|
-
}
|
|
810
|
-
);
|
|
811
|
-
}
|
|
812
|
-
var HEADER_HEIGHT2 = 24;
|
|
813
|
-
var HEADER_WIDTH2 = 28;
|
|
814
|
-
function LaneNode({ data, selected }) {
|
|
815
|
-
const d = data;
|
|
816
|
-
const stroke = resolveStroke(selected, d.color?.stroke);
|
|
817
|
-
const sw = resolveStrokeWidth(selected);
|
|
818
|
-
const orientation = d.orientation ?? "horizontal";
|
|
819
|
-
const fill = d.color?.fill ?? "#fbfdff";
|
|
820
|
-
const headerFill = d.color?.fill ?? "#eef6ff";
|
|
821
|
-
if (orientation === "vertical") {
|
|
822
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
823
|
-
"div",
|
|
824
|
-
{
|
|
825
|
-
style: {
|
|
826
|
-
width: "100%",
|
|
827
|
-
height: "100%",
|
|
828
|
-
display: "flex",
|
|
829
|
-
border: `${sw}px solid ${stroke}`,
|
|
830
|
-
borderRadius: 2,
|
|
831
|
-
boxSizing: "border-box",
|
|
832
|
-
background: fill,
|
|
833
|
-
boxShadow: resolveNodeShadow(selected),
|
|
834
|
-
overflow: "hidden",
|
|
835
|
-
fontFamily: BPMN_THEME.fontFamily,
|
|
836
|
-
transition: BPMN_THEME.transition
|
|
837
|
-
},
|
|
838
|
-
children: [
|
|
839
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
840
|
-
"div",
|
|
841
|
-
{
|
|
842
|
-
"aria-label": "lane-header",
|
|
843
|
-
className: "lane-drag-handle",
|
|
844
|
-
style: {
|
|
845
|
-
width: HEADER_WIDTH2,
|
|
846
|
-
minWidth: HEADER_WIDTH2,
|
|
847
|
-
borderRight: `1px solid ${stroke}`,
|
|
848
|
-
display: "flex",
|
|
849
|
-
alignItems: "center",
|
|
850
|
-
justifyContent: "center",
|
|
851
|
-
background: headerFill,
|
|
852
|
-
padding: "6px 0",
|
|
853
|
-
cursor: "grab"
|
|
854
|
-
},
|
|
855
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
856
|
-
"span",
|
|
857
|
-
{
|
|
858
|
-
style: {
|
|
859
|
-
writingMode: "vertical-rl",
|
|
860
|
-
transform: "rotate(180deg)",
|
|
861
|
-
fontSize: BPMN_THEME.fontSize,
|
|
862
|
-
fontWeight: 500,
|
|
863
|
-
color: BPMN_THEME.labelColor,
|
|
864
|
-
whiteSpace: "nowrap",
|
|
865
|
-
overflow: "hidden",
|
|
866
|
-
textOverflow: "ellipsis",
|
|
867
|
-
maxHeight: "90%"
|
|
868
|
-
},
|
|
869
|
-
children: d.label
|
|
870
|
-
}
|
|
871
|
-
)
|
|
872
|
-
}
|
|
873
|
-
),
|
|
874
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1, position: "relative" } })
|
|
875
|
-
]
|
|
876
|
-
}
|
|
877
|
-
);
|
|
878
|
-
}
|
|
879
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
880
|
-
"div",
|
|
881
|
-
{
|
|
882
|
-
style: {
|
|
883
|
-
width: "100%",
|
|
884
|
-
height: "100%",
|
|
885
|
-
display: "flex",
|
|
886
|
-
flexDirection: "column",
|
|
887
|
-
border: `${sw}px solid ${stroke}`,
|
|
888
|
-
borderRadius: 2,
|
|
889
|
-
boxSizing: "border-box",
|
|
890
|
-
background: fill,
|
|
891
|
-
boxShadow: resolveNodeShadow(selected),
|
|
892
|
-
overflow: "hidden",
|
|
893
|
-
fontFamily: BPMN_THEME.fontFamily,
|
|
894
|
-
transition: BPMN_THEME.transition
|
|
895
|
-
},
|
|
896
|
-
children: [
|
|
897
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
898
|
-
"div",
|
|
899
|
-
{
|
|
900
|
-
"aria-label": "lane-header",
|
|
901
|
-
className: "lane-drag-handle",
|
|
902
|
-
style: {
|
|
903
|
-
height: HEADER_HEIGHT2,
|
|
904
|
-
minHeight: HEADER_HEIGHT2,
|
|
905
|
-
borderBottom: `1px solid ${stroke}`,
|
|
906
|
-
display: "flex",
|
|
907
|
-
alignItems: "center",
|
|
908
|
-
paddingLeft: 8,
|
|
909
|
-
background: headerFill,
|
|
910
|
-
fontSize: BPMN_THEME.fontSize,
|
|
911
|
-
fontWeight: 500,
|
|
912
|
-
color: BPMN_THEME.labelColor,
|
|
913
|
-
cursor: "grab"
|
|
914
|
-
},
|
|
915
|
-
children: d.label
|
|
916
|
-
}
|
|
917
|
-
),
|
|
918
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1, position: "relative" } })
|
|
772
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "nodrag", style: { flex: 1, position: "relative" } })
|
|
919
773
|
]
|
|
920
774
|
}
|
|
921
775
|
);
|