camunda-bpmn-js 5.0.0 → 5.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/dist/assets/diagram-js.css +1 -1
- package/dist/base-modeler.development.js +230 -225
- package/dist/base-modeler.production.min.js +2 -2
- package/dist/base-navigated-viewer.development.js +9 -2
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +1 -1
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +2353 -2148
- package/dist/camunda-cloud-modeler.production.min.js +6 -5
- package/dist/camunda-cloud-navigated-viewer.development.js +55 -2
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +47 -1
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +499 -494
- package/dist/camunda-platform-modeler.production.min.js +2 -2
- package/dist/camunda-platform-navigated-viewer.development.js +9 -2
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +1 -1
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/package.json +16 -16
|
@@ -2755,7 +2755,7 @@
|
|
|
2755
2755
|
* @return {string}
|
|
2756
2756
|
*/
|
|
2757
2757
|
function componentsToPath(elements) {
|
|
2758
|
-
return elements.flat().join(',').replace(/,?([A-z]),?/g, '$1');
|
|
2758
|
+
return elements.flat().join(',').replace(/,?([A-Za-z]),?/g, '$1');
|
|
2759
2759
|
}
|
|
2760
2760
|
|
|
2761
2761
|
/**
|
|
@@ -25387,7 +25387,7 @@
|
|
|
25387
25387
|
* `keyboard.bind=true|false` configuration option.
|
|
25388
25388
|
*
|
|
25389
25389
|
* @param {Object} config
|
|
25390
|
-
* @param {
|
|
25390
|
+
* @param {boolean} [config.bind]
|
|
25391
25391
|
* @param {EventBus} eventBus
|
|
25392
25392
|
*/
|
|
25393
25393
|
function Keyboard(config, eventBus) {
|
|
@@ -25463,10 +25463,17 @@
|
|
|
25463
25463
|
/**
|
|
25464
25464
|
* Bind keyboard events to the given DOM node.
|
|
25465
25465
|
*
|
|
25466
|
+
* @overlord
|
|
25467
|
+
* @deprecated No longer in use since version 15.0.0.
|
|
25468
|
+
*
|
|
25466
25469
|
* @param {EventTarget} node
|
|
25467
25470
|
*/
|
|
25471
|
+
/**
|
|
25472
|
+
* Bind keyboard events to the canvas node.
|
|
25473
|
+
*/
|
|
25468
25474
|
Keyboard.prototype.bind = function(node) {
|
|
25469
25475
|
|
|
25476
|
+
// legacy <node> argument provided
|
|
25470
25477
|
if (node) {
|
|
25471
25478
|
console.error('unsupported argument <node>', new Error(compatMessage));
|
|
25472
25479
|
}
|
|
@@ -102756,8 +102763,8 @@
|
|
|
102756
102763
|
});
|
|
102757
102764
|
const selectedElement = state.selectedElement;
|
|
102758
102765
|
|
|
102759
|
-
/**
|
|
102760
|
-
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
102766
|
+
/**
|
|
102767
|
+
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
102761
102768
|
*/
|
|
102762
102769
|
const _update = element => {
|
|
102763
102770
|
if (!element) {
|
|
@@ -102931,8 +102938,7 @@
|
|
|
102931
102938
|
// helpers //////////////////////////
|
|
102932
102939
|
|
|
102933
102940
|
function isImplicitRoot$1(element) {
|
|
102934
|
-
|
|
102935
|
-
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
102941
|
+
return element && element.isImplicit;
|
|
102936
102942
|
}
|
|
102937
102943
|
function findElement(elements, element) {
|
|
102938
102944
|
return find$1(elements, e => e === element);
|
|
@@ -102943,10 +102949,10 @@
|
|
|
102943
102949
|
|
|
102944
102950
|
const DEFAULT_PRIORITY = 1000;
|
|
102945
102951
|
|
|
102946
|
-
/**
|
|
102947
|
-
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
102948
|
-
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
102949
|
-
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
102952
|
+
/**
|
|
102953
|
+
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
102954
|
+
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
102955
|
+
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
102950
102956
|
*/
|
|
102951
102957
|
|
|
102952
102958
|
class BpmnPropertiesPanelRenderer {
|
|
@@ -102966,7 +102972,7 @@
|
|
|
102966
102972
|
this._tooltipConfig = tooltipConfig;
|
|
102967
102973
|
this._feelPopupContainer = feelPopupContainer;
|
|
102968
102974
|
this._getFeelPopupLinks = getFeelPopupLinks;
|
|
102969
|
-
this._container = domify$1('<div style="height: 100%" class="bio-properties-panel-container"></div>');
|
|
102975
|
+
this._container = domify$1('<div style="height: 100%" tabindex="-1" class="bio-properties-panel-container"></div>');
|
|
102970
102976
|
var commandStack = injector.get('commandStack', false);
|
|
102971
102977
|
commandStack && setupKeyboard(this._container, eventBus, commandStack);
|
|
102972
102978
|
eventBus.on('diagram.init', () => {
|
|
@@ -102985,10 +102991,10 @@
|
|
|
102985
102991
|
});
|
|
102986
102992
|
}
|
|
102987
102993
|
|
|
102988
|
-
/**
|
|
102989
|
-
* Attach the properties panel to a parent node.
|
|
102990
|
-
*
|
|
102991
|
-
* @param {HTMLElement} container
|
|
102994
|
+
/**
|
|
102995
|
+
* Attach the properties panel to a parent node.
|
|
102996
|
+
*
|
|
102997
|
+
* @param {HTMLElement} container
|
|
102992
102998
|
*/
|
|
102993
102999
|
attachTo(container) {
|
|
102994
103000
|
if (!container) {
|
|
@@ -103013,8 +103019,8 @@
|
|
|
103013
103019
|
this._eventBus.fire('propertiesPanel.attach');
|
|
103014
103020
|
}
|
|
103015
103021
|
|
|
103016
|
-
/**
|
|
103017
|
-
* Detach the properties panel from its parent node.
|
|
103022
|
+
/**
|
|
103023
|
+
* Detach the properties panel from its parent node.
|
|
103018
103024
|
*/
|
|
103019
103025
|
detach() {
|
|
103020
103026
|
const parentNode = this._container.parentNode;
|
|
@@ -103024,11 +103030,11 @@
|
|
|
103024
103030
|
}
|
|
103025
103031
|
}
|
|
103026
103032
|
|
|
103027
|
-
/**
|
|
103028
|
-
* Register a new properties provider to the properties panel.
|
|
103029
|
-
*
|
|
103030
|
-
* @param {Number} [priority]
|
|
103031
|
-
* @param {PropertiesProvider} provider
|
|
103033
|
+
/**
|
|
103034
|
+
* Register a new properties provider to the properties panel.
|
|
103035
|
+
*
|
|
103036
|
+
* @param {Number} [priority]
|
|
103037
|
+
* @param {PropertiesProvider} provider
|
|
103032
103038
|
*/
|
|
103033
103039
|
registerProvider(priority, provider) {
|
|
103034
103040
|
if (!provider) {
|
|
@@ -103045,9 +103051,9 @@
|
|
|
103045
103051
|
this._eventBus.fire('propertiesPanel.providersChanged');
|
|
103046
103052
|
}
|
|
103047
103053
|
|
|
103048
|
-
/**
|
|
103049
|
-
* Updates the layout of the properties panel.
|
|
103050
|
-
* @param {Object} layout
|
|
103054
|
+
/**
|
|
103055
|
+
* Updates the layout of the properties panel.
|
|
103056
|
+
* @param {Object} layout
|
|
103051
103057
|
*/
|
|
103052
103058
|
setLayout(layout) {
|
|
103053
103059
|
this._eventBus.fire('propertiesPanel.setLayout', {
|
|
@@ -103094,16 +103100,15 @@
|
|
|
103094
103100
|
// helpers ///////////////////////
|
|
103095
103101
|
|
|
103096
103102
|
function isImplicitRoot(element) {
|
|
103097
|
-
|
|
103098
|
-
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
103103
|
+
return element && element.isImplicit;
|
|
103099
103104
|
}
|
|
103100
103105
|
|
|
103101
|
-
/**
|
|
103102
|
-
* Setup keyboard bindings (undo, redo) on the given container.
|
|
103103
|
-
*
|
|
103104
|
-
* @param {Element} container
|
|
103105
|
-
* @param {EventBus} eventBus
|
|
103106
|
-
* @param {CommandStack} commandStack
|
|
103106
|
+
/**
|
|
103107
|
+
* Setup keyboard bindings (undo, redo) on the given container.
|
|
103108
|
+
*
|
|
103109
|
+
* @param {Element} container
|
|
103110
|
+
* @param {EventBus} eventBus
|
|
103111
|
+
* @param {CommandStack} commandStack
|
|
103107
103112
|
*/
|
|
103108
103113
|
function setupKeyboard(container, eventBus, commandStack) {
|
|
103109
103114
|
function cancel(event) {
|
|
@@ -103128,14 +103133,14 @@
|
|
|
103128
103133
|
});
|
|
103129
103134
|
}
|
|
103130
103135
|
|
|
103131
|
-
/**
|
|
103132
|
-
* A handler that combines and executes multiple commands.
|
|
103133
|
-
*
|
|
103134
|
-
* All updates are bundled on the command stack and executed in one step.
|
|
103135
|
-
* This also makes it possible to revert the changes in one step.
|
|
103136
|
-
*
|
|
103137
|
-
* Example use case: remove the camunda:formKey attribute and in addition
|
|
103138
|
-
* add all form fields needed for the camunda:formData property.
|
|
103136
|
+
/**
|
|
103137
|
+
* A handler that combines and executes multiple commands.
|
|
103138
|
+
*
|
|
103139
|
+
* All updates are bundled on the command stack and executed in one step.
|
|
103140
|
+
* This also makes it possible to revert the changes in one step.
|
|
103141
|
+
*
|
|
103142
|
+
* Example use case: remove the camunda:formKey attribute and in addition
|
|
103143
|
+
* add all form fields needed for the camunda:formData property.
|
|
103139
103144
|
*/
|
|
103140
103145
|
class MultiCommandHandler {
|
|
103141
103146
|
constructor(commandStack) {
|
|
@@ -103262,12 +103267,12 @@
|
|
|
103262
103267
|
return compensateEventDefinition && compensateEventDefinition.get('activityRef');
|
|
103263
103268
|
}
|
|
103264
103269
|
|
|
103265
|
-
/**
|
|
103266
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103270
|
+
/**
|
|
103271
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103267
103272
|
*/
|
|
103268
103273
|
|
|
103269
|
-
/**
|
|
103270
|
-
* @returns {Array<Entry>} entries
|
|
103274
|
+
/**
|
|
103275
|
+
* @returns {Array<Entry>} entries
|
|
103271
103276
|
*/
|
|
103272
103277
|
function CompensationProps(props) {
|
|
103273
103278
|
const {
|
|
@@ -103377,12 +103382,12 @@
|
|
|
103377
103382
|
return getFlowElements(element, 'bpmn:BoundaryEvent');
|
|
103378
103383
|
}
|
|
103379
103384
|
|
|
103380
|
-
/**
|
|
103381
|
-
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
103382
|
-
*
|
|
103383
|
-
* @param {ModdleElement} activity
|
|
103384
|
-
* @param {Array<ModdleElement>} boundaryEvents
|
|
103385
|
-
* @returns {Boolean}
|
|
103385
|
+
/**
|
|
103386
|
+
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
103387
|
+
*
|
|
103388
|
+
* @param {ModdleElement} activity
|
|
103389
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
103390
|
+
* @returns {Boolean}
|
|
103386
103391
|
*/
|
|
103387
103392
|
function hasCompensationEventAttached(activity, boundaryEvents) {
|
|
103388
103393
|
const {
|
|
@@ -103397,15 +103402,15 @@
|
|
|
103397
103402
|
});
|
|
103398
103403
|
}
|
|
103399
103404
|
|
|
103400
|
-
/**
|
|
103401
|
-
* Checks whether an Activity can be compensated. That's the case when it is
|
|
103402
|
-
* a) a CallActivity
|
|
103403
|
-
* b) a SubProcess, when it is not event based and not a compensation
|
|
103404
|
-
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
103405
|
-
*
|
|
103406
|
-
* @param {ModdleElement} activity
|
|
103407
|
-
* @param {Array<ModdleElement>} boundaryEvents
|
|
103408
|
-
* @returns {Boolean}
|
|
103405
|
+
/**
|
|
103406
|
+
* Checks whether an Activity can be compensated. That's the case when it is
|
|
103407
|
+
* a) a CallActivity
|
|
103408
|
+
* b) a SubProcess, when it is not event based and not a compensation
|
|
103409
|
+
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
103410
|
+
*
|
|
103411
|
+
* @param {ModdleElement} activity
|
|
103412
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
103413
|
+
* @returns {Boolean}
|
|
103409
103414
|
*/
|
|
103410
103415
|
function canBeCompensated(activity, boundaryEvents) {
|
|
103411
103416
|
return is$1(activity, 'bpmn:CallActivity') || is$1(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
|
|
@@ -103418,11 +103423,11 @@
|
|
|
103418
103423
|
});
|
|
103419
103424
|
}
|
|
103420
103425
|
|
|
103421
|
-
/**
|
|
103422
|
-
* Retrieves all possible activities to reference for a Compensation.
|
|
103423
|
-
*
|
|
103424
|
-
* @param {djs.model.Base} element
|
|
103425
|
-
* @returns {Array<ModdleElement>}
|
|
103426
|
+
/**
|
|
103427
|
+
* Retrieves all possible activities to reference for a Compensation.
|
|
103428
|
+
*
|
|
103429
|
+
* @param {djs.model.Base} element
|
|
103430
|
+
* @returns {Array<ModdleElement>}
|
|
103426
103431
|
*/
|
|
103427
103432
|
function findActivityRefs(element) {
|
|
103428
103433
|
const businessObject = getBusinessObject(element);
|
|
@@ -103442,13 +103447,13 @@
|
|
|
103442
103447
|
return activities;
|
|
103443
103448
|
}
|
|
103444
103449
|
|
|
103445
|
-
/**
|
|
103446
|
-
* Retrieves an option label in the form
|
|
103447
|
-
* a) with name: "my Task (id=Task_1)"
|
|
103448
|
-
* b) without name: "(id=Task_1)"
|
|
103449
|
-
*
|
|
103450
|
-
* @param {ModdleElement} activity
|
|
103451
|
-
* @returns {String}
|
|
103450
|
+
/**
|
|
103451
|
+
* Retrieves an option label in the form
|
|
103452
|
+
* a) with name: "my Task (id=Task_1)"
|
|
103453
|
+
* b) without name: "(id=Task_1)"
|
|
103454
|
+
*
|
|
103455
|
+
* @param {ModdleElement} activity
|
|
103456
|
+
* @returns {String}
|
|
103452
103457
|
*/
|
|
103453
103458
|
function createOptionLabel(activity) {
|
|
103454
103459
|
const {
|
|
@@ -103463,12 +103468,12 @@
|
|
|
103463
103468
|
|
|
103464
103469
|
const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
|
|
103465
103470
|
|
|
103466
|
-
/**
|
|
103467
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103471
|
+
/**
|
|
103472
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103468
103473
|
*/
|
|
103469
103474
|
|
|
103470
|
-
/**
|
|
103471
|
-
* @returns {Array<Entry>} entries
|
|
103475
|
+
/**
|
|
103476
|
+
* @returns {Array<Entry>} entries
|
|
103472
103477
|
*/
|
|
103473
103478
|
function DocumentationProps(props) {
|
|
103474
103479
|
const {
|
|
@@ -103539,12 +103544,12 @@
|
|
|
103539
103544
|
});
|
|
103540
103545
|
}
|
|
103541
103546
|
|
|
103542
|
-
/**
|
|
103543
|
-
* Retrieves a documentation element from a given moddle element.
|
|
103544
|
-
*
|
|
103545
|
-
* @param {ModdleElement} businessObject
|
|
103546
|
-
*
|
|
103547
|
-
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
103547
|
+
/**
|
|
103548
|
+
* Retrieves a documentation element from a given moddle element.
|
|
103549
|
+
*
|
|
103550
|
+
* @param {ModdleElement} businessObject
|
|
103551
|
+
*
|
|
103552
|
+
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
103548
103553
|
*/
|
|
103549
103554
|
function getDocumentation(businessObject) {
|
|
103550
103555
|
return function () {
|
|
@@ -103553,10 +103558,10 @@
|
|
|
103553
103558
|
};
|
|
103554
103559
|
}
|
|
103555
103560
|
|
|
103556
|
-
/**
|
|
103557
|
-
* Sets a documentation element for a given moddle element.
|
|
103558
|
-
*
|
|
103559
|
-
* @param {ModdleElement} businessObject
|
|
103561
|
+
/**
|
|
103562
|
+
* Sets a documentation element for a given moddle element.
|
|
103563
|
+
*
|
|
103564
|
+
* @param {ModdleElement} businessObject
|
|
103560
103565
|
*/
|
|
103561
103566
|
function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
|
|
103562
103567
|
return function (value) {
|
|
@@ -103599,15 +103604,15 @@
|
|
|
103599
103604
|
};
|
|
103600
103605
|
}
|
|
103601
103606
|
|
|
103602
|
-
/**
|
|
103603
|
-
* Create a new element and (optionally) set its parent.
|
|
103604
|
-
*
|
|
103605
|
-
* @param {string} type
|
|
103606
|
-
* @param {Object} properties
|
|
103607
|
-
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
103608
|
-
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
103609
|
-
*
|
|
103610
|
-
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
103607
|
+
/**
|
|
103608
|
+
* Create a new element and (optionally) set its parent.
|
|
103609
|
+
*
|
|
103610
|
+
* @param {string} type
|
|
103611
|
+
* @param {Object} properties
|
|
103612
|
+
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
103613
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
103614
|
+
*
|
|
103615
|
+
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
103611
103616
|
*/
|
|
103612
103617
|
function createElement(type, properties, parent, bpmnFactory) {
|
|
103613
103618
|
const element = bpmnFactory.create(type, properties);
|
|
@@ -103617,8 +103622,8 @@
|
|
|
103617
103622
|
return element;
|
|
103618
103623
|
}
|
|
103619
103624
|
|
|
103620
|
-
/**
|
|
103621
|
-
* generate a semantic id with given prefix
|
|
103625
|
+
/**
|
|
103626
|
+
* generate a semantic id with given prefix
|
|
103622
103627
|
*/
|
|
103623
103628
|
function nextId(prefix) {
|
|
103624
103629
|
const ids = new Ids$1([32, 32, 1]);
|
|
@@ -103647,12 +103652,12 @@
|
|
|
103647
103652
|
const EMPTY_OPTION$4 = '';
|
|
103648
103653
|
const CREATE_NEW_OPTION$4 = 'create-new';
|
|
103649
103654
|
|
|
103650
|
-
/**
|
|
103651
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103655
|
+
/**
|
|
103656
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103652
103657
|
*/
|
|
103653
103658
|
|
|
103654
|
-
/**
|
|
103655
|
-
* @returns {Array<Entry>} entries
|
|
103659
|
+
/**
|
|
103660
|
+
* @returns {Array<Entry>} entries
|
|
103656
103661
|
*/
|
|
103657
103662
|
function ErrorProps$2(props) {
|
|
103658
103663
|
const {
|
|
@@ -103828,12 +103833,12 @@
|
|
|
103828
103833
|
|
|
103829
103834
|
const CREATE_NEW_OPTION$3 = 'create-new';
|
|
103830
103835
|
|
|
103831
|
-
/**
|
|
103832
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103836
|
+
/**
|
|
103837
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103833
103838
|
*/
|
|
103834
103839
|
|
|
103835
|
-
/**
|
|
103836
|
-
* @returns {Array<Entry>} entries
|
|
103840
|
+
/**
|
|
103841
|
+
* @returns {Array<Entry>} entries
|
|
103837
103842
|
*/
|
|
103838
103843
|
function EscalationProps$2(props) {
|
|
103839
103844
|
const {
|
|
@@ -104006,12 +104011,12 @@
|
|
|
104006
104011
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
104007
104012
|
}
|
|
104008
104013
|
|
|
104009
|
-
/**
|
|
104010
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104014
|
+
/**
|
|
104015
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104011
104016
|
*/
|
|
104012
104017
|
|
|
104013
|
-
/**
|
|
104014
|
-
* @returns {Array<Entry>} entries
|
|
104018
|
+
/**
|
|
104019
|
+
* @returns {Array<Entry>} entries
|
|
104015
104020
|
*/
|
|
104016
104021
|
function ExecutableProps(props) {
|
|
104017
104022
|
const {
|
|
@@ -104082,14 +104087,14 @@
|
|
|
104082
104087
|
// for ID validation as per BPMN Schema (QName - Namespace)
|
|
104083
104088
|
const ID_REGEX = /^[a-z_][\w-.]*$/i;
|
|
104084
104089
|
|
|
104085
|
-
/**
|
|
104086
|
-
* checks whether the id value is valid
|
|
104087
|
-
*
|
|
104088
|
-
* @param {ModdleElement} element
|
|
104089
|
-
* @param {String} idValue
|
|
104090
|
-
* @param {Function} translate
|
|
104091
|
-
*
|
|
104092
|
-
* @return {String} error message
|
|
104090
|
+
/**
|
|
104091
|
+
* checks whether the id value is valid
|
|
104092
|
+
*
|
|
104093
|
+
* @param {ModdleElement} element
|
|
104094
|
+
* @param {String} idValue
|
|
104095
|
+
* @param {Function} translate
|
|
104096
|
+
*
|
|
104097
|
+
* @return {String} error message
|
|
104093
104098
|
*/
|
|
104094
104099
|
function isIdValid(element, idValue, translate) {
|
|
104095
104100
|
const assigned = element.$model.ids.assigned(idValue);
|
|
@@ -104117,12 +104122,12 @@
|
|
|
104117
104122
|
return SPACE_REGEX.test(value);
|
|
104118
104123
|
}
|
|
104119
104124
|
|
|
104120
|
-
/**
|
|
104121
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104125
|
+
/**
|
|
104126
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104122
104127
|
*/
|
|
104123
104128
|
|
|
104124
|
-
/**
|
|
104125
|
-
* @returns {Array<Entry>} entries
|
|
104129
|
+
/**
|
|
104130
|
+
* @returns {Array<Entry>} entries
|
|
104126
104131
|
*/
|
|
104127
104132
|
function IdProps$1() {
|
|
104128
104133
|
return [{
|
|
@@ -104164,12 +104169,12 @@
|
|
|
104164
104169
|
});
|
|
104165
104170
|
}
|
|
104166
104171
|
|
|
104167
|
-
/**
|
|
104168
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104172
|
+
/**
|
|
104173
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104169
104174
|
*/
|
|
104170
104175
|
|
|
104171
|
-
/**
|
|
104172
|
-
* @returns {Array<Entry>} entries
|
|
104176
|
+
/**
|
|
104177
|
+
* @returns {Array<Entry>} entries
|
|
104173
104178
|
*/
|
|
104174
104179
|
function LinkProps(props) {
|
|
104175
104180
|
const {
|
|
@@ -104217,12 +104222,12 @@
|
|
|
104217
104222
|
const EMPTY_OPTION$3 = '';
|
|
104218
104223
|
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
104219
104224
|
|
|
104220
|
-
/**
|
|
104221
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104225
|
+
/**
|
|
104226
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104222
104227
|
*/
|
|
104223
104228
|
|
|
104224
|
-
/**
|
|
104225
|
-
* @returns {Array<Entry>} entries
|
|
104229
|
+
/**
|
|
104230
|
+
* @returns {Array<Entry>} entries
|
|
104226
104231
|
*/
|
|
104227
104232
|
function MessageProps$1(props) {
|
|
104228
104233
|
const {
|
|
@@ -104365,12 +104370,12 @@
|
|
|
104365
104370
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
104366
104371
|
}
|
|
104367
104372
|
|
|
104368
|
-
/**
|
|
104369
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104373
|
+
/**
|
|
104374
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104370
104375
|
*/
|
|
104371
104376
|
|
|
104372
|
-
/**
|
|
104373
|
-
* @returns {Array<Entry>} entries
|
|
104377
|
+
/**
|
|
104378
|
+
* @returns {Array<Entry>} entries
|
|
104374
104379
|
*/
|
|
104375
104380
|
function MultiInstanceProps$2(props) {
|
|
104376
104381
|
const {
|
|
@@ -104441,59 +104446,59 @@
|
|
|
104441
104446
|
|
|
104442
104447
|
// generic ///////////////////////////
|
|
104443
104448
|
|
|
104444
|
-
/**
|
|
104445
|
-
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
104446
|
-
*
|
|
104447
|
-
* @param {djs.model.Base} element
|
|
104448
|
-
* @return {boolean}
|
|
104449
|
+
/**
|
|
104450
|
+
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
104451
|
+
*
|
|
104452
|
+
* @param {djs.model.Base} element
|
|
104453
|
+
* @return {boolean}
|
|
104449
104454
|
*/
|
|
104450
104455
|
function isMultiInstanceSupported$1(element) {
|
|
104451
104456
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
104452
104457
|
return !!loopCharacteristics && is$1(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
|
|
104453
104458
|
}
|
|
104454
104459
|
|
|
104455
|
-
/**
|
|
104456
|
-
* getBody - get the body of a given expression.
|
|
104457
|
-
*
|
|
104458
|
-
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
104459
|
-
* @return {string} the body (value) of the expression
|
|
104460
|
+
/**
|
|
104461
|
+
* getBody - get the body of a given expression.
|
|
104462
|
+
*
|
|
104463
|
+
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
104464
|
+
* @return {string} the body (value) of the expression
|
|
104460
104465
|
*/
|
|
104461
104466
|
function getBody(expression) {
|
|
104462
104467
|
return expression && expression.get('body');
|
|
104463
104468
|
}
|
|
104464
104469
|
|
|
104465
|
-
/**
|
|
104466
|
-
* getProperty - get a property value of the loop characteristics.
|
|
104467
|
-
*
|
|
104468
|
-
* @param {djs.model.Base} element
|
|
104469
|
-
* @param {string} propertyName
|
|
104470
|
-
*
|
|
104471
|
-
* @return {any} the property value
|
|
104470
|
+
/**
|
|
104471
|
+
* getProperty - get a property value of the loop characteristics.
|
|
104472
|
+
*
|
|
104473
|
+
* @param {djs.model.Base} element
|
|
104474
|
+
* @param {string} propertyName
|
|
104475
|
+
*
|
|
104476
|
+
* @return {any} the property value
|
|
104472
104477
|
*/
|
|
104473
104478
|
function getProperty$2(element, propertyName) {
|
|
104474
104479
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
104475
104480
|
return loopCharacteristics && loopCharacteristics.get(propertyName);
|
|
104476
104481
|
}
|
|
104477
104482
|
|
|
104478
|
-
/**
|
|
104479
|
-
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
104480
|
-
*
|
|
104481
|
-
* @param {djs.model.Base} element
|
|
104482
|
-
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
104483
|
+
/**
|
|
104484
|
+
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
104485
|
+
*
|
|
104486
|
+
* @param {djs.model.Base} element
|
|
104487
|
+
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
104483
104488
|
*/
|
|
104484
104489
|
function getLoopCharacteristics$2(element) {
|
|
104485
104490
|
const bo = getBusinessObject(element);
|
|
104486
104491
|
return bo.loopCharacteristics;
|
|
104487
104492
|
}
|
|
104488
104493
|
|
|
104489
|
-
/**
|
|
104490
|
-
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
104491
|
-
*
|
|
104492
|
-
* @param {ModdleElement} parent
|
|
104493
|
-
* @param {string} body
|
|
104494
|
-
* @param {BpmnFactory} bpmnFactory
|
|
104495
|
-
*
|
|
104496
|
-
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
104494
|
+
/**
|
|
104495
|
+
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
104496
|
+
*
|
|
104497
|
+
* @param {ModdleElement} parent
|
|
104498
|
+
* @param {string} body
|
|
104499
|
+
* @param {BpmnFactory} bpmnFactory
|
|
104500
|
+
*
|
|
104501
|
+
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
104497
104502
|
*/
|
|
104498
104503
|
function createFormalExpression$1(parent, body, bpmnFactory) {
|
|
104499
104504
|
return createElement('bpmn:FormalExpression', {
|
|
@@ -104501,13 +104506,13 @@
|
|
|
104501
104506
|
}, parent, bpmnFactory);
|
|
104502
104507
|
}
|
|
104503
104508
|
|
|
104504
|
-
/**
|
|
104505
|
-
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
104506
|
-
*
|
|
104507
|
-
* @param {djs.model.Base} element
|
|
104508
|
-
* @param {string} propertyName
|
|
104509
|
-
* @param {string} newValue
|
|
104510
|
-
* @param {BpmnFactory} bpmnFactory
|
|
104509
|
+
/**
|
|
104510
|
+
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
104511
|
+
*
|
|
104512
|
+
* @param {djs.model.Base} element
|
|
104513
|
+
* @param {string} propertyName
|
|
104514
|
+
* @param {string} newValue
|
|
104515
|
+
* @param {BpmnFactory} bpmnFactory
|
|
104511
104516
|
*/
|
|
104512
104517
|
function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
|
|
104513
104518
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
@@ -104544,23 +104549,23 @@
|
|
|
104544
104549
|
|
|
104545
104550
|
// loopCardinality
|
|
104546
104551
|
|
|
104547
|
-
/**
|
|
104548
|
-
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
104549
|
-
*
|
|
104550
|
-
* @param {djs.model.Base} element
|
|
104551
|
-
*
|
|
104552
|
-
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
104552
|
+
/**
|
|
104553
|
+
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
104554
|
+
*
|
|
104555
|
+
* @param {djs.model.Base} element
|
|
104556
|
+
*
|
|
104557
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
104553
104558
|
*/
|
|
104554
104559
|
function getLoopCardinality(element) {
|
|
104555
104560
|
return getProperty$2(element, 'loopCardinality');
|
|
104556
104561
|
}
|
|
104557
104562
|
|
|
104558
|
-
/**
|
|
104559
|
-
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
104560
|
-
*
|
|
104561
|
-
* @param {djs.model.Base} element
|
|
104562
|
-
*
|
|
104563
|
-
* @return {string} the loop cardinality value
|
|
104563
|
+
/**
|
|
104564
|
+
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
104565
|
+
*
|
|
104566
|
+
* @param {djs.model.Base} element
|
|
104567
|
+
*
|
|
104568
|
+
* @return {string} the loop cardinality value
|
|
104564
104569
|
*/
|
|
104565
104570
|
function getLoopCardinalityValue(element) {
|
|
104566
104571
|
const loopCardinality = getLoopCardinality(element);
|
|
@@ -104569,35 +104574,35 @@
|
|
|
104569
104574
|
|
|
104570
104575
|
// completionCondition /////////////////////
|
|
104571
104576
|
|
|
104572
|
-
/**
|
|
104573
|
-
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
104574
|
-
*
|
|
104575
|
-
* @param {djs.model.Base} element
|
|
104576
|
-
*
|
|
104577
|
-
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
104577
|
+
/**
|
|
104578
|
+
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
104579
|
+
*
|
|
104580
|
+
* @param {djs.model.Base} element
|
|
104581
|
+
*
|
|
104582
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
104578
104583
|
*/
|
|
104579
104584
|
function getCompletionCondition$1(element) {
|
|
104580
104585
|
return getProperty$2(element, 'completionCondition');
|
|
104581
104586
|
}
|
|
104582
104587
|
|
|
104583
|
-
/**
|
|
104584
|
-
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
104585
|
-
*
|
|
104586
|
-
* @param {djs.model.Base} element
|
|
104587
|
-
*
|
|
104588
|
-
* @return {string} the completion condition value
|
|
104588
|
+
/**
|
|
104589
|
+
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
104590
|
+
*
|
|
104591
|
+
* @param {djs.model.Base} element
|
|
104592
|
+
*
|
|
104593
|
+
* @return {string} the completion condition value
|
|
104589
104594
|
*/
|
|
104590
104595
|
function getCompletionConditionValue(element) {
|
|
104591
104596
|
const completionCondition = getCompletionCondition$1(element);
|
|
104592
104597
|
return getBody(completionCondition);
|
|
104593
104598
|
}
|
|
104594
104599
|
|
|
104595
|
-
/**
|
|
104596
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104600
|
+
/**
|
|
104601
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104597
104602
|
*/
|
|
104598
104603
|
|
|
104599
|
-
/**
|
|
104600
|
-
* @returns {Array<Entry>} entries
|
|
104604
|
+
/**
|
|
104605
|
+
* @returns {Array<Entry>} entries
|
|
104601
104606
|
*/
|
|
104602
104607
|
function NameProps(props) {
|
|
104603
104608
|
const {
|
|
@@ -104701,12 +104706,12 @@
|
|
|
104701
104706
|
return categoryValue;
|
|
104702
104707
|
}
|
|
104703
104708
|
|
|
104704
|
-
/**
|
|
104705
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104709
|
+
/**
|
|
104710
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104706
104711
|
*/
|
|
104707
104712
|
|
|
104708
|
-
/**
|
|
104709
|
-
* @returns {Array<Entry>} entries
|
|
104713
|
+
/**
|
|
104714
|
+
* @returns {Array<Entry>} entries
|
|
104710
104715
|
*/
|
|
104711
104716
|
function ProcessProps$1(props) {
|
|
104712
104717
|
const {
|
|
@@ -104797,15 +104802,15 @@
|
|
|
104797
104802
|
return is$1(element, 'bpmn:Participant') && element.businessObject.get('processRef');
|
|
104798
104803
|
}
|
|
104799
104804
|
|
|
104800
|
-
/**
|
|
104801
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104805
|
+
/**
|
|
104806
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104802
104807
|
*/
|
|
104803
104808
|
|
|
104804
104809
|
const EMPTY_OPTION$2 = '';
|
|
104805
104810
|
const CREATE_NEW_OPTION$1 = 'create-new';
|
|
104806
104811
|
|
|
104807
|
-
/**
|
|
104808
|
-
* @returns {Entry[]}
|
|
104812
|
+
/**
|
|
104813
|
+
* @returns {Entry[]}
|
|
104809
104814
|
*/
|
|
104810
104815
|
function SignalProps$1(props) {
|
|
104811
104816
|
const {
|
|
@@ -104951,12 +104956,12 @@
|
|
|
104951
104956
|
return isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
|
|
104952
104957
|
}
|
|
104953
104958
|
|
|
104954
|
-
/**
|
|
104955
|
-
* Get the timer definition type for a given timer event definition.
|
|
104956
|
-
*
|
|
104957
|
-
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
104958
|
-
*
|
|
104959
|
-
* @return {string|undefined} the timer definition type
|
|
104959
|
+
/**
|
|
104960
|
+
* Get the timer definition type for a given timer event definition.
|
|
104961
|
+
*
|
|
104962
|
+
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
104963
|
+
*
|
|
104964
|
+
* @return {string|undefined} the timer definition type
|
|
104960
104965
|
*/
|
|
104961
104966
|
function getTimerDefinitionType(timer) {
|
|
104962
104967
|
if (!timer) {
|
|
@@ -105026,12 +105031,12 @@
|
|
|
105026
105031
|
return entries;
|
|
105027
105032
|
}
|
|
105028
105033
|
|
|
105029
|
-
/**
|
|
105030
|
-
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
105031
|
-
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
105032
|
-
*
|
|
105033
|
-
* @param {type} props
|
|
105034
|
-
* @return {SelectEntry}
|
|
105034
|
+
/**
|
|
105035
|
+
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
105036
|
+
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
105037
|
+
*
|
|
105038
|
+
* @param {type} props
|
|
105039
|
+
* @return {SelectEntry}
|
|
105035
105040
|
*/
|
|
105036
105041
|
function TimerEventDefinitionType$2(props) {
|
|
105037
105042
|
const {
|
|
@@ -105099,13 +105104,13 @@
|
|
|
105099
105104
|
});
|
|
105100
105105
|
}
|
|
105101
105106
|
|
|
105102
|
-
/**
|
|
105103
|
-
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
105104
|
-
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
105105
|
-
* together with timerEventDefinitionType.
|
|
105106
|
-
*
|
|
105107
|
-
* @param {type} props
|
|
105108
|
-
* @return {TextFieldEntry}
|
|
105107
|
+
/**
|
|
105108
|
+
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
105109
|
+
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
105110
|
+
* together with timerEventDefinitionType.
|
|
105111
|
+
*
|
|
105112
|
+
* @param {type} props
|
|
105113
|
+
* @return {TextFieldEntry}
|
|
105109
105114
|
*/
|
|
105110
105115
|
function TimerEventDefinitionValue$2(props) {
|
|
105111
105116
|
const {
|