@focus.matters/diagrams 0.1.2 → 0.2.20
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/{DirectedPoint-BcpEj8ub.js → DirectedPoint-DNhrnCXr.js} +2 -2
- package/dist/DirectedPoint-DNhrnCXr.js.map +1 -0
- package/dist/diagrams.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +16448 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/src/Diagrams/components/objects/RenderEdge/EdgeMidpoints.d.ts +2 -1
- package/dist/src/Diagrams/components/objects/RenderEdge/types.d.ts +6 -3
- package/dist/src/Diagrams/components/objects/edgeLabelPlacement.d.ts +4 -1
- package/dist/src/Diagrams/components/stopDiagramControlEvent.d.ts +11 -0
- package/dist/src/Diagrams/components/useDiagramPointerCapture.d.ts +14 -0
- package/dist/src/Diagrams/context-menu/buildDiagramContextMenu.d.ts +1 -0
- package/dist/src/Diagrams/custom/bpmn/config/BPMNLabels.d.ts +1 -1
- package/dist/src/Diagrams/custom/bpmn/extensions/BPMNModelerExtension.d.ts +14 -1
- package/dist/src/Diagrams/custom/bpmn/nodes/BPMNEventDefinition.d.ts +11 -2
- package/dist/src/Diagrams/custom/bpmn/nodes/DocumentNode.d.ts +75 -1
- package/dist/src/Diagrams/custom/bpmn/nodes/GateNode.d.ts +2 -1
- package/dist/src/Diagrams/custom/bpmn/nodes/TaskNode.d.ts +16 -0
- package/dist/src/Diagrams/custom/bpmn/ui/BPMNElementMenu.d.ts +2 -1
- package/dist/src/Diagrams/custom/bpmn/ui/BPMNIcon.d.ts +1 -1
- package/dist/src/Diagrams/custom/bpmn/ui/BPMNPropertiesPanel.d.ts +11 -1
- package/dist/src/Diagrams/custom/bpmnExecution/BPMNExecutionDiagram.d.ts +30 -0
- package/dist/src/Diagrams/custom/bpmnExecution/BPMNExecutionEdge.d.ts +67 -0
- package/dist/src/Diagrams/custom/bpmnExecution/BPMNExecutionExtension.d.ts +9 -0
- package/dist/src/Diagrams/custom/bpmnExecution/BPMNExecutionMarker.d.ts +12 -0
- package/dist/src/Diagrams/custom/bpmnExecution/BPMNNodeExecutionState.d.ts +27 -0
- package/dist/src/Diagrams/custom/bpmnExecution/isBPMNExecutionNode.d.ts +7 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionBlackBoxPoolNode.d.ts +70 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionDataStoreNode.d.ts +70 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionDocumentAnnotationNode.d.ts +70 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionDocumentNode.d.ts +71 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionEventNode.d.ts +81 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionGateNode.d.ts +71 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionLanes.d.ts +14 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionTaskNode.d.ts +76 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionTextAnnotationNode.d.ts +70 -0
- package/dist/src/Diagrams/custom/bpmnExecution/nodes/BPMNExecutionUnknownNode.d.ts +71 -0
- package/dist/src/Diagrams/custom/bpmnExecution/promoteBPMNExecutionEdge.d.ts +3 -0
- package/dist/src/Diagrams/custom/bpmnExecution/promoteBPMNExecutionNode.d.ts +3 -0
- package/dist/src/Diagrams/custom/bpmnExecution/types.d.ts +38 -0
- package/dist/src/Diagrams/custom/bpmnExecution/ui/BPMNExecutionMarkers.d.ts +6 -0
- package/dist/src/Diagrams/custom/bpmnExecution/ui/BPMNExecutionPropertiesPanel.d.ts +6 -0
- package/dist/src/Diagrams/custom/mr/MRDiagram.d.ts +17 -0
- package/dist/src/Diagrams/custom/mr/bindAttributeRelationshipHover.d.ts +3 -0
- package/dist/src/Diagrams/custom/mr/edges/MRForeignKeyEdge.d.ts +77 -0
- package/dist/src/Diagrams/custom/mr/extensions/MRModelerExtension.d.ts +45 -0
- package/dist/src/Diagrams/custom/mr/extensions/MRPropertyChangeEvent.d.ts +4 -0
- package/dist/src/Diagrams/custom/mr/layout/applyMRAutoLayout.d.ts +3 -0
- package/dist/src/Diagrams/custom/mr/nodes/MRTableNode.d.ts +105 -0
- package/dist/src/Diagrams/custom/mr/types.d.ts +51 -0
- package/dist/src/Diagrams/custom/mr/ui/MRPropertiesPanel.d.ts +6 -0
- package/dist/src/Diagrams/store/Canvas.d.ts +45 -0
- package/dist/src/Diagrams/store/Diagram.d.ts +6 -0
- package/dist/src/Diagrams/store/elements/Events.d.ts +2 -1
- package/dist/src/Diagrams/store/revealDiagramNode.d.ts +10 -0
- package/dist/src/index.d.ts +26 -0
- package/package.json +50 -45
- package/dist/DirectedPoint-BcpEj8ub.js.map +0 -1
- package/dist/index-hTkL5cDr.js +0 -12037
- package/dist/index-hTkL5cDr.js.map +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { DataStoreNode } from '../../bpmn/nodes/DataStoreNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a standard BPMN data store with optional execution metadata support. */
|
|
5
|
+
export declare class BPMNExecutionDataStoreNode extends DataStoreNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof DataStoreNode>[0], state: ConstructorParameters<typeof DataStoreNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes optional execution metadata beside normal data-store semantics. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
box: [number, number, number, number];
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
movable: boolean | undefined;
|
|
17
|
+
selectable: boolean | undefined;
|
|
18
|
+
selected: boolean | undefined;
|
|
19
|
+
gateways: {
|
|
20
|
+
coordinates: [number, number];
|
|
21
|
+
fill: string | undefined;
|
|
22
|
+
id: string;
|
|
23
|
+
orientation: import('../../../store/types').TOrientation;
|
|
24
|
+
radius: number;
|
|
25
|
+
stroke: string | undefined;
|
|
26
|
+
strokeWidth: number;
|
|
27
|
+
outEdges: {
|
|
28
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
29
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
30
|
+
displacementEnd: [number, number] | undefined;
|
|
31
|
+
displacementStart: [number, number] | undefined;
|
|
32
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
33
|
+
labels: {
|
|
34
|
+
alignment: "right" | "left" | "center";
|
|
35
|
+
id: string;
|
|
36
|
+
size: {
|
|
37
|
+
height: number;
|
|
38
|
+
width: number;
|
|
39
|
+
};
|
|
40
|
+
text: string;
|
|
41
|
+
position: [number, number];
|
|
42
|
+
}[];
|
|
43
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
44
|
+
startAnchor: {
|
|
45
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
46
|
+
position: [number, number] | undefined;
|
|
47
|
+
};
|
|
48
|
+
endAnchor: {
|
|
49
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
50
|
+
position: [number, number] | undefined;
|
|
51
|
+
};
|
|
52
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
53
|
+
stroke: string | undefined;
|
|
54
|
+
strokeWidth: number | undefined;
|
|
55
|
+
to: string;
|
|
56
|
+
toParentId: string;
|
|
57
|
+
class: string;
|
|
58
|
+
}[];
|
|
59
|
+
class: string;
|
|
60
|
+
}[];
|
|
61
|
+
fill: string | undefined;
|
|
62
|
+
labelFontSize: number | undefined;
|
|
63
|
+
labelOffset: [number, number] | undefined;
|
|
64
|
+
stroke: string | undefined;
|
|
65
|
+
strokewWidth: number | undefined;
|
|
66
|
+
class: string;
|
|
67
|
+
};
|
|
68
|
+
/** Restores data-store state before applying independent execution metadata. */
|
|
69
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { DocumentAnnotationNode } from '../../bpmn/nodes/DocumentAnnotationNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a BPMN document annotation without changing its resizing or text behavior. */
|
|
5
|
+
export declare class BPMNExecutionDocumentAnnotationNode extends DocumentAnnotationNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof DocumentAnnotationNode>[0], state: ConstructorParameters<typeof DocumentAnnotationNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes optional execution metadata beside document-annotation state. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
box: [number, number, number, number];
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
movable: boolean | undefined;
|
|
17
|
+
selectable: boolean | undefined;
|
|
18
|
+
selected: boolean | undefined;
|
|
19
|
+
gateways: {
|
|
20
|
+
coordinates: [number, number];
|
|
21
|
+
fill: string | undefined;
|
|
22
|
+
id: string;
|
|
23
|
+
orientation: import('../../../store/types').TOrientation;
|
|
24
|
+
radius: number;
|
|
25
|
+
stroke: string | undefined;
|
|
26
|
+
strokeWidth: number;
|
|
27
|
+
outEdges: {
|
|
28
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
29
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
30
|
+
displacementEnd: [number, number] | undefined;
|
|
31
|
+
displacementStart: [number, number] | undefined;
|
|
32
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
33
|
+
labels: {
|
|
34
|
+
alignment: "right" | "left" | "center";
|
|
35
|
+
id: string;
|
|
36
|
+
size: {
|
|
37
|
+
height: number;
|
|
38
|
+
width: number;
|
|
39
|
+
};
|
|
40
|
+
text: string;
|
|
41
|
+
position: [number, number];
|
|
42
|
+
}[];
|
|
43
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
44
|
+
startAnchor: {
|
|
45
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
46
|
+
position: [number, number] | undefined;
|
|
47
|
+
};
|
|
48
|
+
endAnchor: {
|
|
49
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
50
|
+
position: [number, number] | undefined;
|
|
51
|
+
};
|
|
52
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
53
|
+
stroke: string | undefined;
|
|
54
|
+
strokeWidth: number | undefined;
|
|
55
|
+
to: string;
|
|
56
|
+
toParentId: string;
|
|
57
|
+
class: string;
|
|
58
|
+
}[];
|
|
59
|
+
class: string;
|
|
60
|
+
}[];
|
|
61
|
+
fill: string | undefined;
|
|
62
|
+
labelFontSize: number | undefined;
|
|
63
|
+
labelOffset: [number, number] | undefined;
|
|
64
|
+
stroke: string | undefined;
|
|
65
|
+
strokewWidth: number | undefined;
|
|
66
|
+
class: string;
|
|
67
|
+
};
|
|
68
|
+
/** Restores annotation state before applying independent execution metadata. */
|
|
69
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { DocumentNode } from '../../bpmn/nodes/DocumentNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a standard BPMN data object with optional execution metadata support. */
|
|
5
|
+
export declare class BPMNExecutionDocumentNode extends DocumentNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof DocumentNode>[0], state: ConstructorParameters<typeof DocumentNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes optional execution metadata beside normal data-object semantics. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
type: import('../../bpmn/nodes/DocumentNode').DataObjectTypes;
|
|
14
|
+
box: [number, number, number, number];
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
movable: boolean | undefined;
|
|
18
|
+
selectable: boolean | undefined;
|
|
19
|
+
selected: boolean | undefined;
|
|
20
|
+
gateways: {
|
|
21
|
+
coordinates: [number, number];
|
|
22
|
+
fill: string | undefined;
|
|
23
|
+
id: string;
|
|
24
|
+
orientation: import('../../../store/types').TOrientation;
|
|
25
|
+
radius: number;
|
|
26
|
+
stroke: string | undefined;
|
|
27
|
+
strokeWidth: number;
|
|
28
|
+
outEdges: {
|
|
29
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
30
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
31
|
+
displacementEnd: [number, number] | undefined;
|
|
32
|
+
displacementStart: [number, number] | undefined;
|
|
33
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
34
|
+
labels: {
|
|
35
|
+
alignment: "right" | "left" | "center";
|
|
36
|
+
id: string;
|
|
37
|
+
size: {
|
|
38
|
+
height: number;
|
|
39
|
+
width: number;
|
|
40
|
+
};
|
|
41
|
+
text: string;
|
|
42
|
+
position: [number, number];
|
|
43
|
+
}[];
|
|
44
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
45
|
+
startAnchor: {
|
|
46
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
47
|
+
position: [number, number] | undefined;
|
|
48
|
+
};
|
|
49
|
+
endAnchor: {
|
|
50
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
51
|
+
position: [number, number] | undefined;
|
|
52
|
+
};
|
|
53
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
54
|
+
stroke: string | undefined;
|
|
55
|
+
strokeWidth: number | undefined;
|
|
56
|
+
to: string;
|
|
57
|
+
toParentId: string;
|
|
58
|
+
class: string;
|
|
59
|
+
}[];
|
|
60
|
+
class: string;
|
|
61
|
+
}[];
|
|
62
|
+
fill: string | undefined;
|
|
63
|
+
labelFontSize: number | undefined;
|
|
64
|
+
labelOffset: [number, number] | undefined;
|
|
65
|
+
stroke: string | undefined;
|
|
66
|
+
strokewWidth: number | undefined;
|
|
67
|
+
class: string;
|
|
68
|
+
};
|
|
69
|
+
/** Restores data-object state before applying independent execution metadata. */
|
|
70
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { EventNode } from '../../bpmn/nodes/EventNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a standard BPMN event with independent process execution state. */
|
|
5
|
+
export declare class BPMNExecutionEventNode extends EventNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof EventNode>[0], state: ConstructorParameters<typeof EventNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes execution data alongside every property owned by the BPMN event. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
type: import('../../bpmn/nodes/BPMNEventDefinition').EventTypes;
|
|
14
|
+
eventDefinition: Readonly<{
|
|
15
|
+
stage: import('../../bpmn/nodes/BPMNEventDefinition').EventStage;
|
|
16
|
+
kind: import('../../bpmn/nodes/BPMNEventDefinition').EventKind;
|
|
17
|
+
direction: import('../../bpmn/nodes/BPMNEventDefinition').EventDirection;
|
|
18
|
+
}>;
|
|
19
|
+
attachedToTaskId: string | null;
|
|
20
|
+
attachmentOffset: import('../../bpmn/nodes/EventNode').EventAttachmentOffset | null;
|
|
21
|
+
interrupting: boolean;
|
|
22
|
+
subprocessStart: boolean;
|
|
23
|
+
subprocessId: string | null;
|
|
24
|
+
box: [number, number, number, number];
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
movable: boolean | undefined;
|
|
28
|
+
selectable: boolean | undefined;
|
|
29
|
+
selected: boolean | undefined;
|
|
30
|
+
gateways: {
|
|
31
|
+
coordinates: [number, number];
|
|
32
|
+
fill: string | undefined;
|
|
33
|
+
id: string;
|
|
34
|
+
orientation: import('../../../store/types').TOrientation;
|
|
35
|
+
radius: number;
|
|
36
|
+
stroke: string | undefined;
|
|
37
|
+
strokeWidth: number;
|
|
38
|
+
outEdges: {
|
|
39
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
40
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
41
|
+
displacementEnd: [number, number] | undefined;
|
|
42
|
+
displacementStart: [number, number] | undefined;
|
|
43
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
44
|
+
labels: {
|
|
45
|
+
alignment: "right" | "left" | "center";
|
|
46
|
+
id: string;
|
|
47
|
+
size: {
|
|
48
|
+
height: number;
|
|
49
|
+
width: number;
|
|
50
|
+
};
|
|
51
|
+
text: string;
|
|
52
|
+
position: [number, number];
|
|
53
|
+
}[];
|
|
54
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
55
|
+
startAnchor: {
|
|
56
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
57
|
+
position: [number, number] | undefined;
|
|
58
|
+
};
|
|
59
|
+
endAnchor: {
|
|
60
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
61
|
+
position: [number, number] | undefined;
|
|
62
|
+
};
|
|
63
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
64
|
+
stroke: string | undefined;
|
|
65
|
+
strokeWidth: number | undefined;
|
|
66
|
+
to: string;
|
|
67
|
+
toParentId: string;
|
|
68
|
+
class: string;
|
|
69
|
+
}[];
|
|
70
|
+
class: string;
|
|
71
|
+
}[];
|
|
72
|
+
fill: string | undefined;
|
|
73
|
+
labelFontSize: number | undefined;
|
|
74
|
+
labelOffset: [number, number] | undefined;
|
|
75
|
+
stroke: string | undefined;
|
|
76
|
+
strokewWidth: number | undefined;
|
|
77
|
+
class: string;
|
|
78
|
+
};
|
|
79
|
+
/** Restores event semantics before applying the independent execution snapshot. */
|
|
80
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
81
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { GateNode } from '../../bpmn/nodes/GateNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a standard BPMN gateway with runtime token and synchronization state. */
|
|
5
|
+
export declare class BPMNExecutionGateNode extends GateNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof GateNode>[0], state: ConstructorParameters<typeof GateNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes execution data alongside every property owned by the BPMN gateway. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
type: import('../../bpmn/nodes/GateNode').GateTypes;
|
|
14
|
+
box: [number, number, number, number];
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
movable: boolean | undefined;
|
|
18
|
+
selectable: boolean | undefined;
|
|
19
|
+
selected: boolean | undefined;
|
|
20
|
+
gateways: {
|
|
21
|
+
coordinates: [number, number];
|
|
22
|
+
fill: string | undefined;
|
|
23
|
+
id: string;
|
|
24
|
+
orientation: import('../../../store/types').TOrientation;
|
|
25
|
+
radius: number;
|
|
26
|
+
stroke: string | undefined;
|
|
27
|
+
strokeWidth: number;
|
|
28
|
+
outEdges: {
|
|
29
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
30
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
31
|
+
displacementEnd: [number, number] | undefined;
|
|
32
|
+
displacementStart: [number, number] | undefined;
|
|
33
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
34
|
+
labels: {
|
|
35
|
+
alignment: "right" | "left" | "center";
|
|
36
|
+
id: string;
|
|
37
|
+
size: {
|
|
38
|
+
height: number;
|
|
39
|
+
width: number;
|
|
40
|
+
};
|
|
41
|
+
text: string;
|
|
42
|
+
position: [number, number];
|
|
43
|
+
}[];
|
|
44
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
45
|
+
startAnchor: {
|
|
46
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
47
|
+
position: [number, number] | undefined;
|
|
48
|
+
};
|
|
49
|
+
endAnchor: {
|
|
50
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
51
|
+
position: [number, number] | undefined;
|
|
52
|
+
};
|
|
53
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
54
|
+
stroke: string | undefined;
|
|
55
|
+
strokeWidth: number | undefined;
|
|
56
|
+
to: string;
|
|
57
|
+
toParentId: string;
|
|
58
|
+
class: string;
|
|
59
|
+
}[];
|
|
60
|
+
class: string;
|
|
61
|
+
}[];
|
|
62
|
+
fill: string | undefined;
|
|
63
|
+
labelFontSize: number | undefined;
|
|
64
|
+
labelOffset: [number, number] | undefined;
|
|
65
|
+
stroke: string | undefined;
|
|
66
|
+
strokewWidth: number | undefined;
|
|
67
|
+
class: string;
|
|
68
|
+
};
|
|
69
|
+
/** Restores gateway semantics before applying the independent execution snapshot. */
|
|
70
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Lanes } from '../../bpmn/nodes/Lanes';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends standard BPMN lanes while retaining the complete pool and lane behavior. */
|
|
5
|
+
export declare class BPMNExecutionLanes extends Lanes {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof Lanes>[0], state: ConstructorParameters<typeof Lanes>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes execution metadata together with the complete lane and pool model. */
|
|
11
|
+
serialize(): any;
|
|
12
|
+
/** Restores lane structure before applying independently stored execution metadata. */
|
|
13
|
+
deserialize(state: any): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TaskNode } from '../../bpmn/nodes/TaskNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a standard BPMN activity with independent process execution state. */
|
|
5
|
+
export declare class BPMNExecutionTaskNode extends TaskNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof TaskNode>[0], state: ConstructorParameters<typeof TaskNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes execution data alongside every property owned by the BPMN task. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
type: import('../../bpmn/nodes/TaskNode').TaskTypes;
|
|
14
|
+
multiInstance: import('../../bpmn/nodes/TaskNode').TaskMultiInstance;
|
|
15
|
+
loop: boolean;
|
|
16
|
+
compensation: boolean;
|
|
17
|
+
adHoc: boolean;
|
|
18
|
+
transaction: boolean;
|
|
19
|
+
box: [number, number, number, number];
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
movable: boolean | undefined;
|
|
23
|
+
selectable: boolean | undefined;
|
|
24
|
+
selected: boolean | undefined;
|
|
25
|
+
gateways: {
|
|
26
|
+
coordinates: [number, number];
|
|
27
|
+
fill: string | undefined;
|
|
28
|
+
id: string;
|
|
29
|
+
orientation: import('../../../store/types').TOrientation;
|
|
30
|
+
radius: number;
|
|
31
|
+
stroke: string | undefined;
|
|
32
|
+
strokeWidth: number;
|
|
33
|
+
outEdges: {
|
|
34
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
35
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
36
|
+
displacementEnd: [number, number] | undefined;
|
|
37
|
+
displacementStart: [number, number] | undefined;
|
|
38
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
39
|
+
labels: {
|
|
40
|
+
alignment: "right" | "left" | "center";
|
|
41
|
+
id: string;
|
|
42
|
+
size: {
|
|
43
|
+
height: number;
|
|
44
|
+
width: number;
|
|
45
|
+
};
|
|
46
|
+
text: string;
|
|
47
|
+
position: [number, number];
|
|
48
|
+
}[];
|
|
49
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
50
|
+
startAnchor: {
|
|
51
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
52
|
+
position: [number, number] | undefined;
|
|
53
|
+
};
|
|
54
|
+
endAnchor: {
|
|
55
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
56
|
+
position: [number, number] | undefined;
|
|
57
|
+
};
|
|
58
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
59
|
+
stroke: string | undefined;
|
|
60
|
+
strokeWidth: number | undefined;
|
|
61
|
+
to: string;
|
|
62
|
+
toParentId: string;
|
|
63
|
+
class: string;
|
|
64
|
+
}[];
|
|
65
|
+
class: string;
|
|
66
|
+
}[];
|
|
67
|
+
fill: string | undefined;
|
|
68
|
+
labelFontSize: number | undefined;
|
|
69
|
+
labelOffset: [number, number] | undefined;
|
|
70
|
+
stroke: string | undefined;
|
|
71
|
+
strokewWidth: number | undefined;
|
|
72
|
+
class: string;
|
|
73
|
+
};
|
|
74
|
+
/** Restores task semantics before applying the independent execution snapshot. */
|
|
75
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
76
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { TextAnnotationNode } from '../../bpmn/nodes/TextAnnotationNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends a standard BPMN text annotation with optional execution metadata support. */
|
|
5
|
+
export declare class BPMNExecutionTextAnnotationNode extends TextAnnotationNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof TextAnnotationNode>[0], state: ConstructorParameters<typeof TextAnnotationNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes optional execution metadata beside normal text annotation state. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
box: [number, number, number, number];
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
movable: boolean | undefined;
|
|
17
|
+
selectable: boolean | undefined;
|
|
18
|
+
selected: boolean | undefined;
|
|
19
|
+
gateways: {
|
|
20
|
+
coordinates: [number, number];
|
|
21
|
+
fill: string | undefined;
|
|
22
|
+
id: string;
|
|
23
|
+
orientation: import('../../../store/types').TOrientation;
|
|
24
|
+
radius: number;
|
|
25
|
+
stroke: string | undefined;
|
|
26
|
+
strokeWidth: number;
|
|
27
|
+
outEdges: {
|
|
28
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
29
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
30
|
+
displacementEnd: [number, number] | undefined;
|
|
31
|
+
displacementStart: [number, number] | undefined;
|
|
32
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
33
|
+
labels: {
|
|
34
|
+
alignment: "right" | "left" | "center";
|
|
35
|
+
id: string;
|
|
36
|
+
size: {
|
|
37
|
+
height: number;
|
|
38
|
+
width: number;
|
|
39
|
+
};
|
|
40
|
+
text: string;
|
|
41
|
+
position: [number, number];
|
|
42
|
+
}[];
|
|
43
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
44
|
+
startAnchor: {
|
|
45
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
46
|
+
position: [number, number] | undefined;
|
|
47
|
+
};
|
|
48
|
+
endAnchor: {
|
|
49
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
50
|
+
position: [number, number] | undefined;
|
|
51
|
+
};
|
|
52
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
53
|
+
stroke: string | undefined;
|
|
54
|
+
strokeWidth: number | undefined;
|
|
55
|
+
to: string;
|
|
56
|
+
toParentId: string;
|
|
57
|
+
class: string;
|
|
58
|
+
}[];
|
|
59
|
+
class: string;
|
|
60
|
+
}[];
|
|
61
|
+
fill: string | undefined;
|
|
62
|
+
labelFontSize: number | undefined;
|
|
63
|
+
labelOffset: [number, number] | undefined;
|
|
64
|
+
stroke: string | undefined;
|
|
65
|
+
strokewWidth: number | undefined;
|
|
66
|
+
class: string;
|
|
67
|
+
};
|
|
68
|
+
/** Restores annotation state before applying independent execution metadata. */
|
|
69
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
70
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { UnknownBPMNNode } from '../../bpmn/nodes/UnknownBPMNNode';
|
|
2
|
+
import { BPMNNodeExecutionState } from '../BPMNNodeExecutionState';
|
|
3
|
+
import { BPMNNodeExecutionSnapshot } from '../types';
|
|
4
|
+
/** Extends unsupported imported BPMN elements so execution snapshots remain lossless. */
|
|
5
|
+
export declare class BPMNExecutionUnknownNode extends UnknownBPMNNode {
|
|
6
|
+
execution: BPMNNodeExecutionState;
|
|
7
|
+
constructor(parent: ConstructorParameters<typeof UnknownBPMNNode>[0], state: ConstructorParameters<typeof UnknownBPMNNode>[1] & {
|
|
8
|
+
execution?: BPMNNodeExecutionSnapshot;
|
|
9
|
+
});
|
|
10
|
+
/** Serializes execution metadata while preserving the unsupported source type. */
|
|
11
|
+
serialize(): {
|
|
12
|
+
execution: BPMNNodeExecutionSnapshot;
|
|
13
|
+
sourceType: string;
|
|
14
|
+
box: [number, number, number, number];
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
movable: boolean | undefined;
|
|
18
|
+
selectable: boolean | undefined;
|
|
19
|
+
selected: boolean | undefined;
|
|
20
|
+
gateways: {
|
|
21
|
+
coordinates: [number, number];
|
|
22
|
+
fill: string | undefined;
|
|
23
|
+
id: string;
|
|
24
|
+
orientation: import('../../../store/types').TOrientation;
|
|
25
|
+
radius: number;
|
|
26
|
+
stroke: string | undefined;
|
|
27
|
+
strokeWidth: number;
|
|
28
|
+
outEdges: {
|
|
29
|
+
arrowHeadEnd: import('../../../store/types').EdgeArrowHead | undefined;
|
|
30
|
+
arrowHeadStart: import('../../../store/types').EdgeArrowHead | undefined;
|
|
31
|
+
displacementEnd: [number, number] | undefined;
|
|
32
|
+
displacementStart: [number, number] | undefined;
|
|
33
|
+
lineStyle: import('../../../store/types').EdgeLineStyle | undefined;
|
|
34
|
+
labels: {
|
|
35
|
+
alignment: "right" | "left" | "center";
|
|
36
|
+
id: string;
|
|
37
|
+
size: {
|
|
38
|
+
height: number;
|
|
39
|
+
width: number;
|
|
40
|
+
};
|
|
41
|
+
text: string;
|
|
42
|
+
position: [number, number];
|
|
43
|
+
}[];
|
|
44
|
+
pathType: import('../../../store/types').EdgePathType;
|
|
45
|
+
startAnchor: {
|
|
46
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
47
|
+
position: [number, number] | undefined;
|
|
48
|
+
};
|
|
49
|
+
endAnchor: {
|
|
50
|
+
mode: import('../../../store/types').EdgeAnchorMode;
|
|
51
|
+
position: [number, number] | undefined;
|
|
52
|
+
};
|
|
53
|
+
steps: import('../../../store/elements/EdgePoint').TSerializedEdgePoint[];
|
|
54
|
+
stroke: string | undefined;
|
|
55
|
+
strokeWidth: number | undefined;
|
|
56
|
+
to: string;
|
|
57
|
+
toParentId: string;
|
|
58
|
+
class: string;
|
|
59
|
+
}[];
|
|
60
|
+
class: string;
|
|
61
|
+
}[];
|
|
62
|
+
fill: string | undefined;
|
|
63
|
+
labelFontSize: number | undefined;
|
|
64
|
+
labelOffset: [number, number] | undefined;
|
|
65
|
+
stroke: string | undefined;
|
|
66
|
+
strokewWidth: number | undefined;
|
|
67
|
+
class: string;
|
|
68
|
+
};
|
|
69
|
+
/** Restores unknown BPMN state before applying independent execution metadata. */
|
|
70
|
+
deserialize(state: ReturnType<this["serialize"]>): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type BPMNExecutionStatus = "idle" | "active" | "waiting" | "completed" | "failed";
|
|
2
|
+
export type BPMNExecutionMarkerKind = "token" | "error" | "waiting" | "completed" | (string & {});
|
|
3
|
+
export type BPMNExecutionMarkerSnapshot = {
|
|
4
|
+
id?: string;
|
|
5
|
+
kind: BPMNExecutionMarkerKind;
|
|
6
|
+
value?: number | string | null;
|
|
7
|
+
message?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
};
|
|
10
|
+
export type BPMNNodeExecutionSnapshot = {
|
|
11
|
+
status?: BPMNExecutionStatus;
|
|
12
|
+
tokenCount?: number;
|
|
13
|
+
error?: string | null;
|
|
14
|
+
markers?: BPMNExecutionMarkerSnapshot[];
|
|
15
|
+
};
|
|
16
|
+
export type BPMNEdgeExecutionSnapshot = {
|
|
17
|
+
visited?: boolean;
|
|
18
|
+
visitCount?: number;
|
|
19
|
+
visitedAt?: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type BPMNExecutionSnapshot = {
|
|
22
|
+
version?: 1;
|
|
23
|
+
replace?: boolean;
|
|
24
|
+
nodes?: Record<string, BPMNNodeExecutionSnapshot>;
|
|
25
|
+
edges?: Record<string, BPMNEdgeExecutionSnapshot>;
|
|
26
|
+
};
|
|
27
|
+
export type BPMNExecutionApplyResult = {
|
|
28
|
+
appliedNodes: number;
|
|
29
|
+
appliedEdges: number;
|
|
30
|
+
unresolvedNodeIds: string[];
|
|
31
|
+
unresolvedEdgeIds: string[];
|
|
32
|
+
};
|
|
33
|
+
export type BPMNExecutionSettings = {
|
|
34
|
+
visitedEdgeColor: string;
|
|
35
|
+
tokenColor: string;
|
|
36
|
+
errorColor: string;
|
|
37
|
+
};
|
|
38
|
+
export type BPMNExecutionSettingsInput = Partial<BPMNExecutionSettings>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TDiagramExtensionRenderProps } from '../../../store/extensions/DiagramExtension';
|
|
2
|
+
import { BPMNExecutionExtension } from '../BPMNExecutionExtension';
|
|
3
|
+
/** Renders token, exception, and future custom badges at each node's top-right edge. */
|
|
4
|
+
export declare const BPMNExecutionMarkers: (({ diagram, }: TDiagramExtensionRenderProps<BPMNExecutionExtension>) => import("react").JSX.Element) & {
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TDiagramExtensionRenderProps } from '../../../store/extensions/DiagramExtension';
|
|
2
|
+
import { BPMNModelerExtension } from '../../bpmn/extensions/BPMNModelerExtension';
|
|
3
|
+
/** Adds execution fields as a collapsible section in the standard BPMN inspector. */
|
|
4
|
+
export declare const BPMNExecutionPropertiesPanel: (({ diagram, extension, }: TDiagramExtensionRenderProps<BPMNModelerExtension>) => import("react").JSX.Element) & {
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|