camunda-bpmn-js 5.0.0 → 5.1.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 +220 -222
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +3610 -3429
- package/dist/camunda-cloud-modeler.production.min.js +6 -5
- package/dist/camunda-cloud-navigated-viewer.development.js +46 -0
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +46 -0
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +1497 -1499
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/package.json +14 -14
|
@@ -102756,8 +102756,8 @@
|
|
|
102756
102756
|
});
|
|
102757
102757
|
const selectedElement = state.selectedElement;
|
|
102758
102758
|
|
|
102759
|
-
/**
|
|
102760
|
-
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
102759
|
+
/**
|
|
102760
|
+
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
102761
102761
|
*/
|
|
102762
102762
|
const _update = element => {
|
|
102763
102763
|
if (!element) {
|
|
@@ -102931,8 +102931,7 @@
|
|
|
102931
102931
|
// helpers //////////////////////////
|
|
102932
102932
|
|
|
102933
102933
|
function isImplicitRoot$1(element) {
|
|
102934
|
-
|
|
102935
|
-
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
102934
|
+
return element && element.isImplicit;
|
|
102936
102935
|
}
|
|
102937
102936
|
function findElement(elements, element) {
|
|
102938
102937
|
return find$1(elements, e => e === element);
|
|
@@ -102943,10 +102942,10 @@
|
|
|
102943
102942
|
|
|
102944
102943
|
const DEFAULT_PRIORITY = 1000;
|
|
102945
102944
|
|
|
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
|
|
102945
|
+
/**
|
|
102946
|
+
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
102947
|
+
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
102948
|
+
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
102950
102949
|
*/
|
|
102951
102950
|
|
|
102952
102951
|
class BpmnPropertiesPanelRenderer {
|
|
@@ -102985,10 +102984,10 @@
|
|
|
102985
102984
|
});
|
|
102986
102985
|
}
|
|
102987
102986
|
|
|
102988
|
-
/**
|
|
102989
|
-
* Attach the properties panel to a parent node.
|
|
102990
|
-
*
|
|
102991
|
-
* @param {HTMLElement} container
|
|
102987
|
+
/**
|
|
102988
|
+
* Attach the properties panel to a parent node.
|
|
102989
|
+
*
|
|
102990
|
+
* @param {HTMLElement} container
|
|
102992
102991
|
*/
|
|
102993
102992
|
attachTo(container) {
|
|
102994
102993
|
if (!container) {
|
|
@@ -103013,8 +103012,8 @@
|
|
|
103013
103012
|
this._eventBus.fire('propertiesPanel.attach');
|
|
103014
103013
|
}
|
|
103015
103014
|
|
|
103016
|
-
/**
|
|
103017
|
-
* Detach the properties panel from its parent node.
|
|
103015
|
+
/**
|
|
103016
|
+
* Detach the properties panel from its parent node.
|
|
103018
103017
|
*/
|
|
103019
103018
|
detach() {
|
|
103020
103019
|
const parentNode = this._container.parentNode;
|
|
@@ -103024,11 +103023,11 @@
|
|
|
103024
103023
|
}
|
|
103025
103024
|
}
|
|
103026
103025
|
|
|
103027
|
-
/**
|
|
103028
|
-
* Register a new properties provider to the properties panel.
|
|
103029
|
-
*
|
|
103030
|
-
* @param {Number} [priority]
|
|
103031
|
-
* @param {PropertiesProvider} provider
|
|
103026
|
+
/**
|
|
103027
|
+
* Register a new properties provider to the properties panel.
|
|
103028
|
+
*
|
|
103029
|
+
* @param {Number} [priority]
|
|
103030
|
+
* @param {PropertiesProvider} provider
|
|
103032
103031
|
*/
|
|
103033
103032
|
registerProvider(priority, provider) {
|
|
103034
103033
|
if (!provider) {
|
|
@@ -103045,9 +103044,9 @@
|
|
|
103045
103044
|
this._eventBus.fire('propertiesPanel.providersChanged');
|
|
103046
103045
|
}
|
|
103047
103046
|
|
|
103048
|
-
/**
|
|
103049
|
-
* Updates the layout of the properties panel.
|
|
103050
|
-
* @param {Object} layout
|
|
103047
|
+
/**
|
|
103048
|
+
* Updates the layout of the properties panel.
|
|
103049
|
+
* @param {Object} layout
|
|
103051
103050
|
*/
|
|
103052
103051
|
setLayout(layout) {
|
|
103053
103052
|
this._eventBus.fire('propertiesPanel.setLayout', {
|
|
@@ -103094,16 +103093,15 @@
|
|
|
103094
103093
|
// helpers ///////////////////////
|
|
103095
103094
|
|
|
103096
103095
|
function isImplicitRoot(element) {
|
|
103097
|
-
|
|
103098
|
-
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
103096
|
+
return element && element.isImplicit;
|
|
103099
103097
|
}
|
|
103100
103098
|
|
|
103101
|
-
/**
|
|
103102
|
-
* Setup keyboard bindings (undo, redo) on the given container.
|
|
103103
|
-
*
|
|
103104
|
-
* @param {Element} container
|
|
103105
|
-
* @param {EventBus} eventBus
|
|
103106
|
-
* @param {CommandStack} commandStack
|
|
103099
|
+
/**
|
|
103100
|
+
* Setup keyboard bindings (undo, redo) on the given container.
|
|
103101
|
+
*
|
|
103102
|
+
* @param {Element} container
|
|
103103
|
+
* @param {EventBus} eventBus
|
|
103104
|
+
* @param {CommandStack} commandStack
|
|
103107
103105
|
*/
|
|
103108
103106
|
function setupKeyboard(container, eventBus, commandStack) {
|
|
103109
103107
|
function cancel(event) {
|
|
@@ -103128,14 +103126,14 @@
|
|
|
103128
103126
|
});
|
|
103129
103127
|
}
|
|
103130
103128
|
|
|
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.
|
|
103129
|
+
/**
|
|
103130
|
+
* A handler that combines and executes multiple commands.
|
|
103131
|
+
*
|
|
103132
|
+
* All updates are bundled on the command stack and executed in one step.
|
|
103133
|
+
* This also makes it possible to revert the changes in one step.
|
|
103134
|
+
*
|
|
103135
|
+
* Example use case: remove the camunda:formKey attribute and in addition
|
|
103136
|
+
* add all form fields needed for the camunda:formData property.
|
|
103139
103137
|
*/
|
|
103140
103138
|
class MultiCommandHandler {
|
|
103141
103139
|
constructor(commandStack) {
|
|
@@ -103262,12 +103260,12 @@
|
|
|
103262
103260
|
return compensateEventDefinition && compensateEventDefinition.get('activityRef');
|
|
103263
103261
|
}
|
|
103264
103262
|
|
|
103265
|
-
/**
|
|
103266
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103263
|
+
/**
|
|
103264
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103267
103265
|
*/
|
|
103268
103266
|
|
|
103269
|
-
/**
|
|
103270
|
-
* @returns {Array<Entry>} entries
|
|
103267
|
+
/**
|
|
103268
|
+
* @returns {Array<Entry>} entries
|
|
103271
103269
|
*/
|
|
103272
103270
|
function CompensationProps(props) {
|
|
103273
103271
|
const {
|
|
@@ -103377,12 +103375,12 @@
|
|
|
103377
103375
|
return getFlowElements(element, 'bpmn:BoundaryEvent');
|
|
103378
103376
|
}
|
|
103379
103377
|
|
|
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}
|
|
103378
|
+
/**
|
|
103379
|
+
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
103380
|
+
*
|
|
103381
|
+
* @param {ModdleElement} activity
|
|
103382
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
103383
|
+
* @returns {Boolean}
|
|
103386
103384
|
*/
|
|
103387
103385
|
function hasCompensationEventAttached(activity, boundaryEvents) {
|
|
103388
103386
|
const {
|
|
@@ -103397,15 +103395,15 @@
|
|
|
103397
103395
|
});
|
|
103398
103396
|
}
|
|
103399
103397
|
|
|
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}
|
|
103398
|
+
/**
|
|
103399
|
+
* Checks whether an Activity can be compensated. That's the case when it is
|
|
103400
|
+
* a) a CallActivity
|
|
103401
|
+
* b) a SubProcess, when it is not event based and not a compensation
|
|
103402
|
+
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
103403
|
+
*
|
|
103404
|
+
* @param {ModdleElement} activity
|
|
103405
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
103406
|
+
* @returns {Boolean}
|
|
103409
103407
|
*/
|
|
103410
103408
|
function canBeCompensated(activity, boundaryEvents) {
|
|
103411
103409
|
return is$1(activity, 'bpmn:CallActivity') || is$1(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
|
|
@@ -103418,11 +103416,11 @@
|
|
|
103418
103416
|
});
|
|
103419
103417
|
}
|
|
103420
103418
|
|
|
103421
|
-
/**
|
|
103422
|
-
* Retrieves all possible activities to reference for a Compensation.
|
|
103423
|
-
*
|
|
103424
|
-
* @param {djs.model.Base} element
|
|
103425
|
-
* @returns {Array<ModdleElement>}
|
|
103419
|
+
/**
|
|
103420
|
+
* Retrieves all possible activities to reference for a Compensation.
|
|
103421
|
+
*
|
|
103422
|
+
* @param {djs.model.Base} element
|
|
103423
|
+
* @returns {Array<ModdleElement>}
|
|
103426
103424
|
*/
|
|
103427
103425
|
function findActivityRefs(element) {
|
|
103428
103426
|
const businessObject = getBusinessObject(element);
|
|
@@ -103442,13 +103440,13 @@
|
|
|
103442
103440
|
return activities;
|
|
103443
103441
|
}
|
|
103444
103442
|
|
|
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}
|
|
103443
|
+
/**
|
|
103444
|
+
* Retrieves an option label in the form
|
|
103445
|
+
* a) with name: "my Task (id=Task_1)"
|
|
103446
|
+
* b) without name: "(id=Task_1)"
|
|
103447
|
+
*
|
|
103448
|
+
* @param {ModdleElement} activity
|
|
103449
|
+
* @returns {String}
|
|
103452
103450
|
*/
|
|
103453
103451
|
function createOptionLabel(activity) {
|
|
103454
103452
|
const {
|
|
@@ -103463,12 +103461,12 @@
|
|
|
103463
103461
|
|
|
103464
103462
|
const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
|
|
103465
103463
|
|
|
103466
|
-
/**
|
|
103467
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103464
|
+
/**
|
|
103465
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103468
103466
|
*/
|
|
103469
103467
|
|
|
103470
|
-
/**
|
|
103471
|
-
* @returns {Array<Entry>} entries
|
|
103468
|
+
/**
|
|
103469
|
+
* @returns {Array<Entry>} entries
|
|
103472
103470
|
*/
|
|
103473
103471
|
function DocumentationProps(props) {
|
|
103474
103472
|
const {
|
|
@@ -103539,12 +103537,12 @@
|
|
|
103539
103537
|
});
|
|
103540
103538
|
}
|
|
103541
103539
|
|
|
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.
|
|
103540
|
+
/**
|
|
103541
|
+
* Retrieves a documentation element from a given moddle element.
|
|
103542
|
+
*
|
|
103543
|
+
* @param {ModdleElement} businessObject
|
|
103544
|
+
*
|
|
103545
|
+
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
103548
103546
|
*/
|
|
103549
103547
|
function getDocumentation(businessObject) {
|
|
103550
103548
|
return function () {
|
|
@@ -103553,10 +103551,10 @@
|
|
|
103553
103551
|
};
|
|
103554
103552
|
}
|
|
103555
103553
|
|
|
103556
|
-
/**
|
|
103557
|
-
* Sets a documentation element for a given moddle element.
|
|
103558
|
-
*
|
|
103559
|
-
* @param {ModdleElement} businessObject
|
|
103554
|
+
/**
|
|
103555
|
+
* Sets a documentation element for a given moddle element.
|
|
103556
|
+
*
|
|
103557
|
+
* @param {ModdleElement} businessObject
|
|
103560
103558
|
*/
|
|
103561
103559
|
function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
|
|
103562
103560
|
return function (value) {
|
|
@@ -103599,15 +103597,15 @@
|
|
|
103599
103597
|
};
|
|
103600
103598
|
}
|
|
103601
103599
|
|
|
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}
|
|
103600
|
+
/**
|
|
103601
|
+
* Create a new element and (optionally) set its parent.
|
|
103602
|
+
*
|
|
103603
|
+
* @param {string} type
|
|
103604
|
+
* @param {Object} properties
|
|
103605
|
+
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
103606
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
103607
|
+
*
|
|
103608
|
+
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
103611
103609
|
*/
|
|
103612
103610
|
function createElement(type, properties, parent, bpmnFactory) {
|
|
103613
103611
|
const element = bpmnFactory.create(type, properties);
|
|
@@ -103617,8 +103615,8 @@
|
|
|
103617
103615
|
return element;
|
|
103618
103616
|
}
|
|
103619
103617
|
|
|
103620
|
-
/**
|
|
103621
|
-
* generate a semantic id with given prefix
|
|
103618
|
+
/**
|
|
103619
|
+
* generate a semantic id with given prefix
|
|
103622
103620
|
*/
|
|
103623
103621
|
function nextId(prefix) {
|
|
103624
103622
|
const ids = new Ids$1([32, 32, 1]);
|
|
@@ -103647,12 +103645,12 @@
|
|
|
103647
103645
|
const EMPTY_OPTION$4 = '';
|
|
103648
103646
|
const CREATE_NEW_OPTION$4 = 'create-new';
|
|
103649
103647
|
|
|
103650
|
-
/**
|
|
103651
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103648
|
+
/**
|
|
103649
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103652
103650
|
*/
|
|
103653
103651
|
|
|
103654
|
-
/**
|
|
103655
|
-
* @returns {Array<Entry>} entries
|
|
103652
|
+
/**
|
|
103653
|
+
* @returns {Array<Entry>} entries
|
|
103656
103654
|
*/
|
|
103657
103655
|
function ErrorProps$2(props) {
|
|
103658
103656
|
const {
|
|
@@ -103828,12 +103826,12 @@
|
|
|
103828
103826
|
|
|
103829
103827
|
const CREATE_NEW_OPTION$3 = 'create-new';
|
|
103830
103828
|
|
|
103831
|
-
/**
|
|
103832
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103829
|
+
/**
|
|
103830
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
103833
103831
|
*/
|
|
103834
103832
|
|
|
103835
|
-
/**
|
|
103836
|
-
* @returns {Array<Entry>} entries
|
|
103833
|
+
/**
|
|
103834
|
+
* @returns {Array<Entry>} entries
|
|
103837
103835
|
*/
|
|
103838
103836
|
function EscalationProps$2(props) {
|
|
103839
103837
|
const {
|
|
@@ -104006,12 +104004,12 @@
|
|
|
104006
104004
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
104007
104005
|
}
|
|
104008
104006
|
|
|
104009
|
-
/**
|
|
104010
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104007
|
+
/**
|
|
104008
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104011
104009
|
*/
|
|
104012
104010
|
|
|
104013
|
-
/**
|
|
104014
|
-
* @returns {Array<Entry>} entries
|
|
104011
|
+
/**
|
|
104012
|
+
* @returns {Array<Entry>} entries
|
|
104015
104013
|
*/
|
|
104016
104014
|
function ExecutableProps(props) {
|
|
104017
104015
|
const {
|
|
@@ -104082,14 +104080,14 @@
|
|
|
104082
104080
|
// for ID validation as per BPMN Schema (QName - Namespace)
|
|
104083
104081
|
const ID_REGEX = /^[a-z_][\w-.]*$/i;
|
|
104084
104082
|
|
|
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
|
|
104083
|
+
/**
|
|
104084
|
+
* checks whether the id value is valid
|
|
104085
|
+
*
|
|
104086
|
+
* @param {ModdleElement} element
|
|
104087
|
+
* @param {String} idValue
|
|
104088
|
+
* @param {Function} translate
|
|
104089
|
+
*
|
|
104090
|
+
* @return {String} error message
|
|
104093
104091
|
*/
|
|
104094
104092
|
function isIdValid(element, idValue, translate) {
|
|
104095
104093
|
const assigned = element.$model.ids.assigned(idValue);
|
|
@@ -104117,12 +104115,12 @@
|
|
|
104117
104115
|
return SPACE_REGEX.test(value);
|
|
104118
104116
|
}
|
|
104119
104117
|
|
|
104120
|
-
/**
|
|
104121
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104118
|
+
/**
|
|
104119
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104122
104120
|
*/
|
|
104123
104121
|
|
|
104124
|
-
/**
|
|
104125
|
-
* @returns {Array<Entry>} entries
|
|
104122
|
+
/**
|
|
104123
|
+
* @returns {Array<Entry>} entries
|
|
104126
104124
|
*/
|
|
104127
104125
|
function IdProps$1() {
|
|
104128
104126
|
return [{
|
|
@@ -104164,12 +104162,12 @@
|
|
|
104164
104162
|
});
|
|
104165
104163
|
}
|
|
104166
104164
|
|
|
104167
|
-
/**
|
|
104168
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104165
|
+
/**
|
|
104166
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104169
104167
|
*/
|
|
104170
104168
|
|
|
104171
|
-
/**
|
|
104172
|
-
* @returns {Array<Entry>} entries
|
|
104169
|
+
/**
|
|
104170
|
+
* @returns {Array<Entry>} entries
|
|
104173
104171
|
*/
|
|
104174
104172
|
function LinkProps(props) {
|
|
104175
104173
|
const {
|
|
@@ -104217,12 +104215,12 @@
|
|
|
104217
104215
|
const EMPTY_OPTION$3 = '';
|
|
104218
104216
|
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
104219
104217
|
|
|
104220
|
-
/**
|
|
104221
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104218
|
+
/**
|
|
104219
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104222
104220
|
*/
|
|
104223
104221
|
|
|
104224
|
-
/**
|
|
104225
|
-
* @returns {Array<Entry>} entries
|
|
104222
|
+
/**
|
|
104223
|
+
* @returns {Array<Entry>} entries
|
|
104226
104224
|
*/
|
|
104227
104225
|
function MessageProps$1(props) {
|
|
104228
104226
|
const {
|
|
@@ -104365,12 +104363,12 @@
|
|
|
104365
104363
|
return sortBy(elements, e => (e.name || '').toLowerCase());
|
|
104366
104364
|
}
|
|
104367
104365
|
|
|
104368
|
-
/**
|
|
104369
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104366
|
+
/**
|
|
104367
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104370
104368
|
*/
|
|
104371
104369
|
|
|
104372
|
-
/**
|
|
104373
|
-
* @returns {Array<Entry>} entries
|
|
104370
|
+
/**
|
|
104371
|
+
* @returns {Array<Entry>} entries
|
|
104374
104372
|
*/
|
|
104375
104373
|
function MultiInstanceProps$2(props) {
|
|
104376
104374
|
const {
|
|
@@ -104441,59 +104439,59 @@
|
|
|
104441
104439
|
|
|
104442
104440
|
// generic ///////////////////////////
|
|
104443
104441
|
|
|
104444
|
-
/**
|
|
104445
|
-
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
104446
|
-
*
|
|
104447
|
-
* @param {djs.model.Base} element
|
|
104448
|
-
* @return {boolean}
|
|
104442
|
+
/**
|
|
104443
|
+
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
104444
|
+
*
|
|
104445
|
+
* @param {djs.model.Base} element
|
|
104446
|
+
* @return {boolean}
|
|
104449
104447
|
*/
|
|
104450
104448
|
function isMultiInstanceSupported$1(element) {
|
|
104451
104449
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
104452
104450
|
return !!loopCharacteristics && is$1(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
|
|
104453
104451
|
}
|
|
104454
104452
|
|
|
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
|
|
104453
|
+
/**
|
|
104454
|
+
* getBody - get the body of a given expression.
|
|
104455
|
+
*
|
|
104456
|
+
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
104457
|
+
* @return {string} the body (value) of the expression
|
|
104460
104458
|
*/
|
|
104461
104459
|
function getBody(expression) {
|
|
104462
104460
|
return expression && expression.get('body');
|
|
104463
104461
|
}
|
|
104464
104462
|
|
|
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
|
|
104463
|
+
/**
|
|
104464
|
+
* getProperty - get a property value of the loop characteristics.
|
|
104465
|
+
*
|
|
104466
|
+
* @param {djs.model.Base} element
|
|
104467
|
+
* @param {string} propertyName
|
|
104468
|
+
*
|
|
104469
|
+
* @return {any} the property value
|
|
104472
104470
|
*/
|
|
104473
104471
|
function getProperty$2(element, propertyName) {
|
|
104474
104472
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
104475
104473
|
return loopCharacteristics && loopCharacteristics.get(propertyName);
|
|
104476
104474
|
}
|
|
104477
104475
|
|
|
104478
|
-
/**
|
|
104479
|
-
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
104480
|
-
*
|
|
104481
|
-
* @param {djs.model.Base} element
|
|
104482
|
-
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
104476
|
+
/**
|
|
104477
|
+
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
104478
|
+
*
|
|
104479
|
+
* @param {djs.model.Base} element
|
|
104480
|
+
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
104483
104481
|
*/
|
|
104484
104482
|
function getLoopCharacteristics$2(element) {
|
|
104485
104483
|
const bo = getBusinessObject(element);
|
|
104486
104484
|
return bo.loopCharacteristics;
|
|
104487
104485
|
}
|
|
104488
104486
|
|
|
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
|
|
104487
|
+
/**
|
|
104488
|
+
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
104489
|
+
*
|
|
104490
|
+
* @param {ModdleElement} parent
|
|
104491
|
+
* @param {string} body
|
|
104492
|
+
* @param {BpmnFactory} bpmnFactory
|
|
104493
|
+
*
|
|
104494
|
+
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
104497
104495
|
*/
|
|
104498
104496
|
function createFormalExpression$1(parent, body, bpmnFactory) {
|
|
104499
104497
|
return createElement('bpmn:FormalExpression', {
|
|
@@ -104501,13 +104499,13 @@
|
|
|
104501
104499
|
}, parent, bpmnFactory);
|
|
104502
104500
|
}
|
|
104503
104501
|
|
|
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
|
|
104502
|
+
/**
|
|
104503
|
+
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
104504
|
+
*
|
|
104505
|
+
* @param {djs.model.Base} element
|
|
104506
|
+
* @param {string} propertyName
|
|
104507
|
+
* @param {string} newValue
|
|
104508
|
+
* @param {BpmnFactory} bpmnFactory
|
|
104511
104509
|
*/
|
|
104512
104510
|
function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
|
|
104513
104511
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
@@ -104544,23 +104542,23 @@
|
|
|
104544
104542
|
|
|
104545
104543
|
// loopCardinality
|
|
104546
104544
|
|
|
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
|
|
104545
|
+
/**
|
|
104546
|
+
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
104547
|
+
*
|
|
104548
|
+
* @param {djs.model.Base} element
|
|
104549
|
+
*
|
|
104550
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
104553
104551
|
*/
|
|
104554
104552
|
function getLoopCardinality(element) {
|
|
104555
104553
|
return getProperty$2(element, 'loopCardinality');
|
|
104556
104554
|
}
|
|
104557
104555
|
|
|
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
|
|
104556
|
+
/**
|
|
104557
|
+
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
104558
|
+
*
|
|
104559
|
+
* @param {djs.model.Base} element
|
|
104560
|
+
*
|
|
104561
|
+
* @return {string} the loop cardinality value
|
|
104564
104562
|
*/
|
|
104565
104563
|
function getLoopCardinalityValue(element) {
|
|
104566
104564
|
const loopCardinality = getLoopCardinality(element);
|
|
@@ -104569,35 +104567,35 @@
|
|
|
104569
104567
|
|
|
104570
104568
|
// completionCondition /////////////////////
|
|
104571
104569
|
|
|
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
|
|
104570
|
+
/**
|
|
104571
|
+
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
104572
|
+
*
|
|
104573
|
+
* @param {djs.model.Base} element
|
|
104574
|
+
*
|
|
104575
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
104578
104576
|
*/
|
|
104579
104577
|
function getCompletionCondition$1(element) {
|
|
104580
104578
|
return getProperty$2(element, 'completionCondition');
|
|
104581
104579
|
}
|
|
104582
104580
|
|
|
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
|
|
104581
|
+
/**
|
|
104582
|
+
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
104583
|
+
*
|
|
104584
|
+
* @param {djs.model.Base} element
|
|
104585
|
+
*
|
|
104586
|
+
* @return {string} the completion condition value
|
|
104589
104587
|
*/
|
|
104590
104588
|
function getCompletionConditionValue(element) {
|
|
104591
104589
|
const completionCondition = getCompletionCondition$1(element);
|
|
104592
104590
|
return getBody(completionCondition);
|
|
104593
104591
|
}
|
|
104594
104592
|
|
|
104595
|
-
/**
|
|
104596
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104593
|
+
/**
|
|
104594
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104597
104595
|
*/
|
|
104598
104596
|
|
|
104599
|
-
/**
|
|
104600
|
-
* @returns {Array<Entry>} entries
|
|
104597
|
+
/**
|
|
104598
|
+
* @returns {Array<Entry>} entries
|
|
104601
104599
|
*/
|
|
104602
104600
|
function NameProps(props) {
|
|
104603
104601
|
const {
|
|
@@ -104701,12 +104699,12 @@
|
|
|
104701
104699
|
return categoryValue;
|
|
104702
104700
|
}
|
|
104703
104701
|
|
|
104704
|
-
/**
|
|
104705
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104702
|
+
/**
|
|
104703
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104706
104704
|
*/
|
|
104707
104705
|
|
|
104708
|
-
/**
|
|
104709
|
-
* @returns {Array<Entry>} entries
|
|
104706
|
+
/**
|
|
104707
|
+
* @returns {Array<Entry>} entries
|
|
104710
104708
|
*/
|
|
104711
104709
|
function ProcessProps$1(props) {
|
|
104712
104710
|
const {
|
|
@@ -104797,15 +104795,15 @@
|
|
|
104797
104795
|
return is$1(element, 'bpmn:Participant') && element.businessObject.get('processRef');
|
|
104798
104796
|
}
|
|
104799
104797
|
|
|
104800
|
-
/**
|
|
104801
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104798
|
+
/**
|
|
104799
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
104802
104800
|
*/
|
|
104803
104801
|
|
|
104804
104802
|
const EMPTY_OPTION$2 = '';
|
|
104805
104803
|
const CREATE_NEW_OPTION$1 = 'create-new';
|
|
104806
104804
|
|
|
104807
|
-
/**
|
|
104808
|
-
* @returns {Entry[]}
|
|
104805
|
+
/**
|
|
104806
|
+
* @returns {Entry[]}
|
|
104809
104807
|
*/
|
|
104810
104808
|
function SignalProps$1(props) {
|
|
104811
104809
|
const {
|
|
@@ -104951,12 +104949,12 @@
|
|
|
104951
104949
|
return isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
|
|
104952
104950
|
}
|
|
104953
104951
|
|
|
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
|
|
104952
|
+
/**
|
|
104953
|
+
* Get the timer definition type for a given timer event definition.
|
|
104954
|
+
*
|
|
104955
|
+
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
104956
|
+
*
|
|
104957
|
+
* @return {string|undefined} the timer definition type
|
|
104960
104958
|
*/
|
|
104961
104959
|
function getTimerDefinitionType(timer) {
|
|
104962
104960
|
if (!timer) {
|
|
@@ -105026,12 +105024,12 @@
|
|
|
105026
105024
|
return entries;
|
|
105027
105025
|
}
|
|
105028
105026
|
|
|
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}
|
|
105027
|
+
/**
|
|
105028
|
+
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
105029
|
+
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
105030
|
+
*
|
|
105031
|
+
* @param {type} props
|
|
105032
|
+
* @return {SelectEntry}
|
|
105035
105033
|
*/
|
|
105036
105034
|
function TimerEventDefinitionType$2(props) {
|
|
105037
105035
|
const {
|
|
@@ -105099,13 +105097,13 @@
|
|
|
105099
105097
|
});
|
|
105100
105098
|
}
|
|
105101
105099
|
|
|
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}
|
|
105100
|
+
/**
|
|
105101
|
+
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
105102
|
+
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
105103
|
+
* together with timerEventDefinitionType.
|
|
105104
|
+
*
|
|
105105
|
+
* @param {type} props
|
|
105106
|
+
* @return {TextFieldEntry}
|
|
105109
105107
|
*/
|
|
105110
105108
|
function TimerEventDefinitionValue$2(props) {
|
|
105111
105109
|
const {
|