@aranzatech/diagrams-bpmn 0.2.14 → 0.3.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.
Files changed (81) hide show
  1. package/README.md +34 -4
  2. package/dist/{catalog-xOMF2ifW.d.cts → catalog-DAGDhO-D.d.cts} +1 -1
  3. package/dist/{catalog-CK3_4cOb.d.ts → catalog-Q1QmKLDD.d.ts} +1 -1
  4. package/dist/{chunk-YUE5EM3W.js → chunk-334WN4JZ.js} +276 -107
  5. package/dist/chunk-334WN4JZ.js.map +1 -0
  6. package/dist/chunk-77L6O76M.js +3 -0
  7. package/dist/chunk-77L6O76M.js.map +1 -0
  8. package/dist/{chunk-QSMP34CT.js → chunk-CPFUQM6H.js} +80 -44
  9. package/dist/chunk-CPFUQM6H.js.map +1 -0
  10. package/dist/chunk-FFWJA5BV.js +163 -0
  11. package/dist/chunk-FFWJA5BV.js.map +1 -0
  12. package/dist/{chunk-FBTGIYZS.js → chunk-JEGYVEJO.js} +80 -3
  13. package/dist/{chunk-FBTGIYZS.js.map → chunk-JEGYVEJO.js.map} +1 -1
  14. package/dist/chunk-TB6V4S5N.js +104 -0
  15. package/dist/chunk-TB6V4S5N.js.map +1 -0
  16. package/dist/{chunk-IMW6RG6F.js → chunk-X54NHLBA.js} +43 -190
  17. package/dist/chunk-X54NHLBA.js.map +1 -0
  18. package/dist/{chunk-UAWLUDKC.js → chunk-YAYZW45I.js} +481 -26
  19. package/dist/chunk-YAYZW45I.js.map +1 -0
  20. package/dist/edges/index.cjs +78 -42
  21. package/dist/edges/index.cjs.map +1 -1
  22. package/dist/edges/index.js +1 -1
  23. package/dist/elements/index.cjs +78 -0
  24. package/dist/elements/index.cjs.map +1 -1
  25. package/dist/elements/index.d.cts +24 -5
  26. package/dist/elements/index.d.ts +24 -5
  27. package/dist/elements/index.js +1 -1
  28. package/dist/elk-QT7H4252.js +6 -0
  29. package/dist/elk-QT7H4252.js.map +1 -0
  30. package/dist/extensions/index.cjs +108 -0
  31. package/dist/extensions/index.cjs.map +1 -0
  32. package/dist/extensions/index.d.cts +145 -0
  33. package/dist/extensions/index.d.ts +145 -0
  34. package/dist/extensions/index.js +4 -0
  35. package/dist/extensions/index.js.map +1 -0
  36. package/dist/index.cjs +1067 -358
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.cts +7 -5
  39. package/dist/index.d.ts +7 -5
  40. package/dist/index.js +7 -5
  41. package/dist/index.js.map +1 -1
  42. package/dist/layout/index.cjs +1396 -749
  43. package/dist/layout/index.cjs.map +1 -1
  44. package/dist/layout/index.d.cts +10 -4
  45. package/dist/layout/index.d.ts +10 -4
  46. package/dist/layout/index.js +543 -104
  47. package/dist/layout/index.js.map +1 -1
  48. package/dist/modeling/index.cjs +490 -23
  49. package/dist/modeling/index.cjs.map +1 -1
  50. package/dist/modeling/index.d.cts +81 -6
  51. package/dist/modeling/index.d.ts +81 -6
  52. package/dist/modeling/index.js +1 -1
  53. package/dist/nodes/index.cjs +42 -188
  54. package/dist/nodes/index.cjs.map +1 -1
  55. package/dist/nodes/index.d.cts +1 -1
  56. package/dist/nodes/index.d.ts +1 -1
  57. package/dist/nodes/index.js +1 -1
  58. package/dist/types-BX_o95GC.d.cts +40 -0
  59. package/dist/{types-y-ZbX-ff.d.cts → types-BYN4Zuee.d.cts} +15 -1
  60. package/dist/{types-y-ZbX-ff.d.ts → types-BYN4Zuee.d.ts} +15 -1
  61. package/dist/{types-jIDz306Y.d.cts → types-CggktCqr.d.cts} +4 -1
  62. package/dist/types-D7zel9dq.d.ts +40 -0
  63. package/dist/{types-DG5yPKld.d.ts → types-DmDODKlh.d.ts} +4 -1
  64. package/dist/validation/index.cjs +81 -125
  65. package/dist/validation/index.cjs.map +1 -1
  66. package/dist/validation/index.d.cts +22 -5
  67. package/dist/validation/index.d.ts +22 -5
  68. package/dist/validation/index.js +82 -126
  69. package/dist/validation/index.js.map +1 -1
  70. package/dist/xml/index.cjs +319 -49
  71. package/dist/xml/index.cjs.map +1 -1
  72. package/dist/xml/index.d.cts +5 -3
  73. package/dist/xml/index.d.ts +5 -3
  74. package/dist/xml/index.js +2 -1
  75. package/package.json +6 -1
  76. package/dist/chunk-IMW6RG6F.js.map +0 -1
  77. package/dist/chunk-QSMP34CT.js.map +0 -1
  78. package/dist/chunk-UAWLUDKC.js.map +0 -1
  79. package/dist/chunk-YUE5EM3W.js.map +0 -1
  80. package/dist/guards-C70uIY_O.d.cts +0 -16
  81. package/dist/guards-foB6XIfZ.d.ts +0 -16
