camunda-bpmn-js 4.16.0 → 4.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) 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 +353 -353
  10. package/dist/base-modeler.production.min.js +1 -1
  11. package/dist/camunda-cloud-modeler.development.js +548 -548
  12. package/dist/camunda-cloud-modeler.production.min.js +1 -1
  13. package/dist/camunda-cloud-navigated-viewer.development.js +40 -40
  14. package/dist/camunda-cloud-viewer.development.js +40 -40
  15. package/dist/camunda-platform-modeler.development.js +452 -452
  16. package/dist/camunda-platform-modeler.production.min.js +1 -1
  17. package/dist/camunda-platform-navigated-viewer.development.js +27 -27
  18. package/dist/camunda-platform-viewer.development.js +27 -27
  19. package/lib/base/Modeler.d.ts +20 -20
  20. package/lib/base/Modeler.js +65 -65
  21. package/lib/base/NavigatedViewer.d.ts +2 -2
  22. package/lib/base/NavigatedViewer.js +2 -2
  23. package/lib/base/Viewer.d.ts +2 -2
  24. package/lib/base/Viewer.js +2 -2
  25. package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
  26. package/lib/camunda-cloud/Modeler.d.ts +3 -3
  27. package/lib/camunda-cloud/Modeler.js +84 -84
  28. package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
  29. package/lib/camunda-cloud/NavigatedViewer.js +36 -36
  30. package/lib/camunda-cloud/Viewer.d.ts +9 -9
  31. package/lib/camunda-cloud/Viewer.js +36 -36
  32. package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
  33. package/lib/camunda-cloud/util/commonModules.js +15 -15
  34. package/lib/camunda-platform/Modeler.d.ts +3 -3
  35. package/lib/camunda-platform/Modeler.js +68 -68
  36. package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
  37. package/lib/camunda-platform/NavigatedViewer.js +27 -27
  38. package/lib/camunda-platform/Viewer.d.ts +9 -9
  39. package/lib/camunda-platform/Viewer.js +27 -27
  40. package/lib/camunda-platform/util/commonModules.d.ts +9 -9
  41. package/lib/camunda-platform/util/commonModules.js +11 -11
  42. package/lib/util/ExtensionElementsUtil.d.ts +24 -24
  43. package/lib/util/ExtensionElementsUtil.js +68 -68
  44. package/package.json +140 -140
  45. package/styles/base-modeler.css +5 -5
  46. package/styles/base-navigated-viewer.css +1 -1
  47. package/styles/base-viewer.css +1 -1
  48. package/styles/camunda-cloud-modeler.css +2 -2
  49. package/styles/camunda-platform-modeler.css +1 -1
@@ -98069,19 +98069,19 @@
98069
98069
  errors: {}
98070
98070
  });
98071
98071
 
98072
- /**
98073
- * @typedef {Function} <propertiesPanel.showEntry> callback
98074
- *
98075
- * @example
98076
- *
98077
- * useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
98078
- * // ...
98079
- * });
98080
- *
98081
- * @param {Object} context
98082
- * @param {boolean} [context.focus]
98083
- *
98084
- * @returns void
98072
+ /**
98073
+ * @typedef {Function} <propertiesPanel.showEntry> callback
98074
+ *
98075
+ * @example
98076
+ *
98077
+ * useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
98078
+ * // ...
98079
+ * });
98080
+ *
98081
+ * @param {Object} context
98082
+ * @param {boolean} [context.focus]
98083
+ *
98084
+ * @returns void
98085
98085
  */
98086
98086
 
98087
98087
  const EventContext = F$2({
@@ -98100,20 +98100,20 @@
98100
98100
  getTooltipForId: () => {}
98101
98101
  });
98102
98102
 
98103
- /**
98104
- * Accesses the global TooltipContext and returns a tooltip for a given id and element.
98105
- *
98106
- * @example
98107
- * ```jsx
98108
- * function TextField(props) {
98109
- * const tooltip = useTooltipContext('input1', element);
98110
- * }
98111
- * ```
98112
- *
98113
- * @param {string} id
98114
- * @param {object} element
98115
- *
98116
- * @returns {string}
98103
+ /**
98104
+ * Accesses the global TooltipContext and returns a tooltip for a given id and element.
98105
+ *
98106
+ * @example
98107
+ * ```jsx
98108
+ * function TextField(props) {
98109
+ * const tooltip = useTooltipContext('input1', element);
98110
+ * }
98111
+ * ```
98112
+ *
98113
+ * @param {string} id
98114
+ * @param {object} element
98115
+ *
98116
+ * @returns {string}
98117
98117
  */
