camunda-bpmn-js 4.16.0 → 4.18.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.
Files changed (51) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +88 -88
  3. package/dist/assets/base-modeler.css +5 -5
  4. package/dist/assets/base-navigated-viewer.css +1 -1
  5. package/dist/assets/base-viewer.css +1 -1
  6. package/dist/assets/camunda-cloud-modeler.css +2 -2
  7. package/dist/assets/camunda-platform-modeler.css +1 -1
  8. package/dist/assets/properties-panel.css +1505 -1505
  9. package/dist/base-modeler.development.js +615 -596
  10. package/dist/base-modeler.production.min.js +3 -3
  11. package/dist/camunda-cloud-modeler.development.js +1135 -969
  12. package/dist/camunda-cloud-modeler.production.min.js +7 -7
  13. package/dist/camunda-cloud-navigated-viewer.development.js +58 -40
  14. package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
  15. package/dist/camunda-cloud-viewer.development.js +58 -40
  16. package/dist/camunda-cloud-viewer.production.min.js +1 -1
  17. package/dist/camunda-platform-modeler.development.js +989 -964
  18. package/dist/camunda-platform-modeler.production.min.js +3 -3
  19. package/dist/camunda-platform-navigated-viewer.development.js +27 -27
  20. package/dist/camunda-platform-viewer.development.js +27 -27
  21. package/lib/base/Modeler.d.ts +20 -20
  22. package/lib/base/Modeler.js +65 -65
  23. package/lib/base/NavigatedViewer.d.ts +2 -2
  24. package/lib/base/NavigatedViewer.js +2 -2
  25. package/lib/base/Viewer.d.ts +2 -2
  26. package/lib/base/Viewer.js +2 -2
  27. package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
  28. package/lib/camunda-cloud/Modeler.d.ts +3 -3
  29. package/lib/camunda-cloud/Modeler.js +84 -84
  30. package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
  31. package/lib/camunda-cloud/NavigatedViewer.js +36 -36
  32. package/lib/camunda-cloud/Viewer.d.ts +9 -9
  33. package/lib/camunda-cloud/Viewer.js +36 -36
  34. package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
  35. package/lib/camunda-cloud/util/commonModules.js +15 -15
  36. package/lib/camunda-platform/Modeler.d.ts +3 -3
  37. package/lib/camunda-platform/Modeler.js +68 -68
  38. package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
  39. package/lib/camunda-platform/NavigatedViewer.js +27 -27
  40. package/lib/camunda-platform/Viewer.d.ts +9 -9
  41. package/lib/camunda-platform/Viewer.js +27 -27
  42. package/lib/camunda-platform/util/commonModules.d.ts +9 -9
  43. package/lib/camunda-platform/util/commonModules.js +11 -11
  44. package/lib/util/ExtensionElementsUtil.d.ts +24 -24
  45. package/lib/util/ExtensionElementsUtil.js +68 -68
  46. package/package.json +140 -140
  47. package/styles/base-modeler.css +5 -5
  48. package/styles/base-navigated-viewer.css +1 -1
  49. package/styles/base-viewer.css +1 -1
  50. package/styles/camunda-cloud-modeler.css +2 -2
  51. package/styles/camunda-platform-modeler.css +1 -1
@@ -27687,29 +27687,34 @@
27687
27687
  * Update context pad position.
27688
27688
  */
27689
27689
  ContextPad.prototype._updatePosition = function() {
27690
- if (!this.isOpen()) {
27691
- return;
27692
- }
27693
27690
 
27694
- var html = this._current.html;
27691
+ const updateFn = () => {
27692
+ if (!this.isOpen()) {
27693
+ return;
27694
+ }
27695
27695
 
27696
- var position = this._getPosition(this._current.target);
27696
+ var html = this._current.html;
27697
27697
 
27698
- if ('x' in position && 'y' in position) {
27699
- html.style.left = position.x + 'px';
27700
- html.style.top = position.y + 'px';
27701
- } else {
27702
- [
27703
- 'top',
27704
- 'right',
27705
- 'bottom',
27706
- 'left'
27707
- ].forEach(function(key) {
27708
- if (key in position) {
27709
- html.style[ key ] = position[ key ] + 'px';
27710
- }
27711
- });
27712
- }
27698
+ var position = this._getPosition(this._current.target);
27699
+
27700
+ if ('x' in position && 'y' in position) {
27701
+ html.style.left = position.x + 'px';
27702
+ html.style.top = position.y + 'px';
27703
+ } else {
27704
+ [
27705
+ 'top',
27706
+ 'right',
27707
+ 'bottom',
27708
+ 'left'
27709
+ ].forEach(function(key) {
27710
+ if (key in position) {
27711
+ html.style[ key ] = position[ key ] + 'px';
27712
+ }
27713
+ });
27714
+ }
27715
+ };
27716
+
27717
+ this._scheduler.schedule(updateFn, 'ContextPad#_updatePosition');
27713
27718
  };
27714
27719
 
27715
27720
  /**
@@ -44915,9 +44920,16 @@
44915
44920
  hints.moveChildren = false;
44916
44921
  }
44917
44922
 
44918
- // apply same width and default height
44919
- newElement.width = element.width;
44920
- newElement.height = elementFactory.getDefaultSize(newElement).height;
44923
+ // apply same directionality
44924
+ var isHorizontalPool = isHorizontal$3(element);
44925
+ if (!getDi$1(element).isHorizontal) {
44926
+ getDi$1(newElement).isHorizontal = isHorizontalPool;
44927
+ }
44928
+
44929
+ // keep the existing size of the pool's direction to
44930
+ // prevent dangling message flows
44931
+ newElement.width = isHorizontalPool ? element.width : elementFactory.getDefaultSize(newElement).width;
44932
+ newElement.height = isHorizontalPool ? elementFactory.getDefaultSize(newElement).height : element.height;
44921
44933
  }
44922
44934
 
44923
44935
  if (!rules.allowed('shape.resize', { shape: newBusinessObject })) {
@@ -48603,10 +48615,17 @@
48603
48615
  }
48604
48616
 
48605
48617
  if (is$6(bo, 'bpmn:Participant')) {
48618
+ var isHorizontalPool = di.isHorizontal === undefined || di.isHorizontal === true;
48606
48619
  if (isExpanded$1(bo, di)) {
48607
- return { width: 600, height: 250 };
48620
+ if (isHorizontalPool) {
48621
+ return { width: 600, height: 250 };
48622
+ }
48623
+ return { width: 250, height: 600 };
48608
48624
  } else {
48609
- return { width: 400, height: 60 };
48625
+ if (isHorizontalPool) {
48626
+ return { width: 400, height: 60 };
48627
+ }
48628
+ return { width: 60, height: 400 };
48610
48629
  }
48611
48630
  }
48612
48631
 
@@ -98097,19 +98116,19 @@
98097
98116
  errors: {}
98098
98117
  });
98099
98118
 
98100
- /**
98101
- * @typedef {Function} <propertiesPanel.showEntry> callback
98102
- *
98103
- * @example
98104
- *
98105
- * useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
98106
- * // ...
98107
- * });
98108
- *
98109
- * @param {Object} context
98110
- * @param {boolean} [context.focus]
98111
- *
98112
- * @returns void
98119
+ /**
98120
+ * @typedef {Function} <propertiesPanel.showEntry> callback
98121
+ *
98122
+ * @example
98123
+ *
98124
+ * useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
98125
+ * // ...
98126
+ * });
98127
+ *
98128
+ * @param {Object} context
98129
+ * @param {boolean} [context.focus]
98130
+ *
98131
+ * @returns void
98113
98132
  */
98114
98133
 
98115
98134
  const EventContext = F$2({
@@ -98128,20 +98147,20 @@
98128
98147
  getTooltipForId: () => {}
98129
98148
  });
98130
98149
 
98131
- /**
98132
- * Accesses the global TooltipContext and returns a tooltip for a given id and element.
98133
- *
98134
- * @example
98135
- * ```jsx
98136
- * function TextField(props) {
98137
- * const tooltip = useTooltipContext('input1', element);
98138
- * }
98139
- * ```
98140
- *
98141
- * @param {string} id
98142
- * @param {object} element
98143
- *
98144
- * @returns {string}
98150
+ /**
98151
+ * Accesses the global TooltipContext and returns a tooltip for a given id and element.
98152
+ *
98153
+ * @example
98154
+ * ```jsx
98155
+ * function TextField(props) {
98156
+ * const tooltip = useTooltipContext('input1', element);
98157
+ * }
98158
+ * ```
98159
+ *
98160
+ * @param {string} id
98161
+ * @param {object} element
98162
+ *
98163
+ * @returns {string}
98145
98164
  */