@@ -1,9 +1,10 @@
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-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';
3
+ import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-BYN4Zuee.cjs';
4
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-CggktCqr.cjs';
5
+ export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-DAGDhO-D.cjs';
6
6
  import '@xyflow/react';
7
+ import '../types-BX_o95GC.cjs';
7
8
 
8
9
  type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
9
10
  type BpmnClipboardState = ClipboardState<BpmnRFNode, BpmnRFEdge>;
@@ -63,6 +64,45 @@ interface ReparentBpmnNodeAtPositionOptions {
63
64
  y: number;
64
65
  };
65
66
  }
67
+ interface ResolveBpmnDropTargetOptions {
68
+ elementType: BpmnElementType;
69
+ position: {
70
+ x: number;
71
+ y: number;
72
+ };
73
+ excludeId?: string;
74
+ }
75
+ interface BpmnDropTargetResolution {
76
+ container?: BpmnRFNode | undefined;
77
+ highlightedContainerId: string | null;
78
+ invalidContainerId: string | null;
79
+ isValid: boolean;
80
+ }
81
+ interface BpmnEdgeLaneContext {
82
+ edgeId: string;
83
+ sourceLaneId?: string | undefined;
84
+ targetLaneId?: string | undefined;
85
+ sourcePoolId?: string | undefined;
86
+ targetPoolId?: string | undefined;
87
+ sameLane: boolean;
88
+ samePool: boolean;
89
+ crossesLanesWithinPool: boolean;
90
+ crossesPools: boolean;
91
+ }
92
+ type BpmnConnectionResolution = {
93
+ ok: true;
94
+ edgeType: BpmnEdgeType;
95
+ } | {
96
+ ok: false;
97
+ reason: string;
98
+ };
99
+ interface BpmnBoundaryAttachment {
100
+ hostId: string;
101
+ position: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ }
66
106
  interface ResizeBpmnNodeOptions {
67
107
  id: string;
68
108
  width?: number;
@@ -115,12 +155,21 @@ declare function createBpmnNode(options: CreateBpmnNodeOptions): BpmnRFNode;
115
155
  declare function getBpmnNodeZIndex(elementType: BpmnElementType): number;
116
156
  declare function withBpmnNodeZIndexes(nodes: BpmnRFNode[]): BpmnRFNode[];
117
157
  declare const BPMN_POOL_LANE_LAYOUT: {
118
- readonly poolHeaderSize: 30;
119
- readonly laneHeaderSize: 24;
158
+ readonly poolPad: 8;
159
+ /** @deprecated use poolPad */
160
+ readonly poolHeaderSize: 8;
161
+ readonly laneHeaderSize: 28;
120
162
  readonly laneGap: 0;
121
163
  readonly verticalPoolHeaderSize: 28;
122
164
  readonly minLaneSize: 96;
123
165
  };
166
+ declare const BPMN_POOL_LANE_STACK_LAYOUT: {
167
+ readonly poolInnerPad: 8;
168
+ readonly laneGap: 8;
169
+ readonly minLaneWidth: 240;
170
+ readonly minLaneHeight: 80;
171
+ readonly defaultLaneHeight: 120;
172
+ };
124
173
  declare function getBpmnDragHandleSelector(elementType: BpmnElementType): string | undefined;
125
174
  declare const BPMN_SELECTION_STYLE: {
126
175
  readonly nodeOutline: "#2563eb";
@@ -146,6 +195,28 @@ declare function isBpmnProcessNode(type: BpmnElementType): boolean;
146
195
  declare function isBpmnDroppableInContainer(type: BpmnElementType): boolean;
147
196
  declare function canContainBpmnElement(parentType: BpmnElementType | undefined, childType: BpmnElementType): true | string;
148
197
  declare function getBpmnPoolLanes(state: BpmnDiagramState, poolId: string): BpmnRFNode[];
198
+ declare function getBpmnPoolOrientation(pool: BpmnRFNode): "horizontal" | "vertical";
199
+ declare function layoutBpmnPoolLaneNodesPreservingHeights(nodes: BpmnRFNode[], poolId: string): BpmnRFNode[];
200
+ declare function reorderBpmnPoolLaneAfterDropPreservingHeights(nodes: BpmnRFNode[], laneId: string): BpmnRFNode[];
201
+ declare function getAppendedBpmnLaneFrame(nodes: BpmnRFNode[], poolOrId: BpmnRFNode | string): {
202
+ position: {
203
+ x: number;
204
+ y: number;
205
+ };
206
+ width: number;
207
+ height: number;
208
+ laneIndex: number;
209
+ orientation: "horizontal" | "vertical";
210
+ } | null;
211
+ declare function getBpmnPoolLaneNodeMaxSize(state: BpmnDiagramState, nodeId: string): {
212
+ width: number;
213
+ height: number;
214
+ } | undefined;
215
+ declare function getBpmnPoolLaneNodeMinSize(state: BpmnDiagramState, nodeId: string): {
216
+ width: number;
217
+ height: number;
218
+ } | undefined;
219
+ declare function applyBpmnPoolLaneDimensionChange(nodes: BpmnRFNode[], previousNodes: BpmnRFNode[], nodeId: string, width: number, height: number): BpmnRFNode[];
149
220
  declare function layoutBpmnPoolLaneNodes(nodes: BpmnRFNode[], poolId: string): BpmnRFNode[];
150
221
  declare function reorderBpmnLaneAfterDrop(nodes: BpmnRFNode[], laneId: string): BpmnRFNode[];
151
222
  declare function getBpmnNodeSize(node: BpmnRFNode): {
@@ -164,6 +235,7 @@ declare function toBpmnRelativePosition(state: BpmnDiagramState, absolutePositio
164
235
  y: number;
165
236
  };
166
237
  declare function findBpmnContainerAt(state: BpmnDiagramState, options: FindBpmnContainerAtOptions): BpmnRFNode | undefined;
238
+ declare function resolveBpmnDropTarget(state: BpmnDiagramState, options: ResolveBpmnDropTargetOptions): BpmnDropTargetResolution;
167
239
  declare function getBpmnNodeCenter(node: BpmnRFNode, absolutePosition: {
168
240
  x: number;
169
241
  y: number;
@@ -171,6 +243,8 @@ declare function getBpmnNodeCenter(node: BpmnRFNode, absolutePosition: {
171
243
  x: number;
172
244
  y: number;
173
245
  };
246
+ declare function getBoundaryEventAttachment(state: BpmnDiagramState, boundaryNode: BpmnRFNode): BpmnBoundaryAttachment | null;
247
+ declare function getBpmnEdgeLaneContext(state: BpmnDiagramState, edgeOrId: BpmnRFEdge | string): BpmnEdgeLaneContext | undefined;
174
248
  declare function getBpmnLaneIndexAtPosition(state: BpmnDiagramState, poolId: string, position: {
175
249
  x: number;
176
250
  y: number;
@@ -178,6 +252,7 @@ declare function getBpmnLaneIndexAtPosition(state: BpmnDiagramState, poolId: str
178
252
  declare function layoutBpmnPoolLanes(state: BpmnDiagramState, poolId: string): BpmnDiagramState;
179
253
  declare function reorderBpmnLane(state: BpmnDiagramState, options: ReorderBpmnLaneOptions): BpmnDiagramState;
180
254
  declare function validateBpmnConnectionForEdgeType(state: BpmnDiagramState, edgeType: BpmnEdgeType, source: BpmnRFNode, target: BpmnRFNode): true | string;
255
+ declare function resolveBpmnConnection(state: BpmnDiagramState, sourceId: string, targetId: string, requestedType: BpmnEdgeType): BpmnConnectionResolution;
181
256
  declare const bpmnConnectionValidators: Array<ConnectionValidator<BpmnRFNode, BpmnRFEdge>>;
182
257
  declare const BPMN_MODELING_RULES: ModelingRules<BpmnRFNode, BpmnRFEdge>;
183
258
  /**
@@ -285,4 +360,4 @@ declare function createBpmnLayoutCache(options?: LayoutCacheOptions): LayoutCach
285
360
  */
286
361
  declare function withBpmnLayoutCache(layoutFn: LayoutFn<BpmnRFNode, BpmnRFEdge>, cache?: LayoutCache): LayoutFn<BpmnRFNode, BpmnRFEdge>;
287
362
 
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 };
363
+ export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_POOL_LANE_STACK_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnBoundaryAttachment, type BpmnClipboardState, type BpmnConnectionResolution, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnDropTargetResolution, type BpmnEdgeLaneContext, 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, applyBpmnPoolLaneDimensionChange, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getAppendedBpmnLaneFrame, getBoundaryEventAttachment, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnEdgeLaneContext, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLaneNodeMaxSize, getBpmnPoolLaneNodeMinSize, getBpmnPoolLanes, getBpmnPoolOrientation, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLaneNodesPreservingHeights, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reorderBpmnPoolLaneAfterDropPreservingHeights, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, resolveBpmnConnection, resolveBpmnDropTarget, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
@@ -1,9 +1,10 @@
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-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';
3
+ import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-BYN4Zuee.js';
4
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-DmDODKlh.js';
5
+ export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-Q1QmKLDD.js';
6
6
  import '@xyflow/react';
7
+ import '../types-D7zel9dq.js';
7
8
 
8
9
  type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
9
10
  type BpmnClipboardState = ClipboardState<BpmnRFNode, BpmnRFEdge>;
@@ -63,6 +64,45 @@ interface ReparentBpmnNodeAtPositionOptions {
63
64
  y: number;
64
65
  };
65
66
  }
67
+ interface ResolveBpmnDropTargetOptions {
68
+ elementType: BpmnElementType;
69
+ position: {
70
+ x: number;
71
+ y: number;
72
+ };
73
+ excludeId?: string;
74
+ }
75
+ interface BpmnDropTargetResolution {
76
+ container?: BpmnRFNode | undefined;
77
+ highlightedContainerId: string | null;
78
+ invalidContainerId: string | null;
79
+ isValid: boolean;
80
+ }
81
+ interface BpmnEdgeLaneContext {
82
+ edgeId: string;
83
+ sourceLaneId?: string | undefined;
84
+ targetLaneId?: string | undefined;
85
+ sourcePoolId?: string | undefined;
86
+ targetPoolId?: string | undefined;
87
+ sameLane: boolean;
88
+ samePool: boolean;
89
+ crossesLanesWithinPool: boolean;
90
+ crossesPools: boolean;
91
+ }
92
+ type BpmnConnectionResolution = {
93
+ ok: true;
94
+ edgeType: BpmnEdgeType;
95
+ } | {
96
+ ok: false;
97
+ reason: string;
98
+ };
99
+ interface BpmnBoundaryAttachment {
100
+ hostId: string;
101
+ position: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ }
66
106
  interface ResizeBpmnNodeOptions {
67
107
  id: string;
68
108
  width?: number;
@@ -115,12 +155,21 @@ declare function createBpmnNode(options: CreateBpmnNodeOptions): BpmnRFNode;
115
155
  declare function getBpmnNodeZIndex(elementType: BpmnElementType): number;
116
156
  declare function withBpmnNodeZIndexes(nodes: BpmnRFNode[]): BpmnRFNode[];
117
157
  declare const BPMN_POOL_LANE_LAYOUT: {
118
- readonly poolHeaderSize: 30;
119
- readonly laneHeaderSize: 24;
158
+ readonly poolPad: 8;
159
+ /** @deprecated use poolPad */
160
+ readonly poolHeaderSize: 8;
161
+ readonly laneHeaderSize: 28;
120
162
  readonly laneGap: 0;
121
163
  readonly verticalPoolHeaderSize: 28;
122
164
  readonly minLaneSize: 96;
123
165
  };
166
+ declare const BPMN_POOL_LANE_STACK_LAYOUT: {
167
+ readonly poolInnerPad: 8;
168
+ readonly laneGap: 8;
169
+ readonly minLaneWidth: 240;
170
+ readonly minLaneHeight: 80;
171
+ readonly defaultLaneHeight: 120;
172
+ };
124
173
  declare function getBpmnDragHandleSelector(elementType: BpmnElementType): string | undefined;
125
174
  declare const BPMN_SELECTION_STYLE: {
126
175
  readonly nodeOutline: "#2563eb";
@@ -146,6 +195,28 @@ declare function isBpmnProcessNode(type: BpmnElementType): boolean;
146
195
  declare function isBpmnDroppableInContainer(type: BpmnElementType): boolean;
147
196
  declare function canContainBpmnElement(parentType: BpmnElementType | undefined, childType: BpmnElementType): true | string;
148
197
  declare function getBpmnPoolLanes(state: BpmnDiagramState, poolId: string): BpmnRFNode[];
198
+ declare function getBpmnPoolOrientation(pool: BpmnRFNode): "horizontal" | "vertical";
199
+ declare function layoutBpmnPoolLaneNodesPreservingHeights(nodes: BpmnRFNode[], poolId: string): BpmnRFNode[];
200
+ declare function reorderBpmnPoolLaneAfterDropPreservingHeights(nodes: BpmnRFNode[], laneId: string): BpmnRFNode[];
201
+ declare function getAppendedBpmnLaneFrame(nodes: BpmnRFNode[], poolOrId: BpmnRFNode | string): {
202
+ position: {
203
+ x: number;
204
+ y: number;
205
+ };
206
+ width: number;
207
+ height: number;
208
+ laneIndex: number;
209
+ orientation: "horizontal" | "vertical";
210
+ } | null;
211
+ declare function getBpmnPoolLaneNodeMaxSize(state: BpmnDiagramState, nodeId: string): {
212
+ width: number;
213
+ height: number;
214
+ } | undefined;
215
+ declare function getBpmnPoolLaneNodeMinSize(state: BpmnDiagramState, nodeId: string): {
216
+ width: number;
217
+ height: number;
218
+ } | undefined;
219
+ declare function applyBpmnPoolLaneDimensionChange(nodes: BpmnRFNode[], previousNodes: BpmnRFNode[], nodeId: string, width: number, height: number): BpmnRFNode[];
149
220
  declare function layoutBpmnPoolLaneNodes(nodes: BpmnRFNode[], poolId: string): BpmnRFNode[];
150
221
  declare function reorderBpmnLaneAfterDrop(nodes: BpmnRFNode[], laneId: string): BpmnRFNode[];
151
222
  declare function getBpmnNodeSize(node: BpmnRFNode): {
@@ -164,6 +235,7 @@ declare function toBpmnRelativePosition(state: BpmnDiagramState, absolutePositio
164
235
  y: number;
165
236
  };
166
237
  declare function findBpmnContainerAt(state: BpmnDiagramState, options: FindBpmnContainerAtOptions): BpmnRFNode | undefined;
238
+ declare function resolveBpmnDropTarget(state: BpmnDiagramState, options: ResolveBpmnDropTargetOptions): BpmnDropTargetResolution;
167
239
  declare function getBpmnNodeCenter(node: BpmnRFNode, absolutePosition: {
168
240
  x: number;
169
241
  y: number;
@@ -171,6 +243,8 @@ declare function getBpmnNodeCenter(node: BpmnRFNode, absolutePosition: {
171
243
  x: number;
172
244
  y: number;
173
245
  };
246
+ declare function getBoundaryEventAttachment(state: BpmnDiagramState, boundaryNode: BpmnRFNode): BpmnBoundaryAttachment | null;
247
+ declare function getBpmnEdgeLaneContext(state: BpmnDiagramState, edgeOrId: BpmnRFEdge | string): BpmnEdgeLaneContext | undefined;
174
248
  declare function getBpmnLaneIndexAtPosition(state: BpmnDiagramState, poolId: string, position: {
175
249
  x: number;
176
250
  y: number;
@@ -178,6 +252,7 @@ declare function getBpmnLaneIndexAtPosition(state: BpmnDiagramState, poolId: str
178
252
  declare function layoutBpmnPoolLanes(state: BpmnDiagramState, poolId: string): BpmnDiagramState;
179
253
  declare function reorderBpmnLane(state: BpmnDiagramState, options: ReorderBpmnLaneOptions): BpmnDiagramState;
180
254
  declare function validateBpmnConnectionForEdgeType(state: BpmnDiagramState, edgeType: BpmnEdgeType, source: BpmnRFNode, target: BpmnRFNode): true | string;
255
+ declare function resolveBpmnConnection(state: BpmnDiagramState, sourceId: string, targetId: string, requestedType: BpmnEdgeType): BpmnConnectionResolution;
181
256
  declare const bpmnConnectionValidators: Array<ConnectionValidator<BpmnRFNode, BpmnRFEdge>>;
182
257
  declare const BPMN_MODELING_RULES: ModelingRules<BpmnRFNode, BpmnRFEdge>;
183
258
  /**
@@ -285,4 +360,4 @@ declare function createBpmnLayoutCache(options?: LayoutCacheOptions): LayoutCach
285
360
  */
286
361
  declare function withBpmnLayoutCache(layoutFn: LayoutFn<BpmnRFNode, BpmnRFEdge>, cache?: LayoutCache): LayoutFn<BpmnRFNode, BpmnRFEdge>;
287
362
 
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 };
363
+ export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_POOL_LANE_STACK_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnBoundaryAttachment, type BpmnClipboardState, type BpmnConnectionResolution, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnDropTargetResolution, type BpmnEdgeLaneContext, 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, applyBpmnPoolLaneDimensionChange, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getAppendedBpmnLaneFrame, getBoundaryEventAttachment, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnEdgeLaneContext, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLaneNodeMaxSize, getBpmnPoolLaneNodeMinSize, getBpmnPoolLanes, getBpmnPoolOrientation, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLaneNodesPreservingHeights, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reorderBpmnPoolLaneAfterDropPreservingHeights, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, resolveBpmnConnection, resolveBpmnDropTarget, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
@@ -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-UAWLUDKC.js';
1
+ export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_POOL_LANE_STACK_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, applyBpmnPoolLaneDimensionChange, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getAppendedBpmnLaneFrame, getBoundaryEventAttachment, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnEdgeLaneContext, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLaneNodeMaxSize, getBpmnPoolLaneNodeMinSize, getBpmnPoolLanes, getBpmnPoolOrientation, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLaneNodesPreservingHeights, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reorderBpmnPoolLaneAfterDropPreservingHeights, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, resolveBpmnConnection, resolveBpmnDropTarget, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from '../chunk-YAYZW45I.js';
2
2
  import '../chunk-RLAJNRF2.js';
3
3
  export { getBpmnElementSize, isBpmnElementResizable } from '../chunk-L5Z22RLX.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -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
- var HEADER_WIDTH = 30;
692
- var HEADER_HEIGHT = 28;
693
- function PoolNode({ data, selected }) {
694
- const d = data;
695
- const stroke = resolveStroke(selected, d.color?.stroke);
696
- const sw = resolveStrokeWidth(selected);
697
- const orientation = d.orientation ?? "horizontal";
698
- const fill = d.color?.fill ?? "#f8fbff";
699
- const headerFill = d.color?.fill ?? "#eaf2ff";
700
- if (orientation === "vertical") {
701
- return /* @__PURE__ */ jsxRuntime.jsxs(
702
- "div",
703
- {
704
- style: {
705
- width: "100%",
706
- height: "100%",
707
- display: "flex",
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
- border: `${sw}px solid ${stroke}`,
764
- borderRadius: 4,
726
+ flexDirection: "row",
727
+ border: `1px solid ${stroke}`,
728
+ borderRadius: 3,
765
729
  boxSizing: "border-box",
766
- background: fill,
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": "pool-header",
777
- className: "pool-drag-handle",
739
+ "aria-label": "lane-header",
740
+ className: "lane-drag-handle",
778
741
  style: {
779
- width: HEADER_WIDTH,
780
- minWidth: HEADER_WIDTH,
781
- borderRight: `${sw}px solid ${stroke}`,
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: headerFill,
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: 600,
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
  );