camunda-bpmn-js 4.15.0 → 4.17.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/properties-panel.css +6 -0
- package/dist/base-modeler.development.js +219 -219
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +1780 -1638
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +1498 -1498
- package/dist/camunda-platform-modeler.production.min.js +1 -1
- package/package.json +6 -6
|
@@ -100373,7 +100373,7 @@
|
|
|
100373
100373
|
monospace,
|
|
100374
100374
|
onFocus,
|
|
100375
100375
|
onBlur,
|
|
100376
|
-
autoResize,
|
|
100376
|
+
autoResize = true,
|
|
100377
100377
|
placeholder,
|
|
100378
100378
|
rows = autoResize ? 1 : 2,
|
|
100379
100379
|
tooltip
|
|
@@ -104505,8 +104505,8 @@
|
|
|
104505
104505
|
});
|
|
104506
104506
|
const selectedElement = state.selectedElement;
|
|
104507
104507
|
|
|
104508
|
-
/**
|
|
104509
|
-
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
104508
|
+
/**
|
|
104509
|
+
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
104510
104510
|
*/
|
|
104511
104511
|
const _update = element => {
|
|
104512
104512
|
if (!element) {
|
|
@@ -104691,10 +104691,10 @@
|
|
|
104691
104691
|
|
|
104692
104692
|
const DEFAULT_PRIORITY = 1000;
|
|
104693
104693
|
|
|
104694
|
-
/**
|
|
104695
|
-
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
104696
|
-
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
104697
|
-
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
104694
|
+
/**
|
|
104695
|
+
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
104696
|
+
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
104697
|
+
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
104698
104698
|
*/
|
|
104699
104699
|
|
|
104700
104700
|
class BpmnPropertiesPanelRenderer {
|
|
@@ -104731,10 +104731,10 @@
|
|
|
104731
104731
|
});
|
|
104732
104732
|
}
|
|
104733
104733
|
|
|
104734
|
-
/**
|
|
104735
|
-
* Attach the properties panel to a parent node.
|
|
104736
|
-
*
|
|
104737
|
-
* @param {HTMLElement} container
|
|
104734
|
+
/**
|
|
104735
|
+
* Attach the properties panel to a parent node.
|
|
104736
|
+
*
|
|
104737
|
+
* @param {HTMLElement} container
|
|
104738
104738
|
*/
|
|
104739
104739
|
attachTo(container) {
|
|
104740
104740
|
if (!container) {
|
|
@@ -104759,8 +104759,8 @@
|
|
|
104759
104759
|
this._eventBus.fire('propertiesPanel.attach');
|
|
104760
104760
|
}
|
|
104761
104761
|
|
|
104762
|
-
/**
|
|
104763
|
-
* Detach the properties panel from its parent node.
|
|
104762
|
+
/**
|
|
104763
|
+
* Detach the properties panel from its parent node.
|
|
104764
104764
|
*/
|
|
104765
104765
|
detach() {
|
|
104766
104766
|
const parentNode = this._container.parentNode;
|
|
@@ -104770,11 +104770,11 @@
|
|
|
104770
104770
|
}
|
|
104771
104771
|
}
|
|
104772
104772
|
|
|
104773
|
-
/**
|
|
104774
|
-
* Register a new properties provider to the properties panel.
|
|
104775
|
-
*
|
|
104776
|
-
* @param {Number} [priority]
|
|
104777
|
-
* @param {PropertiesProvider} provider
|
|
104773
|
+
/**
|
|
104774
|
+
* Register a new properties provider to the properties panel.
|
|
104775
|
+
*
|
|
104776
|
+
* @param {Number} [priority]
|
|
104777
|
+
* @param {PropertiesProvider} provider
|
|
104778
104778
|
*/
|
|
104779
104779
|
registerProvider(priority, provider) {
|
|
104780
104780
|
if (!provider) {
|
|
@@ -104791,9 +104791,9 @@
|
|
|
104791
104791
|
this._eventBus.fire('propertiesPanel.providersChanged');
|
|
104792
104792
|
}
|
|
104793
104793
|
|
|
104794
|
-
/**
|
|
104795
|
-
* Updates the layout of the properties panel.
|
|
104796
|
-
* @param {Object} layout
|
|
104794
|
+
/**
|
|
104795
|
+
* Updates the layout of the properties panel.
|
|
104796
|
+
* @param {Object} layout
|
|
104797
104797
|
*/
|
|
104798
104798
|
setLayout(layout) {
|
|
104799
104799
|
this._eventBus.fire('propertiesPanel.setLayout', {
|
|
@@ -104843,12 +104843,12 @@
|
|
|
104843
104843
|
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
104844
104844
|
}
|
|
104845
104845
|
|
|
104846
|
-
/**
|
|
104847
|
-
* Setup keyboard bindings (undo, redo) on the given container.
|
|
104848
|
-
*
|
|
104849
|
-
* @param {Element} container
|
|
104850
|
-
* @param {EventBus} eventBus
|
|
104851
|
-
* @param {CommandStack} commandStack
|
|
104846
|
+
/**
|
|
104847
|
+
* Setup keyboard bindings (undo, redo) on the given container.
|
|
104848
|
+
*
|
|
104849
|
+
* @param {Element} container
|
|
104850
|
+
* @param {EventBus} eventBus
|
|
104851
|
+
* @param {CommandStack} commandStack
|
|
104852
104852
|
*/
|
|
104853
104853
|
function setupKeyboard(container, eventBus, commandStack) {
|
|
104854
104854
|
function cancel(event) {
|
|
@@ -104873,14 +104873,14 @@
|
|
|
104873
104873
|
});
|
|
104874
104874
|
}
|
|
104875
104875
|
|
|
104876
|
-
/**
|
|
104877
|
-
* A handler that combines and executes multiple commands.
|
|
104878
|
-
*
|
|
104879
|
-
* All updates are bundled on the command stack and executed in one step.
|
|
104880
|
-
* This also makes it possible to revert the changes in one step.
|
|
104881
|
-
*
|
|
104882
|
-
* Example use case: remove the camunda:formKey attribute and in addition
|
|
104883
|
-
* add all form fields needed for the camunda:formData property.
|
|
104876
|
+
/**
|
|
104877
|
+
* A handler that combines and executes multiple commands.
|
|
104878
|
+
*
|
|
104879
|
+
* All updates are bundled on the command stack and executed in one step.
|
|
104880
|
+
* This also makes it possible to revert the changes in one step.
|
|
104881
|
+
*
|
|
104882
|
+
* Example use case: remove the camunda:formKey attribute and in addition
|
|
104883
|
+
* add all form fields needed for the camunda:formData property.
|
|
104884
104884
|
*/
|
|
104885
104885
|
class MultiCommandHandler {
|
|
104886
104886
|
constructor(commandStack) {
|
|
@@ -105007,12 +105007,12 @@
|
|
|
105007
105007
|
return compensateEventDefinition && compensateEventDefinition.get('activityRef');
|
|
105008
105008
|
}
|
|
105009
105009
|
|
|
105010
|
-
/**
|
|
105011
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105010
|
+
/**
|
|
105011
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105012
105012
|
*/
|
|
105013
105013
|
|
|
105014
|
-
/**
|
|
105015
|
-
* @returns {Array<Entry>} entries
|
|
105014
|
+
/**
|
|
105015
|
+
* @returns {Array<Entry>} entries
|
|
105016
105016
|
*/
|
|
105017
105017
|
function CompensationProps(props) {
|
|
105018
105018
|
const {
|
|
@@ -105122,12 +105122,12 @@
|
|
|
105122
105122
|
return getFlowElements(element, 'bpmn:BoundaryEvent');
|
|
105123
105123
|
}
|
|
105124
105124
|
|
|
105125
|
-
/**
|
|
105126
|
-
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
105127
|
-
*
|
|
105128
|
-
* @param {ModdleElement} activity
|
|
105129
|
-
* @param {Array<ModdleElement>} boundaryEvents
|
|
105130
|
-
* @returns {Boolean}
|
|
105125
|
+
/**
|
|
105126
|
+
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
105127
|
+
*
|
|
105128
|
+
* @param {ModdleElement} activity
|
|
105129
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
105130
|
+
* @returns {Boolean}
|
|
105131
105131
|
*/
|
|
105132
105132
|
function hasCompensationEventAttached(activity, boundaryEvents) {
|
|
105133
105133
|
const {
|
|
@@ -105142,15 +105142,15 @@
|
|
|
105142
105142
|
});
|
|
105143
105143
|
}
|
|
105144
105144
|
|
|
105145
|
-
/**
|
|
105146
|
-
* Checks whether an Activity can be compensated. That's the case when it is
|
|
105147
|
-
* a) a CallActivity
|
|
105148
|
-
* b) a SubProcess, when it is not event based and not a compensation
|
|
105149
|
-
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
105150
|
-
*
|
|
105151
|
-
* @param {ModdleElement} activity
|
|
105152
|
-
* @param {Array<ModdleElement>} boundaryEvents
|
|
105153
|
-
* @returns {Boolean}
|
|
105145
|
+
/**
|
|
105146
|
+
* Checks whether an Activity can be compensated. That's the case when it is
|
|
105147
|
+
* a) a CallActivity
|
|
105148
|
+
* b) a SubProcess, when it is not event based and not a compensation
|
|
105149
|
+
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
105150
|
+
*
|
|
105151
|
+
* @param {ModdleElement} activity
|
|
105152
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
105153
|
+
* @returns {Boolean}
|
|
105154
105154
|
*/
|
|
105155
105155
|
function canBeCompensated(activity, boundaryEvents) {
|
|
105156
105156
|
return is$5(activity, 'bpmn:CallActivity') || is$5(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
|
|
@@ -105163,11 +105163,11 @@
|
|
|
105163
105163
|
});
|
|
105164
105164
|
}
|
|
105165
105165
|
|
|
105166
|
-
/**
|
|
105167
|
-
* Retrieves all possible activities to reference for a Compensation.
|
|
105168
|
-
*
|
|
105169
|
-
* @param {djs.model.Base} element
|
|
105170
|
-
* @returns {Array<ModdleElement>}
|
|
105166
|
+
/**
|
|
105167
|
+
* Retrieves all possible activities to reference for a Compensation.
|
|
105168
|
+
*
|
|
105169
|
+
* @param {djs.model.Base} element
|
|
105170
|
+
* @returns {Array<ModdleElement>}
|
|
105171
105171
|
*/
|
|
105172
105172
|
function findActivityRefs(element) {
|
|
105173
105173
|
const businessObject = getBusinessObject$1(element);
|
|
@@ -105187,13 +105187,13 @@
|
|
|
105187
105187
|
return activities;
|
|
105188
105188
|
}
|
|
105189
105189
|
|
|
105190
|
-
/**
|
|
105191
|
-
* Retrieves an option label in the form
|
|
105192
|
-
* a) with name: "my Task (id=Task_1)"
|
|
105193
|
-
* b) without name: "(id=Task_1)"
|
|
105194
|
-
*
|
|
105195
|
-
* @param {ModdleElement} activity
|
|
105196
|
-
* @returns {String}
|
|
105190
|
+
/**
|
|
105191
|
+
* Retrieves an option label in the form
|
|
105192
|
+
* a) with name: "my Task (id=Task_1)"
|
|
105193
|
+
* b) without name: "(id=Task_1)"
|
|
105194
|
+
*
|
|
105195
|
+
* @param {ModdleElement} activity
|
|
105196
|
+
* @returns {String}
|
|
105197
105197
|
*/
|
|
105198
105198
|
function createOptionLabel(activity) {
|
|
105199
105199
|
const {
|
|
@@ -105208,12 +105208,12 @@
|
|
|
105208
105208
|
|
|
105209
105209
|
const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
|
|
105210
105210
|
|
|
105211
|
-
/**
|
|
105212
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105211
|
+
/**
|
|
105212
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105213
105213
|
*/
|
|
105214
105214
|
|
|
105215
|
-
/**
|
|
105216
|
-
* @returns {Array<Entry>} entries
|
|
105215
|
+
/**
|
|
105216
|
+
* @returns {Array<Entry>} entries
|
|
105217
105217
|
*/
|
|
105218
105218
|
function DocumentationProps(props) {
|
|
105219
105219
|
const {
|
|
@@ -105284,12 +105284,12 @@
|
|
|
105284
105284
|
});
|
|
105285
105285
|
}
|
|
105286
105286
|
|
|
105287
|
-
/**
|
|
105288
|
-
* Retrieves a documentation element from a given moddle element.
|
|
105289
|
-
*
|
|
105290
|
-
* @param {ModdleElement} businessObject
|
|
105291
|
-
*
|
|
105292
|
-
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
105287
|
+
/**
|
|
105288
|
+
* Retrieves a documentation element from a given moddle element.
|
|
105289
|
+
*
|
|
105290
|
+
* @param {ModdleElement} businessObject
|
|
105291
|
+
*
|
|
105292
|
+
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
105293
105293
|
*/
|
|
105294
105294
|
function getDocumentation(businessObject) {
|
|
105295
105295
|
return function () {
|
|
@@ -105298,10 +105298,10 @@
|
|
|
105298
105298
|
};
|
|
105299
105299
|
}
|
|
105300
105300
|
|
|
105301
|
-
/**
|
|
105302
|
-
* Sets a documentation element for a given moddle element.
|
|
105303
|
-
*
|
|
105304
|
-
* @param {ModdleElement} businessObject
|
|
105301
|
+
/**
|
|
105302
|
+
* Sets a documentation element for a given moddle element.
|
|
105303
|
+
*
|
|
105304
|
+
* @param {ModdleElement} businessObject
|
|
105305
105305
|
*/
|
|
105306
105306
|
function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
|
|
105307
105307
|
return function (value) {
|
|
@@ -105344,15 +105344,15 @@
|
|
|
105344
105344
|
};
|
|
105345
105345
|
}
|
|
105346
105346
|
|
|
105347
|
-
/**
|
|
105348
|
-
* Create a new element and (optionally) set its parent.
|
|
105349
|
-
*
|
|
105350
|
-
* @param {string} type
|
|
105351
|
-
* @param {Object} properties
|
|
105352
|
-
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
105353
|
-
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
105354
|
-
*
|
|
105355
|
-
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
105347
|
+
/**
|
|
105348
|
+
* Create a new element and (optionally) set its parent.
|
|
105349
|
+
*
|
|
105350
|
+
* @param {string} type
|
|
105351
|
+
* @param {Object} properties
|
|
105352
|
+
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
105353
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
105354
|
+
*
|
|
105355
|
+
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
105356
105356
|
*/
|
|
105357
105357
|
function createElement(type, properties, parent, bpmnFactory) {
|
|
105358
105358
|
const element = bpmnFactory.create(type, properties);
|
|
@@ -105362,8 +105362,8 @@
|
|
|
105362
105362
|
return element;
|
|
105363
105363
|
}
|
|
105364
105364
|
|
|
105365
|
-
/**
|
|
105366
|
-
* generate a semantic id with given prefix
|
|
105365
|
+
/**
|
|
105366
|
+
* generate a semantic id with given prefix
|
|
105367
105367
|
*/
|
|
105368
105368
|
function nextId(prefix) {
|
|
105369
105369
|
const ids = new Ids$1([32, 32, 1]);
|
|
@@ -105392,12 +105392,12 @@
|
|
|
105392
105392
|
const EMPTY_OPTION$4 = '';
|
|
105393
105393
|
const CREATE_NEW_OPTION$4 = 'create-new';
|
|
105394
105394
|
|
|
105395
|
-
/**
|
|
105396
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105395
|
+
/**
|
|
105396
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105397
105397
|
*/
|
|
105398
105398
|
|
|
105399
|
-
/**
|
|
105400
|
-
* @returns {Array<Entry>} entries
|
|
105399
|
+
/**
|
|
105400
|
+
* @returns {Array<Entry>} entries
|
|
105401
105401
|
*/
|
|
105402
105402
|
function ErrorProps$2(props) {
|
|
105403
105403
|
const {
|
|
@@ -105573,12 +105573,12 @@
|
|
|
105573
105573
|
|
|
105574
105574
|
const CREATE_NEW_OPTION$3 = 'create-new';
|
|
105575
105575
|
|
|
105576
|
-
/**
|
|
105577
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105576
|
+
/**
|
|
105577
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105578
105578
|
*/
|
|
105579
105579
|
|
|
105580
|
-
/**
|
|
105581
|
-
* @returns {Array<Entry>} entries
|
|
105580
|
+
/**
|
|
105581
|
+
* @returns {Array<Entry>} entries
|
|
105582
105582
|
*/
|
|
105583
105583
|
function EscalationProps$2(props) {
|
|
105584
105584
|
const {
|
|
@@ -105751,12 +105751,12 @@
|
|
|
105751
105751
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
105752
105752
|
}
|
|
105753
105753
|
|
|
105754
|
-
/**
|
|
105755
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105754
|
+
/**
|
|
105755
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105756
105756
|
*/
|
|
105757
105757
|
|
|
105758
|
-
/**
|
|
105759
|
-
* @returns {Array<Entry>} entries
|
|
105758
|
+
/**
|
|
105759
|
+
* @returns {Array<Entry>} entries
|
|
105760
105760
|
*/
|
|
105761
105761
|
function ExecutableProps(props) {
|
|
105762
105762
|
const {
|
|
@@ -105827,14 +105827,14 @@
|
|
|
105827
105827
|
// for ID validation as per BPMN Schema (QName - Namespace)
|
|
105828
105828
|
const ID_REGEX = /^[a-z_][\w-.]*$/i;
|
|
105829
105829
|
|
|
105830
|
-
/**
|
|
105831
|
-
* checks whether the id value is valid
|
|
105832
|
-
*
|
|
105833
|
-
* @param {ModdleElement} element
|
|
105834
|
-
* @param {String} idValue
|
|
105835
|
-
* @param {Function} translate
|
|
105836
|
-
*
|
|
105837
|
-
* @return {String} error message
|
|
105830
|
+
/**
|
|
105831
|
+
* checks whether the id value is valid
|
|
105832
|
+
*
|
|
105833
|
+
* @param {ModdleElement} element
|
|
105834
|
+
* @param {String} idValue
|
|
105835
|
+
* @param {Function} translate
|
|
105836
|
+
*
|
|
105837
|
+
* @return {String} error message
|
|
105838
105838
|
*/
|
|
105839
105839
|
function isIdValid(element, idValue, translate) {
|
|
105840
105840
|
const assigned = element.$model.ids.assigned(idValue);
|
|
@@ -105862,12 +105862,12 @@
|
|
|
105862
105862
|
return SPACE_REGEX.test(value);
|
|
105863
105863
|
}
|
|
105864
105864
|
|
|
105865
|
-
/**
|
|
105866
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105865
|
+
/**
|
|
105866
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105867
105867
|
*/
|
|
105868
105868
|
|
|
105869
|
-
/**
|
|
105870
|
-
* @returns {Array<Entry>} entries
|
|
105869
|
+
/**
|
|
105870
|
+
* @returns {Array<Entry>} entries
|
|
105871
105871
|
*/
|
|
105872
105872
|
function IdProps$1() {
|
|
105873
105873
|
return [{
|
|
@@ -105909,12 +105909,12 @@
|
|
|
105909
105909
|
});
|
|
105910
105910
|
}
|
|
105911
105911
|
|
|
105912
|
-
/**
|
|
105913
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105912
|
+
/**
|
|
105913
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105914
105914
|
*/
|
|
105915
105915
|
|
|
105916
|
-
/**
|
|
105917
|
-
* @returns {Array<Entry>} entries
|
|
105916
|
+
/**
|
|
105917
|
+
* @returns {Array<Entry>} entries
|
|
105918
105918
|
*/
|
|
105919
105919
|
function LinkProps(props) {
|
|
105920
105920
|
const {
|
|
@@ -105962,12 +105962,12 @@
|
|
|
105962
105962
|
const EMPTY_OPTION$3 = '';
|
|
105963
105963
|
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
105964
105964
|
|
|
105965
|
-
/**
|
|
105966
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105965
|
+
/**
|
|
105966
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105967
105967
|
*/
|
|
105968
105968
|
|
|
105969
|
-
/**
|
|
105970
|
-
* @returns {Array<Entry>} entries
|
|
105969
|
+
/**
|
|
105970
|
+
* @returns {Array<Entry>} entries
|
|
105971
105971
|
*/
|
|
105972
105972
|
function MessageProps$1(props) {
|
|
105973
105973
|
const {
|
|
@@ -106110,12 +106110,12 @@
|
|
|
106110
106110
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
106111
106111
|
}
|
|
106112
106112
|
|
|
106113
|
-
/**
|
|
106114
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106113
|
+
/**
|
|
106114
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106115
106115
|
*/
|
|
106116
106116
|
|
|
106117
|
-
/**
|
|
106118
|
-
* @returns {Array<Entry>} entries
|
|
106117
|
+
/**
|
|
106118
|
+
* @returns {Array<Entry>} entries
|
|
106119
106119
|
*/
|
|
106120
106120
|
function MultiInstanceProps$2(props) {
|
|
106121
106121
|
const {
|
|
@@ -106186,59 +106186,59 @@
|
|
|
106186
106186
|
|
|
106187
106187
|
// generic ///////////////////////////
|
|
106188
106188
|
|
|
106189
|
-
/**
|
|
106190
|
-
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
106191
|
-
*
|
|
106192
|
-
* @param {djs.model.Base} element
|
|
106193
|
-
* @return {boolean}
|
|
106189
|
+
/**
|
|
106190
|
+
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
106191
|
+
*
|
|
106192
|
+
* @param {djs.model.Base} element
|
|
106193
|
+
* @return {boolean}
|
|
106194
106194
|
*/
|
|
106195
106195
|
function isMultiInstanceSupported$1(element) {
|
|
106196
106196
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
106197
106197
|
return !!loopCharacteristics && is$5(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
|
|
106198
106198
|
}
|
|
106199
106199
|
|
|
106200
|
-
/**
|
|
106201
|
-
* getBody - get the body of a given expression.
|
|
106202
|
-
*
|
|
106203
|
-
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
106204
|
-
* @return {string} the body (value) of the expression
|
|
106200
|
+
/**
|
|
106201
|
+
* getBody - get the body of a given expression.
|
|
106202
|
+
*
|
|
106203
|
+
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
106204
|
+
* @return {string} the body (value) of the expression
|
|
106205
106205
|
*/
|
|
106206
106206
|
function getBody(expression) {
|
|
106207
106207
|
return expression && expression.get('body');
|
|
106208
106208
|
}
|
|
106209
106209
|
|
|
106210
|
-
/**
|
|
106211
|
-
* getProperty - get a property value of the loop characteristics.
|
|
106212
|
-
*
|
|
106213
|
-
* @param {djs.model.Base} element
|
|
106214
|
-
* @param {string} propertyName
|
|
106215
|
-
*
|
|
106216
|
-
* @return {any} the property value
|
|
106210
|
+
/**
|
|
106211
|
+
* getProperty - get a property value of the loop characteristics.
|
|
106212
|
+
*
|
|
106213
|
+
* @param {djs.model.Base} element
|
|
106214
|
+
* @param {string} propertyName
|
|
106215
|
+
*
|
|
106216
|
+
* @return {any} the property value
|
|
106217
106217
|
*/
|
|
106218
106218
|
function getProperty$2(element, propertyName) {
|
|
106219
106219
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
106220
106220
|
return loopCharacteristics && loopCharacteristics.get(propertyName);
|
|
106221
106221
|
}
|
|
106222
106222
|
|
|
106223
|
-
/**
|
|
106224
|
-
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
106225
|
-
*
|
|
106226
|
-
* @param {djs.model.Base} element
|
|
106227
|
-
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
106223
|
+
/**
|
|
106224
|
+
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
106225
|
+
*
|
|
106226
|
+
* @param {djs.model.Base} element
|
|
106227
|
+
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
106228
106228
|
*/
|
|
106229
106229
|
function getLoopCharacteristics$2(element) {
|
|
106230
106230
|
const bo = getBusinessObject$1(element);
|
|
106231
106231
|
return bo.loopCharacteristics;
|
|
106232
106232
|
}
|
|
106233
106233
|
|
|
106234
|
-
/**
|
|
106235
|
-
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
106236
|
-
*
|
|
106237
|
-
* @param {ModdleElement} parent
|
|
106238
|
-
* @param {string} body
|
|
106239
|
-
* @param {BpmnFactory} bpmnFactory
|
|
106240
|
-
*
|
|
106241
|
-
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
106234
|
+
/**
|
|
106235
|
+
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
106236
|
+
*
|
|
106237
|
+
* @param {ModdleElement} parent
|
|
106238
|
+
* @param {string} body
|
|
106239
|
+
* @param {BpmnFactory} bpmnFactory
|
|
106240
|
+
*
|
|
106241
|
+
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
106242
106242
|
*/
|
|
106243
106243
|
function createFormalExpression$1(parent, body, bpmnFactory) {
|
|
106244
106244
|
return createElement('bpmn:FormalExpression', {
|
|
@@ -106246,13 +106246,13 @@
|
|
|
106246
106246
|
}, parent, bpmnFactory);
|
|
106247
106247
|
}
|
|
106248
106248
|
|
|
106249
|
-
/**
|
|
106250
|
-
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
106251
|
-
*
|
|
106252
|
-
* @param {djs.model.Base} element
|
|
106253
|
-
* @param {string} propertyName
|
|
106254
|
-
* @param {string} newValue
|
|
106255
|
-
* @param {BpmnFactory} bpmnFactory
|
|
106249
|
+
/**
|
|
106250
|
+
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
106251
|
+
*
|
|
106252
|
+
* @param {djs.model.Base} element
|
|
106253
|
+
* @param {string} propertyName
|
|
106254
|
+
* @param {string} newValue
|
|
106255
|
+
* @param {BpmnFactory} bpmnFactory
|
|
106256
106256
|
*/
|
|
106257
106257
|
function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
|
|
106258
106258
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
@@ -106289,23 +106289,23 @@
|
|
|
106289
106289
|
|
|
106290
106290
|
// loopCardinality
|
|
106291
106291
|
|
|
106292
|
-
/**
|
|
106293
|
-
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
106294
|
-
*
|
|
106295
|
-
* @param {djs.model.Base} element
|
|
106296
|
-
*
|
|
106297
|
-
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
106292
|
+
/**
|
|
106293
|
+
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
106294
|
+
*
|
|
106295
|
+
* @param {djs.model.Base} element
|
|
106296
|
+
*
|
|
106297
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
106298
106298
|
*/
|
|
106299
106299
|
function getLoopCardinality(element) {
|
|
106300
106300
|
return getProperty$2(element, 'loopCardinality');
|
|
106301
106301
|
}
|
|
106302
106302
|
|
|
106303
|
-
/**
|
|
106304
|
-
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
106305
|
-
*
|
|
106306
|
-
* @param {djs.model.Base} element
|
|
106307
|
-
*
|
|
106308
|
-
* @return {string} the loop cardinality value
|
|
106303
|
+
/**
|
|
106304
|
+
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
106305
|
+
*
|
|
106306
|
+
* @param {djs.model.Base} element
|
|
106307
|
+
*
|
|
106308
|
+
* @return {string} the loop cardinality value
|
|
106309
106309
|
*/
|
|
106310
106310
|
function getLoopCardinalityValue(element) {
|
|
106311
106311
|
const loopCardinality = getLoopCardinality(element);
|
|
@@ -106314,35 +106314,35 @@
|
|
|
106314
106314
|
|
|
106315
106315
|
// completionCondition /////////////////////
|
|
106316
106316
|
|
|
106317
|
-
/**
|
|
106318
|
-
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
106319
|
-
*
|
|
106320
|
-
* @param {djs.model.Base} element
|
|
106321
|
-
*
|
|
106322
|
-
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
106317
|
+
/**
|
|
106318
|
+
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
106319
|
+
*
|
|
106320
|
+
* @param {djs.model.Base} element
|
|
106321
|
+
*
|
|
106322
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
106323
106323
|
*/
|
|
106324
106324
|
function getCompletionCondition$1(element) {
|
|
106325
106325
|
return getProperty$2(element, 'completionCondition');
|
|
106326
106326
|
}
|
|
106327
106327
|
|
|
106328
|
-
/**
|
|
106329
|
-
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
106330
|
-
*
|
|
106331
|
-
* @param {djs.model.Base} element
|
|
106332
|
-
*
|
|
106333
|
-
* @return {string} the completion condition value
|
|
106328
|
+
/**
|
|
106329
|
+
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
106330
|
+
*
|
|
106331
|
+
* @param {djs.model.Base} element
|
|
106332
|
+
*
|
|
106333
|
+
* @return {string} the completion condition value
|
|
106334
106334
|
*/
|
|
106335
106335
|
function getCompletionConditionValue(element) {
|
|
106336
106336
|
const completionCondition = getCompletionCondition$1(element);
|
|
106337
106337
|
return getBody(completionCondition);
|
|
106338
106338
|
}
|
|
106339
106339
|
|
|
106340
|
-
/**
|
|
106341
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106340
|
+
/**
|
|
106341
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106342
106342
|
*/
|
|
106343
106343
|
|
|
106344
|
-
/**
|
|
106345
|
-
* @returns {Array<Entry>} entries
|
|
106344
|
+
/**
|
|
106345
|
+
* @returns {Array<Entry>} entries
|
|
106346
106346
|
*/
|
|
106347
106347
|
function NameProps(props) {
|
|
106348
106348
|
const {
|
|
@@ -106446,12 +106446,12 @@
|
|
|
106446
106446
|
return categoryValue;
|
|
106447
106447
|
}
|
|
106448
106448
|
|
|
106449
|
-
/**
|
|
106450
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106449
|
+
/**
|
|
106450
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106451
106451
|
*/
|
|
106452
106452
|
|
|
106453
|
-
/**
|
|
106454
|
-
* @returns {Array<Entry>} entries
|
|
106453
|
+
/**
|
|
106454
|
+
* @returns {Array<Entry>} entries
|
|
106455
106455
|
*/
|
|
106456
106456
|
function ProcessProps$1(props) {
|
|
106457
106457
|
const {
|
|
@@ -106542,15 +106542,15 @@
|
|
|
106542
106542
|
return is$5(element, 'bpmn:Participant') && element.businessObject.get('processRef');
|
|
106543
106543
|
}
|
|
106544
106544
|
|
|
106545
|
-
/**
|
|
106546
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106545
|
+
/**
|
|
106546
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106547
106547
|
*/
|
|
106548
106548
|
|
|
106549
106549
|
const EMPTY_OPTION$2 = '';
|
|
106550
106550
|
const CREATE_NEW_OPTION$1 = 'create-new';
|
|
106551
106551
|
|
|
106552
|
-
/**
|
|
106553
|
-
* @returns {Entry[]}
|
|
106552
|
+
/**
|
|
106553
|
+
* @returns {Entry[]}
|
|
106554
106554
|
*/
|
|
106555
106555
|
function SignalProps$1(props) {
|
|
106556
106556
|
const {
|
|
@@ -106696,12 +106696,12 @@
|
|
|
106696
106696
|
return isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
|
|
106697
106697
|
}
|
|
106698
106698
|
|
|
106699
|
-
/**
|
|
106700
|
-
* Get the timer definition type for a given timer event definition.
|
|
106701
|
-
*
|
|
106702
|
-
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
106703
|
-
*
|
|
106704
|
-
* @return {string|undefined} the timer definition type
|
|
106699
|
+
/**
|
|
106700
|
+
* Get the timer definition type for a given timer event definition.
|
|
106701
|
+
*
|
|
106702
|
+
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
106703
|
+
*
|
|
106704
|
+
* @return {string|undefined} the timer definition type
|
|
106705
106705
|
*/
|
|
106706
106706
|
function getTimerDefinitionType(timer) {
|
|
106707
106707
|
if (!timer) {
|
|
@@ -106771,12 +106771,12 @@
|
|
|
106771
106771
|
return entries;
|
|
106772
106772
|
}
|
|
106773
106773
|
|
|
106774
|
-
/**
|
|
106775
|
-
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
106776
|
-
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
106777
|
-
*
|
|
106778
|
-
* @param {type} props
|
|
106779
|
-
* @return {SelectEntry}
|
|
106774
|
+
/**
|
|
106775
|
+
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
106776
|
+
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
106777
|
+
*
|
|
106778
|
+
* @param {type} props
|
|
106779
|
+
* @return {SelectEntry}
|
|
106780
106780
|
*/
|
|
106781
106781
|
function TimerEventDefinitionType$2(props) {
|
|
106782
106782
|
const {
|
|
@@ -106844,13 +106844,13 @@
|
|
|
106844
106844
|
});
|
|
106845
106845
|
}
|
|
106846
106846
|
|
|
106847
|
-
/**
|
|
106848
|
-
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
106849
|
-
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
106850
|
-
* together with timerEventDefinitionType.
|
|
106851
|
-
*
|
|
106852
|
-
* @param {type} props
|
|
106853
|
-
* @return {TextFieldEntry}
|
|
106847
|
+
/**
|
|
106848
|
+
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
106849
|
+
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
106850
|
+
* together with timerEventDefinitionType.
|
|
106851
|
+
*
|
|
106852
|
+
* @param {type} props
|
|
106853
|
+
* @return {TextFieldEntry}
|
|
106854
106854
|
*/
|
|
106855
106855
|
function TimerEventDefinitionValue$2(props) {
|
|
106856
106856
|
const {
|