98118
98118
  function useTooltipContext(id, element) {
98119
98119
  const {
@@ -98266,20 +98266,20 @@
98266
98266
  return `bio-properties-panel-${id}`;
98267
98267
  }
98268
98268
 
98269
- /**
98270
- * Accesses the global DescriptionContext and returns a description for a given id and element.
98271
- *
98272
- * @example
98273
- * ```jsx
98274
- * function TextField(props) {
98275
- * const description = useDescriptionContext('input1', element);
98276
- * }
98277
- * ```
98278
- *
98279
- * @param {string} id
98280
- * @param {object} element
98281
- *
98282
- * @returns {string}
98269
+ /**
98270
+ * Accesses the global DescriptionContext and returns a description for a given id and element.
98271
+ *
98272
+ * @example
98273
+ * ```jsx
98274
+ * function TextField(props) {
98275
+ * const description = useDescriptionContext('input1', element);
98276
+ * }
98277
+ * ```
98278
+ *
98279
+ * @param {string} id
98280
+ * @param {object} element
98281
+ *
98282
+ * @returns {string}
98283
98283
  */
98284
98284
  function useDescriptionContext(id, element) {
98285
98285
  const {
@@ -98301,11 +98301,11 @@
98301
98301
  return errors;
98302
98302
  }
98303
98303
 
98304
- /**
98305
- * Subscribe to an event immediately. Update subscription after inputs changed.
98306
- *
98307
- * @param {string} event
98308
- * @param {Function} callback
98304
+ /**
98305
+ * Subscribe to an event immediately. Update subscription after inputs changed.
98306
+ *
98307
+ * @param {string} event
98308
+ * @param {Function} callback
98309
98309
  */
98310
98310
  function useEvent(event, callback, eventBus) {
98311
98311
  const eventContext = q$1(EventContext);
@@ -98335,20 +98335,20 @@
98335
98335
  }, [callback, event, eventBus]);
98336
98336
  }
98337
98337
 
98338
- /**
98339
- * Creates a state that persists in the global LayoutContext.
98340
- *
98341
- * @example
98342
- * ```jsx
98343
- * function Group(props) {
98344
- * const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
98345
- * }
98346
- * ```
98347
- *
98348
- * @param {(string|number)[]} path
98349
- * @param {any} [defaultValue]
98350
- *
98351
- * @returns {[ any, Function ]}
98338
+ /**
98339
+ * Creates a state that persists in the global LayoutContext.
98340
+ *
98341
+ * @example
98342
+ * ```jsx
98343
+ * function Group(props) {
98344
+ * const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
98345
+ * }
98346
+ * ```
98347
+ *
98348
+ * @param {(string|number)[]} path
98349
+ * @param {any} [defaultValue]
98350
+ *
98351
+ * @returns {[ any, Function ]}
98352
98352
  */
98353
98353
  function useLayoutState(path, defaultValue) {
98354
98354
  const {
@@ -98362,11 +98362,11 @@
98362
98362
  return [layoutForKey, setState];
98363
98363
  }
98364
98364
 
98365
- /**
98366
- * @pinussilvestrus: we need to introduce our own hook to persist the previous
98367
- * state on updates.
98368
- *
98369
- * cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
98365
+ /**
98366
+ * @pinussilvestrus: we need to introduce our own hook to persist the previous
98367
+ * state on updates.
98368
+ *
98369
+ * cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
98370
98370
  */
98371
98371
 
98372
98372
  function usePrevious(value) {
@@ -98377,12 +98377,12 @@
98377
98377
  return ref.current;
98378
98378
  }
98379
98379
 
98380
- /**
98381
- * Subscribe to `propertiesPanel.showEntry`.
98382
- *
98383
- * @param {string} id
98384
- *
98385
- * @returns {import('preact').Ref}
98380
+ /**
98381
+ * Subscribe to `propertiesPanel.showEntry`.
98382
+ *
98383
+ * @param {string} id
98384
+ *
98385
+ * @returns {import('preact').Ref}
98386
98386
  */
98387
98387
  function useShowEntryEvent(id) {
98388
98388
  const {
@@ -98413,20 +98413,20 @@
98413
98413
  return ref;
98414
98414
  }
98415
98415
 
98416
- /**
98417
- * @callback setSticky
98418
- * @param {boolean} value
98416
+ /**
98417
+ * @callback setSticky
98418
+ * @param {boolean} value
98419
98419
  */
98420
98420
 
98421
- /**
98422
- * Use IntersectionObserver to identify when DOM element is in sticky mode.
98423
- * If sticky is observered setSticky(true) will be called.
98424
- * If sticky mode is left, setSticky(false) will be called.
98425
- *
98426
- *
98427
- * @param {Object} ref
98428
- * @param {string} scrollContainerSelector
98429
- * @param {setSticky} setSticky
98421
+ /**
98422
+ * Use IntersectionObserver to identify when DOM element is in sticky mode.
98423
+ * If sticky is observered setSticky(true) will be called.
98424
+ * If sticky mode is left, setSticky(false) will be called.
98425
+ *
98426
+ *
98427
+ * @param {Object} ref
98428
+ * @param {string} scrollContainerSelector
98429
+ * @param {setSticky} setSticky
98430
98430
  */
98431
98431
  function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky) {
98432
98432
  const [scrollContainer, setScrollContainer] = h(query(scrollContainerSelector));
@@ -98480,19 +98480,19 @@
98480
98480
  }, [ref.current, scrollContainer, setSticky]);