98146
98165
  function useTooltipContext(id, element) {
98147
98166
  const {
@@ -98294,20 +98313,20 @@
98294
98313
  return `bio-properties-panel-${id}`;
98295
98314
  }
98296
98315
 
98297
- /**
98298
- * Accesses the global DescriptionContext and returns a description for a given id and element.
98299
- *
98300
- * @example
98301
- * ```jsx
98302
- * function TextField(props) {
98303
- * const description = useDescriptionContext('input1', element);
98304
- * }
98305
- * ```
98306
- *
98307
- * @param {string} id
98308
- * @param {object} element
98309
- *
98310
- * @returns {string}
98316
+ /**
98317
+ * Accesses the global DescriptionContext and returns a description for a given id and element.
98318
+ *
98319
+ * @example
98320
+ * ```jsx
98321
+ * function TextField(props) {
98322
+ * const description = useDescriptionContext('input1', element);
98323
+ * }
98324
+ * ```
98325
+ *
98326
+ * @param {string} id
98327
+ * @param {object} element
98328
+ *
98329
+ * @returns {string}
98311
98330
  */
98312
98331
  function useDescriptionContext(id, element) {
98313
98332
  const {
@@ -98329,11 +98348,11 @@
98329
98348
  return errors;
98330
98349
  }
98331
98350
 
98332
- /**
98333
- * Subscribe to an event immediately. Update subscription after inputs changed.
98334
- *
98335
- * @param {string} event
98336
- * @param {Function} callback
98351
+ /**
98352
+ * Subscribe to an event immediately. Update subscription after inputs changed.
98353
+ *
98354
+ * @param {string} event
98355
+ * @param {Function} callback
98337
98356
  */
98338
98357
  function useEvent(event, callback, eventBus) {
98339
98358
  const eventContext = q$1(EventContext);
@@ -98365,24 +98384,24 @@
98365
98384
 
98366
98385
  const KEY_LENGTH = 6;
98367
98386
 
98368
- /**
98369
- * Create a persistent key factory for plain objects without id.
98370
- *
98371
- * @example
98372
- * ```jsx
98373
- * function List({ objects }) {
98374
- * const getKey = useKeyFactory();
98375
- * return (<ol>{
98376
- * objects.map(obj => {
98377
- * const key = getKey(obj);
98378
- * return <li key={key}>obj.name</li>
98379
- * })
98380
- * }</ol>);
98381
- * }
98382
- * ```
98383
- *
98384
- * @param {any[]} dependencies
98385
- * @returns {(element: object) => string}
98387
+ /**
98388
+ * Create a persistent key factory for plain objects without id.
98389
+ *
98390
+ * @example
98391
+ * ```jsx
98392
+ * function List({ objects }) {
98393
+ * const getKey = useKeyFactory();
98394
+ * return (<ol>{
98395
+ * objects.map(obj => {
98396
+ * const key = getKey(obj);
98397
+ * return <li key={key}>obj.name</li>
98398
+ * })
98399
+ * }</ol>);
98400
+ * }
98401
+ * ```
98402
+ *
98403
+ * @param {any[]} dependencies
98404
+ * @returns {(element: object) => string}
98386
98405
  */
98387
98406
  function useKeyFactory(dependencies = []) {
98388
98407
  const map = F$1(() => new Map(), dependencies);
@@ -98397,20 +98416,20 @@
98397
98416
  return getKey;
98398
98417
  }
98399
98418
 
98400
- /**
98401
- * Creates a state that persists in the global LayoutContext.
98402
- *
98403
- * @example
98404
- * ```jsx
98405
- * function Group(props) {
98406
- * const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
98407
- * }
98408
- * ```
98409
- *
98410
- * @param {(string|number)[]} path
98411
- * @param {any} [defaultValue]
98412
- *
98413
- * @returns {[ any, Function ]}
98419
+ /**
98420
+ * Creates a state that persists in the global LayoutContext.
98421
+ *
98422
+ * @example
98423
+ * ```jsx
98424
+ * function Group(props) {
98425
+ * const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
98426
+ * }
98427
+ * ```
98428
+ *
98429
+ * @param {(string|number)[]} path
98430
+ * @param {any} [defaultValue]
98431
+ *
98432
+ * @returns {[ any, Function ]}
98414
98433
  */
98415
98434
  function useLayoutState(path, defaultValue) {
98416
98435
  const {
@@ -98424,11 +98443,11 @@
98424
98443
  return [layoutForKey, setState];
98425
98444
  }
98426
98445
 
98427
- /**
98428
- * @pinussilvestrus: we need to introduce our own hook to persist the previous
98429
- * state on updates.
98430
- *
98431
- * cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
98446
+ /**
98447
+ * @pinussilvestrus: we need to introduce our own hook to persist the previous
98448
+ * state on updates.
98449
+ *
98450
+ * cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
98432
98451
  */
98433
98452
 
98434
98453
  function usePrevious(value) {
@@ -98439,12 +98458,12 @@
98439
98458
  return ref.current;
98440
98459
  }
98441
98460
 
98442
- /**
98443
- * Subscribe to `propertiesPanel.showEntry`.
98444
- *
98445
- * @param {string} id
98446
- *
98447
- * @returns {import('preact').Ref}
98461
+ /**
98462
+ * Subscribe to `propertiesPanel.showEntry`.
98463
+ *
98464
+ * @param {string} id
98465
+ *
98466
+ * @returns {import('preact').Ref}
98448
98467
  */
98449
98468
  function useShowEntryEvent(id) {
98450
98469
  const {
@@ -98475,20 +98494,20 @@
98475
98494
  return ref;
98476
98495
  }
98477
98496
 
98478
- /**
98479
- * @callback setSticky
98480
- * @param {boolean} value
98497
+ /**
98498
+ * @callback setSticky
98499
+ * @param {boolean} value
98481
98500
  */
98482
98501
 
98483
- /**
98484
- * Use IntersectionObserver to identify when DOM element is in sticky mode.
98485
- * If sticky is observered setSticky(true) will be called.
98486
- * If sticky mode is left, setSticky(false) will be called.
98487
- *
98488
- *
98489
- * @param {Object} ref
98490
- * @param {string} scrollContainerSelector
98491
- * @param {setSticky} setSticky
98502
+ /**
98503
+ * Use IntersectionObserver to identify when DOM element is in sticky mode.
98504
+ * If sticky is observered setSticky(true) will be called.
98505
+ * If sticky mode is left, setSticky(false) will be called.
98506
+ *
98507
+ *
98508
+ * @param {Object} ref
98509
+ * @param {string} scrollContainerSelector
98510
+ * @param {setSticky} setSticky
98492
98511
  */
98493
98512
  function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky) {
98494
98513
  const [scrollContainer, setScrollContainer] = h(query$1(scrollContainerSelector));
@@ -98542,19 +98561,19 @@
98542
98561
  }, [ref.current, scrollContainer, setSticky]);
98543
98562
  }
98544
98563
 
98545
- /**
98546
- * Creates a static function reference with changing body.
98547
- * This is necessary when external libraries require a callback function
98548
- * that has references to state variables.
98549
- *
98550
- * Usage:
98551
- * const callback = useStaticCallback((val) => {val === currentState});
98552
- *
98553
- * The `callback` reference is static and can be safely used in external
98554
- * libraries or as a prop that does not cause rerendering of children.
98555
- *
98556
- * @param {Function} callback function with changing reference
98557
- * @returns {Function} static function reference
98564
+ /**
98565
+ * Creates a static function reference with changing body.
98566
+ * This is necessary when external libraries require a callback function
98567
+ * that has references to state variables.
98568
+ *
98569
+ * Usage:
98570
+ * const callback = useStaticCallback((val) => {val === currentState});
98571
+ *
98572
+ * The `callback` reference is static and can be safely used in external
98573
+ * libraries or as a prop that does not cause rerendering of children.
98574
+ *
98575
+ * @param {Function} callback function with changing reference
98576
+ * @returns {Function} static function reference
98558
98577
  */
98559
98578
  function useStaticCallback(callback) {
98560
98579
  const callbackRef = _(callback);
@@ -98697,13 +98716,13 @@
98697
98716
  return null;
98698
98717
  }
98699
98718
 
98700
- /**
98701
- * @typedef { {
98702
- * text: (element: object) => string,
98703
- * icon?: (element: Object) => import('preact').Component
98704
- * } } PlaceholderDefinition
98705
- *
98706
- * @param { PlaceholderDefinition } props
98719
+ /**
98720
+ * @typedef { {
98721
+ * text: (element: object) => string,
98722
+ * icon?: (element: Object) => import('preact').Component
98723
+ * } } PlaceholderDefinition
98724
+ *
98725
+ * @param { PlaceholderDefinition } props
98707
98726
  */
98708
98727
  function Placeholder(props) {
98709
98728
  const {
@@ -98742,9 +98761,9 @@
98742
98761
 
98743
98762
  const noop$6 = () => {};
98744
98763
 
98745
- /**
98746
- * Buffer `.focus()` calls while the editor is not initialized.
98747
- * Set Focus inside when the editor is ready.
98764
+ /**
98765
+ * Buffer `.focus()` calls while the editor is not initialized.
98766
+ * Set Focus inside when the editor is ready.
98748
98767
  */
98749
98768
  const useBufferedFocus$1 = function (editor, ref) {
98750
98769
  const [buffer, setBuffer] = h(undefined);
@@ -98845,9 +98864,9 @@
98845
98864
 
98846
98865
  const noop$5 = () => {};
98847
98866
 
98848
- /**
98849
- * Buffer `.focus()` calls while the editor is not initialized.
98850
- * Set Focus inside when the editor is ready.
98867
+ /**
98868
+ * Buffer `.focus()` calls while the editor is not initialized.
98869
+ * Set Focus inside when the editor is ready.
98851
98870
  */
98852
98871
  const useBufferedFocus = function (editor, ref) {
98853
98872
  const [buffer, setBuffer] = h(undefined);
@@ -98896,10 +98915,10 @@
98896
98915
  p$1(() => {
98897
98916
  let editor;
98898
98917
 
98899
- /* Trigger FEEL toggle when
98900
- *
98901
- * - `backspace` is pressed
98902
- * - AND the cursor is at the beginning of the input
98918
+ /* Trigger FEEL toggle when
98919
+ *
98920
+ * - `backspace` is pressed
98921
+ * - AND the cursor is at the beginning of the input
98903
98922
  */
98904
98923
  const onKeyDown = e => {
98905
98924
  if (e.key !== 'Backspace' || !editor) {
@@ -98981,22 +99000,22 @@
98981
99000
  source: null
98982
99001
  });
98983
99002
 
98984
- /**
98985
- * Add a dragger that calls back the passed function with
98986
- * { event, delta } on drag.
98987
- *
98988
- * @example
98989
- *
98990
- * function dragMove(event, delta) {
98991
- * // we are dragging (!!)
98992
- * }
98993
- *
98994
- * domElement.addEventListener('dragstart', dragger(dragMove));
98995
- *
98996
- * @param {Function} fn
98997
- * @param {Element} [dragPreview]
98998
- *
98999
- * @return {Function} drag start callback function
99003
+ /**
99004
+ * Add a dragger that calls back the passed function with
99005
+ * { event, delta } on drag.
99006
+ *
99007
+ * @example
99008
+ *
99009
+ * function dragMove(event, delta) {
99010
+ * // we are dragging (!!)
99011
+ * }
99012
+ *
99013
+ * domElement.addEventListener('dragstart', dragger(dragMove));
99014
+ *
99015
+ * @param {Function} fn
99016
+ * @param {Element} [dragPreview]
99017
+ *
99018
+ * @return {Function} drag start callback function
99000
99019
  */
99001
99020
  function createDragger(fn, dragPreview) {
99002
99021
  let self;
@@ -99051,23 +99070,23 @@
99051
99070
 
99052
99071
  const noop$3 = () => {};
99053
99072
 
99054
- /**
99055
- * A generic popup component.
99056
- *
99057
- * @param {Object} props
99058
- * @param {HTMLElement} [props.container]
99059
- * @param {string} [props.className]
99060
- * @param {boolean} [props.delayInitialFocus]
99061
- * @param {{x: number, y: number}} [props.position]
99062
- * @param {number} [props.width]
99063
- * @param {number} [props.height]
99064
- * @param {Function} props.onClose
99065
- * @param {Function} [props.onPostActivate]
99066
- * @param {Function} [props.onPostDeactivate]
99067
- * @param {boolean} [props.returnFocus]
99068
- * @param {boolean} [props.closeOnEscape]
99069
- * @param {string} props.title
99070
- * @param {Ref} [ref]
99073
+ /**
99074
+ * A generic popup component.
99075
+ *
99076
+ * @param {Object} props
99077
+ * @param {HTMLElement} [props.container]
99078
+ * @param {string} [props.className]
99079
+ * @param {boolean} [props.delayInitialFocus]
99080
+ * @param {{x: number, y: number}} [props.position]
99081
+ * @param {number} [props.width]
99082
+ * @param {number} [props.height]
99083
+ * @param {Function} props.onClose
99084
+ * @param {Function} [props.onPostActivate]
99085
+ * @param {Function} [props.onPostDeactivate]
99086
+ * @param {boolean} [props.returnFocus]
99087
+ * @param {boolean} [props.closeOnEscape]
99088
+ * @param {string} props.title
99089
+ * @param {Ref} [ref]
99071
99090
  */
99072
99091
  function PopupComponent(props, globalRef) {
99073
99092
  const {
@@ -99286,12 +99305,12 @@
99286
99305
  const FEEL_POPUP_WIDTH = 700;
99287
99306
  const FEEL_POPUP_HEIGHT = 250;
99288
99307
 
99289
- /**
99290
- * FEEL popup component, built as a singleton. Emits lifecycle events as follows:
99291
- * - `feelPopup.open` - fired before the popup is mounted
99292
- * - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
99293
- * - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
99294
- * - `feelPopup.closed` - fired after the popup is unmounted
99308
+ /**
99309
+ * FEEL popup component, built as a singleton. Emits lifecycle events as follows:
99310
+ * - `feelPopup.open` - fired before the popup is mounted
99311
+ * - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
99312
+ * - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
99313
+ * - `feelPopup.closed` - fired after the popup is unmounted
99295
99314
  */
99296
99315
  function FEELPopupRoot(props) {
99297
99316
  const {
@@ -99514,11 +99533,11 @@
99514
99533
  return element.closest('.cm-editor').querySelector('.cm-tooltip-autocomplete');
99515
99534
  }
99516
99535
 
99517
- /**
99518
- * This hook behaves like useEffect, but does not trigger on the first render.
99519
- *
99520
- * @param {Function} effect
99521
- * @param {Array} deps
99536
+ /**
99537
+ * This hook behaves like useEffect, but does not trigger on the first render.
99538
+ *
99539
+ * @param {Function} effect
99540
+ * @param {Array} deps
99522
99541
  */
99523
99542
  function useUpdateEffect(effect, deps) {
99524
99543
  const isMounted = _(false);
@@ -99596,19 +99615,19 @@
99596
99615
  });
99597
99616
  }
99598
99617
 
99599
- /**
99600
- * @param {Object} props
99601
- * @param {Object} props.element
99602
- * @param {String} props.id
99603
- * @param {String} props.description
99604
- * @param {String} props.label
99605
- * @param {String} props.switcherLabel
99606
- * @param {Boolean} props.inline
99607
- * @param {Function} props.getValue
99608
- * @param {Function} props.setValue
99609
- * @param {Function} props.onFocus
99610
- * @param {Function} props.onBlur
99611
- * @param {string|import('preact').Component} props.tooltip
99618
+ /**
99619
+ * @param {Object} props
99620
+ * @param {Object} props.element
99621
+ * @param {String} props.id
99622
+ * @param {String} props.description
99623
+ * @param {String} props.label
99624
+ * @param {String} props.switcherLabel
99625
+ * @param {Boolean} props.inline
99626
+ * @param {Function} props.getValue
99627
+ * @param {Function} props.setValue
99628
+ * @param {Function} props.onFocus
99629
+ * @param {Function} props.onBlur
99630
+ * @param {string|import('preact').Component} props.tooltip
99612
99631
  */
99613
99632
  function ToggleSwitchEntry(props) {
99614
99633
  const {
@@ -99934,84 +99953,84 @@
99934
99953
  const DEFAULT_DESCRIPTION = {};
99935
99954
  const DEFAULT_TOOLTIP = {};
99936
99955
 
99937
- /**
99938
- * @typedef { {
99939
- * component: import('preact').Component,
99940
- * id: String,
99941
- * isEdited?: Function
99942
- * } } EntryDefinition
99943
- *
99944
- * @typedef { {
99945
- * autoFocusEntry: String,
99946
- * autoOpen?: Boolean,
99947
- * entries: Array<EntryDefinition>,
99948
- * id: String,
99949
- * label: String,
99950
- * remove: (event: MouseEvent) => void
99951
- * } } ListItemDefinition
99952
- *
99953
- * @typedef { {
99954
- * add: (event: MouseEvent) => void,
99955
- * component: import('preact').Component,
99956
- * element: Object,
99957
- * id: String,
99958
- * items: Array<ListItemDefinition>,
99959
- * label: String,
99960
- * shouldOpen?: Boolean
99961
- * } } ListGroupDefinition
99962
- *
99963
- * @typedef { {
99964
- * component?: import('preact').Component,
99965
- * entries: Array<EntryDefinition>,
99966
- * id: String,
99967
- * label: String,
99968
- * shouldOpen?: Boolean
99969
- * } } GroupDefinition
99970
- *
99971
- * @typedef { {
99972
- * [id: String]: GetDescriptionFunction
99973
- * } } DescriptionConfig
99974
- *
99975
- * @typedef { {
99976
- * [id: String]: GetTooltipFunction
99977
- * } } TooltipConfig
99978
- *
99979
- * @callback { {
99980
- * @param {string} id
99981
- * @param {Object} element
99982
- * @returns {string}
99983
- * } } GetDescriptionFunction
99984
- *
99985
- * @callback { {
99986
- * @param {string} id
99987
- * @param {Object} element
99988
- * @returns {string}
99989
- * } } GetTooltipFunction
99990
- *
99991
- * @typedef { {
99992
- * getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
99993
- * getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
99994
- * } } PlaceholderProvider
99995
- *
99956
+ /**
99957
+ * @typedef { {
99958
+ * component: import('preact').Component,
99959
+ * id: String,
99960
+ * isEdited?: Function
99961
+ * } } EntryDefinition
99962
+ *
99963
+ * @typedef { {
99964
+ * autoFocusEntry: String,
99965
+ * autoOpen?: Boolean,
99966
+ * entries: Array<EntryDefinition>,
99967
+ * id: String,
99968
+ * label: String,
99969
+ * remove: (event: MouseEvent) => void
99970
+ * } } ListItemDefinition
99971
+ *
99972
+ * @typedef { {
99973
+ * add: (event: MouseEvent) => void,
99974
+ * component: import('preact').Component,
99975
+ * element: Object,
99976
+ * id: String,
99977
+ * items: Array<ListItemDefinition>,
99978
+ * label: String,
99979
+ * shouldOpen?: Boolean
99980
+ * } } ListGroupDefinition
99981
+ *
99982
+ * @typedef { {
99983
+ * component?: import('preact').Component,
99984
+ * entries: Array<EntryDefinition>,
99985
+ * id: String,
99986
+ * label: String,
99987
+ * shouldOpen?: Boolean
99988
+ * } } GroupDefinition
99989
+ *
99990
+ * @typedef { {
99991
+ * [id: String]: GetDescriptionFunction
99992
+ * } } DescriptionConfig
99993
+ *
99994
+ * @typedef { {
99995
+ * [id: String]: GetTooltipFunction
99996
+ * } } TooltipConfig
99997
+ *
99998
+ * @callback { {
99999
+ * @param {string} id
100000
+ * @param {Object} element
100001
+ * @returns {string}
100002
+ * } } GetDescriptionFunction
100003
+ *
100004
+ * @callback { {
100005
+ * @param {string} id
100006
+ * @param {Object} element
100007
+ * @returns {string}
100008
+ * } } GetTooltipFunction
100009
+ *
100010
+ * @typedef { {
100011
+ * getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
100012
+ * getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
100013
+ * } } PlaceholderProvider
100014
+ *
99996
100015
  */
99997
100016
 
99998
- /**
99999
- * A basic properties panel component. Describes *how* content will be rendered, accepts
100000
- * data from implementor to describe *what* will be rendered.
100001
- *
100002
- * @param {Object} props
100003
- * @param {Object|Array} props.element
100004
- * @param {import('./components/Header').HeaderProvider} props.headerProvider
100005
- * @param {PlaceholderProvider} [props.placeholderProvider]
100006
- * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
100007
- * @param {Object} [props.layoutConfig]
100008
- * @param {Function} [props.layoutChanged]
100009
- * @param {DescriptionConfig} [props.descriptionConfig]
100010
- * @param {Function} [props.descriptionLoaded]
100011
- * @param {TooltipConfig} [props.tooltipConfig]
100012
- * @param {Function} [props.tooltipLoaded]
100013
- * @param {HTMLElement} [props.feelPopupContainer]
100014
- * @param {Object} [props.eventBus]
100017
+ /**
100018
+ * A basic properties panel component. Describes *how* content will be rendered, accepts
100019
+ * data from implementor to describe *what* will be rendered.
100020
+ *
100021
+ * @param {Object} props
100022
+ * @param {Object|Array} props.element
100023
+ * @param {import('./components/Header').HeaderProvider} props.headerProvider
100024
+ * @param {PlaceholderProvider} [props.placeholderProvider]
100025
+ * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
100026
+ * @param {Object} [props.layoutConfig]
100027
+ * @param {Function} [props.layoutChanged]
100028
+ * @param {DescriptionConfig} [props.descriptionConfig]
100029
+ * @param {Function} [props.descriptionLoaded]
100030
+ * @param {TooltipConfig} [props.tooltipConfig]
100031
+ * @param {Function} [props.tooltipLoaded]
100032
+ * @param {HTMLElement} [props.feelPopupContainer]
100033
+ * @param {Object} [props.eventBus]
100015
100034
  */
100016
100035
  function PropertiesPanel(props) {
100017
100036
  const {
@@ -100182,11 +100201,11 @@
100182
100201
 
100183
100202
  // hooks //////////////////
100184
100203
 
100185
- /**
100186
- * This hook behaves like useLayoutEffect, but does not trigger on the first render.
100187
- *
100188
- * @param {Function} effect
100189
- * @param {Array} deps
100204
+ /**
100205
+ * This hook behaves like useLayoutEffect, but does not trigger on the first render.
100206
+ *
100207
+ * @param {Function} effect
100208
+ * @param {Array} deps
100190
100209
  */
100191
100210
  function useUpdateLayoutEffect(effect, deps) {
100192
100211
  const isMounted = _(false);
@@ -100261,15 +100280,15 @@
100261
100280
  });
100262
100281
  }
100263
100282
 
100264
- /**
100265
- *
100266
- * @param {Array<null | Element>} ignoredElements
100267
- * @param {Function} callback
100283
+ /**
100284
+ *
100285
+ * @param {Array<null | Element>} ignoredElements
100286
+ * @param {Function} callback
100268
100287
  */
100269
100288
  function useGlobalClick(ignoredElements, callback) {
100270
100289
  p$1(() => {
100271
- /**
100272
- * @param {MouseEvent} event
100290
+ /**
100291
+ * @param {MouseEvent} event
100273
100292
  */
100274
100293
  function listener(event) {
100275
100294
  if (ignoredElements.some(element => element && element.contains(event.target))) {
@@ -100302,20 +100321,20 @@
100302
100321
  });
100303
100322
  }
100304
100323
 
100305
- /**
100306
- * @typedef { {
100307
- * [key: string]: string;
100308
- * } } TranslateReplacements
100324
+ /**
100325
+ * @typedef { {
100326
+ * [key: string]: string;
100327
+ * } } TranslateReplacements
100309
100328
  */
100310
100329
 
100311
- /**
100312
- * A simple translation stub to be used for multi-language support.
100313
- * Can be easily replaced with a more sophisticated solution.
100314
- *
100315
- * @param {string} template to interpolate
100316
- * @param {TranslateReplacements} [replacements] a map with substitutes
100317
- *
100318
- * @return {string} the translated string
100330
+ /**
100331
+ * A simple translation stub to be used for multi-language support.
100332
+ * Can be easily replaced with a more sophisticated solution.
100333
+ *
100334
+ * @param {string} template to interpolate
100335
+ * @param {TranslateReplacements} [replacements] a map with substitutes
100336
+ *
100337
+ * @return {string} the translated string
100319
100338
  */
100320
100339
  function translateFallback(template, replacements) {
100321
100340
  replacements = replacements || {};
@@ -100427,8 +100446,8 @@
100427
100446
 
100428
100447
  const noop$1 = () => {};
100429
100448
 
100430
- /**
100431
- * @param {import('../PropertiesPanel').ListGroupDefinition} props
100449
+ /**
100450
+ * @param {import('../PropertiesPanel').ListGroupDefinition} props
100432
100451
  */
100433
100452
  function ListGroup(props) {
100434
100453
  const {
@@ -100620,18 +100639,18 @@
100620
100639
  });
100621
100640
  }
100622
100641
 
100623
- /**
100624
- * @param {Object} props
100625
- * @param {Object} props.element
100626
- * @param {String} props.id
100627
- * @param {String} props.description
100628
- * @param {String} props.label
100629
- * @param {Function} props.getValue
100630
- * @param {Function} props.setValue
100631
- * @param {Function} props.onFocus
100632
- * @param {Function} props.onBlur
100633
- * @param {string|import('preact').Component} props.tooltip
100634
- * @param {boolean} [props.disabled]
100642
+ /**
100643
+ * @param {Object} props
100644
+ * @param {Object} props.element
100645
+ * @param {String} props.id
100646
+ * @param {String} props.description
100647
+ * @param {String} props.label
100648
+ * @param {Function} props.getValue
100649
+ * @param {Function} props.setValue
100650
+ * @param {Function} props.onFocus
100651
+ * @param {Function} props.onBlur
100652
+ * @param {string|import('preact').Component} props.tooltip
100653
+ * @param {boolean} [props.disabled]
100635
100654
  */
100636
100655
  function CheckboxEntry(props) {
100637
100656
  const {
@@ -100705,8 +100724,8 @@
100705
100724
  }
100706
100725
  }, [open, hasItems]);
100707
100726
 
100708
- /**
100709
- * @param {MouseEvent} event
100727
+ /**
100728
+ * @param {MouseEvent} event
100710
100729
  */
100711
100730
  function addItem(event) {
100712
100731
  event.stopPropagation();
@@ -100898,20 +100917,20 @@
100898
100917
  });
100899
100918
  }
100900
100919
 
100901
- /**
100902
- * @param {object} props
100903
- * @param {object} props.element
100904
- * @param {string} props.id
100905
- * @param {string} [props.description]
100906
- * @param {string} props.label
100907
- * @param {Function} props.getValue
100908
- * @param {Function} props.setValue
100909
- * @param {Function} props.onFocus
100910
- * @param {Function} props.onBlur
100911
- * @param {Function} props.getOptions
100912
- * @param {boolean} [props.disabled]
100913
- * @param {Function} [props.validate]
100914
- * @param {string|import('preact').Component} props.tooltip
100920
+ /**
100921
+ * @param {object} props
100922
+ * @param {object} props.element
100923
+ * @param {string} props.id
100924
+ * @param {string} [props.description]
100925
+ * @param {string} props.label
100926
+ * @param {Function} props.getValue
100927
+ * @param {Function} props.setValue
100928
+ * @param {Function} props.onFocus
100929
+ * @param {Function} props.onBlur
100930
+ * @param {Function} props.getOptions
100931
+ * @param {boolean} [props.disabled]
100932
+ * @param {Function} [props.validate]
100933
+ * @param {string|import('preact').Component} props.tooltip
100915
100934
  */
100916
100935
  function SelectEntry(props) {
100917
100936
  const {
@@ -101050,7 +101069,7 @@
101050
101069
  monospace,
101051
101070
  onFocus,
101052
101071
  onBlur,
101053
- autoResize,
101072
+ autoResize = true,
101054
101073
  placeholder,
101055
101074
  rows = autoResize ? 1 : 2,
101056
101075
  tooltip
@@ -101107,21 +101126,21 @@
101107
101126
  });
101108
101127
  }
101109
101128
 
101110
- /**
101111
- * @param {object} props
101112
- * @param {object} props.element
101113
- * @param {string} props.id
101114
- * @param {string} props.description
101115
- * @param {boolean} props.debounce
101116
- * @param {string} props.label
101117
- * @param {Function} props.getValue
101118
- * @param {Function} props.setValue
101119
- * @param {Function} props.onFocus
101120
- * @param {Function} props.onBlur
101121
- * @param {number} props.rows
101122
- * @param {boolean} props.monospace
101123
- * @param {Function} [props.validate]
101124
- * @param {boolean} [props.disabled]
101129
+ /**
101130
+ * @param {object} props
101131
+ * @param {object} props.element
101132
+ * @param {string} props.id
101133
+ * @param {string} props.description
101134
+ * @param {boolean} props.debounce
101135
+ * @param {string} props.label
101136
+ * @param {Function} props.getValue
101137
+ * @param {Function} props.setValue
101138
+ * @param {Function} props.onFocus
101139
+ * @param {Function} props.onBlur
101140
+ * @param {number} props.rows
101141
+ * @param {boolean} props.monospace
101142
+ * @param {Function} [props.validate]
101143
+ * @param {boolean} [props.disabled]
101125
101144
  */
101126
101145
  function TextAreaEntry(props) {
101127
101146
  const {
@@ -101255,20 +101274,20 @@
101255
101274
  });
101256
101275
  }
101257
101276
 
101258
- /**
101259
- * @param {Object} props
101260
- * @param {Object} props.element
101261
- * @param {String} props.id
101262
- * @param {String} props.description
101263
- * @param {Boolean} props.debounce
101264
- * @param {Boolean} props.disabled
101265
- * @param {String} props.label
101266
- * @param {Function} props.getValue
101267
- * @param {Function} props.setValue
101268
- * @param {Function} props.onFocus
101269
- * @param {Function} props.onBlur
101270
- * @param {string|import('preact').Component} props.tooltip
101271
- * @param {Function} props.validate
101277
+ /**
101278
+ * @param {Object} props
101279
+ * @param {Object} props.element
101280
+ * @param {String} props.id
101281
+ * @param {String} props.description
101282
+ * @param {Boolean} props.debounce
101283
+ * @param {Boolean} props.disabled
101284
+ * @param {String} props.label
101285
+ * @param {Function} props.getValue
101286
+ * @param {Function} props.setValue
101287
+ * @param {Function} props.onFocus
101288
+ * @param {Function} props.onBlur
101289
+ * @param {string|import('preact').Component} props.tooltip
101290
+ * @param {Function} props.validate
101272
101291
  */
101273
101292
  function TextfieldEntry(props) {
101274
101293
  const {
@@ -101361,20 +101380,20 @@
101361
101380
  this._eventBus = eventBus;
101362
101381
  }
101363
101382
 
101364
- /**
101365
- * Check if the FEEL popup is open.
101366
- * @return {Boolean}
101383
+ /**
101384
+ * Check if the FEEL popup is open.
101385
+ * @return {Boolean}
101367
101386
  */
101368
101387
  isOpen() {
101369
101388
  return this._eventBus.fire('feelPopup._isOpen');
101370
101389
  }
101371
101390
 
101372
- /**
101373
- * Open the FEEL popup.
101374
- *
101375
- * @param {String} entryId
101376
- * @param {Object} popupConfig
101377
- * @param {HTMLElement} sourceElement
101391
+ /**
101392
+ * Open the FEEL popup.
101393
+ *
101394
+ * @param {String} entryId
101395
+ * @param {Object} popupConfig
101396
+ * @param {HTMLElement} sourceElement
101378
101397
  */
101379
101398
  open(entryId, popupConfig, sourceElement) {
101380
101399
  return this._eventBus.fire('feelPopup._open', {
@@ -101384,8 +101403,8 @@
101384
101403
  });
101385
101404
  }
101386
101405
 
101387
- /**
101388
- * Close the FEEL popup.
101406
+ /**
101407
+ * Close the FEEL popup.
101389
101408
  */
101390
101409
  close() {
101391
101410
  return this._eventBus.fire('feelPopup._close');
@@ -105193,8 +105212,8 @@
105193
105212
  });
105194
105213
  const selectedElement = state.selectedElement;
105195
105214
 
105196
- /**
105197
- * @param {djs.model.Base | Array<djs.model.Base>} element
105215
+ /**
105216
+ * @param {djs.model.Base | Array<djs.model.Base>} element
105198
105217
  */
105199
105218
  const _update = element => {
105200
105219
  if (!element) {
@@ -105379,10 +105398,10 @@
105379
105398
 
105380
105399
  const DEFAULT_PRIORITY$1 = 1000;
105381
105400
 
105382
- /**
105383
- * @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
105384
- * @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
105385
- * @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
105401
+ /**
105402
+ * @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
105403
+ * @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
105404
+ * @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
105386
105405
  */
105387
105406
 
105388
105407
  class BpmnPropertiesPanelRenderer {
@@ -105419,10 +105438,10 @@
105419
105438
  });
105420
105439
  }
105421
105440
 
105422
- /**
105423
- * Attach the properties panel to a parent node.
105424
- *
105425
- * @param {HTMLElement} container
105441
+ /**
105442
+ * Attach the properties panel to a parent node.
105443
+ *
105444
+ * @param {HTMLElement} container
105426
105445
  */
105427
105446
  attachTo(container) {
105428
105447
  if (!container) {
@@ -105447,8 +105466,8 @@
105447
105466
  this._eventBus.fire('propertiesPanel.attach');
105448
105467
  }
105449
105468
 
105450
- /**
105451
- * Detach the properties panel from its parent node.
105469
+ /**
105470
+ * Detach the properties panel from its parent node.
105452
105471
  */
105453
105472
  detach() {
105454
105473
  const parentNode = this._container.parentNode;
@@ -105458,11 +105477,11 @@
105458
105477
  }
105459
105478
  }
105460
105479
 
105461
- /**
105462
- * Register a new properties provider to the properties panel.
105463
- *
105464
- * @param {Number} [priority]
105465
- * @param {PropertiesProvider} provider
105480
+ /**
105481
+ * Register a new properties provider to the properties panel.
105482
+ *
105483
+ * @param {Number} [priority]
105484
+ * @param {PropertiesProvider} provider
105466
105485
  */
105467
105486
  registerProvider(priority, provider) {
105468
105487
  if (!provider) {
@@ -105479,9 +105498,9 @@
105479
105498
  this._eventBus.fire('propertiesPanel.providersChanged');
105480
105499
  }
105481
105500
 
105482
- /**
105483
- * Updates the layout of the properties panel.
105484
- * @param {Object} layout
105501
+ /**
105502
+ * Updates the layout of the properties panel.
105503
+ * @param {Object} layout
105485
105504
  */
105486
105505
  setLayout(layout) {
105487
105506
  this._eventBus.fire('propertiesPanel.setLayout', {
@@ -105531,12 +105550,12 @@
105531
105550
  return element && (element.isImplicit || element.id === '__implicitroot');
105532
105551
  }
105533
105552
 
105534
- /**
105535
- * Setup keyboard bindings (undo, redo) on the given container.
105536
- *
105537
- * @param {Element} container
105538
- * @param {EventBus} eventBus
105539
- * @param {CommandStack} commandStack
105553
+ /**
105554
+ * Setup keyboard bindings (undo, redo) on the given container.
105555
+ *
105556
+ * @param {Element} container
105557
+ * @param {EventBus} eventBus
105558
+ * @param {CommandStack} commandStack
105540
105559
  */
105541
105560
  function setupKeyboard(container, eventBus, commandStack) {
105542
105561
  function cancel(event) {
@@ -105561,14 +105580,14 @@
105561
105580
  });
105562
105581
  }
105563
105582
 
105564
- /**
105565
- * A handler that combines and executes multiple commands.
105566
- *
105567
- * All updates are bundled on the command stack and executed in one step.
105568
- * This also makes it possible to revert the changes in one step.
105569
- *
105570
- * Example use case: remove the camunda:formKey attribute and in addition
105571
- * add all form fields needed for the camunda:formData property.
105583
+ /**
105584
+ * A handler that combines and executes multiple commands.
105585
+ *
105586
+ * All updates are bundled on the command stack and executed in one step.
105587
+ * This also makes it possible to revert the changes in one step.
105588
+ *
105589
+ * Example use case: remove the camunda:formKey attribute and in addition
105590
+ * add all form fields needed for the camunda:formData property.
105572
105591
  */
105573
105592
  let MultiCommandHandler$1 = class MultiCommandHandler {
105574
105593
  constructor(commandStack) {
@@ -105698,12 +105717,12 @@
105698
105717
  return compensateEventDefinition && compensateEventDefinition.get('activityRef');
105699
105718
  }
105700
105719
 
105701
- /**
105702
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
105720
+ /**
105721
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
105703
105722
  */
105704
105723
 
105705
- /**
105706
- * @returns {Array<Entry>} entries
105724
+ /**
105725
+ * @returns {Array<Entry>} entries
105707
105726
  */
105708
105727
  function CompensationProps(props) {
105709
105728
  const {
@@ -105813,12 +105832,12 @@
105813
105832
  return getFlowElements(element, 'bpmn:BoundaryEvent');
105814
105833
  }
105815
105834
 
105816
- /**
105817
- * Checks whether an Activity is attaching a CompensateEvent of the parent container.
105818
- *
105819
- * @param {ModdleElement} activity
105820
- * @param {Array<ModdleElement>} boundaryEvents
105821
- * @returns {Boolean}
105835
+ /**
105836
+ * Checks whether an Activity is attaching a CompensateEvent of the parent container.
105837
+ *
105838
+ * @param {ModdleElement} activity
105839
+ * @param {Array<ModdleElement>} boundaryEvents
105840
+ * @returns {Boolean}
105822
105841
  */
105823
105842
  function hasCompensationEventAttached(activity, boundaryEvents) {
105824
105843
  const {
@@ -105833,15 +105852,15 @@
105833
105852
  });
105834
105853
  }
105835
105854
 
105836
- /**
105837
- * Checks whether an Activity can be compensated. That's the case when it is
105838
- * a) a CallActivity
105839
- * b) a SubProcess, when it is not event based and not a compensation
105840
- * c) any other Activity, when it is attaching a CompensateEvent of the parent container
105841
- *
105842
- * @param {ModdleElement} activity
105843
- * @param {Array<ModdleElement>} boundaryEvents
105844
- * @returns {Boolean}
105855
+ /**
105856
+ * Checks whether an Activity can be compensated. That's the case when it is
105857
+ * a) a CallActivity
105858
+ * b) a SubProcess, when it is not event based and not a compensation
105859
+ * c) any other Activity, when it is attaching a CompensateEvent of the parent container
105860
+ *
105861
+ * @param {ModdleElement} activity
105862
+ * @param {Array<ModdleElement>} boundaryEvents
105863
+ * @returns {Boolean}
105845
105864
  */
105846
105865
  function canBeCompensated(activity, boundaryEvents) {
105847
105866
  return is$6(activity, 'bpmn:CallActivity') || is$6(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
@@ -105854,11 +105873,11 @@
105854
105873
  });
105855
105874
  }
105856
105875
 
105857
- /**
105858
- * Retrieves all possible activities to reference for a Compensation.
105859
- *
105860
- * @param {djs.model.Base} element
105861
- * @returns {Array<ModdleElement>}
105876
+ /**
105877
+ * Retrieves all possible activities to reference for a Compensation.
105878
+ *
105879
+ * @param {djs.model.Base} element
105880
+ * @returns {Array<ModdleElement>}
105862
105881
  */
105863
105882
  function findActivityRefs(element) {
105864
105883
  const businessObject = getBusinessObject$2(element);
@@ -105878,13 +105897,13 @@
105878
105897
  return activities;
105879
105898
  }
105880
105899
 
105881
- /**
105882
- * Retrieves an option label in the form
105883
- * a) with name: "my Task (id=Task_1)"
105884
- * b) without name: "(id=Task_1)"
105885
- *
105886
- * @param {ModdleElement} activity
105887
- * @returns {String}
105900
+ /**
105901
+ * Retrieves an option label in the form
105902
+ * a) with name: "my Task (id=Task_1)"
105903
+ * b) without name: "(id=Task_1)"
105904
+ *
105905
+ * @param {ModdleElement} activity
105906
+ * @returns {String}
105888
105907
  */
105889
105908
  function createOptionLabel(activity) {
105890
105909
  const {
@@ -105899,12 +105918,12 @@
105899
105918
 
105900
105919
  const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
105901
105920
 
105902
- /**
105903
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
105921
+ /**
105922
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
105904
105923
  */
105905
105924
 
105906
- /**
105907
- * @returns {Array<Entry>} entries
105925
+ /**
105926
+ * @returns {Array<Entry>} entries
105908
105927
  */
105909
105928
  function DocumentationProps(props) {
105910
105929
  const {
@@ -105975,12 +105994,12 @@
105975
105994
  });
105976
105995
  }
105977
105996
 
105978
- /**
105979
- * Retrieves a documentation element from a given moddle element.
105980
- *
105981
- * @param {ModdleElement} businessObject
105982
- *
105983
- * @returns {ModdleElement} documentation element inside the given moddle element.
105997
+ /**
105998
+ * Retrieves a documentation element from a given moddle element.
105999
+ *
106000
+ * @param {ModdleElement} businessObject
106001
+ *
106002
+ * @returns {ModdleElement} documentation element inside the given moddle element.
105984
106003
  */
105985
106004
  function getDocumentation(businessObject) {
105986
106005
  return function () {
@@ -105989,10 +106008,10 @@
105989
106008
  };
105990
106009
  }
105991
106010
 
105992
- /**
105993
- * Sets a documentation element for a given moddle element.
105994
- *
105995
- * @param {ModdleElement} businessObject
106011
+ /**
106012
+ * Sets a documentation element for a given moddle element.
106013
+ *
106014
+ * @param {ModdleElement} businessObject
105996
106015
  */
105997
106016
  function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
105998
106017
  return function (value) {
@@ -106035,15 +106054,15 @@
106035
106054
  };
106036
106055
  }
106037
106056
 
106038
- /**
106039
- * Create a new element and (optionally) set its parent.
106040
- *
106041
- * @param {string} type
106042
- * @param {Object} properties
106043
- * @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
106044
- * @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
106045
- *
106046
- * @returns {import('bpmn-js/lib/model/Types').ModdleElement}
106057
+ /**
106058
+ * Create a new element and (optionally) set its parent.
106059
+ *
106060
+ * @param {string} type
106061
+ * @param {Object} properties
106062
+ * @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
106063
+ * @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
106064
+ *
106065
+ * @returns {import('bpmn-js/lib/model/Types').ModdleElement}
106047
106066
  */
106048
106067
  function createElement$1(type, properties, parent, bpmnFactory) {
106049
106068
  const element = bpmnFactory.create(type, properties);
@@ -106053,8 +106072,8 @@
106053
106072
  return element;
106054
106073
  }
106055
106074
 
106056
- /**
106057
- * generate a semantic id with given prefix
106075
+ /**
106076
+ * generate a semantic id with given prefix
106058
106077
  */
106059
106078
  function nextId$1(prefix) {
106060
106079
  const ids = new Ids$1([32, 32, 1]);
@@ -106083,12 +106102,12 @@
106083
106102
  const EMPTY_OPTION$4 = '';
106084
106103
  const CREATE_NEW_OPTION$4 = 'create-new';
106085
106104
 
106086
- /**
106087
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106105
+ /**
106106
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106088
106107
  */
106089
106108
 
106090
- /**
106091
- * @returns {Array<Entry>} entries
106109
+ /**
106110
+ * @returns {Array<Entry>} entries
106092
106111
  */
106093
106112
  function ErrorProps$2(props) {
106094
106113
  const {
@@ -106264,12 +106283,12 @@
106264
106283
 
106265
106284
  const CREATE_NEW_OPTION$3 = 'create-new';
106266
106285
 
106267
- /**
106268
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106286
+ /**
106287
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106269
106288
  */
106270
106289
 
106271
- /**
106272
- * @returns {Array<Entry>} entries
106290
+ /**
106291
+ * @returns {Array<Entry>} entries
106273
106292
  */
106274
106293
  function EscalationProps$2(props) {
106275
106294
  const {
@@ -106442,12 +106461,12 @@
106442
106461
  return sortBy$1(elements, e => (e.name || '').toLowerCase());
106443
106462
  }
106444
106463
 
106445
- /**
106446
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106464
+ /**
106465
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106447
106466
  */
106448
106467
 
106449
- /**
106450
- * @returns {Array<Entry>} entries
106468
+ /**
106469
+ * @returns {Array<Entry>} entries
106451
106470
  */
106452
106471
  function ExecutableProps(props) {
106453
106472
  const {
@@ -106518,14 +106537,14 @@
106518
106537
  // for ID validation as per BPMN Schema (QName - Namespace)
106519
106538
  const ID_REGEX = /^[a-z_][\w-.]*$/i;
106520
106539
 
106521
- /**
106522
- * checks whether the id value is valid
106523
- *
106524
- * @param {ModdleElement} element
106525
- * @param {String} idValue
106526
- * @param {Function} translate
106527
- *
106528
- * @return {String} error message
106540
+ /**
106541
+ * checks whether the id value is valid
106542
+ *
106543
+ * @param {ModdleElement} element
106544
+ * @param {String} idValue
106545
+ * @param {Function} translate
106546
+ *
106547
+ * @return {String} error message
106529
106548
  */
106530
106549
  function isIdValid(element, idValue, translate) {
106531
106550
  const assigned = element.$model.ids.assigned(idValue);
@@ -106553,12 +106572,12 @@
106553
106572
  return SPACE_REGEX$1.test(value);
106554
106573
  }
106555
106574
 
106556
- /**
106557
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106575
+ /**
106576
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106558
106577
  */
106559
106578
 
106560
- /**
106561
- * @returns {Array<Entry>} entries
106579
+ /**
106580
+ * @returns {Array<Entry>} entries
106562
106581
  */
106563
106582
  function IdProps$1() {
106564
106583
  return [{
@@ -106600,12 +106619,12 @@
106600
106619
  });
106601
106620
  }
106602
106621
 
106603
- /**
106604
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106622
+ /**
106623
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106605
106624
  */
106606
106625
 
106607
- /**
106608
- * @returns {Array<Entry>} entries
106626
+ /**
106627
+ * @returns {Array<Entry>} entries
106609
106628
  */
106610
106629
  function LinkProps(props) {
106611
106630
  const {
@@ -106653,12 +106672,12 @@
106653
106672
  const EMPTY_OPTION$3 = '';
106654
106673
  const CREATE_NEW_OPTION$2 = 'create-new';
106655
106674
 
106656
- /**
106657
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106675
+ /**
106676
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106658
106677
  */
106659
106678
 
106660
- /**
106661
- * @returns {Array<Entry>} entries
106679
+ /**
106680
+ * @returns {Array<Entry>} entries
106662
106681
  */
106663
106682
  function MessageProps$1(props) {
106664
106683
  const {
@@ -106801,12 +106820,12 @@
106801
106820
  return sortBy$1(elements, e => (e.name || '').toLowerCase());
106802
106821
  }
106803
106822
 
106804
- /**
106805
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106823
+ /**
106824
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
106806
106825
  */
106807
106826
 
106808
- /**
106809
- * @returns {Array<Entry>} entries
106827
+ /**
106828
+ * @returns {Array<Entry>} entries
106810
106829
  */
106811
106830
  function MultiInstanceProps$2(props) {
106812
106831
  const {
@@ -106877,59 +106896,59 @@
106877
106896
 
106878
106897
  // generic ///////////////////////////
106879
106898
 
106880
- /**
106881
- * isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
106882
- *
106883
- * @param {djs.model.Base} element
106884
- * @return {boolean}
106899
+ /**
106900
+ * isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
106901
+ *
106902
+ * @param {djs.model.Base} element
106903
+ * @return {boolean}
106885
106904
  */
106886
106905
  function isMultiInstanceSupported$1(element) {
106887
106906
  const loopCharacteristics = getLoopCharacteristics$2(element);
106888
106907
  return !!loopCharacteristics && is$6(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
106889
106908
  }
106890
106909
 
106891
- /**
106892
- * getBody - get the body of a given expression.
106893
- *
106894
- * @param {ModdleElement<bpmn:FormalExpression>} expression
106895
- * @return {string} the body (value) of the expression
106910
+ /**
106911
+ * getBody - get the body of a given expression.
106912
+ *
106913
+ * @param {ModdleElement<bpmn:FormalExpression>} expression
106914
+ * @return {string} the body (value) of the expression
106896
106915
  */
106897
106916
  function getBody(expression) {
106898
106917
  return expression && expression.get('body');
106899
106918
  }
106900
106919
 
106901
- /**
106902
- * getProperty - get a property value of the loop characteristics.
106903
- *
106904
- * @param {djs.model.Base} element
106905
- * @param {string} propertyName
106906
- *
106907
- * @return {any} the property value
106920
+ /**
106921
+ * getProperty - get a property value of the loop characteristics.
106922
+ *
106923
+ * @param {djs.model.Base} element
106924
+ * @param {string} propertyName
106925
+ *
106926
+ * @return {any} the property value
106908
106927
  */
106909
106928
  function getProperty$2(element, propertyName) {
106910
106929
  const loopCharacteristics = getLoopCharacteristics$2(element);
106911
106930
  return loopCharacteristics && loopCharacteristics.get(propertyName);
106912
106931
  }
106913
106932
 
106914
- /**
106915
- * getLoopCharacteristics - get loopCharacteristics of a given element.
106916
- *
106917
- * @param {djs.model.Base} element
106918
- * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
106933
+ /**
106934
+ * getLoopCharacteristics - get loopCharacteristics of a given element.
106935
+ *
106936
+ * @param {djs.model.Base} element
106937
+ * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
106919
106938
  */
106920
106939
  function getLoopCharacteristics$2(element) {
106921
106940
  const bo = getBusinessObject$2(element);
106922
106941
  return bo.loopCharacteristics;
106923
106942
  }
106924
106943
 
106925
- /**
106926
- * createFormalExpression - creates a 'bpmn:FormalExpression' element.
106927
- *
106928
- * @param {ModdleElement} parent
106929
- * @param {string} body
106930
- * @param {BpmnFactory} bpmnFactory
106931
- *
106932
- * @result {ModdleElement<bpmn:FormalExpression>} a formal expression
106944
+ /**
106945
+ * createFormalExpression - creates a 'bpmn:FormalExpression' element.
106946
+ *
106947
+ * @param {ModdleElement} parent
106948
+ * @param {string} body
106949
+ * @param {BpmnFactory} bpmnFactory
106950
+ *
106951
+ * @result {ModdleElement<bpmn:FormalExpression>} a formal expression
106933
106952
  */
106934
106953
  function createFormalExpression$1(parent, body, bpmnFactory) {
106935
106954
  return createElement$1('bpmn:FormalExpression', {
@@ -106937,13 +106956,13 @@
106937
106956
  }, parent, bpmnFactory);
106938
106957
  }
106939
106958
 
106940
- /**
106941
- * updateFormalExpression - updates a specific formal expression of the loop characteristics.
106942
- *
106943
- * @param {djs.model.Base} element
106944
- * @param {string} propertyName
106945
- * @param {string} newValue
106946
- * @param {BpmnFactory} bpmnFactory
106959
+ /**
106960
+ * updateFormalExpression - updates a specific formal expression of the loop characteristics.
106961
+ *
106962
+ * @param {djs.model.Base} element
106963
+ * @param {string} propertyName
106964
+ * @param {string} newValue
106965
+ * @param {BpmnFactory} bpmnFactory
106947
106966
  */
106948
106967
  function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
106949
106968
  const loopCharacteristics = getLoopCharacteristics$2(element);
@@ -106980,23 +106999,23 @@
106980
106999
 
106981
107000
  // loopCardinality
106982
107001
 
106983
- /**
106984
- * getLoopCardinality - get the loop cardinality of the loop characteristics.
106985
- *
106986
- * @param {djs.model.Base} element
106987
- *
106988
- * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
107002
+ /**
107003
+ * getLoopCardinality - get the loop cardinality of the loop characteristics.
107004
+ *
107005
+ * @param {djs.model.Base} element
107006
+ *
107007
+ * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
106989
107008
  */
106990
107009
  function getLoopCardinality(element) {
106991
107010
  return getProperty$2(element, 'loopCardinality');
106992
107011
  }
106993
107012
 
106994
- /**
106995
- * getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
106996
- *
106997
- * @param {djs.model.Base} element
106998
- *
106999
- * @return {string} the loop cardinality value
107013
+ /**
107014
+ * getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
107015
+ *
107016
+ * @param {djs.model.Base} element
107017
+ *
107018
+ * @return {string} the loop cardinality value
107000
107019
  */
107001
107020
  function getLoopCardinalityValue(element) {
107002
107021
  const loopCardinality = getLoopCardinality(element);
@@ -107005,35 +107024,35 @@
107005
107024
 
107006
107025
  // completionCondition /////////////////////
107007
107026
 
107008
- /**
107009
- * getCompletionCondition - get the completion condition of the loop characteristics.
107010
- *
107011
- * @param {djs.model.Base} element
107012
- *
107013
- * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
107027
+ /**
107028
+ * getCompletionCondition - get the completion condition of the loop characteristics.
107029
+ *
107030
+ * @param {djs.model.Base} element
107031
+ *
107032
+ * @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
107014
107033
  */
107015
107034
  function getCompletionCondition$1(element) {
107016
107035
  return getProperty$2(element, 'completionCondition');
107017
107036
  }
107018
107037
 
107019
- /**
107020
- * getCompletionConditionValue - get the completion condition value of the loop characteristics.
107021
- *
107022
- * @param {djs.model.Base} element
107023
- *
107024
- * @return {string} the completion condition value
107038
+ /**
107039
+ * getCompletionConditionValue - get the completion condition value of the loop characteristics.
107040
+ *
107041
+ * @param {djs.model.Base} element
107042
+ *
107043
+ * @return {string} the completion condition value
107025
107044
  */
107026
107045
  function getCompletionConditionValue(element) {
107027
107046
  const completionCondition = getCompletionCondition$1(element);
107028
107047
  return getBody(completionCondition);
107029
107048
  }
107030
107049
 
107031
- /**
107032
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
107050
+ /**
107051
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
107033
107052
  */
107034
107053
 
107035
- /**
107036
- * @returns {Array<Entry>} entries
107054
+ /**
107055
+ * @returns {Array<Entry>} entries
107037
107056
  */
107038
107057
  function NameProps(props) {
107039
107058
  const {
@@ -107137,12 +107156,12 @@
107137
107156
  return categoryValue;
107138
107157
  }
107139
107158
 
107140
- /**
107141
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
107159
+ /**
107160
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
107142
107161
  */
107143
107162
 
107144
- /**
107145
- * @returns {Array<Entry>} entries
107163
+ /**
107164
+ * @returns {Array<Entry>} entries
107146
107165
  */
107147
107166
  function ProcessProps$1(props) {
107148
107167
  const {
@@ -107233,15 +107252,15 @@
107233
107252
  return is$6(element, 'bpmn:Participant') && element.businessObject.get('processRef');
107234
107253
  }
107235
107254
 
107236
- /**
107237
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
107255
+ /**
107256
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
107238
107257
  */
107239
107258
 
107240
107259
  const EMPTY_OPTION$2 = '';
107241
107260
  const CREATE_NEW_OPTION$1 = 'create-new';
107242
107261
 
107243
- /**
107244
- * @returns {Entry[]}
107262
+ /**
107263
+ * @returns {Entry[]}
107245
107264
  */
107246
107265
  function SignalProps$1(props) {
107247
107266
  const {
@@ -107387,12 +107406,12 @@
107387
107406
  return isAny$1(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition$2(element);
107388
107407
  }
107389
107408
 
107390
- /**
107391
- * Get the timer definition type for a given timer event definition.
107392
- *
107393
- * @param {ModdleElement<bpmn:TimerEventDefinition>} timer
107394
- *
107395
- * @return {string|undefined} the timer definition type
107409
+ /**
107410
+ * Get the timer definition type for a given timer event definition.
107411
+ *
107412
+ * @param {ModdleElement<bpmn:TimerEventDefinition>} timer
107413
+ *
107414
+ * @return {string|undefined} the timer definition type
107396
107415
  */
107397
107416
  function getTimerDefinitionType(timer) {
107398
107417
  if (!timer) {
@@ -107462,12 +107481,12 @@
107462
107481
  return entries;
107463
107482
  }
107464
107483
 
107465
- /**
107466
- * TimerEventDefinitionType - Generic select entry allowing to select a specific
107467
- * timerEventDefintionType. To be used together with timerEventDefinitionValue.
107468
- *
107469
- * @param {type} props
107470
- * @return {SelectEntry}
107484
+ /**
107485
+ * TimerEventDefinitionType - Generic select entry allowing to select a specific
107486
+ * timerEventDefintionType. To be used together with timerEventDefinitionValue.
107487
+ *
107488
+ * @param {type} props
107489
+ * @return {SelectEntry}
107471
107490
  */
107472
107491
  function TimerEventDefinitionType$2(props) {
107473
107492
  const {
@@ -107535,13 +107554,13 @@
107535
107554
  });
107536
107555
  }
107537
107556
 
107538
- /**
107539
- * TimerEventDefinitionValue - Generic textField entry allowing to specify the
107540
- * timerEventDefintionValue based on the set timerEventDefintionType. To be used
107541
- * together with timerEventDefinitionType.
107542
- *
107543
- * @param {type} props
107544
- * @return {TextFieldEntry}
107557
+ /**
107558
+ * TimerEventDefinitionValue - Generic textField entry allowing to specify the
107559
+ * timerEventDefintionValue based on the set timerEventDefintionType. To be used
107560
+ * together with timerEventDefinitionType.
107561
+ *
107562
+ * @param {type} props
107563
+ * @return {TextFieldEntry}
107545
107564
  */
107546
107565
  function TimerEventDefinitionValue$2(props) {
107547
107566
  const {
@@ -107826,12 +107845,12 @@
107826
107845
  bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
107827
107846
  };
107828
107847
 
107829
- /**
107830
- * Get extension elements of business object. Optionally filter by type.
107831
- *
107832
- * @param {ModdleElement} businessObject
107833
- * @param {string} [type=undefined]
107834
- * @returns {Array<ModdleElement>}
107848
+ /**
107849
+ * Get extension elements of business object. Optionally filter by type.
107850
+ *
107851
+ * @param {ModdleElement} businessObject
107852
+ * @param {string} [type=undefined]
107853
+ * @returns {Array<ModdleElement>}
107835
107854
  */
107836
107855
  function getExtensionElementsList$1(businessObject, type = undefined) {
107837
107856
  const extensionElements = businessObject.get('extensionElements');
@@ -107848,13 +107867,13 @@
107848
107867
  return values;
107849
107868
  }
107850
107869
 
107851
- /**
107852
- * Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
107853
- *
107854
- * @param {ModdleElement} element
107855
- * @param {ModdleElement} businessObject
107856
- * @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
107857
- * @param {CommandStack} commandStack
107870
+ /**
107871
+ * Add one or more extension elements. Create bpmn:ExtensionElements if it doesn't exist.
107872
+ *
107873
+ * @param {ModdleElement} element
107874
+ * @param {ModdleElement} businessObject
107875
+ * @param {ModdleElement|Array<ModdleElement>} extensionElementsToAdd
107876
+ * @param {CommandStack} commandStack
107858
107877
  */
107859
107878
  function addExtensionElements(element, businessObject, extensionElementToAdd, bpmnFactory, commandStack) {
107860
107879
  const commands = [];
@@ -107892,13 +107911,13 @@
107892
107911
  commandStack.execute('properties-panel.multi-command-executor', commands);
107893
107912
  }
107894
107913
 
107895
- /**
107896
- * Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
107897
- *
107898
- * @param {ModdleElement} element
107899
- * @param {ModdleElement} businessObject
107900
- * @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
107901
- * @param {CommandStack} commandStack
107914
+ /**
107915
+ * Remove one or more extension elements. Remove bpmn:ExtensionElements afterwards if it's empty.
107916
+ *
107917
+ * @param {ModdleElement} element
107918
+ * @param {ModdleElement} businessObject
107919
+ * @param {ModdleElement|Array<ModdleElement>} extensionElementsToRemove
107920
+ * @param {CommandStack} commandStack
107902
107921
  */
107903
107922
  function removeExtensionElements$1(element, businessObject, extensionElementsToRemove, commandStack) {
107904
107923
  if (!isArray$5(extensionElementsToRemove)) {
@@ -108291,37 +108310,37 @@
108291
108310
 
108292
108311
  // helper //////////////////
108293
108312
 
108294
- /**
108295
- * Returns true if the attribute 'camunda:asyncBefore' is set
108296
- * to true.
108297
- *
108298
- * @param {ModdleElement} bo
108299
- *
108300
- * @return {boolean} a boolean value
108313
+ /**
108314
+ * Returns true if the attribute 'camunda:asyncBefore' is set
108315
+ * to true.
108316
+ *
108317
+ * @param {ModdleElement} bo
108318
+ *
108319
+ * @return {boolean} a boolean value
108301
108320
  */
108302
108321
  function isAsyncBefore$2(bo) {
108303
108322
  return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
108304
108323
  }
108305
108324
 
108306
- /**
108307
- * Returns true if the attribute 'camunda:asyncAfter' is set
108308
- * to true.
108309
- *
108310
- * @param {ModdleElement} bo
108311
- *
108312
- * @return {boolean} a boolean value
108325
+ /**
108326
+ * Returns true if the attribute 'camunda:asyncAfter' is set
108327
+ * to true.
108328
+ *
108329
+ * @param {ModdleElement} bo
108330
+ *
108331
+ * @return {boolean} a boolean value
108313
108332
  */
108314
108333
  function isAsyncAfter$2(bo) {
108315
108334
  return !!bo.get('camunda:asyncAfter');
108316
108335
  }
108317
108336
 
108318
- /**
108319
- * Returns true if the attribute 'camunda:exclusive' is set
108320
- * to true.
108321
- *
108322
- * @param {ModdleElement} bo
108323
- *
108324
- * @return {boolean} a boolean value
108337
+ /**
108338
+ * Returns true if the attribute 'camunda:exclusive' is set
108339
+ * to true.
108340
+ *
108341
+ * @param {ModdleElement} bo
108342
+ *
108343
+ * @return {boolean} a boolean value
108325
108344
  */
108326
108345
  function isExclusive$1(bo) {
108327
108346
  return !!bo.get('camunda:exclusive');
@@ -109137,12 +109156,12 @@
109137
109156
 
109138
109157
  // helper //////////////////
109139
109158
 
109140
- /**
109141
- * getProcess - get the businessObject of the process referred to by a bpmn:Process
109142
- * or by a bpmn:Participant
109143
- *
109144
- * @param {ModdleElement} element either a bpmn:Process or a bpmn:Participant
109145
- * @return {BusinessObject}
109159
+ /**
109160
+ * getProcess - get the businessObject of the process referred to by a bpmn:Process
109161
+ * or by a bpmn:Participant
109162
+ *
109163
+ * @param {ModdleElement} element either a bpmn:Process or a bpmn:Participant
109164
+ * @return {BusinessObject}
109146
109165
  */
109147
109166
  function getProcess$3(element) {
109148
109167
  return is$6(element, 'bpmn:Process') ? getBusinessObject$2(element) : getBusinessObject$2(element).get('processRef');
@@ -109534,12 +109553,12 @@
109534
109553
  }
109535
109554
  }
109536
109555
 
109537
- /**
109538
- * getConditionExpression - get the body value of a condition expression for a given element
109539
- *
109540
- * @param {ModdleElement} element
109541
- *
109542
- * @return {string|undefined}
109556
+ /**
109557
+ * getConditionExpression - get the body value of a condition expression for a given element
109558
+ *
109559
+ * @param {ModdleElement} element
109560
+ *
109561
+ * @return {string|undefined}
109543
109562
  */
109544
109563
  function getConditionExpression(element) {
109545
109564
  const businessObject = getBusinessObject$2(element);
@@ -109585,8 +109604,8 @@
109585
109604
  return is$6(parent, 'bpmn:SubProcess') && parent.triggeredByEvent;
109586
109605
  }
109587
109606
 
109588
- /**
109589
- * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/scripting/
109607
+ /**
109608
+ * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/scripting/
109590
109609
  */
109591
109610
  function ScriptProps(props) {
109592
109611
  const {
@@ -109814,12 +109833,12 @@
109814
109833
  return inputOutput && inputOutput.get(prop) || [];
109815
109834
  }
109816
109835
 
109817
- /**
109818
- * Get a camunda:inputOutput from the business object
109819
- *
109820
- * @param {djs.model.Base | ModdleElement} element
109821
- *
109822
- * @return {ModdleElement} the inputOutput object
109836
+ /**
109837
+ * Get a camunda:inputOutput from the business object
109838
+ *
109839
+ * @param {djs.model.Base | ModdleElement} element
109840
+ *
109841
+ * @return {ModdleElement} the inputOutput object
109823
109842
  */
109824
109843
  function getInputOutput$1(element) {
109825
109844
  if (is$6(element, 'camunda:Connector')) {
@@ -109829,25 +109848,25 @@
109829
109848
  return (getElements(businessObject, 'camunda:InputOutput') || [])[0];
109830
109849
  }
109831
109850
 
109832
- /**
109833
- * Return all input parameters existing in the business object, and
109834
- * an empty array if none exist.
109835
- *
109836
- * @param {djs.model.Base} element
109837
- *
109838
- * @return {Array} a list of input parameter objects
109851
+ /**
109852
+ * Return all input parameters existing in the business object, and
109853
+ * an empty array if none exist.
109854
+ *
109855
+ * @param {djs.model.Base} element
109856
+ *
109857
+ * @return {Array} a list of input parameter objects
109839
109858
  */
109840
109859
  function getInputParameters$2(element) {
109841
109860
  return getParameters$1(element, 'inputParameters');
109842
109861
  }
109843
109862
 
109844
- /**
109845
- * Return all output parameters existing in the business object, and
109846
- * an empty array if none exist.
109847
- *
109848
- * @param {djs.model.Base} element
109849
- *
109850
- * @return {Array} a list of output parameter objects
109863
+ /**
109864
+ * Return all output parameters existing in the business object, and
109865
+ * an empty array if none exist.
109866
+ *
109867
+ * @param {djs.model.Base} element
109868
+ *
109869
+ * @return {Array} a list of output parameter objects
109851
109870
  */
109852
109871
  function getOutputParameters$2(element) {
109853
109872
  return getParameters$1(element, 'outputParameters');
@@ -110423,47 +110442,47 @@
110423
110442
  return is$6(parameter, 'camunda:InputParameter');
110424
110443
  }
110425
110444
 
110426
- /**
110427
- * Check whether an element is camunda:ServiceTaskLike
110428
- *
110429
- * @param {djs.model.Base} element
110430
- *
110431
- * @return {boolean} a boolean value
110445
+ /**
110446
+ * Check whether an element is camunda:ServiceTaskLike
110447
+ *
110448
+ * @param {djs.model.Base} element
110449
+ *
110450
+ * @return {boolean} a boolean value
110432
110451
  */
110433
110452
  function isServiceTaskLike(element) {
110434
110453
  return is$6(element, 'camunda:ServiceTaskLike');
110435
110454
  }
110436
110455
 
110437
- /**
110438
- * Returns 'true' if the given element is 'camunda:DmnCapable'
110439
- *
110440
- * @param {djs.model.Base} element
110441
- *
110442
- * @return {boolean} a boolean value
110456
+ /**
110457
+ * Returns 'true' if the given element is 'camunda:DmnCapable'
110458
+ *
110459
+ * @param {djs.model.Base} element
110460
+ *
110461
+ * @return {boolean} a boolean value
110443
110462
  */
110444
110463
  function isDmnCapable(element) {
110445
110464
  return is$6(element, 'camunda:DmnCapable');
110446
110465
  }
110447
110466
 
110448
- /**
110449
- * Returns 'true' if the given element is 'camunda:ExternalCapable'
110450
- *
110451
- * @param {djs.model.Base} element
110452
- *
110453
- * @return {boolean} a boolean value
110467
+ /**
110468
+ * Returns 'true' if the given element is 'camunda:ExternalCapable'
110469
+ *
110470
+ * @param {djs.model.Base} element
110471
+ *
110472
+ * @return {boolean} a boolean value
110454
110473
  */
110455
110474
  function isExternalCapable(element) {
110456
110475
  return is$6(element, 'camunda:ExternalCapable');
110457
110476
  }
110458
110477
 
110459
- /**
110460
- * getServiceTaskLikeBusinessObject - Get a 'camunda:ServiceTaskLike' business object.
110461
- *
110462
- * If the given element is not a 'camunda:ServiceTaskLike', then 'false'
110463
- * is returned.
110464
- *
110465
- * @param {djs.model.Base} element
110466
- * @return {ModdleElement} the 'camunda:ServiceTaskLike' business object
110478
+ /**
110479
+ * getServiceTaskLikeBusinessObject - Get a 'camunda:ServiceTaskLike' business object.
110480
+ *
110481
+ * If the given element is not a 'camunda:ServiceTaskLike', then 'false'
110482
+ * is returned.
110483
+ *
110484
+ * @param {djs.model.Base} element
110485
+ * @return {ModdleElement} the 'camunda:ServiceTaskLike' business object
110467
110486
  */
110468
110487
  function getServiceTaskLikeBusinessObject(element) {
110469
110488
  if (is$6(element, 'bpmn:IntermediateThrowEvent') || is$6(element, 'bpmn:EndEvent')) {
@@ -110479,22 +110498,22 @@
110479
110498
  return isServiceTaskLike(element) && getBusinessObject$2(element);
110480
110499
  }
110481
110500
 
110482
- /**
110483
- * Returns the implementation type of the given element.
110484
- *
110485
- * Possible implementation types are:
110486
- * - dmn
110487
- * - connector
110488
- * - external
110489
- * - class
110490
- * - expression
110491
- * - delegateExpression
110492
- * - script
110493
- * - or undefined, when no matching implementation type is found
110494
- *
110495
- * @param {djs.model.Base} element
110496
- *
110497
- * @return {String} the implementation type
110501
+ /**
110502
+ * Returns the implementation type of the given element.
110503
+ *
110504
+ * Possible implementation types are:
110505
+ * - dmn
110506
+ * - connector
110507
+ * - external
110508
+ * - class
110509
+ * - expression
110510
+ * - delegateExpression
110511
+ * - script
110512
+ * - or undefined, when no matching implementation type is found
110513
+ *
110514
+ * @param {djs.model.Base} element
110515
+ *
110516
+ * @return {String} the implementation type
110498
110517
  */
110499
110518
  function getImplementationType(element) {
110500
110519
  const businessObject = getListenerBusinessObject(element) || getServiceTaskLikeBusinessObject(element);
@@ -111202,12 +111221,12 @@
111202
111221
  return name;
111203
111222
  }
111204
111223
 
111205
- /**
111206
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
111224
+ /**
111225
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
111207
111226
  */
111208
111227
 
111209
- /**
111210
- * @returns {Array<Entry>} entries
111228
+ /**
111229
+ * @returns {Array<Entry>} entries
111211
111230
  */
111212
111231
  function EscalationProps(props) {
111213
111232
  const {
@@ -111461,12 +111480,12 @@
111461
111480
 
111462
111481
  // helper ///////////////////
111463
111482
 
111464
- /**
111465
- * determineType - get the type of a fieldInjection based on the attributes
111466
- * set on it
111467
- *
111468
- * @param {ModdleElement} field
111469
- * @return {('string'|'expression')}
111483
+ /**
111484
+ * determineType - get the type of a fieldInjection based on the attributes
111485
+ * set on it
111486
+ *
111487
+ * @param {ModdleElement} field
111488
+ * @return {('string'|'expression')}
111470
111489
  */
111471
111490
  function determineType(field) {
111472
111491
  // string is the default type
@@ -113598,8 +113617,8 @@
113598
113617
  return is$6(element, 'camunda:Initiator') && !is$6(element.parent, 'bpmn:SubProcess');
113599
113618
  }
113600
113619
 
113601
- /**
113602
- * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
113620
+ /**
113621
+ * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
113603
113622
  */
113604
113623
  function InMappingPropagationProps(props) {
113605
113624
  const {
@@ -113941,8 +113960,8 @@
113941
113960
  return inOutType;
113942
113961
  }
113943
113962
 
113944
- /**
113945
- * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#in
113963
+ /**
113964
+ * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#in
113946
113965
  */
113947
113966
  function InMappingProps({
113948
113967
  element,
@@ -114225,49 +114244,49 @@
114225
114244
 
114226
114245
  // helper //////////////////
114227
114246
 
114228
- /**
114229
- * @param {ModdleElement} bo
114230
- * @return {boolean} a boolean value
114247
+ /**
114248
+ * @param {ModdleElement} bo
114249
+ * @return {boolean} a boolean value
114231
114250
  */
114232
114251
  function isAsyncBefore$1$1(bo) {
114233
114252
  return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
114234
114253
  }
114235
114254
 
114236
- /**
114237
- * @param {ModdleElement} bo
114238
- * @return {boolean}
114255
+ /**
114256
+ * @param {ModdleElement} bo
114257
+ * @return {boolean}
114239
114258
  */
114240
114259
  function isAsyncAfter$1$1(bo) {
114241
114260
  return !!bo.get('camunda:asyncAfter');
114242
114261
  }
114243
114262
 
114244
- /**
114245
- * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
114246
- * is set to true.
114247
- *
114248
- * @param {ModdleElement} bo
114249
- * @return {boolean}
114263
+ /**
114264
+ * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
114265
+ * is set to true.
114266
+ *
114267
+ * @param {ModdleElement} bo
114268
+ * @return {boolean}
114250
114269
  */
114251
114270
  function isAsync$1(bo) {
114252
114271
  return isAsyncAfter$1$1(bo) || isAsyncBefore$1$1(bo);
114253
114272
  }
114254
114273
 
114255
- /**
114256
- * isTimerEvent - returns true if the element is a bpmn:Event with a timerEventDefinition
114257
- *
114258
- * @param {ModdleElement} element
114259
- * @return {boolean}
114274
+ /**
114275
+ * isTimerEvent - returns true if the element is a bpmn:Event with a timerEventDefinition
114276
+ *
114277
+ * @param {ModdleElement} element
114278
+ * @return {boolean}
114260
114279
  */
114261
114280
  function isTimerEvent(element) {
114262
114281
  return is$6(element, 'bpmn:Event') && getTimerEventDefinition$1(element);
114263
114282
  }
114264
114283
 
114265
- /**
114266
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
114284
+ /**
114285
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
114267
114286
  */
114268
114287
 
114269
- /**
114270
- * @returns {Array<Entry>} entries
114288
+ /**
114289
+ * @returns {Array<Entry>} entries
114271
114290
  */
114272
114291
  function MultiInstanceProps(props) {
114273
114292
  const {
@@ -114529,36 +114548,36 @@
114529
114548
 
114530
114549
  // generic ///////////////////////////
114531
114550
 
114532
- /**
114533
- * isMultiInstanceSupported - check whether given element supports camunda specific props
114534
- * for multiInstance (ref. <camunda:Cllectable>).
114535
- *
114536
- * @param {djs.model.Base} element
114537
- * @return {boolean}
114551
+ /**
114552
+ * isMultiInstanceSupported - check whether given element supports camunda specific props
114553
+ * for multiInstance (ref. <camunda:Cllectable>).
114554
+ *
114555
+ * @param {djs.model.Base} element
114556
+ * @return {boolean}
114538
114557
  */
114539
114558
  function isMultiInstanceSupported(element) {
114540
114559
  const loopCharacteristics = getLoopCharacteristics(element);
114541
114560
  return !!loopCharacteristics && is$6(loopCharacteristics, 'camunda:Collectable');
114542
114561
  }
114543
114562
 
114544
- /**
114545
- * getProperty - get a property value of the loop characteristics.
114546
- *
114547
- * @param {djs.model.Base} element
114548
- * @param {string} propertyName
114549
- *
114550
- * @return {any} the property value
114563
+ /**
114564
+ * getProperty - get a property value of the loop characteristics.
114565
+ *
114566
+ * @param {djs.model.Base} element
114567
+ * @param {string} propertyName
114568
+ *
114569
+ * @return {any} the property value
114551
114570
  */
114552
114571
  function getProperty(element, propertyName) {
114553
114572
  var loopCharacteristics = getLoopCharacteristics(element);
114554
114573
  return loopCharacteristics && loopCharacteristics.get(propertyName);
114555
114574
  }
114556
114575
 
114557
- /**
114558
- * getLoopCharacteristics - get loopCharacteristics of a given element.
114559
- *
114560
- * @param {djs.model.Base} element
114561
- * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
114576
+ /**
114577
+ * getLoopCharacteristics - get loopCharacteristics of a given element.
114578
+ *
114579
+ * @param {djs.model.Base} element
114580
+ * @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
114562
114581
  */
114563
114582
  function getLoopCharacteristics(element) {
114564
114583
  const bo = getBusinessObject$2(element);
@@ -114567,12 +114586,12 @@
114567
114586
 
114568
114587
  // collection
114569
114588
 
114570
- /**
114571
- * getCollection - get the 'camunda:collection' attribute value of the loop characteristics.
114572
- *
114573
- * @param {djs.model.Base} element
114574
- *
114575
- * @return {string} the 'camunda:collection' value
114589
+ /**
114590
+ * getCollection - get the 'camunda:collection' attribute value of the loop characteristics.
114591
+ *
114592
+ * @param {djs.model.Base} element
114593
+ *
114594
+ * @return {string} the 'camunda:collection' value
114576
114595
  */
114577
114596
  function getCollection(element) {
114578
114597
  return getProperty(element, 'camunda:collection');
@@ -114580,12 +114599,12 @@
114580
114599
 
114581
114600
  // elementVariable
114582
114601
 
114583
- /**
114584
- * getElementVariable - get the 'camunda:elementVariable' attribute value of the loop characteristics.
114585
- *
114586
- * @param {djs.model.Base} element
114587
- *
114588
- * @return {string} the 'camunda:elementVariable' value
114602
+ /**
114603
+ * getElementVariable - get the 'camunda:elementVariable' attribute value of the loop characteristics.
114604
+ *
114605
+ * @param {djs.model.Base} element
114606
+ *
114607
+ * @return {string} the 'camunda:elementVariable' value
114589
114608
  */
114590
114609
  function getElementVariable(element) {
114591
114610
  return getProperty(element, 'camunda:elementVariable');
@@ -114593,48 +114612,48 @@
114593
114612
 
114594
114613
  // asyncBefore asyncAfter
114595
114614
 
114596
- /**
114597
- * Returns true if the attribute 'camunda:asyncBefore' is set
114598
- * to true.
114599
- *
114600
- * @param {ModdleElement} bo
114601
- *
114602
- * @return {boolean} a boolean value
114615
+ /**
114616
+ * Returns true if the attribute 'camunda:asyncBefore' is set
114617
+ * to true.
114618
+ *
114619
+ * @param {ModdleElement} bo
114620
+ *
114621
+ * @return {boolean} a boolean value
114603
114622
  */
114604
114623
  function isAsyncBefore$3(bo) {
114605
114624
  return !!(bo.get('camunda:asyncBefore') || bo.get('camunda:async'));
114606
114625
  }
114607
114626
 
114608
- /**
114609
- * Returns true if the attribute 'camunda:asyncAfter' is set
114610
- * to true.
114611
- *
114612
- * @param {ModdleElement} bo
114613
- *
114614
- * @return {boolean} a boolean value
114627
+ /**
114628
+ * Returns true if the attribute 'camunda:asyncAfter' is set
114629
+ * to true.
114630
+ *
114631
+ * @param {ModdleElement} bo
114632
+ *
114633
+ * @return {boolean} a boolean value
114615
114634
  */
114616
114635
  function isAsyncAfter$3(bo) {
114617
114636
  return !!bo.get('camunda:asyncAfter');
114618
114637
  }
114619
114638
 
114620
- /**
114621
- * Returns true if the attribute 'camunda:exclusive' is set
114622
- * to true.
114623
- *
114624
- * @param {ModdleElement} bo
114625
- *
114626
- * @return {boolean} a boolean value
114639
+ /**
114640
+ * Returns true if the attribute 'camunda:exclusive' is set
114641
+ * to true.
114642
+ *
114643
+ * @param {ModdleElement} bo
114644
+ *
114645
+ * @return {boolean} a boolean value
114627
114646
  */
114628
114647
  function isExclusive$2(bo) {
114629
114648
  return !!bo.get('camunda:exclusive');
114630
114649
  }
114631
114650
 
114632
- /**
114633
- * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
114634
- * is set to true.
114635
- *
114636
- * @param {ModdleElement} bo
114637
- * @return {boolean}
114651
+ /**
114652
+ * isAsync - returns true if the attribute 'camunda:asyncAfter' or 'camunda:asyncBefore'
114653
+ * is set to true.
114654
+ *
114655
+ * @param {ModdleElement} bo
114656
+ * @return {boolean}
114638
114657
  */
114639
114658
  function isAsync(bo) {
114640
114659
  return isAsyncAfter$3(bo) || isAsyncBefore$3(bo);
@@ -114646,8 +114665,8 @@
114646
114665
  return node && !node.checked;
114647
114666
  }
114648
114667
 
114649
- /**
114650
- * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
114668
+ /**
114669
+ * Cf. https://docs.camunda.org/manual/7.15/reference/bpmn20/subprocesses/call-activity/#passing-variables
114651
114670
  */
114652
114671
  function OutMappingPropagationProps(props) {
114653
114672
  const {
@@ -114755,8 +114774,8 @@
114755
114774
  return !!mappings.length;
114756
114775
  }
114757
114776
 
114758
- /**
114759
- * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#out
114777
+ /**
114778
+ * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/custom-extensions/extension-elements/#out
114760
114779
  */
114761
114780
  function OutMappingProps({
114762
114781
  element,
@@ -114947,12 +114966,12 @@
114947
114966
  return entries;
114948
114967
  }
114949
114968
 
114950
- /**
114951
- * TimerEventDefinitionType - Generic select entry allowing to select a specific
114952
- * timerEventDefintionType. To be used together with timerEventDefinitionValue.
114953
- *
114954
- * @param {type} props
114955
- * @return {SelectEntry}
114969
+ /**
114970
+ * TimerEventDefinitionType - Generic select entry allowing to select a specific
114971
+ * timerEventDefintionType. To be used together with timerEventDefinitionValue.
114972
+ *
114973
+ * @param {type} props
114974
+ * @return {SelectEntry}
114956
114975
  */
114957
114976
  function TimerEventDefinitionType(props) {
114958
114977
  const {
@@ -115020,13 +115039,13 @@
115020
115039
  });
115021
115040
  }
115022
115041
 
115023
- /**
115024
- * TimerEventDefinitionValue - Generic textField entry allowing to specify the
115025
- * timerEventDefintionValue based on the set timerEventDefintionType. To be used
115026
- * together with timerEventDefinitionType.
115027
- *
115028
- * @param {type} props
115029
- * @return {TextFieldEntry}
115042
+ /**
115043
+ * TimerEventDefinitionValue - Generic textField entry allowing to specify the
115044
+ * timerEventDefintionValue based on the set timerEventDefintionType. To be used
115045
+ * together with timerEventDefinitionType.
115046
+ *
115047
+ * @param {type} props
115048
+ * @return {TextFieldEntry}
115030
115049
  */
115031
115050
  function TimerEventDefinitionValue(props) {
115032
115051
  const {
@@ -115188,8 +115207,8 @@
115188
115207
  timeout: 'Timeout'
115189
115208
  };
115190
115209
 
115191
- /**
115192
- * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/#execution-listener
115210
+ /**
115211
+ * Cf. https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/#execution-listener
115193
115212
  */
115194
115213
  function ExecutionListenerProps({
115195
115214
  element,
@@ -115601,11 +115620,11 @@
115601
115620
 
115602
115621
  // helper
115603
115622
 
115604
- /**
115605
- * Get a readable label for a listener.
115606
- *
115607
- * @param {ModdleElement} listener
115608
- * @param {string => string} [translate]
115623
+ /**
115624
+ * Get a readable label for a listener.
115625
+ *
115626
+ * @param {ModdleElement} listener
115627
+ * @param {string => string} [translate]
115609
115628
  */
115610
115629
  function getListenerLabel(listener, translate = value => value) {
115611
115630
  const event = listener.get('event');
@@ -115952,8 +115971,8 @@
115952
115971
  return is$6(element, 'bpmn:Process') ? getBusinessObject$2(element) : getBusinessObject$2(element).get('processRef');
115953
115972
  }
115954
115973
 
115955
- /**
115956
- * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/user-task/
115974
+ /**
115975
+ * Cf. https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/user-task/
115957
115976
  */
115958
115977
  function UserAssignmentProps(props) {
115959
115978
  const {
@@ -116215,12 +116234,12 @@
116215
116234
  return is$6(element, 'bpmn:Process') ? getBusinessObject$2(element) : getBusinessObject$2(element).get('processRef');
116216
116235
  }
116217
116236
 
116218
- /**
116219
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
116237
+ /**
116238
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
116220
116239
  */
116221
116240
 
116222
- /**
116223
- * @returns {Array<Entry>} entries
116241
+ /**
116242
+ * @returns {Array<Entry>} entries
116224
116243
  */
116225
116244
  function IdProps() {
116226
116245
  return [{
@@ -116264,12 +116283,12 @@
116264
116283
  });
116265
116284
  }
116266
116285
 
116267
- /**
116268
- * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
116286
+ /**
116287
+ * @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
116269
116288
  */
116270
116289
 
116271
- /**
116272
- * @returns {Array<Entry>} entries
116290
+ /**
116291
+ * @returns {Array<Entry>} entries
116273
116292
  */
116274
116293
  function ProcessProps(props) {
116275
116294
  const {
@@ -116332,30 +116351,30 @@
116332
116351
  const LOW_PRIORITY$4 = 500;
116333
116352
  const CAMUNDA_PLATFORM_GROUPS = [HistoryCleanupGroup, TasklistGroup, CandidateStarterGroup, ImplementationGroup, ExternalTaskGroup, ProcessVariablesGroup, ErrorsGroup, UserAssignmentGroup, FormGroup, FormDataGroup, TaskListenerGroup, StartInitiatorGroup, ScriptGroup, ConditionGroup, CallActivityGroup, AsynchronousContinuationsGroup, JobExecutionGroup, InMappingPropagationGroup, InMappingGroup, InputGroup, ConnectorInputGroup, OutMappingPropagationGroup, OutMappingGroup, OutputGroup, ConnectorOutputGroup, ExecutionListenerGroup, ExtensionPropertiesGroup, FieldInjectionGroup, BusinessKeyGroup];
116334
116353
 
116335
- /**
116336
- * Provides `camunda` namespace properties.
116337
- *
116338
- * @example
116339
- * ```javascript
116340
- * import BpmnModeler from 'bpmn-js/lib/Modeler';
116341
- * import {
116342
- * BpmnPropertiesPanelModule,
116343
- * BpmnPropertiesProviderModule,
116344
- * CamundaPlatformPropertiesProviderModule
116345
- * } from 'bpmn-js-properties-panel';
116346
- *
116347
- * const modeler = new BpmnModeler({
116348
- * container: '#canvas',
116349
- * propertiesPanel: {
116350
- * parent: '#properties'
116351
- * },
116352
- * additionalModules: [
116353
- * BpmnPropertiesPanelModule,
116354
- * BpmnPropertiesProviderModule,
116355
- * CamundaPlatformPropertiesProviderModule
116356
- * ]
116357
- * });
116358
- * ```
116354
+ /**
116355
+ * Provides `camunda` namespace properties.
116356
+ *
116357
+ * @example
116358
+ * ```javascript
116359
+ * import BpmnModeler from 'bpmn-js/lib/Modeler';
116360
+ * import {
116361
+ * BpmnPropertiesPanelModule,
116362
+ * BpmnPropertiesProviderModule,
116363
+ * CamundaPlatformPropertiesProviderModule
116364
+ * } from 'bpmn-js-properties-panel';
116365
+ *
116366
+ * const modeler = new BpmnModeler({
116367
+ * container: '#canvas',
116368
+ * propertiesPanel: {
116369
+ * parent: '#properties'
116370
+ * },
116371
+ * additionalModules: [
116372
+ * BpmnPropertiesPanelModule,
116373
+ * BpmnPropertiesProviderModule,
116374
+ * CamundaPlatformPropertiesProviderModule
116375
+ * ]
116376
+ * });
116377
+ * ```
116359
116378
  */
116360
116379
  class CamundaPlatformPropertiesProvider {
116361
116380
  constructor(propertiesPanel, injector) {
@@ -116388,8 +116407,8 @@
116388
116407
  }
116389
116408
  CamundaPlatformPropertiesProvider.$inject = ['propertiesPanel', 'injector'];
116390
116409
 
116391
- /**
116392
- * This ensures the <Implementation> group always locates after <Documentation>
116410
+ /**
116411
+ * This ensures the <Implementation> group always locates after <Documentation>
116393
116412
  */
116394
116413
  function moveImplementationGroup(groups) {
116395
116414
  const documentationGroupIdx = findGroupIndex(groups, 'documentation');
@@ -116962,54 +116981,54 @@
116962
116981
  }
116963
116982
  };
116964
116983
 
116965
- /**
116966
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
116967
- *
116968
- * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
116969
- */
116970
-
116971
- /**
116972
- *
116973
- * @param {BaseViewerOptions} options
116974
- */
116975
- function Modeler$1(options = {}) {
116976
- Modeler$2.call(this, options);
116977
- }
116978
-
116979
- e$7(Modeler$1, Modeler$2);
116980
-
116981
- /**
116982
- * @param { {
116983
- * disableAdjustOrigin?: boolean;
116984
- * disableGrid?: boolean;
116985
- * } } [options]
116986
- *
116987
- * @returns {ModuleDeclaration[]}
116988
- */
116989
- Modeler$1.prototype.getModules = function(options = {}) {
116990
- const modules = Modeler$2.prototype.getModules.call(this, options);
116991
-
116992
- return [
116993
- ...modules,
116994
- options.disableAdjustOrigin
116995
- ? diagramOriginModule
116996
- : alignToOriginModule,
116997
- options.disableGrid
116998
- ? {}
116999
- : index$6
117000
- ];
117001
- };
117002
-
117003
- Modeler$1.prototype._extensionModules = [
117004
- index$7,
117005
- ExecutableFixModule,
117006
- index$3,
117007
- index$2
117008
- ];
117009
-
117010
- Modeler$1.prototype._modules = [].concat(
117011
- Modeler$2.prototype._modules,
117012
- Modeler$1.prototype._extensionModules
116984
+ /**
116985
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
116986
+ *
116987
+ * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
116988
+ */
116989
+
116990
+ /**
116991
+ *
116992
+ * @param {BaseViewerOptions} options
116993
+ */
116994
+ function Modeler$1(options = {}) {
116995
+ Modeler$2.call(this, options);
116996
+ }
116997
+
116998
+ e$7(Modeler$1, Modeler$2);
116999
+
117000
+ /**
117001
+ * @param { {
117002
+ * disableAdjustOrigin?: boolean;
117003
+ * disableGrid?: boolean;
117004
+ * } } [options]
117005
+ *
117006
+ * @returns {ModuleDeclaration[]}
117007
+ */
117008
+ Modeler$1.prototype.getModules = function(options = {}) {
117009
+ const modules = Modeler$2.prototype.getModules.call(this, options);
117010
+
117011
+ return [
117012
+ ...modules,
117013
+ options.disableAdjustOrigin
117014
+ ? diagramOriginModule
117015
+ : alignToOriginModule,
117016
+ options.disableGrid
117017
+ ? {}
117018
+ : index$6
117019
+ ];
117020
+ };
117021
+
117022
+ Modeler$1.prototype._extensionModules = [
117023
+ index$7,
117024
+ ExecutableFixModule,
117025
+ index$3,
117026
+ index$2
117027
+ ];
117028
+
117029
+ Modeler$1.prototype._modules = [].concat(
117030
+ Modeler$2.prototype._modules,
117031
+ Modeler$1.prototype._extensionModules
117013
117032
  );
117014
117033
 
117015
117034
  const WILDCARD = '*';
@@ -124273,6 +124292,9 @@
124273
124292
  if (notEmpty && isEmptyString(value)) {
124274
124293
  return translate('Must not be empty.');
124275
124294
  }
124295
+ if (property.feel && isFeel(value)) {
124296
+ return;
124297
+ }
124276
124298
  if (maxLength && value.length > maxLength) {
124277
124299
  return translate('Must have max length {maxLength}.', {
124278
124300
  maxLength
@@ -124337,6 +124359,9 @@
124337
124359
  function findCustomGroup(groups, id) {
124338
124360
  return find$3(groups, g => g.id === id);
124339
124361
  }
124362
+ function isFeel(value) {
124363
+ return isString$1(value) && value.trim().startsWith('=');
124364
+ }
124340
124365
 
124341
124366
  function ErrorProperties(props) {
124342
124367
  const {
@@ -129999,13 +130024,13 @@
129999
130024
  emumerations: emumerations
130000
130025
  };
130001
130026
 
130002
- /**
130003
- * @type { {
130004
- * camunda: any
130005
- * } }
130006
- */
130007
- const commonModdleExtensions = {
130008
- camunda: camundaModdle
130027
+ /**
130028
+ * @type { {
130029
+ * camunda: any
130030
+ * } }
130031
+ */
130032
+ const commonModdleExtensions = {
130033
+ camunda: camundaModdle
130009
130034
  };
130010
130035
 
130011
130036
  const colorImageSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor">
@@ -133617,45 +133642,45 @@
133617
133642
  removeTemplateReplaceProvider: [ 'type', RemoveTemplateReplaceProvider ]
133618
133643
  };
133619
133644
 
133620
- /**
133621
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
133622
- */
133623
-
133624
- /**
133625
- * @param {BaseViewerOptions} options
133626
- */
133627
- function Modeler(options = {}) {
133628
-
133629
- options = {
133630
- ...options,
133631
- moddleExtensions: {
133632
- ...commonModdleExtensions,
133633
- ...options.moddleExtensions
133634
- },
133635
- propertiesPanel: {
133636
- tooltip: TooltipProvider,
133637
- ...options.propertiesPanel
133638
- }
133639
- };
133640
-
133641
- Modeler$1.call(this, options);
133642
- }
133643
-
133644
- e$7(Modeler, Modeler$1);
133645
-
133646
- Modeler.prototype._camundaPlatformModules = [
133647
- behaviorsModule,
133648
- index$4,
133649
- index,
133650
- colorPickerModule,
133651
- index$1,
133652
- CamundaVariableResolverModule,
133653
- RemoveTemplatesModule
133654
- ];
133655
-
133656
- Modeler.prototype._modules = [].concat(
133657
- Modeler$1.prototype._modules,
133658
- Modeler.prototype._camundaPlatformModules
133645
+ /**
133646
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
133647
+ */
133648
+
133649
+ /**
133650
+ * @param {BaseViewerOptions} options
133651
+ */
133652
+ function Modeler(options = {}) {
133653
+
133654
+ options = {
133655
+ ...options,
133656
+ moddleExtensions: {
133657
+ ...commonModdleExtensions,
133658
+ ...options.moddleExtensions
133659
+ },
133660
+ propertiesPanel: {
133661
+ tooltip: TooltipProvider,
133662
+ ...options.propertiesPanel
133663
+ }
133664
+ };
133665
+
133666
+ Modeler$1.call(this, options);
133667
+ }
133668
+
133669
+ e$7(Modeler, Modeler$1);
133670
+
133671
+ Modeler.prototype._camundaPlatformModules = [
133672
+ behaviorsModule,
133673
+ index$4,
133674
+ index,
133675
+ colorPickerModule,
133676
+ index$1,
133677
+ CamundaVariableResolverModule,
133678
+ RemoveTemplatesModule
133679
+ ];
133680
+
133681
+ Modeler.prototype._modules = [].concat(
133682
+ Modeler$1.prototype._modules,
133683
+ Modeler.prototype._camundaPlatformModules
133659
133684
  );
133660
133685
 
133661
133686
  return Modeler;