camunda-bpmn-js 5.12.0 → 5.13.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/LICENSE +20 -20
- package/README.md +88 -88
- package/dist/assets/base-modeler.css +5 -5
- package/dist/assets/base-navigated-viewer.css +1 -1
- package/dist/assets/base-viewer.css +1 -1
- package/dist/assets/camunda-cloud-modeler.css +2 -2
- package/dist/assets/camunda-platform-modeler.css +1 -1
- package/dist/base-modeler.development.js +2072 -540
- package/dist/base-modeler.production.min.js +32 -32
- package/dist/camunda-cloud-modeler.development.js +2424 -892
- package/dist/camunda-cloud-modeler.production.min.js +29 -29
- package/dist/camunda-cloud-navigated-viewer.development.js +40 -40
- package/dist/camunda-cloud-viewer.development.js +40 -40
- package/dist/camunda-platform-modeler.development.js +2517 -985
- package/dist/camunda-platform-modeler.production.min.js +29 -29
- package/dist/camunda-platform-navigated-viewer.development.js +27 -27
- package/dist/camunda-platform-viewer.development.js +27 -27
- package/lib/base/Modeler.d.ts +20 -20
- package/lib/base/Modeler.js +65 -65
- package/lib/base/NavigatedViewer.d.ts +2 -2
- package/lib/base/NavigatedViewer.js +2 -2
- package/lib/base/Viewer.d.ts +2 -2
- package/lib/base/Viewer.js +2 -2
- package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
- package/lib/camunda-cloud/Modeler.d.ts +3 -3
- package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
- package/lib/camunda-cloud/NavigatedViewer.js +36 -36
- package/lib/camunda-cloud/Viewer.d.ts +9 -9
- package/lib/camunda-cloud/Viewer.js +36 -36
- package/lib/camunda-cloud/features/external-resources/ResourceLoader.d.ts +6 -6
- package/lib/camunda-cloud/features/external-resources/Resources.d.ts +7 -7
- package/lib/camunda-cloud/features/external-resources/cmd/ComposedCommandHandler.d.ts +12 -12
- package/lib/camunda-cloud/features/external-resources/cmd/index.d.ts +4 -4
- package/lib/camunda-cloud/features/external-resources/handlers/decision/AppendMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/decision/CreateMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/decision/ReplaceMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/decision/createElement.d.ts +13 -13
- package/lib/camunda-cloud/features/external-resources/handlers/decision/index.d.ts +8 -8
- package/lib/camunda-cloud/features/external-resources/handlers/decision/replaceElement.d.ts +15 -15
- package/lib/camunda-cloud/features/external-resources/handlers/decision/searchTerms.d.ts +1 -1
- package/lib/camunda-cloud/features/external-resources/handlers/form/AppendMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/form/CreateMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/form/ReplaceMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/form/createElement.d.ts +9 -9
- package/lib/camunda-cloud/features/external-resources/handlers/form/index.d.ts +8 -8
- package/lib/camunda-cloud/features/external-resources/handlers/form/replaceElement.d.ts +15 -15
- package/lib/camunda-cloud/features/external-resources/handlers/form/searchTerms.d.ts +1 -1
- package/lib/camunda-cloud/features/external-resources/handlers/process/AppendMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/process/CreateMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/process/ReplaceMenuProvider.d.ts +5 -5
- package/lib/camunda-cloud/features/external-resources/handlers/process/createElement.d.ts +14 -14
- package/lib/camunda-cloud/features/external-resources/handlers/process/index.d.ts +8 -8
- package/lib/camunda-cloud/features/external-resources/handlers/process/replaceElement.d.ts +16 -16
- package/lib/camunda-cloud/features/external-resources/handlers/process/searchTerms.d.ts +1 -1
- package/lib/camunda-cloud/features/external-resources/handlers/util/BaseAppendMenuProvider.d.ts +18 -18
- package/lib/camunda-cloud/features/external-resources/handlers/util/BaseCreateMenuProvider.d.ts +17 -17
- package/lib/camunda-cloud/features/external-resources/handlers/util/BaseReplaceMenuProvider.d.ts +22 -22
- package/lib/camunda-cloud/features/external-resources/index.d.ts +23 -23
- package/lib/camunda-cloud/features/popup-menu/CamundaDetailsPopupMenuProvider.d.ts +26 -26
- package/lib/camunda-cloud/features/popup-menu/CamundaDetailsPopupMenuProvider.js +153 -153
- package/lib/camunda-cloud/features/popup-menu/index.d.ts +6 -6
- package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
- package/lib/camunda-cloud/util/commonModules.js +15 -15
- package/lib/camunda-platform/Modeler.d.ts +3 -3
- package/lib/camunda-platform/Modeler.js +68 -68
- package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
- package/lib/camunda-platform/NavigatedViewer.js +27 -27
- package/lib/camunda-platform/Viewer.d.ts +9 -9
- package/lib/camunda-platform/Viewer.js +27 -27
- package/lib/camunda-platform/util/commonModules.d.ts +9 -9
- package/lib/camunda-platform/util/commonModules.js +11 -11
- package/lib/util/ExtensionElementsUtil.d.ts +24 -24
- package/lib/util/ExtensionElementsUtil.js +68 -68
- package/package.json +141 -141
- package/styles/base-modeler.css +5 -5
- package/styles/base-navigated-viewer.css +1 -1
- package/styles/base-viewer.css +1 -1
- package/styles/camunda-cloud-modeler.css +2 -2
- package/styles/camunda-platform-modeler.css +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021-present Camunda Services GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-present Camunda Services GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
21
|
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
# camunda-bpmn-js
|
|
2
|
-
|
|
3
|
-
[](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
|
|
4
|
-
|
|
5
|
-
Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
|
|
10
|
-
|
|
11
|
-
Use a pre-packaged distribution
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
|
|
15
|
-
|
|
16
|
-
<script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
or install it via npm
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
|
|
23
|
-
|
|
24
|
-
import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
into your web-application.
|
|
28
|
-
|
|
29
|
-
```js
|
|
30
|
-
var bpmnModeler = new BpmnModeler({
|
|
31
|
-
container: '#canvas',
|
|
32
|
-
propertiesPanel: {
|
|
33
|
-
parent: '#properties'
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
try {
|
|
38
|
-
|
|
39
|
-
await bpmnModeler.importXML(someDiagram);
|
|
40
|
-
|
|
41
|
-
console.log('success!');
|
|
42
|
-
bpmnModeler.get('canvas').zoom('fit-viewport');
|
|
43
|
-
} catch (err) {
|
|
44
|
-
|
|
45
|
-
console.error('something went wrong:', err);
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
|
|
50
|
-
|
|
51
|
-
## Build and Run
|
|
52
|
-
|
|
53
|
-
Prepare the project by installing all dependencies:
|
|
54
|
-
|
|
55
|
-
```sh
|
|
56
|
-
npm install
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Then, depending on your use-case, you may run any of the following commands:
|
|
60
|
-
|
|
61
|
-
```sh
|
|
62
|
-
# build the library and run all tests
|
|
63
|
-
npm run all
|
|
64
|
-
|
|
65
|
-
# spin up a single local camunda platform modeler instance
|
|
66
|
-
npm run start:platform
|
|
67
|
-
|
|
68
|
-
# run the full development setup
|
|
69
|
-
npm run dev
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Related
|
|
73
|
-
|
|
74
|
-
camunda-bpmn-js builds on top of a few powerful tools:
|
|
75
|
-
|
|
76
|
-
* [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
|
|
77
|
-
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
|
|
78
|
-
* [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
|
|
79
|
-
* [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
|
|
80
|
-
* [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
|
|
81
|
-
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
|
|
82
|
-
* [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
|
|
83
|
-
|
|
84
|
-
## License
|
|
85
|
-
|
|
86
|
-
MIT
|
|
87
|
-
|
|
88
|
-
Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
|
|
1
|
+
# camunda-bpmn-js
|
|
2
|
+
|
|
3
|
+
[](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
|
|
4
|
+
|
|
5
|
+
Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
|
|
10
|
+
|
|
11
|
+
Use a pre-packaged distribution
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
|
|
15
|
+
|
|
16
|
+
<script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
or install it via npm
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
|
|
23
|
+
|
|
24
|
+
import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
into your web-application.
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
var bpmnModeler = new BpmnModeler({
|
|
31
|
+
container: '#canvas',
|
|
32
|
+
propertiesPanel: {
|
|
33
|
+
parent: '#properties'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
|
|
39
|
+
await bpmnModeler.importXML(someDiagram);
|
|
40
|
+
|
|
41
|
+
console.log('success!');
|
|
42
|
+
bpmnModeler.get('canvas').zoom('fit-viewport');
|
|
43
|
+
} catch (err) {
|
|
44
|
+
|
|
45
|
+
console.error('something went wrong:', err);
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
|
|
50
|
+
|
|
51
|
+
## Build and Run
|
|
52
|
+
|
|
53
|
+
Prepare the project by installing all dependencies:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
npm install
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Then, depending on your use-case, you may run any of the following commands:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
# build the library and run all tests
|
|
63
|
+
npm run all
|
|
64
|
+
|
|
65
|
+
# spin up a single local camunda platform modeler instance
|
|
66
|
+
npm run start:platform
|
|
67
|
+
|
|
68
|
+
# run the full development setup
|
|
69
|
+
npm run dev
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Related
|
|
73
|
+
|
|
74
|
+
camunda-bpmn-js builds on top of a few powerful tools:
|
|
75
|
+
|
|
76
|
+
* [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
|
|
77
|
+
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
|
|
78
|
+
* [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
|
|
79
|
+
* [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
|
|
80
|
+
* [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
|
|
81
|
+
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
|
|
82
|
+
* [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
MIT
|
|
87
|
+
|
|
88
|
+
Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import './diagram-js.css';
|
|
2
|
-
@import './bpmn-js.css';
|
|
3
|
-
@import './bpmn-font/css/bpmn-embedded.css';
|
|
4
|
-
@import './diagram-js-minimap.css';
|
|
5
|
-
@import './properties-panel.css';
|
|
1
|
+
@import './diagram-js.css';
|
|
2
|
+
@import './bpmn-js.css';
|
|
3
|
+
@import './bpmn-font/css/bpmn-embedded.css';
|
|
4
|
+
@import './diagram-js-minimap.css';
|
|
5
|
+
@import './properties-panel.css';
|
|
6
6
|
@import './color-picker.css';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import './diagram-js.css';
|
|
1
|
+
@import './diagram-js.css';
|
|
2
2
|
@import './bpmn-js.css';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import './diagram-js.css';
|
|
1
|
+
@import './diagram-js.css';
|
|
2
2
|
@import './bpmn-js.css';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import './base-modeler.css';
|
|
2
|
-
@import './element-templates.css';
|
|
1
|
+
@import './base-modeler.css';
|
|
2
|
+
@import './element-templates.css';
|
|
3
3
|
@import './element-template-chooser.css';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import './base-modeler.css';
|
|
1
|
+
@import './base-modeler.css';
|
|
2
2
|
@import './element-templates.css';
|