98481
98481
  }
98482
98482
 
98483
- /**
98484
- * Creates a static function reference with changing body.
98485
- * This is necessary when external libraries require a callback function
98486
- * that has references to state variables.
98487
- *
98488
- * Usage:
98489
- * const callback = useStaticCallback((val) => {val === currentState});
98490
- *
98491
- * The `callback` reference is static and can be safely used in external
98492
- * libraries or as a prop that does not cause rerendering of children.
98493
- *
98494
- * @param {Function} callback function with changing reference
98495
- * @returns {Function} static function reference
98483
+ /**
98484
+ * Creates a static function reference with changing body.
98485
+ * This is necessary when external libraries require a callback function
98486
+ * that has references to state variables.
98487
+ *
98488
+ * Usage:
98489
+ * const callback = useStaticCallback((val) => {val === currentState});
98490
+ *
98491
+ * The `callback` reference is static and can be safely used in external
98492
+ * libraries or as a prop that does not cause rerendering of children.
98493
+ *
98494
+ * @param {Function} callback function with changing reference
98495
+ * @returns {Function} static function reference
98496
98496
  */
98497
98497
  function useStaticCallback(callback) {
98498
98498
  const callbackRef = _(callback);
@@ -98635,13 +98635,13 @@
98635
98635
  return null;
98636
98636
  }
98637
98637
 
98638
- /**
98639
- * @typedef { {
98640
- * text: (element: object) => string,
98641
- * icon?: (element: Object) => import('preact').Component
98642
- * } } PlaceholderDefinition
98643
- *
98644
- * @param { PlaceholderDefinition } props
98638
+ /**
98639
+ * @typedef { {
98640
+ * text: (element: object) => string,
98641
+ * icon?: (element: Object) => import('preact').Component
98642
+ * } } PlaceholderDefinition
98643
+ *
98644
+ * @param { PlaceholderDefinition } props
98645
98645
  */
