@aranzatech/diagrams-bpmn 0.2.3 → 0.2.4
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/{chunk-H3YMTGFG.js → chunk-IMW6RG6F.js} +3 -3
- package/dist/{chunk-H3YMTGFG.js.map → chunk-IMW6RG6F.js.map} +1 -1
- package/dist/{chunk-ECTJRD7Z.js → chunk-O3NWJ5H7.js} +9 -18
- package/dist/chunk-O3NWJ5H7.js.map +1 -0
- package/dist/{chunk-KALSGH4D.js → chunk-PDTXM32P.js} +6 -6
- package/dist/chunk-PDTXM32P.js.map +1 -0
- package/dist/edges/index.cjs +6 -15
- package/dist/edges/index.cjs.map +1 -1
- package/dist/edges/index.js +2 -2
- package/dist/index.cjs +22 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/nodes/index.cjs +16 -16
- package/dist/nodes/index.cjs.map +1 -1
- package/dist/nodes/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-ECTJRD7Z.js.map +0 -1
- package/dist/chunk-KALSGH4D.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './chunk-OZKTOILD.js';
|
|
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-
|
|
3
|
-
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './chunk-
|
|
4
|
-
import './chunk-
|
|
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
|
+
export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './chunk-O3NWJ5H7.js';
|
|
4
|
+
import './chunk-PDTXM32P.js';
|
|
5
5
|
export { parseBpmnXml, serializeBpmnXml } from './chunk-33AR3PXF.js';
|
|
6
6
|
export { createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './chunk-QOGZITWB.js';
|
|
7
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-7MKU37XQ.js';
|
package/dist/nodes/index.cjs
CHANGED
|
@@ -55,8 +55,8 @@ var BPMN_THEME = {
|
|
|
55
55
|
fontFamily: "Inter, system-ui, sans-serif",
|
|
56
56
|
fontSize: 11,
|
|
57
57
|
labelColor: "#0f172a",
|
|
58
|
-
shadow: "
|
|
59
|
-
shadowSelected: "
|
|
58
|
+
shadow: "none",
|
|
59
|
+
shadowSelected: "none",
|
|
60
60
|
transition: "box-shadow 140ms ease, filter 140ms ease, transform 140ms ease"
|
|
61
61
|
};
|
|
62
62
|
function resolveStroke(selected, override) {
|
|
@@ -66,8 +66,8 @@ function resolveStroke(selected, override) {
|
|
|
66
66
|
function resolveStrokeWidth(selected) {
|
|
67
67
|
return selected ? BPMN_THEME.strokeWidthSelected : BPMN_THEME.strokeWidth;
|
|
68
68
|
}
|
|
69
|
-
function resolveShapeFilter(
|
|
70
|
-
return
|
|
69
|
+
function resolveShapeFilter(_selected) {
|
|
70
|
+
return void 0;
|
|
71
71
|
}
|
|
72
72
|
function resolveNodeShadow(selected) {
|
|
73
73
|
return selected ? BPMN_THEME.shadowSelected : BPMN_THEME.shadow;
|
|
@@ -224,7 +224,7 @@ function StartEventNode({ data, selected }) {
|
|
|
224
224
|
const trigger = d.trigger ?? "none";
|
|
225
225
|
const dashArray = d.isNonInterrupting ? "4 2" : void 0;
|
|
226
226
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: SIZE, height: SIZE, position: "relative" }, children: [
|
|
227
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE, height: SIZE, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
227
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE, height: SIZE, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
228
228
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
229
229
|
"circle",
|
|
230
230
|
{
|
|
@@ -253,7 +253,7 @@ function EndEventNode({ data, selected }) {
|
|
|
253
253
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
254
254
|
const trigger = d.trigger ?? "none";
|
|
255
255
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: SIZE2, height: SIZE2, position: "relative" }, children: [
|
|
256
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE2, height: SIZE2, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE2, height: SIZE2, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
257
257
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
258
258
|
"circle",
|
|
259
259
|
{
|
|
@@ -283,7 +283,7 @@ function IntermediateCatchEventNode({ data, selected }) {
|
|
|
283
283
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
284
284
|
const trigger = d.trigger && d.trigger !== "none" ? d.trigger : "timer";
|
|
285
285
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: SIZE3, height: SIZE3, position: "relative" }, children: [
|
|
286
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE3, height: SIZE3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
286
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE3, height: SIZE3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
287
287
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: CX3, cy: CX3, r: R_OUTER, fill, stroke, strokeWidth: sw }),
|
|
288
288
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: CX3, cy: CX3, r: R_INNER, fill: "none", stroke, strokeWidth: sw }),
|
|
289
289
|
/* @__PURE__ */ jsxRuntime.jsx(EventMarker, { cx: CX3, cy: CX3, trigger, filled: false, stroke, bg: fill, r: ICON_R })
|
|
@@ -299,7 +299,7 @@ function IntermediateThrowEventNode({ data, selected }) {
|
|
|
299
299
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
300
300
|
const trigger = d.trigger && d.trigger !== "none" ? d.trigger : "message";
|
|
301
301
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: SIZE3, height: SIZE3, position: "relative" }, children: [
|
|
302
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE3, height: SIZE3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
302
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE3, height: SIZE3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
303
303
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: CX3, cy: CX3, r: R_OUTER, fill, stroke, strokeWidth: sw }),
|
|
304
304
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: CX3, cy: CX3, r: R_INNER, fill: stroke, stroke, strokeWidth: sw }),
|
|
305
305
|
/* @__PURE__ */ jsxRuntime.jsx(EventMarker, { cx: CX3, cy: CX3, trigger, filled: true, stroke: fill, bg: stroke, r: ICON_R })
|
|
@@ -316,7 +316,7 @@ function BoundaryEventNode({ data, selected }) {
|
|
|
316
316
|
const trigger = d.trigger && d.trigger !== "none" ? d.trigger : "timer";
|
|
317
317
|
const dashArray = d.isNonInterrupting ? "4 2" : void 0;
|
|
318
318
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: SIZE3, height: SIZE3, position: "relative" }, children: [
|
|
319
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE3, height: SIZE3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
319
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE3, height: SIZE3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
320
320
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
321
321
|
"circle",
|
|
322
322
|
{
|
|
@@ -591,7 +591,7 @@ function GatewayNode({ data, selected }) {
|
|
|
591
591
|
const stroke = resolveStroke(selected, d.color?.stroke);
|
|
592
592
|
const sw = resolveStrokeWidth(selected);
|
|
593
593
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: SIZE4, height: SIZE4, position: "relative" }, children: [
|
|
594
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE4, height: SIZE4, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
594
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: SIZE4, height: SIZE4, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
595
595
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
596
596
|
"polygon",
|
|
597
597
|
{
|
|
@@ -1027,7 +1027,7 @@ function DataObjectNode({ data, selected }) {
|
|
|
1027
1027
|
`L ${W} ${FOLD}`
|
|
1028
1028
|
].join(" ");
|
|
1029
1029
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: W, height: H2, position: "relative" }, children: [
|
|
1030
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W, height: H2, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
1030
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W, height: H2, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
1031
1031
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: path, fill, stroke, strokeWidth: sw }),
|
|
1032
1032
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: foldPath2, fill: "none", stroke, strokeWidth: sw })
|
|
1033
1033
|
] }),
|
|
@@ -1045,7 +1045,7 @@ function DataStoreNode({ data, selected }) {
|
|
|
1045
1045
|
const sw = resolveStrokeWidth(selected);
|
|
1046
1046
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
1047
1047
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: DS_W, height: DS_H, position: "relative" }, children: [
|
|
1048
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: DS_W, height: DS_H, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
1048
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: DS_W, height: DS_H, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
1049
1049
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1050
1050
|
"path",
|
|
1051
1051
|
{
|
|
@@ -1091,7 +1091,7 @@ function DataObjectReferenceNode({ data, selected }) {
|
|
|
1091
1091
|
const sw = resolveStrokeWidth(selected);
|
|
1092
1092
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
1093
1093
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: W2, height: H3, position: "relative" }, children: [
|
|
1094
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W2, height: H3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
1094
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W2, height: H3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
1095
1095
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: documentPath(), fill, stroke, strokeWidth: sw }),
|
|
1096
1096
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: foldPath(), fill: "none", stroke, strokeWidth: sw }),
|
|
1097
1097
|
d.isCollection && collectionLines(stroke, sw)
|
|
@@ -1106,7 +1106,7 @@ function DataInputNode({ data, selected }) {
|
|
|
1106
1106
|
const sw = resolveStrokeWidth(selected);
|
|
1107
1107
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
1108
1108
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: W2, height: H3, position: "relative" }, children: [
|
|
1109
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W2, height: H3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
1109
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W2, height: H3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
1110
1110
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: documentPath(), fill, stroke, strokeWidth: sw }),
|
|
1111
1111
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: foldPath(), fill: "none", stroke, strokeWidth: sw }),
|
|
1112
1112
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1130,7 +1130,7 @@ function DataOutputNode({ data, selected }) {
|
|
|
1130
1130
|
const sw = resolveStrokeWidth(selected);
|
|
1131
1131
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
1132
1132
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: W2, height: H3, position: "relative" }, children: [
|
|
1133
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W2, height: H3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
1133
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: W2, height: H3, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
1134
1134
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: documentPath(), fill, stroke, strokeWidth: sw }),
|
|
1135
1135
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: foldPath(), fill: "none", stroke, strokeWidth: sw }),
|
|
1136
1136
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1158,7 +1158,7 @@ function DataStoreReferenceNode({ data, selected }) {
|
|
|
1158
1158
|
const sw = resolveStrokeWidth(selected);
|
|
1159
1159
|
const fill = d.color?.fill ?? BPMN_THEME.fill;
|
|
1160
1160
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { width: DS_W2, height: DS_H2, position: "relative" }, children: [
|
|
1161
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: DS_W2, height: DS_H2, style: { overflow: "visible", display: "block", filter: resolveShapeFilter(
|
|
1161
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: DS_W2, height: DS_H2, style: { overflow: "visible", display: "block", filter: resolveShapeFilter() }, children: [
|
|
1162
1162
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1163
1163
|
"path",
|
|
1164
1164
|
{
|