bpmn-moddle 10.0.0 → 10.2.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.
- package/README.md +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/types/bpmn.d.ts +866 -0
- package/dist/types/bpmndi.d.ts +54 -0
- package/dist/types/dc.d.ts +46 -0
- package/dist/types/di.d.ts +64 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +23 -16
- package/dist/bpmn-moddle.umd.js +0 -7719
- package/dist/bpmn-moddle.umd.prod.js +0 -1
- package/dist/index.esm.js +0 -3747
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// AUTO-GENERATED from bpmndi.json by @bpmn-io/moddle-types-generator — do not edit.
|
|
2
|
+
|
|
3
|
+
import type { ModdleElement } from 'moddle';
|
|
4
|
+
import type { BpmnBaseElement } from './bpmn.js';
|
|
5
|
+
import type { DcFont } from './dc.js';
|
|
6
|
+
import type { DiDiagram, DiDiagramElement, DiLabel, DiLabeledEdge, DiLabeledShape, DiPlane, DiStyle } from './di.js';
|
|
7
|
+
|
|
8
|
+
export type BpmndiParticipantBandKind = 'top_initiating' | 'middle_initiating' | 'bottom_initiating' | 'top_non_initiating' | 'middle_non_initiating' | 'bottom_non_initiating';
|
|
9
|
+
export type BpmndiMessageVisibleKind = 'initiating' | 'non_initiating';
|
|
10
|
+
|
|
11
|
+
export interface BpmndiBPMNDiagram extends DiDiagram {
|
|
12
|
+
plane?: ModdleElement<BpmndiBPMNPlane>;
|
|
13
|
+
labelStyle?: ModdleElement<BpmndiBPMNLabelStyle>[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface BpmndiBPMNPlane extends DiPlane {
|
|
17
|
+
bpmnElement?: ModdleElement<BpmnBaseElement>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface BpmndiBPMNShape extends DiLabeledShape {
|
|
21
|
+
bpmnElement?: ModdleElement<BpmnBaseElement>;
|
|
22
|
+
isHorizontal?: boolean;
|
|
23
|
+
isExpanded?: boolean;
|
|
24
|
+
isMarkerVisible?: boolean;
|
|
25
|
+
label?: ModdleElement<BpmndiBPMNLabel>;
|
|
26
|
+
isMessageVisible?: boolean;
|
|
27
|
+
participantBandKind?: BpmndiParticipantBandKind;
|
|
28
|
+
choreographyActivityShape?: ModdleElement<BpmndiBPMNShape>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface BpmndiBPMNEdge extends DiLabeledEdge {
|
|
32
|
+
label?: ModdleElement<BpmndiBPMNLabel>;
|
|
33
|
+
bpmnElement?: ModdleElement<BpmnBaseElement>;
|
|
34
|
+
sourceElement?: ModdleElement<DiDiagramElement>;
|
|
35
|
+
targetElement?: ModdleElement<DiDiagramElement>;
|
|
36
|
+
messageVisibleKind?: BpmndiMessageVisibleKind;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface BpmndiBPMNLabel extends DiLabel {
|
|
40
|
+
labelStyle?: ModdleElement<BpmndiBPMNLabelStyle>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface BpmndiBPMNLabelStyle extends DiStyle {
|
|
44
|
+
font?: ModdleElement<DcFont>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface BpmndiModdleTypeMap {
|
|
48
|
+
'bpmndi:BPMNDiagram': ModdleElement<BpmndiBPMNDiagram> & { $type: 'bpmndi:BPMNDiagram' };
|
|
49
|
+
'bpmndi:BPMNPlane': ModdleElement<BpmndiBPMNPlane> & { $type: 'bpmndi:BPMNPlane' };
|
|
50
|
+
'bpmndi:BPMNShape': ModdleElement<BpmndiBPMNShape> & { $type: 'bpmndi:BPMNShape' };
|
|
51
|
+
'bpmndi:BPMNEdge': ModdleElement<BpmndiBPMNEdge> & { $type: 'bpmndi:BPMNEdge' };
|
|
52
|
+
'bpmndi:BPMNLabel': ModdleElement<BpmndiBPMNLabel> & { $type: 'bpmndi:BPMNLabel' };
|
|
53
|
+
'bpmndi:BPMNLabelStyle': ModdleElement<BpmndiBPMNLabelStyle> & { $type: 'bpmndi:BPMNLabelStyle' };
|
|
54
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// AUTO-GENERATED from dc.json by @bpmn-io/moddle-types-generator — do not edit.
|
|
2
|
+
|
|
3
|
+
import type { ModdleElement } from 'moddle';
|
|
4
|
+
|
|
5
|
+
export interface DcBoolean {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface DcInteger {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DcReal {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface DcString {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DcFont {
|
|
18
|
+
name?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
isBold?: boolean;
|
|
21
|
+
isItalic?: boolean;
|
|
22
|
+
isUnderline?: boolean;
|
|
23
|
+
isStrikeThrough?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface DcPoint {
|
|
27
|
+
x?: number;
|
|
28
|
+
y?: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface DcBounds {
|
|
32
|
+
x?: number;
|
|
33
|
+
y?: number;
|
|
34
|
+
width?: number;
|
|
35
|
+
height?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface DcModdleTypeMap {
|
|
39
|
+
'dc:Boolean': ModdleElement<DcBoolean> & { $type: 'dc:Boolean' };
|
|
40
|
+
'dc:Integer': ModdleElement<DcInteger> & { $type: 'dc:Integer' };
|
|
41
|
+
'dc:Real': ModdleElement<DcReal> & { $type: 'dc:Real' };
|
|
42
|
+
'dc:String': ModdleElement<DcString> & { $type: 'dc:String' };
|
|
43
|
+
'dc:Font': ModdleElement<DcFont> & { $type: 'dc:Font' };
|
|
44
|
+
'dc:Point': ModdleElement<DcPoint> & { $type: 'dc:Point' };
|
|
45
|
+
'dc:Bounds': ModdleElement<DcBounds> & { $type: 'dc:Bounds' };
|
|
46
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// AUTO-GENERATED from di.json by @bpmn-io/moddle-types-generator — do not edit.
|
|
2
|
+
|
|
3
|
+
import type { ModdleElement } from 'moddle';
|
|
4
|
+
import type { DcBounds, DcPoint } from './dc.js';
|
|
5
|
+
|
|
6
|
+
export interface DiDiagramElement {
|
|
7
|
+
id?: string;
|
|
8
|
+
extension?: ModdleElement<DiExtension>;
|
|
9
|
+
owningDiagram?: ModdleElement<DiDiagram>;
|
|
10
|
+
owningElement?: ModdleElement<DiDiagramElement>;
|
|
11
|
+
modelElement?: ModdleElement;
|
|
12
|
+
style?: ModdleElement<DiStyle>;
|
|
13
|
+
ownedElement?: ModdleElement<DiDiagramElement>[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface DiNode extends DiDiagramElement {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DiEdge extends DiDiagramElement {
|
|
20
|
+
source?: ModdleElement<DiDiagramElement>;
|
|
21
|
+
target?: ModdleElement<DiDiagramElement>;
|
|
22
|
+
waypoint?: ModdleElement<DcPoint>[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface DiDiagram {
|
|
26
|
+
id?: string;
|
|
27
|
+
rootElement?: ModdleElement<DiDiagramElement>;
|
|
28
|
+
name?: string;
|
|
29
|
+
documentation?: string;
|
|
30
|
+
resolution?: number;
|
|
31
|
+
ownedStyle?: ModdleElement<DiStyle>[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface DiShape extends DiNode {
|
|
35
|
+
bounds?: ModdleElement<DcBounds>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface DiPlane extends DiNode {
|
|
39
|
+
planeElement?: ModdleElement<DiDiagramElement>[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface DiLabeledEdge extends DiEdge {
|
|
43
|
+
ownedLabel?: ModdleElement<DiLabel>[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface DiLabeledShape extends DiShape {
|
|
47
|
+
ownedLabel?: ModdleElement<DiLabel>[];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface DiLabel extends DiNode {
|
|
51
|
+
bounds?: ModdleElement<DcBounds>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface DiStyle {
|
|
55
|
+
id?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface DiExtension {
|
|
59
|
+
values?: ModdleElement[];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface DiModdleTypeMap {
|
|
63
|
+
'di:Extension': ModdleElement<DiExtension> & { $type: 'di:Extension' };
|
|
64
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-moddle",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "A moddle wrapper for BPMN 2.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"all": "run-s generate-schema lint test",
|
|
6
|
+
"all": "run-s generate-schema lint generate-types test",
|
|
7
7
|
"lint": "eslint .",
|
|
8
8
|
"dev": "npm test -- --watch",
|
|
9
9
|
"pretest": "run-s build",
|
|
10
10
|
"test": "mocha --reporter=spec --recursive test",
|
|
11
|
-
"
|
|
12
|
-
"build": "rollup -c --bundleConfigAsCjs",
|
|
11
|
+
"build": "rollup -c",
|
|
13
12
|
"prepare": "run-s build",
|
|
14
|
-
"
|
|
13
|
+
"prepublishOnly": "run-s generate-types",
|
|
14
|
+
"generate-schema": "node tasks/generate-schema.cjs",
|
|
15
|
+
"generate-types": "moddle-generate-types --index dist/types/index.d.ts resources/bpmn/json/bpmn.json dist/types/bpmn.d.ts resources/bpmn/json/dc.json dist/types/dc.d.ts resources/bpmn/json/di.json dist/types/di.d.ts resources/bpmn/json/bpmndi.json dist/types/bpmndi.d.ts"
|
|
15
16
|
},
|
|
16
17
|
"type": "module",
|
|
17
18
|
"repository": {
|
|
@@ -20,6 +21,9 @@
|
|
|
20
21
|
},
|
|
21
22
|
"exports": {
|
|
22
23
|
".": "./dist/index.js",
|
|
24
|
+
"./types": {
|
|
25
|
+
"types": "./dist/types/index.d.ts"
|
|
26
|
+
},
|
|
23
27
|
"./resources/*": "./resources/*",
|
|
24
28
|
"./package.json": "./package.json"
|
|
25
29
|
},
|
|
@@ -45,28 +49,31 @@
|
|
|
45
49
|
"license": "MIT",
|
|
46
50
|
"sideEffects": false,
|
|
47
51
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|
|
52
|
+
"@bpmn-io/moddle-types-generator": "^0.2.1",
|
|
50
53
|
"@rollup/plugin-json": "^6.1.0",
|
|
51
54
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
52
55
|
"bpmn-in-color-moddle": "^0.2.0",
|
|
53
56
|
"chai": "^6.0.0",
|
|
54
57
|
"cmof-parser": "^0.5.2",
|
|
55
|
-
"eslint": "^9.39.
|
|
56
|
-
"eslint-plugin-bpmn-io": "^2.
|
|
57
|
-
"mocha": "^11.
|
|
58
|
-
"npm-run-all2": "^
|
|
59
|
-
"rollup": "^4.
|
|
58
|
+
"eslint": "^9.39.4",
|
|
59
|
+
"eslint-plugin-bpmn-io": "^2.3.1",
|
|
60
|
+
"mocha": "^11.7.6",
|
|
61
|
+
"npm-run-all2": "^9.0.2",
|
|
62
|
+
"rollup": "^4.62.2",
|
|
60
63
|
"xsd-schema-validator": "^0.11.0"
|
|
61
64
|
},
|
|
62
65
|
"dependencies": {
|
|
63
|
-
"min-dash": "^5.
|
|
64
|
-
"moddle": "^8.
|
|
65
|
-
"moddle-xml": "^12.
|
|
66
|
+
"min-dash": "^5.1.0",
|
|
67
|
+
"moddle": "^8.2.1",
|
|
68
|
+
"moddle-xml": "^12.2.0"
|
|
66
69
|
},
|
|
67
70
|
"files": [
|
|
68
71
|
"dist",
|
|
69
72
|
"resources",
|
|
70
73
|
"!resources/bpmn/cmof"
|
|
71
|
-
]
|
|
74
|
+
],
|
|
75
|
+
"allowScripts": {
|
|
76
|
+
"xsd-schema-validator@0.11.0": true,
|
|
77
|
+
"unrs-resolver@1.12.2": true
|
|
78
|
+
}
|
|
72
79
|
}
|