98646
98646
  function Placeholder(props) {
98647
98647
  const {
@@ -98680,9 +98680,9 @@
98680
98680
 
98681
98681
  const noop$6 = () => {};
98682
98682
 
98683
- /**
98684
- * Buffer `.focus()` calls while the editor is not initialized.
98685
- * Set Focus inside when the editor is ready.
98683
+ /**
98684
+ * Buffer `.focus()` calls while the editor is not initialized.
98685
+ * Set Focus inside when the editor is ready.
98686
98686
  */
98687
98687
  const useBufferedFocus$1 = function (editor, ref) {
98688
98688
  const [buffer, setBuffer] = h(undefined);
@@ -98783,9 +98783,9 @@
98783
98783
 
98784
98784
  const noop$5 = () => {};
98785
98785
 
98786
- /**
98787
- * Buffer `.focus()` calls while the editor is not initialized.
98788
- * Set Focus inside when the editor is ready.
98786
+ /**
98787
+ * Buffer `.focus()` calls while the editor is not initialized.
98788
+ * Set Focus inside when the editor is ready.
98789
98789
  */
98790
98790
  const useBufferedFocus = function (editor, ref) {
98791
98791
  const [buffer, setBuffer] = h(undefined);
@@ -98834,10 +98834,10 @@
98834
98834
  p(() => {
98835
98835
  let editor;
98836
98836
 
98837
- /* Trigger FEEL toggle when
98838
- *
98839
- * - `backspace` is pressed
98840
- * - AND the cursor is at the beginning of the input
98837
+ /* Trigger FEEL toggle when
98838
+ *
98839
+ * - `backspace` is pressed
98840
+ * - AND the cursor is at the beginning of the input
98841
98841
  */
98842
98842
  const onKeyDown = e => {
98843
98843
  if (e.key !== 'Backspace' || !editor) {
@@ -98919,22 +98919,22 @@
98919
98919
  source: null
98920
98920
  });
98921
98921
 
98922
- /**
98923
- * Add a dragger that calls back the passed function with
98924
- * { event, delta } on drag.
98925
- *
98926
- * @example
98927
- *
98928
- * function dragMove(event, delta) {
98929
- * // we are dragging (!!)
98930
- * }
98931
- *
98932
- * domElement.addEventListener('dragstart', dragger(dragMove));
98933
- *
98934
- * @param {Function} fn
98935
- * @param {Element} [dragPreview]
98936
- *
98937
- * @return {Function} drag start callback function
98922
+ /**
98923
+ * Add a dragger that calls back the passed function with
98924
+ * { event, delta } on drag.
98925
+ *
98926
+ * @example
98927
+ *
98928
+ * function dragMove(event, delta) {
98929
+ * // we are dragging (!!)
98930
+ * }
98931
+ *
98932
+ * domElement.addEventListener('dragstart', dragger(dragMove));
98933
+ *
98934
+ * @param {Function} fn
98935
+ * @param {Element} [dragPreview]
98936
+ *
98937
+ * @return {Function} drag start callback function
98938
98938
  */
98939
98939
  function createDragger(fn, dragPreview) {
98940
98940
  let self;
@@ -98989,23 +98989,23 @@
98989
98989
 
98990
98990
  const noop$3 = () => {};
98991
98991
 
98992
- /**
98993
- * A generic popup component.
98994
- *
98995
- * @param {Object} props
98996
- * @param {HTMLElement} [props.container]
98997
- * @param {string} [props.className]
98998
- * @param {boolean} [props.delayInitialFocus]
98999
- * @param {{x: number, y: number}} [props.position]
99000
- * @param {number} [props.width]
99001
- * @param {number} [props.height]
99002
- * @param {Function} props.onClose
99003
- * @param {Function} [props.onPostActivate]
99004
- * @param {Function} [props.onPostDeactivate]
99005
- * @param {boolean} [props.returnFocus]
99006
- * @param {boolean} [props.closeOnEscape]
99007
- * @param {string} props.title
99008
- * @param {Ref} [ref]
98992
+ /**
98993
+ * A generic popup component.
98994
+ *
98995
+ * @param {Object} props
98996
+ * @param {HTMLElement} [props.container]
98997
+ * @param {string} [props.className]
98998
+ * @param {boolean} [props.delayInitialFocus]
98999
+ * @param {{x: number, y: number}} [props.position]
99000
+ * @param {number} [props.width]
99001
+ * @param {number} [props.height]
99002
+ * @param {Function} props.onClose
99003
+ * @param {Function} [props.onPostActivate]
99004
+ * @param {Function} [props.onPostDeactivate]
99005
+ * @param {boolean} [props.returnFocus]
99006
+ * @param {boolean} [props.closeOnEscape]
99007
+ * @param {string} props.title
99008
+ * @param {Ref} [ref]
99009
99009
  */
99010
99010
  function PopupComponent(props, globalRef) {
99011
99011
  const {
@@ -99224,12 +99224,12 @@
99224
99224
  const FEEL_POPUP_WIDTH = 700;
99225
99225
  const FEEL_POPUP_HEIGHT = 250;
99226
99226
 
99227
- /**
99228
- * FEEL popup component, built as a singleton. Emits lifecycle events as follows:
99229
- * - `feelPopup.open` - fired before the popup is mounted
99230
- * - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
99231
- * - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
99232
- * - `feelPopup.closed` - fired after the popup is unmounted
99227
+ /**
99228
+ * FEEL popup component, built as a singleton. Emits lifecycle events as follows:
99229
+ * - `feelPopup.open` - fired before the popup is mounted
99230
+ * - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
99231
+ * - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
99232
+ * - `feelPopup.closed` - fired after the popup is unmounted
99233
99233
  */
99234
99234
  function FEELPopupRoot(props) {
99235
99235
  const {
@@ -99452,11 +99452,11 @@
99452
99452
  return element.closest('.cm-editor').querySelector('.cm-tooltip-autocomplete');
99453
99453
  }
99454
99454
 
99455
- /**
99456
- * This hook behaves like useEffect, but does not trigger on the first render.
99457
- *
99458
- * @param {Function} effect
99459
- * @param {Array} deps
99455
+ /**
99456
+ * This hook behaves like useEffect, but does not trigger on the first render.
99457
+ *
99458
+ * @param {Function} effect
99459
+ * @param {Array} deps
99460
99460
  */
99461
99461
  function useUpdateEffect(effect, deps) {
99462
99462
  const isMounted = _(false);
@@ -99821,84 +99821,84 @@
99821
99821
  const DEFAULT_DESCRIPTION = {};
99822
99822
  const DEFAULT_TOOLTIP = {};
99823
99823
 
99824
- /**
99825
- * @typedef { {
99826
- * component: import('preact').Component,
99827
- * id: String,
99828
- * isEdited?: Function
99829
- * } } EntryDefinition
99830
- *
99831
- * @typedef { {
99832
- * autoFocusEntry: String,
99833
- * autoOpen?: Boolean,
99834
- * entries: Array<EntryDefinition>,
99835
- * id: String,
99836
- * label: String,
99837
- * remove: (event: MouseEvent) => void
99838
- * } } ListItemDefinition
99839
- *
99840
- * @typedef { {
99841
- * add: (event: MouseEvent) => void,
99842
- * component: import('preact').Component,
99843
- * element: Object,
99844
- * id: String,
99845
- * items: Array<ListItemDefinition>,
99846
- * label: String,
99847
- * shouldOpen?: Boolean
99848
- * } } ListGroupDefinition
99849
- *
99850
- * @typedef { {
99851
- * component?: import('preact').Component,
99852
- * entries: Array<EntryDefinition>,
99853
- * id: String,
99854
- * label: String,
99855
- * shouldOpen?: Boolean
99856
- * } } GroupDefinition
99857
- *
99858
- * @typedef { {
99859
- * [id: String]: GetDescriptionFunction
99860
- * } } DescriptionConfig
99861
- *
99862
- * @typedef { {
99863
- * [id: String]: GetTooltipFunction
99864
- * } } TooltipConfig
99865
- *
99866
- * @callback { {
99867
- * @param {string} id
99868
- * @param {Object} element
99869
- * @returns {string}
99870
- * } } GetDescriptionFunction
99871
- *
99872
- * @callback { {
99873
- * @param {string} id
99874
- * @param {Object} element
99875
- * @returns {string}
99876
- * } } GetTooltipFunction
99877
- *
99878
- * @typedef { {
99879
- * getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
99880
- * getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
99881
- * } } PlaceholderProvider
99882
- *
99824
+ /**
99825
+ * @typedef { {
99826
+ * component: import('preact').Component,
99827
+ * id: String,
99828
+ * isEdited?: Function
99829
+ * } } EntryDefinition
99830
+ *
99831
+ * @typedef { {
99832
+ * autoFocusEntry: String,
99833
+ * autoOpen?: Boolean,
99834
+ * entries: Array<EntryDefinition>,
99835
+ * id: String,
99836
+ * label: String,
99837
+ * remove: (event: MouseEvent) => void
99838
+ * } } ListItemDefinition
99839
+ *
99840
+ * @typedef { {
99841
+ * add: (event: MouseEvent) => void,
99842
+ * component: import('preact').Component,
99843
+ * element: Object,
99844
+ * id: String,
99845
+ * items: Array<ListItemDefinition>,
99846
+ * label: String,
99847
+ * shouldOpen?: Boolean
99848
+ * } } ListGroupDefinition
99849
+ *
99850
+ * @typedef { {
99851
+ * component?: import('preact').Component,
99852
+ * entries: Array<EntryDefinition>,
99853
+ * id: String,
99854
+ * label: String,
99855
+ * shouldOpen?: Boolean
99856
+ * } } GroupDefinition
99857
+ *
99858
+ * @typedef { {
99859
+ * [id: String]: GetDescriptionFunction
99860
+ * } } DescriptionConfig
99861
+ *
99862
+ * @typedef { {
99863
+ * [id: String]: GetTooltipFunction
99864
+ * } } TooltipConfig
99865
+ *
99866
+ * @callback { {
99867
+ * @param {string} id
99868
+ * @param {Object} element
99869
+ * @returns {string}
99870
+ * } } GetDescriptionFunction
99871
+ *
99872
+ * @callback { {
99873
+ * @param {string} id
99874
+ * @param {Object} element
99875
+ * @returns {string}
99876
+ * } } GetTooltipFunction
99877
+ *
99878
+ * @typedef { {
99879
+ * getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
99880
+ * getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
99881
+ * } } PlaceholderProvider
99882
+ *
99883
99883
  */
99884
99884
 
99885
- /**
99886
- * A basic properties panel component. Describes *how* content will be rendered, accepts
99887
- * data from implementor to describe *what* will be rendered.
99888
- *
99889
- * @param {Object} props
99890
- * @param {Object|Array} props.element
99891
- * @param {import('./components/Header').HeaderProvider} props.headerProvider
99892
- * @param {PlaceholderProvider} [props.placeholderProvider]
99893
- * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
99894
- * @param {Object} [props.layoutConfig]
99895
- * @param {Function} [props.layoutChanged]
99896
- * @param {DescriptionConfig} [props.descriptionConfig]
99897
- * @param {Function} [props.descriptionLoaded]
99898
- * @param {TooltipConfig} [props.tooltipConfig]
99899
- * @param {Function} [props.tooltipLoaded]
99900
- * @param {HTMLElement} [props.feelPopupContainer]
99901
- * @param {Object} [props.eventBus]
99885
+ /**
99886
+ * A basic properties panel component. Describes *how* content will be rendered, accepts
99887
+ * data from implementor to describe *what* will be rendered.
99888
+ *
99889
+ * @param {Object} props
99890
+ * @param {Object|Array} props.element
99891
+ * @param {import('./components/Header').HeaderProvider} props.headerProvider
99892
+ * @param {PlaceholderProvider} [props.placeholderProvider]
99893
+ * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
99894
+ * @param {Object} [props.layoutConfig]
99895
+ * @param {Function} [props.layoutChanged]
99896
+ * @param {DescriptionConfig} [props.descriptionConfig]
99897
+ * @param {Function} [props.descriptionLoaded]
99898
+ * @param {TooltipConfig} [props.tooltipConfig]
99899
+ * @param {Function} [props.tooltipLoaded]
99900
+ * @param {HTMLElement} [props.feelPopupContainer]
99901
+ * @param {Object} [props.eventBus]
99902
99902
  */
99903
99903
  function PropertiesPanel(props) {
99904
99904
  const {
@@ -100069,11 +100069,11 @@
100069
100069
 
100070
100070
  // hooks //////////////////
100071
100071
 
100072
- /**
100073
- * This hook behaves like useLayoutEffect, but does not trigger on the first render.
100074
- *
100075
- * @param {Function} effect
100076
- * @param {Array} deps
100072
+ /**
100073
+ * This hook behaves like useLayoutEffect, but does not trigger on the first render.
100074
+ *
100075
+ * @param {Function} effect
100076
+ * @param {Array} deps
100077
100077
  */
100078
100078
  function useUpdateLayoutEffect(effect, deps) {
100079
100079
  const isMounted = _(false);
@@ -100140,18 +100140,18 @@
100140
100140
  });
100141
100141
  }
100142
100142
 
100143
- /**
100144
- * @param {Object} props
100145
- * @param {Object} props.element
100146
- * @param {String} props.id
100147
- * @param {String} props.description
100148
- * @param {String} props.label
100149
- * @param {Function} props.getValue
100150
- * @param {Function} props.setValue
100151
- * @param {Function} props.onFocus
100152
- * @param {Function} props.onBlur
100153
- * @param {string|import('preact').Component} props.tooltip
100154
- * @param {boolean} [props.disabled]
100143
+ /**
100144
+ * @param {Object} props
100145
+ * @param {Object} props.element
100146
+ * @param {String} props.id
100147
+ * @param {String} props.description
100148
+ * @param {String} props.label
100149
+ * @param {Function} props.getValue
100150
+ * @param {Function} props.setValue
100151
+ * @param {Function} props.onFocus
100152
+ * @param {Function} props.onBlur
100153
+ * @param {string|import('preact').Component} props.tooltip
100154
+ * @param {boolean} [props.disabled]
100155
100155
  */
100156
100156
  function CheckboxEntry(props) {
100157
100157
  const {
@@ -100272,20 +100272,20 @@
100272
100272
  });
100273
100273
  }
100274
100274
 
100275
- /**
100276
- * @param {object} props
100277
- * @param {object} props.element
100278
- * @param {string} props.id
100279
- * @param {string} [props.description]
100280
- * @param {string} props.label
100281
- * @param {Function} props.getValue
100282
- * @param {Function} props.setValue
100283
- * @param {Function} props.onFocus
100284
- * @param {Function} props.onBlur
100285
- * @param {Function} props.getOptions
100286
- * @param {boolean} [props.disabled]
100287
- * @param {Function} [props.validate]
100288
- * @param {string|import('preact').Component} props.tooltip
100275
+ /**
100276
+ * @param {object} props
100277
+ * @param {object} props.element
100278
+ * @param {string} props.id
100279
+ * @param {string} [props.description]
100280
+ * @param {string} props.label
100281
+ * @param {Function} props.getValue
100282
+ * @param {Function} props.setValue
100283
+ * @param {Function} props.onFocus
100284
+ * @param {Function} props.onBlur
100285
+ * @param {Function} props.getOptions
100286
+ * @param {boolean} [props.disabled]
100287
+ * @param {Function} [props.validate]
100288
+ * @param {string|import('preact').Component} props.tooltip
100289
100289
  */
100290
100290
  function SelectEntry(props) {
100291
100291
  const {
@@ -100373,7 +100373,7 @@
100373
100373
  monospace,
100374
100374
  onFocus,
100375
100375
  onBlur,
100376
- autoResize,
100376
+ autoResize = true,
100377
100377
  placeholder,
100378
100378
  rows = autoResize ? 1 : 2,
100379
100379
  tooltip
@@ -100430,21 +100430,21 @@
100430
100430
  });
100431
100431
  }
100432
100432
 
100433
- /**
100434
- * @param {object} props
100435
- * @param {object} props.element
100436
- * @param {string} props.id
100437
- * @param {string} props.description
100438
- * @param {boolean} props.debounce
100439
- * @param {string} props.label
100440
- * @param {Function} props.getValue
100441
- * @param {Function} props.setValue
100442
- * @param {Function} props.onFocus
100443
- * @param {Function} props.onBlur
100444
- * @param {number} props.rows
100445
- * @param {boolean} props.monospace
100446
- * @param {Function} [props.validate]
100447
- * @param {boolean} [props.disabled]
100433
+ /**
100434
+ * @param {object} props
100435
+ * @param {object} props.element
100436
+ * @param {string} props.id
100437
+ * @param {string} props.description
100438
+ * @param {boolean} props.debounce
100439
+ * @param {string} props.label
100440
+ * @param {Function} props.getValue
100441
+ * @param {Function} props.setValue
100442
+ * @param {Function} props.onFocus
100443
+ * @param {Function} props.onBlur
100444
+ * @param {number} props.rows
100445
+ * @param {boolean} props.monospace
100446
+ * @param {Function} [props.validate]
100447
+ * @param {boolean} [props.disabled]
100448
100448
  */
100449
100449
  function TextAreaEntry(props) {
100450
100450
  const {
@@ -100578,20 +100578,20 @@
100578
100578
  });
100579
100579
  }
100580
100580
 
100581
- /**
100582
- * @param {Object} props
100583
- * @param {Object} props.element
100584
- * @param {String} props.id
100585
- * @param {String} props.description
100586
- * @param {Boolean} props.debounce
100587
- * @param {Boolean} props.disabled
100588
- * @param {String} props.label
100589
- * @param {Function} props.getValue
100590
- * @param {Function} props.setValue
100591
- * @param {Function} props.onFocus
100592
- * @param {Function} props.onBlur
100593
- * @param {string|import('preact').Component} props.tooltip
100594
- * @param {Function} props.validate
100581
+ /**
100582
+ * @param {Object} props
100583
+ * @param {Object} props.element
100584
+ * @param {String} props.id
100585
+ * @param {String} props.description
100586
+ * @param {Boolean} props.debounce
100587
+ * @param {Boolean} props.disabled
100588
+ * @param {String} props.label
100589
+ * @param {Function} props.getValue
100590
+ * @param {Function} props.setValue
100591
+ * @param {Function} props.onFocus
100592
+ * @param {Function} props.onBlur
100593
+ * @param {string|import('preact').Component} props.tooltip
100594
+ * @param {Function} props.validate
100595
100595
  */
100596
100596
  function TextfieldEntry(props) {
100597
100597
  const {
@@ -100684,20 +100684,20 @@
100684
100684
  this._eventBus = eventBus;
100685
100685
  }
100686
100686
 
100687
- /**
100688
- * Check if the FEEL popup is open.
100689
- * @return {Boolean}
100687
+ /**
100688
+ * Check if the FEEL popup is open.
100689
+ * @return {Boolean}
100690
100690
  */
100691
100691
  isOpen() {
100692
100692
  return this._eventBus.fire('feelPopup._isOpen');
100693
100693
  }
100694
100694
 
100695
- /**
100696
- * Open the FEEL popup.
100697
- *
100698
- * @param {String} entryId
100699
- * @param {Object} popupConfig
100700
- * @param {HTMLElement} sourceElement
100695
+ /**
100696
+ * Open the FEEL popup.
100697
+ *
100698
+ * @param {String} entryId
100699
+ * @param {Object} popupConfig
100700
+ * @param {HTMLElement} sourceElement
100701
100701
  */
100702
100702
  open(entryId, popupConfig, sourceElement) {
100703
100703
  return this._eventBus.fire('feelPopup._open', {
@@ -100707,8 +100707,8 @@
100707
100707
  });
100708
100708
  }
100709
100709
 
100710
- /**
100711
- * Close the FEEL popup.
100710
+ /**
100711
+ * Close the FEEL popup.
100712
100712
  */
100713
100713
  close() {
100714
100714
  return this._eventBus.fire('feelPopup._close');
@@ -107135,54 +107135,54 @@
107135
107135
  bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
107136
107136
  };
107137
107137
 
107138
- /**
107139
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
107140
- *
107141
- * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
107142
- */
107143
-
107144
- /**
107145
- *
107146
- * @param {BaseViewerOptions} options
107147
- */
107148
- function Modeler(options = {}) {
107149
- Modeler$1.call(this, options);
107150
- }
107151
-
107152
- e$5(Modeler, Modeler$1);
107153
-
107154
- /**
107155
- * @param { {
107156
- * disableAdjustOrigin?: boolean;
107157
- * disableGrid?: boolean;
107158
- * } } [options]
107159
- *
107160
- * @returns {ModuleDeclaration[]}
107161
- */
107162
- Modeler.prototype.getModules = function(options = {}) {
107163
- const modules = Modeler$1.prototype.getModules.call(this, options);
107164
-
107165
- return [
107166
- ...modules,
107167
- options.disableAdjustOrigin
107168
- ? diagramOriginModule
107169
- : alignToOriginModule,
107170
- options.disableGrid
107171
- ? {}
107172
- : index$4
107173
- ];
107174
- };
107175
-
107176
- Modeler.prototype._extensionModules = [
107177
- index$5,
107178
- ExecutableFixModule,
107179
- index$3,
107180
- index$2
107181
- ];
107182
-
107183
- Modeler.prototype._modules = [].concat(
107184
- Modeler$1.prototype._modules,
107185
- Modeler.prototype._extensionModules
107138
+ /**
107139
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
107140
+ *
107141
+ * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
107142
+ */
107143
+
107144
+ /**
107145
+ *
107146
+ * @param {BaseViewerOptions} options
107147
+ */
107148
+ function Modeler(options = {}) {
107149
+ Modeler$1.call(this, options);
107150
+ }
107151
+
107152
+ e$5(Modeler, Modeler$1);
107153
+
107154
+ /**
107155
+ * @param { {
107156
+ * disableAdjustOrigin?: boolean;
107157
+ * disableGrid?: boolean;
107158
+ * } } [options]
107159
+ *
107160
+ * @returns {ModuleDeclaration[]}
107161
+ */
107162
+ Modeler.prototype.getModules = function(options = {}) {
107163
+ const modules = Modeler$1.prototype.getModules.call(this, options);
107164
+
107165
+ return [
107166
+ ...modules,
107167
+ options.disableAdjustOrigin
107168
+ ? diagramOriginModule
107169
+ : alignToOriginModule,
107170
+ options.disableGrid
107171
+ ? {}
107172
+ : index$4
107173
+ ];
107174
+ };
107175
+
107176
+ Modeler.prototype._extensionModules = [
107177
+ index$5,
107178
+ ExecutableFixModule,
107179
+ index$3,
107180
+ index$2
107181
+ ];
107182
+
107183
+ Modeler.prototype._modules = [].concat(
107184
+ Modeler$1.prototype._modules,
107185
+ Modeler.prototype._extensionModules
107186
107186
  );
107187
107187
 
107188
107188
  return Modeler;