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
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { import('diagram-js/lib/features/popup-menu/PopupMenu').default } PopupMenu
|
|
3
|
-
* @typedef { import('diagram-js/lib/model').Element } Element
|
|
4
|
-
* @typedef { import('diagram-js/lib/features/popup-menu/PopupMenuProvider').PopupMenuEntries } PopupMenuEntries
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { reduce } from 'min-dash';
|
|
8
|
-
|
|
9
|
-
const LOW_PRIORITY = 250;
|
|
10
|
-
|
|
11
|
-
const ANNOTATIONS = [
|
|
12
|
-
{
|
|
13
|
-
entries: [
|
|
14
|
-
'replace-with-call-activity',
|
|
15
|
-
'append-call-activity',
|
|
16
|
-
'create-call-activity'
|
|
17
|
-
],
|
|
18
|
-
search: 'child process'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
entries: [
|
|
22
|
-
'replace-with-receive-task',
|
|
23
|
-
'append-receive-task',
|
|
24
|
-
'create-receive-task'
|
|
25
|
-
],
|
|
26
|
-
search: 'message'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
entries: [
|
|
30
|
-
'replace-with-rule-task',
|
|
31
|
-
'append-rule-task',
|
|
32
|
-
'create-rule-task'
|
|
33
|
-
],
|
|
34
|
-
search: 'dmn decision'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
entries: [
|
|
38
|
-
'replace-with-service-task',
|
|
39
|
-
'append-service-task',
|
|
40
|
-
'create-service-task',
|
|
41
|
-
],
|
|
42
|
-
search: [ 'job worker', 'job worker' ] // double mention to increase ranking in search result
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
entries: [
|
|
46
|
-
'replace-with-script-task',
|
|
47
|
-
'append-script-task',
|
|
48
|
-
'create-script-task',
|
|
49
|
-
'replace-with-send-task',
|
|
50
|
-
'append-send-task',
|
|
51
|
-
'create-send-task',
|
|
52
|
-
'replace-with-message-intermediate-throw',
|
|
53
|
-
'append-message-intermediate-throw',
|
|
54
|
-
'create-message-intermediate-throw',
|
|
55
|
-
'replace-with-message-end',
|
|
56
|
-
'append-message-end',
|
|
57
|
-
'create-message-end'
|
|
58
|
-
],
|
|
59
|
-
search: 'job worker'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
entries: [
|
|
63
|
-
'replace-with-user-task',
|
|
64
|
-
'append-user-task',
|
|
65
|
-
'create-user-task'
|
|
66
|
-
],
|
|
67
|
-
search: 'form human'
|
|
68
|
-
}
|
|
69
|
-
];
|
|
70
|
-
|
|
71
|
-
const ANNOTATIONS_KEYED = reduce(ANNOTATIONS, (annotationsKeyed, annotation) => {
|
|
72
|
-
|
|
73
|
-
const { entries, search } = annotation;
|
|
74
|
-
|
|
75
|
-
for (const entry of entries) {
|
|
76
|
-
if (annotationsKeyed[entry]) {
|
|
77
|
-
annotationsKeyed[entry].search += ' ' + search;
|
|
78
|
-
} else {
|
|
79
|
-
annotationsKeyed[entry] = { search };
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return annotationsKeyed;
|
|
84
|
-
}, {});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @param { PopupMenu } popupMenu
|
|
89
|
-
*
|
|
90
|
-
* @implements PopupMenuProvider
|
|
91
|
-
*/
|
|
92
|
-
export default function CamundaDetailsPopupMenuProvider(popupMenu) {
|
|
93
|
-
|
|
94
|
-
this._popupMenu = popupMenu;
|
|
95
|
-
|
|
96
|
-
this.register();
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
CamundaDetailsPopupMenuProvider.$inject = [ 'popupMenu' ];
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Register create menu provider in the popup menu
|
|
104
|
-
*/
|
|
105
|
-
CamundaDetailsPopupMenuProvider.prototype.register = function() {
|
|
106
|
-
|
|
107
|
-
// plug-into create-append-anything <create> menu
|
|
108
|
-
this._popupMenu.registerProvider('bpmn-create', LOW_PRIORITY, this);
|
|
109
|
-
|
|
110
|
-
// plug-into create-append-anything <append> menu
|
|
111
|
-
this._popupMenu.registerProvider('bpmn-append', LOW_PRIORITY, this);
|
|
112
|
-
|
|
113
|
-
// plug-into <replace> menu
|
|
114
|
-
this._popupMenu.registerProvider('bpmn-replace', LOW_PRIORITY, this);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Returns the create options as menu entries
|
|
120
|
-
*
|
|
121
|
-
* @param { Element } _element
|
|
122
|
-
*/
|
|
123
|
-
CamundaDetailsPopupMenuProvider.prototype.getPopupMenuEntries = function(_element) {
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @param { PopupMenuEntries } existingEntries
|
|
127
|
-
*
|
|
128
|
-
* @return { PopupMenuEntries }
|
|
129
|
-
*/
|
|
130
|
-
return (existingEntries) => {
|
|
131
|
-
|
|
132
|
-
return Object.entries(existingEntries).reduce((entries, [ name, entry ]) => {
|
|
133
|
-
|
|
134
|
-
entries[name] = this._annotateEntry(name, entry);
|
|
135
|
-
|
|
136
|
-
return entries;
|
|
137
|
-
}, { });
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
CamundaDetailsPopupMenuProvider.prototype._annotateEntry = function(name, entry) {
|
|
143
|
-
|
|
144
|
-
const annotation = ANNOTATIONS_KEYED[name];
|
|
145
|
-
|
|
146
|
-
if (annotation) {
|
|
147
|
-
return {
|
|
148
|
-
...entry,
|
|
149
|
-
search: entry.search ? `${ entry.search } ${ annotation.search }` : annotation.search
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return entry;
|
|
1
|
+
/**
|
|
2
|
+
* @typedef { import('diagram-js/lib/features/popup-menu/PopupMenu').default } PopupMenu
|
|
3
|
+
* @typedef { import('diagram-js/lib/model').Element } Element
|
|
4
|
+
* @typedef { import('diagram-js/lib/features/popup-menu/PopupMenuProvider').PopupMenuEntries } PopupMenuEntries
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { reduce } from 'min-dash';
|
|
8
|
+
|
|
9
|
+
const LOW_PRIORITY = 250;
|
|
10
|
+
|
|
11
|
+
const ANNOTATIONS = [
|
|
12
|
+
{
|
|
13
|
+
entries: [
|
|
14
|
+
'replace-with-call-activity',
|
|
15
|
+
'append-call-activity',
|
|
16
|
+
'create-call-activity'
|
|
17
|
+
],
|
|
18
|
+
search: 'child process'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
entries: [
|
|
22
|
+
'replace-with-receive-task',
|
|
23
|
+
'append-receive-task',
|
|
24
|
+
'create-receive-task'
|
|
25
|
+
],
|
|
26
|
+
search: 'message'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
entries: [
|
|
30
|
+
'replace-with-rule-task',
|
|
31
|
+
'append-rule-task',
|
|
32
|
+
'create-rule-task'
|
|
33
|
+
],
|
|
34
|
+
search: 'dmn decision'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
entries: [
|
|
38
|
+
'replace-with-service-task',
|
|
39
|
+
'append-service-task',
|
|
40
|
+
'create-service-task',
|
|
41
|
+
],
|
|
42
|
+
search: [ 'job worker', 'job worker' ] // double mention to increase ranking in search result
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
entries: [
|
|
46
|
+
'replace-with-script-task',
|
|
47
|
+
'append-script-task',
|
|
48
|
+
'create-script-task',
|
|
49
|
+
'replace-with-send-task',
|
|
50
|
+
'append-send-task',
|
|
51
|
+
'create-send-task',
|
|
52
|
+
'replace-with-message-intermediate-throw',
|
|
53
|
+
'append-message-intermediate-throw',
|
|
54
|
+
'create-message-intermediate-throw',
|
|
55
|
+
'replace-with-message-end',
|
|
56
|
+
'append-message-end',
|
|
57
|
+
'create-message-end'
|
|
58
|
+
],
|
|
59
|
+
search: 'job worker'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
entries: [
|
|
63
|
+
'replace-with-user-task',
|
|
64
|
+
'append-user-task',
|
|
65
|
+
'create-user-task'
|
|
66
|
+
],
|
|
67
|
+
search: 'form human'
|
|
68
|
+
}
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
const ANNOTATIONS_KEYED = reduce(ANNOTATIONS, (annotationsKeyed, annotation) => {
|
|
72
|
+
|
|
73
|
+
const { entries, search } = annotation;
|
|
74
|
+
|
|
75
|
+
for (const entry of entries) {
|
|
76
|
+
if (annotationsKeyed[entry]) {
|
|
77
|
+
annotationsKeyed[entry].search += ' ' + search;
|
|
78
|
+
} else {
|
|
79
|
+
annotationsKeyed[entry] = { search };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return annotationsKeyed;
|
|
84
|
+
}, {});
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param { PopupMenu } popupMenu
|
|
89
|
+
*
|
|
90
|
+
* @implements PopupMenuProvider
|
|
91
|
+
*/
|
|
92
|
+
export default function CamundaDetailsPopupMenuProvider(popupMenu) {
|
|
93
|
+
|
|
94
|
+
this._popupMenu = popupMenu;
|
|
95
|
+
|
|
96
|
+
this.register();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
CamundaDetailsPopupMenuProvider.$inject = [ 'popupMenu' ];
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Register create menu provider in the popup menu
|
|
104
|
+
*/
|
|
105
|
+
CamundaDetailsPopupMenuProvider.prototype.register = function() {
|
|
106
|
+
|
|
107
|
+
// plug-into create-append-anything <create> menu
|
|
108
|
+
this._popupMenu.registerProvider('bpmn-create', LOW_PRIORITY, this);
|
|
109
|
+
|
|
110
|
+
// plug-into create-append-anything <append> menu
|
|
111
|
+
this._popupMenu.registerProvider('bpmn-append', LOW_PRIORITY, this);
|
|
112
|
+
|
|
113
|
+
// plug-into <replace> menu
|
|
114
|
+
this._popupMenu.registerProvider('bpmn-replace', LOW_PRIORITY, this);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Returns the create options as menu entries
|
|
120
|
+
*
|
|
121
|
+
* @param { Element } _element
|
|
122
|
+
*/
|
|
123
|
+
CamundaDetailsPopupMenuProvider.prototype.getPopupMenuEntries = function(_element) {
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @param { PopupMenuEntries } existingEntries
|
|
127
|
+
*
|
|
128
|
+
* @return { PopupMenuEntries }
|
|
129
|
+
*/
|
|
130
|
+
return (existingEntries) => {
|
|
131
|
+
|
|
132
|
+
return Object.entries(existingEntries).reduce((entries, [ name, entry ]) => {
|
|
133
|
+
|
|
134
|
+
entries[name] = this._annotateEntry(name, entry);
|
|
135
|
+
|
|
136
|
+
return entries;
|
|
137
|
+
}, { });
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
CamundaDetailsPopupMenuProvider.prototype._annotateEntry = function(name, entry) {
|
|
143
|
+
|
|
144
|
+
const annotation = ANNOTATIONS_KEYED[name];
|
|
145
|
+
|
|
146
|
+
if (annotation) {
|
|
147
|
+
return {
|
|
148
|
+
...entry,
|
|
149
|
+
search: entry.search ? `${ entry.search } ${ annotation.search }` : annotation.search
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return entry;
|
|
154
154
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
let __init__: string[];
|
|
3
|
-
let camundaDetailsPopupMenuProvider: (string | typeof CamundaDetailsPopupMenuProvider)[];
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
import CamundaDetailsPopupMenuProvider from './CamundaDetailsPopupMenuProvider.js';
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let camundaDetailsPopupMenuProvider: (string | typeof CamundaDetailsPopupMenuProvider)[];
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
import CamundaDetailsPopupMenuProvider from './CamundaDetailsPopupMenuProvider.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const commonModules: any[];
|
|
2
|
-
/**
|
|
3
|
-
* @type { {
|
|
4
|
-
* zeebe: any
|
|
5
|
-
* } }
|
|
6
|
-
*/
|
|
7
|
-
export const commonModdleExtensions: {
|
|
8
|
-
zeebe: any;
|
|
9
|
-
};
|
|
1
|
+
export const commonModules: any[];
|
|
2
|
+
/**
|
|
3
|
+
* @type { {
|
|
4
|
+
* zeebe: any
|
|
5
|
+
* } }
|
|
6
|
+
*/
|
|
7
|
+
export const commonModdleExtensions: {
|
|
8
|
+
zeebe: any;
|
|
9
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import iconRendererModule from '@bpmn-io/element-template-icon-renderer';
|
|
2
|
-
|
|
3
|
-
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json';
|
|
4
|
-
|
|
5
|
-
export const commonModules = [
|
|
6
|
-
iconRendererModule
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @type { {
|
|
11
|
-
* zeebe: any
|
|
12
|
-
* } }
|
|
13
|
-
*/
|
|
14
|
-
export const commonModdleExtensions = {
|
|
15
|
-
zeebe: zeebeModdle
|
|
1
|
+
import iconRendererModule from '@bpmn-io/element-template-icon-renderer';
|
|
2
|
+
|
|
3
|
+
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json';
|
|
4
|
+
|
|
5
|
+
export const commonModules = [
|
|
6
|
+
iconRendererModule
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @type { {
|
|
11
|
+
* zeebe: any
|
|
12
|
+
* } }
|
|
13
|
+
*/
|
|
14
|
+
export const commonModdleExtensions = {
|
|
15
|
+
zeebe: zeebeModdle
|
|
16
16
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default class Modeler extends BaseModeler {}
|
|
2
|
-
type BaseViewerOptions = import("bpmn-js/lib/BaseViewer").BaseViewerOptions;
|
|
3
|
-
import BaseModeler from '../base/Modeler';
|
|
1
|
+
export default class Modeler extends BaseModeler {}
|
|
2
|
+
type BaseViewerOptions = import("bpmn-js/lib/BaseViewer").BaseViewerOptions;
|
|
3
|
+
import BaseModeler from '../base/Modeler';
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import inherits from 'inherits-browser';
|
|
2
|
-
|
|
3
|
-
import BaseModeler from '../base/Modeler';
|
|
4
|
-
|
|
5
|
-
import behaviorsModule from 'camunda-bpmn-js-behaviors/lib/camunda-platform';
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
CamundaPlatformPropertiesProviderModule,
|
|
9
|
-
CamundaPlatformTooltipProvider
|
|
10
|
-
} from 'bpmn-js-properties-panel';
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
ElementTemplatesPropertiesProviderModule
|
|
14
|
-
} from 'bpmn-js-element-templates';
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
CamundaVariableResolverModule as variableResolverModule
|
|
18
|
-
} from '@bpmn-io/variable-resolver';
|
|
19
|
-
|
|
20
|
-
import { commonModdleExtensions } from './util/commonModules';
|
|
21
|
-
|
|
22
|
-
import colorPickerModule from 'bpmn-js-color-picker';
|
|
23
|
-
|
|
24
|
-
import {
|
|
25
|
-
CreateAppendAnythingModule as createAppendAnythingModule,
|
|
26
|
-
RemoveTemplatesModule as removeTemplatesModule
|
|
27
|
-
} from 'bpmn-js-create-append-anything';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @param {BaseViewerOptions} options
|
|
35
|
-
*/
|
|
36
|
-
export default function Modeler(options = {}) {
|
|
37
|
-
|
|
38
|
-
options = {
|
|
39
|
-
...options,
|
|
40
|
-
moddleExtensions: {
|
|
41
|
-
...commonModdleExtensions,
|
|
42
|
-
...options.moddleExtensions
|
|
43
|
-
},
|
|
44
|
-
propertiesPanel: {
|
|
45
|
-
tooltip: CamundaPlatformTooltipProvider,
|
|
46
|
-
...options.propertiesPanel
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
BaseModeler.call(this, options);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
inherits(Modeler, BaseModeler);
|
|
54
|
-
|
|
55
|
-
Modeler.prototype._camundaPlatformModules = [
|
|
56
|
-
behaviorsModule,
|
|
57
|
-
CamundaPlatformPropertiesProviderModule,
|
|
58
|
-
ElementTemplatesPropertiesProviderModule,
|
|
59
|
-
colorPickerModule,
|
|
60
|
-
createAppendAnythingModule,
|
|
61
|
-
variableResolverModule,
|
|
62
|
-
removeTemplatesModule
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
Modeler.prototype._modules = [].concat(
|
|
66
|
-
BaseModeler.prototype._modules,
|
|
67
|
-
Modeler.prototype._camundaPlatformModules
|
|
68
|
-
);
|
|
1
|
+
import inherits from 'inherits-browser';
|
|
2
|
+
|
|
3
|
+
import BaseModeler from '../base/Modeler';
|
|
4
|
+
|
|
5
|
+
import behaviorsModule from 'camunda-bpmn-js-behaviors/lib/camunda-platform';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
CamundaPlatformPropertiesProviderModule,
|
|
9
|
+
CamundaPlatformTooltipProvider
|
|
10
|
+
} from 'bpmn-js-properties-panel';
|
|
11
|
+
|
|
12
|
+
import {
|
|
13
|
+
ElementTemplatesPropertiesProviderModule
|
|
14
|
+
} from 'bpmn-js-element-templates';
|
|
15
|
+
|
|
16
|
+
import {
|
|
17
|
+
CamundaVariableResolverModule as variableResolverModule
|
|
18
|
+
} from '@bpmn-io/variable-resolver';
|
|
19
|
+
|
|
20
|
+
import { commonModdleExtensions } from './util/commonModules';
|
|
21
|
+
|
|
22
|
+
import colorPickerModule from 'bpmn-js-color-picker';
|
|
23
|
+
|
|
24
|
+
import {
|
|
25
|
+
CreateAppendAnythingModule as createAppendAnythingModule,
|
|
26
|
+
RemoveTemplatesModule as removeTemplatesModule
|
|
27
|
+
} from 'bpmn-js-create-append-anything';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @param {BaseViewerOptions} options
|
|
35
|
+
*/
|
|
36
|
+
export default function Modeler(options = {}) {
|
|
37
|
+
|
|
38
|
+
options = {
|
|
39
|
+
...options,
|
|
40
|
+
moddleExtensions: {
|
|
41
|
+
...commonModdleExtensions,
|
|
42
|
+
...options.moddleExtensions
|
|
43
|
+
},
|
|
44
|
+
propertiesPanel: {
|
|
45
|
+
tooltip: CamundaPlatformTooltipProvider,
|
|
46
|
+
...options.propertiesPanel
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
BaseModeler.call(this, options);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
inherits(Modeler, BaseModeler);
|
|
54
|
+
|
|
55
|
+
Modeler.prototype._camundaPlatformModules = [
|
|
56
|
+
behaviorsModule,
|
|
57
|
+
CamundaPlatformPropertiesProviderModule,
|
|
58
|
+
ElementTemplatesPropertiesProviderModule,
|
|
59
|
+
colorPickerModule,
|
|
60
|
+
createAppendAnythingModule,
|
|
61
|
+
variableResolverModule,
|
|
62
|
+
removeTemplatesModule
|
|
63
|
+
];
|
|
64
|
+
|
|
65
|
+
Modeler.prototype._modules = [].concat(
|
|
66
|
+
BaseModeler.prototype._modules,
|
|
67
|
+
Modeler.prototype._camundaPlatformModules
|
|
68
|
+
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default class NavigatedViewer extends BaseViewer<null> {
|
|
2
|
-
/**
|
|
3
|
-
* @param options
|
|
4
|
-
*/
|
|
5
|
-
constructor(options?: BaseViewerOptions);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type BaseViewerOptions = import("bpmn-js/lib/BaseViewer").BaseViewerOptions;
|
|
9
|
-
import BaseViewer from '../base/NavigatedViewer';
|
|
1
|
+
export default class NavigatedViewer extends BaseViewer<null> {
|
|
2
|
+
/**
|
|
3
|
+
* @param options
|
|
4
|
+
*/
|
|
5
|
+
constructor(options?: BaseViewerOptions);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type BaseViewerOptions = import("bpmn-js/lib/BaseViewer").BaseViewerOptions;
|
|
9
|
+
import BaseViewer from '../base/NavigatedViewer';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import inherits from 'inherits-browser';
|
|
2
|
-
|
|
3
|
-
import BaseViewer from '../base/NavigatedViewer';
|
|
4
|
-
|
|
5
|
-
import { commonModdleExtensions } from './util/commonModules';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @param {BaseViewerOptions} options
|
|
13
|
-
*/
|
|
14
|
-
export default function NavigatedViewer(options = {}) {
|
|
15
|
-
|
|
16
|
-
options = {
|
|
17
|
-
...options,
|
|
18
|
-
moddleExtensions: {
|
|
19
|
-
...commonModdleExtensions,
|
|
20
|
-
...options.moddleExtensions
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
BaseViewer.call(this, options);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
inherits(NavigatedViewer, BaseViewer);
|
|
1
|
+
import inherits from 'inherits-browser';
|
|
2
|
+
|
|
3
|
+
import BaseViewer from '../base/NavigatedViewer';
|
|
4
|
+
|
|
5
|
+
import { commonModdleExtensions } from './util/commonModules';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @param {BaseViewerOptions} options
|
|
13
|
+
*/
|
|
14
|
+
export default function NavigatedViewer(options = {}) {
|
|
15
|
+
|
|
16
|
+
options = {
|
|
17
|
+
...options,
|
|
18
|
+
moddleExtensions: {
|
|
19
|
+
...commonModdleExtensions,
|
|
20
|
+
...options.moddleExtensions
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
BaseViewer.call(this, options);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
inherits(NavigatedViewer, BaseViewer);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export default class Viewer extends BaseViewer<null> {
|
|
2
|
-
/**
|
|
3
|
-
* @param options
|
|
4
|
-
*/
|
|
5
|
-
constructor(options?: BaseViewerOptions);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type BaseViewerOptions = import("bpmn-js/lib/BaseViewer").BaseViewerOptions;
|
|
9
|
-
import BaseViewer from '../base/Viewer';
|
|
1
|
+
export default class Viewer extends BaseViewer<null> {
|
|
2
|
+
/**
|
|
3
|
+
* @param options
|
|
4
|
+
*/
|
|
5
|
+
constructor(options?: BaseViewerOptions);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type BaseViewerOptions = import("bpmn-js/lib/BaseViewer").BaseViewerOptions;
|
|
9
|
+
import BaseViewer from '../base/Viewer';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import inherits from 'inherits-browser';
|
|
2
|
-
|
|
3
|
-
import BaseViewer from '../base/Viewer';
|
|
4
|
-
|
|
5
|
-
import { commonModdleExtensions } from './util/commonModules';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @param {BaseViewerOptions} options
|
|
13
|
-
*/
|
|
14
|
-
export default function Viewer(options = {}) {
|
|
15
|
-
|
|
16
|
-
options = {
|
|
17
|
-
...options,
|
|
18
|
-
moddleExtensions: {
|
|
19
|
-
...commonModdleExtensions,
|
|
20
|
-
...options.moddleExtensions
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
BaseViewer.call(this, options);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
inherits(Viewer, BaseViewer);
|
|
1
|
+
import inherits from 'inherits-browser';
|
|
2
|
+
|
|
3
|
+
import BaseViewer from '../base/Viewer';
|
|
4
|
+
|
|
5
|
+
import { commonModdleExtensions } from './util/commonModules';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @param {BaseViewerOptions} options
|
|
13
|
+
*/
|
|
14
|
+
export default function Viewer(options = {}) {
|
|
15
|
+
|
|
16
|
+
options = {
|
|
17
|
+
...options,
|
|
18
|
+
moddleExtensions: {
|
|
19
|
+
...commonModdleExtensions,
|
|
20
|
+
...options.moddleExtensions
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
BaseViewer.call(this, options);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
inherits(Viewer, BaseViewer);
|