camunda-bpmn-js 0.21.1 → 0.22.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/dist/base-modeler.development.js +8920 -9441
- package/dist/base-modeler.production.min.js +4 -4
- package/dist/base-navigated-viewer.development.js +322 -744
- package/dist/base-navigated-viewer.production.min.js +2 -2
- package/dist/base-viewer.development.js +319 -741
- package/dist/base-viewer.production.min.js +2 -2
- package/dist/camunda-cloud-modeler.development.js +4863 -4405
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-cloud-navigated-viewer.development.js +528 -868
- package/dist/camunda-cloud-navigated-viewer.production.min.js +2 -2
- package/dist/camunda-cloud-viewer.development.js +525 -865
- package/dist/camunda-cloud-viewer.production.min.js +2 -2
- package/dist/camunda-platform-modeler.development.js +2768 -2074
- package/dist/camunda-platform-modeler.production.min.js +4 -4
- package/dist/camunda-platform-navigated-viewer.development.js +322 -744
- package/dist/camunda-platform-navigated-viewer.production.min.js +2 -2
- package/dist/camunda-platform-viewer.development.js +319 -741
- package/dist/camunda-platform-viewer.production.min.js +2 -2
- package/lib/camunda-cloud/Modeler.js +0 -12
- package/lib/camunda-cloud/util/commonModules.js +0 -3
- package/package.json +3 -4
- package/lib/camunda-cloud/features/context-pad/ContextPadOptions.js +0 -16
- package/lib/camunda-cloud/features/context-pad/ContextPadProvider.js +0 -45
- package/lib/camunda-cloud/features/context-pad/index.js +0 -6
- package/lib/camunda-cloud/features/drilldown/index.js +0 -3
- package/lib/camunda-cloud/features/palette/PaletteOptions.js +0 -15
- package/lib/camunda-cloud/features/palette/PaletteProvider.js +0 -31
- package/lib/camunda-cloud/features/palette/index.js +0 -6
- package/lib/camunda-cloud/features/popup-menu/ReplaceMenuProvider.js +0 -72
- package/lib/camunda-cloud/features/popup-menu/ReplaceOptions.js +0 -49
- package/lib/camunda-cloud/features/popup-menu/index.js +0 -6
|
@@ -2,16 +2,8 @@ import inherits from 'inherits';
|
|
|
2
2
|
|
|
3
3
|
import BaseModeler from '../base/Modeler';
|
|
4
4
|
|
|
5
|
-
import disableCollapsedSubprocessModule from 'bpmn-js-disable-collapsed-subprocess';
|
|
6
|
-
|
|
7
5
|
import behaviorsModule from 'camunda-bpmn-js-behaviors/lib/camunda-cloud';
|
|
8
6
|
|
|
9
|
-
import paletteModule from './features/palette';
|
|
10
|
-
|
|
11
|
-
import contextPadModule from './features/context-pad';
|
|
12
|
-
|
|
13
|
-
import popupMenuModule from './features/popup-menu';
|
|
14
|
-
|
|
15
7
|
import rulesModule from './features/rules';
|
|
16
8
|
|
|
17
9
|
import {
|
|
@@ -50,11 +42,7 @@ inherits(Modeler, BaseModeler);
|
|
|
50
42
|
Modeler.prototype._camundaCloudModules = [
|
|
51
43
|
...commonModules,
|
|
52
44
|
behaviorsModule,
|
|
53
|
-
contextPadModule,
|
|
54
|
-
paletteModule,
|
|
55
|
-
popupMenuModule,
|
|
56
45
|
rulesModule,
|
|
57
|
-
disableCollapsedSubprocessModule,
|
|
58
46
|
zeebePropertiesProviderModule,
|
|
59
47
|
cloudElementTemplatesPropertiesProvider
|
|
60
48
|
];
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import iconRendererModule from '@bpmn-io/element-templates-icons-renderer';
|
|
2
2
|
|
|
3
|
-
import drilldownModule from '../features/drilldown';
|
|
4
|
-
|
|
5
3
|
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json';
|
|
6
4
|
|
|
7
5
|
export const commonModules = [
|
|
8
|
-
drilldownModule,
|
|
9
6
|
iconRendererModule
|
|
10
7
|
];
|
|
11
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camunda-bpmn-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Embeddable Camunda modeling distributions based on bpmn-js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -48,11 +48,10 @@
|
|
|
48
48
|
"@bpmn-io/align-to-origin": "^0.7.0",
|
|
49
49
|
"@bpmn-io/element-templates-icons-renderer": "^0.3.0",
|
|
50
50
|
"bpmn-js": "^10.2.0",
|
|
51
|
-
"bpmn-js-disable-collapsed-subprocess": "^0.1.7",
|
|
52
51
|
"bpmn-js-executable-fix": "^0.2.0",
|
|
53
52
|
"camunda-bpmn-js-behaviors": "^0.3.0",
|
|
54
53
|
"camunda-bpmn-moddle": "^7.0.1",
|
|
55
|
-
"diagram-js": "^
|
|
54
|
+
"diagram-js": "^10.0.0",
|
|
56
55
|
"diagram-js-minimap": "^3.0.0",
|
|
57
56
|
"diagram-js-origin": "^1.3.4",
|
|
58
57
|
"inherits": "^2.0.4",
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
"mocha": "^10.0.0",
|
|
91
90
|
"mocha-test-container-support": "^0.2.0",
|
|
92
91
|
"npm-run-all": "^4.1.5",
|
|
93
|
-
"puppeteer": "^
|
|
92
|
+
"puppeteer": "^19.0.0",
|
|
94
93
|
"raw-loader": "^4.0.2",
|
|
95
94
|
"rollup": "^2.38.4",
|
|
96
95
|
"rollup-plugin-copy": "^3.3.0",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const CONTEXT_PAD_ENTRIES = [
|
|
2
|
-
'append.message-intermediate-event',
|
|
3
|
-
'append.timer-intermediate-event',
|
|
4
|
-
'append.append-task',
|
|
5
|
-
'append.intermediate-event',
|
|
6
|
-
'append.text-annotation',
|
|
7
|
-
'append.end-event',
|
|
8
|
-
'append.gateway',
|
|
9
|
-
'delete',
|
|
10
|
-
'connect',
|
|
11
|
-
'replace',
|
|
12
|
-
'lane-insert-above',
|
|
13
|
-
'lane-divide-two',
|
|
14
|
-
'lane-divide-three',
|
|
15
|
-
'lane-insert-below'
|
|
16
|
-
];
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forEach
|
|
3
|
-
} from 'min-dash';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
CONTEXT_PAD_ENTRIES as availableActions
|
|
7
|
-
} from './ContextPadOptions';
|
|
8
|
-
|
|
9
|
-
const LOW_PRIORITY = 500;
|
|
10
|
-
|
|
11
|
-
export default class ContextPadProvider {
|
|
12
|
-
|
|
13
|
-
constructor(config, injector, contextPad, contextPadProvider) {
|
|
14
|
-
|
|
15
|
-
contextPadProvider.autoPlace = undefined;
|
|
16
|
-
|
|
17
|
-
if (config.autoPlace !== false) {
|
|
18
|
-
contextPadProvider.autoPlace = injector.get('autoPlace', false);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
contextPad.registerProvider(LOW_PRIORITY, this);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
getContextPadEntries(element) {
|
|
25
|
-
|
|
26
|
-
return function(entries) {
|
|
27
|
-
|
|
28
|
-
forEach(entries, function(entry, key) {
|
|
29
|
-
if (!availableActions.includes(key)) {
|
|
30
|
-
delete entries[key];
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return entries;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ContextPadProvider.$inject = [
|
|
41
|
-
'config',
|
|
42
|
-
'injector',
|
|
43
|
-
'contextPad',
|
|
44
|
-
'contextPadProvider'
|
|
45
|
-
];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const PALETTE_OPTIONS = [
|
|
2
|
-
'hand-tool',
|
|
3
|
-
'lasso-tool',
|
|
4
|
-
'space-tool',
|
|
5
|
-
'global-connect-tool',
|
|
6
|
-
'tool-separator',
|
|
7
|
-
'create.start-event',
|
|
8
|
-
'create.intermediate-event',
|
|
9
|
-
'create.end-event',
|
|
10
|
-
'create.exclusive-gateway',
|
|
11
|
-
'create.task',
|
|
12
|
-
'create.subprocess-expanded',
|
|
13
|
-
'create.participant-expanded',
|
|
14
|
-
'create.group'
|
|
15
|
-
];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forEach
|
|
3
|
-
} from 'min-dash';
|
|
4
|
-
|
|
5
|
-
import { PALETTE_OPTIONS as availableActions } from './PaletteOptions';
|
|
6
|
-
|
|
7
|
-
const LOW_PRIORITY = 500;
|
|
8
|
-
export default class PaletteProvider {
|
|
9
|
-
|
|
10
|
-
constructor(palette) {
|
|
11
|
-
palette.registerProvider(LOW_PRIORITY, this);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
getPaletteEntries(element) {
|
|
15
|
-
return function(entries) {
|
|
16
|
-
|
|
17
|
-
forEach(entries, function(entry, key) {
|
|
18
|
-
if (!availableActions.includes(key)) {
|
|
19
|
-
delete entries[key];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return entries;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
PaletteProvider.$inject = [
|
|
30
|
-
'palette'
|
|
31
|
-
];
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forEach
|
|
3
|
-
} from 'min-dash';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
isEventSubProcess
|
|
7
|
-
} from 'bpmn-js/lib/util/DiUtil';
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
isAny
|
|
11
|
-
} from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
REPLACE_OPTIONS as availableReplaceElements,
|
|
15
|
-
HEADER_OPTIONS as availableHeaderEntries
|
|
16
|
-
} from './ReplaceOptions';
|
|
17
|
-
|
|
18
|
-
export default class ReplaceMenuProvider {
|
|
19
|
-
|
|
20
|
-
constructor(popupMenu) {
|
|
21
|
-
popupMenu.registerProvider('bpmn-replace', this);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
getPopupMenuHeaderEntries(element) {
|
|
25
|
-
|
|
26
|
-
return function(entries) {
|
|
27
|
-
let headerEntries = {};
|
|
28
|
-
|
|
29
|
-
if (
|
|
30
|
-
isAny(element, [
|
|
31
|
-
'bpmn:Task',
|
|
32
|
-
'bpmn:ReceiveTask',
|
|
33
|
-
'bpmn:ServiceTask',
|
|
34
|
-
'bpmn:SubProcess',
|
|
35
|
-
'bpmn:CallActivity'
|
|
36
|
-
]) && !isEventSubProcess(element)
|
|
37
|
-
) {
|
|
38
|
-
|
|
39
|
-
forEach(entries, function(entry, key) {
|
|
40
|
-
if (availableHeaderEntries.includes(key)) {
|
|
41
|
-
headerEntries = {
|
|
42
|
-
...headerEntries,
|
|
43
|
-
[key]: entry
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
entries = headerEntries;
|
|
51
|
-
|
|
52
|
-
return entries;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
getPopupMenuEntries(element) {
|
|
57
|
-
return function(entries) {
|
|
58
|
-
|
|
59
|
-
forEach(entries, function(entry, key) {
|
|
60
|
-
if (!availableReplaceElements.includes(key)) {
|
|
61
|
-
delete entries[key];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
return entries;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
ReplaceMenuProvider.$inject = [
|
|
71
|
-
'popupMenu'
|
|
72
|
-
];
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export const REPLACE_OPTIONS = [
|
|
2
|
-
'replace-with-service-task',
|
|
3
|
-
'replace-with-script-task',
|
|
4
|
-
'replace-with-send-task',
|
|
5
|
-
'replace-with-rule-task',
|
|
6
|
-
'replace-with-message-intermediate-catch',
|
|
7
|
-
'replace-with-message-intermediate-throw',
|
|
8
|
-
'replace-with-timer-intermediate-catch',
|
|
9
|
-
'replace-with-none-start',
|
|
10
|
-
'replace-with-none-end',
|
|
11
|
-
'replace-with-conditional-flow',
|
|
12
|
-
'replace-with-default-flow',
|
|
13
|
-
'replace-with-sequence-flow',
|
|
14
|
-
'replace-with-parallel-gateway',
|
|
15
|
-
'replace-with-exclusive-gateway',
|
|
16
|
-
'replace-with-inclusive-gateway',
|
|
17
|
-
'replace-with-collapsed-subprocess',
|
|
18
|
-
'replace-with-expanded-subprocess',
|
|
19
|
-
'replace-with-timer-boundary',
|
|
20
|
-
'replace-with-message-boundary',
|
|
21
|
-
'replace-with-event-based-gateway',
|
|
22
|
-
'replace-with-receive-task',
|
|
23
|
-
'replace-with-task',
|
|
24
|
-
'replace-with-manual-task',
|
|
25
|
-
'replace-with-message-start',
|
|
26
|
-
'replace-with-message-end',
|
|
27
|
-
'replace-with-terminate-end',
|
|
28
|
-
'replace-with-timer-start',
|
|
29
|
-
'replace-with-none-intermediate-throw',
|
|
30
|
-
'replace-with-none-intermediate-throwing', // only for StartEvent
|
|
31
|
-
'replace-with-non-interrupting-message-boundary',
|
|
32
|
-
'replace-with-non-interrupting-timer-boundary',
|
|
33
|
-
'replace-with-error-boundary',
|
|
34
|
-
'replace-with-error-end',
|
|
35
|
-
'replace-with-event-subprocess',
|
|
36
|
-
'replace-with-subprocess',
|
|
37
|
-
'replace-with-error-start',
|
|
38
|
-
'replace-with-non-interrupting-message-start',
|
|
39
|
-
'replace-with-non-interrupting-timer-start',
|
|
40
|
-
'replace-with-expanded-pool',
|
|
41
|
-
'replace-with-collapsed-pool',
|
|
42
|
-
'replace-with-call-activity',
|
|
43
|
-
'replace-with-user-task'
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
export const HEADER_OPTIONS = [
|
|
47
|
-
'toggle-parallel-mi',
|
|
48
|
-
'toggle-sequential-mi'
|
|
49
|
-
];
|