@bpmn-io/form-js-editor 1.14.0 → 1.14.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5535,19 +5535,19 @@ const ErrorsContext = preact.createContext({
5535
5535
  errors: {}
5536
5536
  });
5537
5537
 
5538
- /**
5539
- * @typedef {Function} <propertiesPanel.showEntry> callback
5540
- *
5541
- * @example
5542
- *
5543
- * useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
5544
- * // ...
5545
- * });
5546
- *
5547
- * @param {Object} context
5548
- * @param {boolean} [context.focus]
5549
- *
5550
- * @returns void
5538
+ /**
5539
+ * @typedef {Function} <propertiesPanel.showEntry> callback
5540
+ *
5541
+ * @example
5542
+ *
5543
+ * useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
5544
+ * // ...
5545
+ * });
5546
+ *
5547
+ * @param {Object} context
5548
+ * @param {boolean} [context.focus]
5549
+ *
5550
+ * @returns void
5551
5551
  */
5552
5552
 
5553
5553
  const EventContext = preact.createContext({
@@ -5564,20 +5564,20 @@ const TooltipContext = preact.createContext({
5564
5564
  getTooltipForId: () => {}
5565
5565
  });
5566
5566
 
5567
- /**
5568
- * Accesses the global TooltipContext and returns a tooltip for a given id and element.
5569
- *
5570
- * @example
5571
- * ```jsx
5572
- * function TextField(props) {
5573
- * const tooltip = useTooltipContext('input1', element);
5574
- * }
5575
- * ```
5576
- *
5577
- * @param {string} id
5578
- * @param {object} element
5579
- *
5580
- * @returns {string}
5567
+ /**
5568
+ * Accesses the global TooltipContext and returns a tooltip for a given id and element.
5569
+ *
5570
+ * @example
5571
+ * ```jsx
5572
+ * function TextField(props) {
5573
+ * const tooltip = useTooltipContext('input1', element);
5574
+ * }
5575
+ * ```
5576
+ *
5577
+ * @param {string} id
5578
+ * @param {object} element
5579
+ *
5580
+ * @returns {string}
5581
5581
  */
5582
5582
  function useTooltipContext(id, element) {
5583
5583
  const {
@@ -5729,20 +5729,20 @@ function prefixId$9(id) {
5729
5729
  return `bio-properties-panel-${id}`;
5730
5730
  }
5731
5731
 
5732
- /**
5733
- * Accesses the global DescriptionContext and returns a description for a given id and element.
5734
- *
5735
- * @example
5736
- * ```jsx
5737
- * function TextField(props) {
5738
- * const description = useDescriptionContext('input1', element);
5739
- * }
5740
- * ```
5741
- *
5742
- * @param {string} id
5743
- * @param {object} element
5744
- *
5745
- * @returns {string}
5732
+ /**
5733
+ * Accesses the global DescriptionContext and returns a description for a given id and element.
5734
+ *
5735
+ * @example
5736
+ * ```jsx
5737
+ * function TextField(props) {
5738
+ * const description = useDescriptionContext('input1', element);
5739
+ * }
5740
+ * ```
5741
+ *
5742
+ * @param {string} id
5743
+ * @param {object} element
5744
+ *
5745
+ * @returns {string}
5746
5746
  */
5747
5747
  function useDescriptionContext(id, element) {
5748
5748
  const {
@@ -5763,11 +5763,11 @@ function useErrors() {
5763
5763
  return errors;
5764
5764
  }
5765
5765
 
5766
- /**
5767
- * Subscribe to an event immediately. Update subscription after inputs changed.
5768
- *
5769
- * @param {string} event
5770
- * @param {Function} callback
5766
+ /**
5767
+ * Subscribe to an event immediately. Update subscription after inputs changed.
5768
+ *
5769
+ * @param {string} event
5770
+ * @param {Function} callback
5771
5771
  */
5772
5772
  function useEvent(event, callback, eventBus) {
5773
5773
  const eventContext = hooks.useContext(EventContext);
@@ -5797,20 +5797,20 @@ function useEvent(event, callback, eventBus) {
5797
5797
  }, [callback, event, eventBus]);
5798
5798
  }
5799
5799
 
5800
- /**
5801
- * Creates a state that persists in the global LayoutContext.
5802
- *
5803
- * @example
5804
- * ```jsx
5805
- * function Group(props) {
5806
- * const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
5807
- * }
5808
- * ```
5809
- *
5810
- * @param {(string|number)[]} path
5811
- * @param {any} [defaultValue]
5812
- *
5813
- * @returns {[ any, Function ]}
5800
+ /**
5801
+ * Creates a state that persists in the global LayoutContext.
5802
+ *
5803
+ * @example
5804
+ * ```jsx
5805
+ * function Group(props) {
5806
+ * const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
5807
+ * }
5808
+ * ```
5809
+ *
5810
+ * @param {(string|number)[]} path
5811
+ * @param {any} [defaultValue]
5812
+ *
5813
+ * @returns {[ any, Function ]}
5814
5814
  */
5815
5815
  function useLayoutState(path, defaultValue) {
5816
5816
  const {
@@ -5824,11 +5824,11 @@ function useLayoutState(path, defaultValue) {
5824
5824
  return [layoutForKey, setState];
5825
5825
  }
5826
5826
 
5827
- /**
5828
- * @pinussilvestrus: we need to introduce our own hook to persist the previous
5829
- * state on updates.
5830
- *
5831
- * cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
5827
+ /**
5828
+ * @pinussilvestrus: we need to introduce our own hook to persist the previous
5829
+ * state on updates.
5830
+ *
5831
+ * cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
5832
5832
  */
5833
5833
 
5834
5834
  function usePrevious(value) {
@@ -5839,12 +5839,12 @@ function usePrevious(value) {
5839
5839
  return ref.current;
5840
5840
  }
5841
5841
 
5842
- /**
5843
- * Subscribe to `propertiesPanel.showEntry`.
5844
- *
5845
- * @param {string} id
5846
- *
5847
- * @returns {import('preact').Ref}
5842
+ /**
5843
+ * Subscribe to `propertiesPanel.showEntry`.
5844
+ *
5845
+ * @param {string} id
5846
+ *
5847
+ * @returns {import('preact').Ref}
5848
5848
  */
5849
5849
  function useShowEntryEvent(id) {
5850
5850
  const {
@@ -5875,20 +5875,20 @@ function useShowEntryEvent(id) {
5875
5875
  return ref;
5876
5876
  }
5877
5877
 
5878
- /**
5879
- * @callback setSticky
5880
- * @param {boolean} value
5878
+ /**
5879
+ * @callback setSticky
5880
+ * @param {boolean} value
5881
5881
  */
5882
5882
 
5883
- /**
5884
- * Use IntersectionObserver to identify when DOM element is in sticky mode.
5885
- * If sticky is observered setSticky(true) will be called.
5886
- * If sticky mode is left, setSticky(false) will be called.
5887
- *
5888
- *
5889
- * @param {Object} ref
5890
- * @param {string} scrollContainerSelector
5891
- * @param {setSticky} setSticky
5883
+ /**
5884
+ * Use IntersectionObserver to identify when DOM element is in sticky mode.
5885
+ * If sticky is observered setSticky(true) will be called.
5886
+ * If sticky mode is left, setSticky(false) will be called.
5887
+ *
5888
+ *
5889
+ * @param {Object} ref
5890
+ * @param {string} scrollContainerSelector
5891
+ * @param {setSticky} setSticky
5892
5892
  */
5893
5893
  function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky) {
5894
5894
  const [scrollContainer, setScrollContainer] = hooks.useState(minDom.query(scrollContainerSelector));
@@ -5942,19 +5942,19 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
5942
5942
  }, [ref.current, scrollContainer, setSticky]);
5943
5943
  }
5944
5944
 
5945
- /**
5946
- * Creates a static function reference with changing body.
5947
- * This is necessary when external libraries require a callback function
5948
- * that has references to state variables.
5949
- *
5950
- * Usage:
5951
- * const callback = useStaticCallback((val) => {val === currentState});
5952
- *
5953
- * The `callback` reference is static and can be safely used in external
5954
- * libraries or as a prop that does not cause rerendering of children.
5955
- *
5956
- * @param {Function} callback function with changing reference
5957
- * @returns {Function} static function reference
5945
+ /**
5946
+ * Creates a static function reference with changing body.
5947
+ * This is necessary when external libraries require a callback function
5948
+ * that has references to state variables.
5949
+ *
5950
+ * Usage:
5951
+ * const callback = useStaticCallback((val) => {val === currentState});
5952
+ *
5953
+ * The `callback` reference is static and can be safely used in external
5954
+ * libraries or as a prop that does not cause rerendering of children.
5955
+ *
5956
+ * @param {Function} callback function with changing reference
5957
+ * @returns {Function} static function reference
5958
5958
  */
5959
5959
  function useStaticCallback(callback) {
5960
5960
  const callbackRef = hooks.useRef(callback);
@@ -6095,13 +6095,13 @@ function DataMarker(props) {
6095
6095
  return null;
6096
6096
  }
6097
6097
 
6098
- /**
6099
- * @typedef { {
6100
- * text: (element: object) => string,
6101
- * icon?: (element: Object) => import('preact').Component
6102
- * } } PlaceholderDefinition
6103
- *
6104
- * @param { PlaceholderDefinition } props
6098
+ /**
6099
+ * @typedef { {
6100
+ * text: (element: object) => string,
6101
+ * icon?: (element: Object) => import('preact').Component
6102
+ * } } PlaceholderDefinition
6103
+ *
6104
+ * @param { PlaceholderDefinition } props
6105
6105
  */
6106
6106
  function Placeholder(props) {
6107
6107
  const {
@@ -6138,9 +6138,9 @@ function Description$1(props) {
6138
6138
  }
6139
6139
  const noop$6 = () => {};
6140
6140
 
6141
- /**
6142
- * Buffer `.focus()` calls while the editor is not initialized.
6143
- * Set Focus inside when the editor is ready.
6141
+ /**
6142
+ * Buffer `.focus()` calls while the editor is not initialized.
6143
+ * Set Focus inside when the editor is ready.
6144
6144
  */
6145
6145
  const useBufferedFocus$1 = function (editor, ref) {
6146
6146
  const [buffer, setBuffer] = hooks.useState(undefined);
@@ -6240,9 +6240,9 @@ const CodeEditor$1 = React.forwardRef((props, ref) => {
6240
6240
  });
6241
6241
  const noop$5 = () => {};
6242
6242
 
6243
- /**
6244
- * Buffer `.focus()` calls while the editor is not initialized.
6245
- * Set Focus inside when the editor is ready.
6243
+ /**
6244
+ * Buffer `.focus()` calls while the editor is not initialized.
6245
+ * Set Focus inside when the editor is ready.
6246
6246
  */
6247
6247
  const useBufferedFocus = function (editor, ref) {
6248
6248
  const [buffer, setBuffer] = hooks.useState(undefined);
@@ -6291,10 +6291,10 @@ const CodeEditor = React.forwardRef((props, ref) => {
6291
6291
  hooks.useEffect(() => {
6292
6292
  let editor;
6293
6293
 
6294
- /* Trigger FEEL toggle when
6295
- *
6296
- * - `backspace` is pressed
6297
- * - AND the cursor is at the beginning of the input
6294
+ /* Trigger FEEL toggle when
6295
+ *
6296
+ * - `backspace` is pressed
6297
+ * - AND the cursor is at the beginning of the input
6298
6298
  */
6299
6299
  const onKeyDown = e => {
6300
6300
  if (e.key !== 'Backspace' || !editor) {
@@ -6383,10 +6383,10 @@ function FeelIndicator(props) {
6383
6383
  }
6384
6384
  const noop$4 = () => {};
6385
6385
 
6386
- /**
6387
- * @param {Object} props
6388
- * @param {Object} props.label
6389
- * @param {String} props.feel
6386
+ /**
6387
+ * @param {Object} props
6388
+ * @param {Object} props.label
6389
+ * @param {String} props.feel
6390
6390
  */
6391
6391
  function FeelIcon(props) {
6392
6392
  const {
@@ -6420,22 +6420,22 @@ const FeelPopupContext = preact.createContext({
6420
6420
  source: null
6421
6421
  });
6422
6422
 
6423
- /**
6424
- * Add a dragger that calls back the passed function with
6425
- * { event, delta } on drag.
6426
- *
6427
- * @example
6428
- *
6429
- * function dragMove(event, delta) {
6430
- * // we are dragging (!!)
6431
- * }
6432
- *
6433
- * domElement.addEventListener('dragstart', dragger(dragMove));
6434
- *
6435
- * @param {Function} fn
6436
- * @param {Element} [dragPreview]
6437
- *
6438
- * @return {Function} drag start callback function
6423
+ /**
6424
+ * Add a dragger that calls back the passed function with
6425
+ * { event, delta } on drag.
6426
+ *
6427
+ * @example
6428
+ *
6429
+ * function dragMove(event, delta) {
6430
+ * // we are dragging (!!)
6431
+ * }
6432
+ *
6433
+ * domElement.addEventListener('dragstart', dragger(dragMove));
6434
+ *
6435
+ * @param {Function} fn
6436
+ * @param {Element} [dragPreview]
6437
+ *
6438
+ * @return {Function} drag start callback function
6439
6439
  */
6440
6440
  function createDragger(fn, dragPreview) {
6441
6441
  let self;
@@ -6489,23 +6489,23 @@ function emptyCanvas() {
6489
6489
  }
6490
6490
  const noop$3 = () => {};
6491
6491
 
6492
- /**
6493
- * A generic popup component.
6494
- *
6495
- * @param {Object} props
6496
- * @param {HTMLElement} [props.container]
6497
- * @param {string} [props.className]
6498
- * @param {boolean} [props.delayInitialFocus]
6499
- * @param {{x: number, y: number}} [props.position]
6500
- * @param {number} [props.width]
6501
- * @param {number} [props.height]
6502
- * @param {Function} props.onClose
6503
- * @param {Function} [props.onPostActivate]
6504
- * @param {Function} [props.onPostDeactivate]
6505
- * @param {boolean} [props.returnFocus]
6506
- * @param {boolean} [props.closeOnEscape]
6507
- * @param {string} props.title
6508
- * @param {Ref} [ref]
6492
+ /**
6493
+ * A generic popup component.
6494
+ *
6495
+ * @param {Object} props
6496
+ * @param {HTMLElement} [props.container]
6497
+ * @param {string} [props.className]
6498
+ * @param {boolean} [props.delayInitialFocus]
6499
+ * @param {{x: number, y: number}} [props.position]
6500
+ * @param {number} [props.width]
6501
+ * @param {number} [props.height]
6502
+ * @param {Function} props.onClose
6503
+ * @param {Function} [props.onPostActivate]
6504
+ * @param {Function} [props.onPostDeactivate]
6505
+ * @param {boolean} [props.returnFocus]
6506
+ * @param {boolean} [props.closeOnEscape]
6507
+ * @param {string} props.title
6508
+ * @param {Ref} [ref]
6509
6509
  */
6510
6510
  function PopupComponent(props, globalRef) {
6511
6511
  const {
@@ -6723,12 +6723,12 @@ function getContainerNode(node) {
6723
6723
  const FEEL_POPUP_WIDTH = 700;
6724
6724
  const FEEL_POPUP_HEIGHT = 250;
6725
6725
 
6726
- /**
6727
- * FEEL popup component, built as a singleton. Emits lifecycle events as follows:
6728
- * - `feelPopup.open` - fired before the popup is mounted
6729
- * - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
6730
- * - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
6731
- * - `feelPopup.closed` - fired after the popup is unmounted
6726
+ /**
6727
+ * FEEL popup component, built as a singleton. Emits lifecycle events as follows:
6728
+ * - `feelPopup.open` - fired before the popup is mounted
6729
+ * - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
6730
+ * - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
6731
+ * - `feelPopup.closed` - fired after the popup is unmounted
6732
6732
  */
6733
6733
  function FEELPopupRoot(props) {
6734
6734
  const {
@@ -6955,11 +6955,11 @@ function autoCompletionOpen(element) {
6955
6955
  return element.closest('.cm-editor').querySelector('.cm-tooltip-autocomplete');
6956
6956
  }
6957
6957
 
6958
- /**
6959
- * This hook behaves like useEffect, but does not trigger on the first render.
6960
- *
6961
- * @param {Function} effect
6962
- * @param {Array} deps
6958
+ /**
6959
+ * This hook behaves like useEffect, but does not trigger on the first render.
6960
+ *
6961
+ * @param {Function} effect
6962
+ * @param {Array} deps
6963
6963
  */
6964
6964
  function useUpdateEffect(effect, deps) {
6965
6965
  const isMounted = hooks.useRef(false);
@@ -7036,19 +7036,19 @@ function ToggleSwitch(props) {
7036
7036
  });
7037
7037
  }
7038
7038
 
7039
- /**
7040
- * @param {Object} props
7041
- * @param {Object} props.element
7042
- * @param {String} props.id
7043
- * @param {String} props.description
7044
- * @param {String} props.label
7045
- * @param {String} props.switcherLabel
7046
- * @param {Boolean} props.inline
7047
- * @param {Function} props.getValue
7048
- * @param {Function} props.setValue
7049
- * @param {Function} props.onFocus
7050
- * @param {Function} props.onBlur
7051
- * @param {string|import('preact').Component} props.tooltip
7039
+ /**
7040
+ * @param {Object} props
7041
+ * @param {Object} props.element
7042
+ * @param {String} props.id
7043
+ * @param {String} props.description
7044
+ * @param {String} props.label
7045
+ * @param {String} props.switcherLabel
7046
+ * @param {Boolean} props.inline
7047
+ * @param {Function} props.getValue
7048
+ * @param {Function} props.setValue
7049
+ * @param {Function} props.onFocus
7050
+ * @param {Function} props.onBlur
7051
+ * @param {string|import('preact').Component} props.tooltip
7052
7052
  */
7053
7053
  function ToggleSwitchEntry(props) {
7054
7054
  const {
@@ -7155,22 +7155,22 @@ function NumberField(props) {
7155
7155
  });
7156
7156
  }
7157
7157
 
7158
- /**
7159
- * @param {Object} props
7160
- * @param {Boolean} props.debounce
7161
- * @param {String} props.description
7162
- * @param {Boolean} props.disabled
7163
- * @param {Object} props.element
7164
- * @param {Function} props.getValue
7165
- * @param {String} props.id
7166
- * @param {String} props.label
7167
- * @param {String} props.max
7168
- * @param {String} props.min
7169
- * @param {Function} props.setValue
7170
- * @param {Function} props.onFocus
7171
- * @param {Function} props.onBlur
7172
- * @param {String} props.step
7173
- * @param {Function} props.validate
7158
+ /**
7159
+ * @param {Object} props
7160
+ * @param {Boolean} props.debounce
7161
+ * @param {String} props.description
7162
+ * @param {Boolean} props.disabled
7163
+ * @param {Object} props.element
7164
+ * @param {Function} props.getValue
7165
+ * @param {String} props.id
7166
+ * @param {String} props.label
7167
+ * @param {String} props.max
7168
+ * @param {String} props.min
7169
+ * @param {Function} props.setValue
7170
+ * @param {Function} props.onFocus
7171
+ * @param {Function} props.onBlur
7172
+ * @param {String} props.step
7173
+ * @param {Function} props.validate
7174
7174
  */
7175
7175
  function NumberFieldEntry(props) {
7176
7176
  const {
@@ -7655,26 +7655,26 @@ React.forwardRef((props, ref) => {
7655
7655
  });
7656
7656
  });
7657
7657
 
7658
- /**
7659
- * @param {Object} props
7660
- * @param {Object} props.element
7661
- * @param {String} props.id
7662
- * @param {String} props.description
7663
- * @param {Boolean} props.debounce
7664
- * @param {Boolean} props.disabled
7665
- * @param {Boolean} props.feel
7666
- * @param {String} props.label
7667
- * @param {Function} props.getValue
7668
- * @param {Function} props.setValue
7669
- * @param {Function} props.tooltipContainer
7670
- * @param {Function} props.validate
7671
- * @param {Function} props.show
7672
- * @param {Function} props.example
7673
- * @param {Function} props.variables
7674
- * @param {Function} props.onFocus
7675
- * @param {Function} props.onBlur
7676
- * @param {string} [props.placeholder]
7677
- * @param {string|import('preact').Component} props.tooltip
7658
+ /**
7659
+ * @param {Object} props
7660
+ * @param {Object} props.element
7661
+ * @param {String} props.id
7662
+ * @param {String} props.description
7663
+ * @param {Boolean} props.debounce
7664
+ * @param {Boolean} props.disabled
7665
+ * @param {Boolean} props.feel
7666
+ * @param {String} props.label
7667
+ * @param {Function} props.getValue
7668
+ * @param {Function} props.setValue
7669
+ * @param {Function} props.tooltipContainer
7670
+ * @param {Function} props.validate
7671
+ * @param {Function} props.show
7672
+ * @param {Function} props.example
7673
+ * @param {Function} props.variables
7674
+ * @param {Function} props.onFocus
7675
+ * @param {Function} props.onBlur
7676
+ * @param {string} [props.placeholder]
7677
+ * @param {string|import('preact').Component} props.tooltip
7678
7678
  */
7679
7679
  function FeelEntry(props) {
7680
7680
  const {
@@ -7761,27 +7761,27 @@ function FeelEntry(props) {
7761
7761
  });
7762
7762
  }
7763
7763
 
7764
- /**
7765
- * @param {Object} props
7766
- * @param {Object} props.element
7767
- * @param {String} props.id
7768
- * @param {String} props.description
7769
- * @param {Boolean} props.debounce
7770
- * @param {Boolean} props.disabled
7771
- * @param {String} props.max
7772
- * @param {String} props.min
7773
- * @param {String} props.step
7774
- * @param {Boolean} props.feel
7775
- * @param {String} props.label
7776
- * @param {Function} props.getValue
7777
- * @param {Function} props.setValue
7778
- * @param {Function} props.tooltipContainer
7779
- * @param {Function} props.validate
7780
- * @param {Function} props.show
7781
- * @param {Function} props.example
7782
- * @param {Function} props.variables
7783
- * @param {Function} props.onFocus
7784
- * @param {Function} props.onBlur
7764
+ /**
7765
+ * @param {Object} props
7766
+ * @param {Object} props.element
7767
+ * @param {String} props.id
7768
+ * @param {String} props.description
7769
+ * @param {Boolean} props.debounce
7770
+ * @param {Boolean} props.disabled
7771
+ * @param {String} props.max
7772
+ * @param {String} props.min
7773
+ * @param {String} props.step
7774
+ * @param {Boolean} props.feel
7775
+ * @param {String} props.label
7776
+ * @param {Function} props.getValue
7777
+ * @param {Function} props.setValue
7778
+ * @param {Function} props.tooltipContainer
7779
+ * @param {Function} props.validate
7780
+ * @param {Function} props.show
7781
+ * @param {Function} props.example
7782
+ * @param {Function} props.variables
7783
+ * @param {Function} props.onFocus
7784
+ * @param {Function} props.onBlur
7785
7785
  */
7786
7786
  function FeelNumberEntry(props) {
7787
7787
  return jsxRuntime.jsx(FeelEntry, {
@@ -7791,24 +7791,24 @@ function FeelNumberEntry(props) {
7791
7791
  });
7792
7792
  }
7793
7793
 
7794
- /**
7795
- * @param {Object} props
7796
- * @param {Object} props.element
7797
- * @param {String} props.id
7798
- * @param {String} props.description
7799
- * @param {Boolean} props.debounce
7800
- * @param {Boolean} props.disabled
7801
- * @param {Boolean} props.feel
7802
- * @param {String} props.label
7803
- * @param {Function} props.getValue
7804
- * @param {Function} props.setValue
7805
- * @param {Function} props.tooltipContainer
7806
- * @param {Function} props.validate
7807
- * @param {Function} props.show
7808
- * @param {Function} props.example
7809
- * @param {Function} props.variables
7810
- * @param {Function} props.onFocus
7811
- * @param {Function} props.onBlur
7794
+ /**
7795
+ * @param {Object} props
7796
+ * @param {Object} props.element
7797
+ * @param {String} props.id
7798
+ * @param {String} props.description
7799
+ * @param {Boolean} props.debounce
7800
+ * @param {Boolean} props.disabled
7801
+ * @param {Boolean} props.feel
7802
+ * @param {String} props.label
7803
+ * @param {Function} props.getValue
7804
+ * @param {Function} props.setValue
7805
+ * @param {Function} props.tooltipContainer
7806
+ * @param {Function} props.validate
7807
+ * @param {Function} props.show
7808
+ * @param {Function} props.example
7809
+ * @param {Function} props.variables
7810
+ * @param {Function} props.onFocus
7811
+ * @param {Function} props.onBlur
7812
7812
  */
7813
7813
  function FeelToggleSwitchEntry(props) {
7814
7814
  return jsxRuntime.jsx(FeelEntry, {
@@ -7818,26 +7818,26 @@ function FeelToggleSwitchEntry(props) {
7818
7818
  });
7819
7819
  }
7820
7820
 
7821
- /**
7822
- * @param {Object} props
7823
- * @param {Object} props.element
7824
- * @param {String} props.id
7825
- * @param {String} props.description
7826
- * @param {String} props.hostLanguage
7827
- * @param {Boolean} props.singleLine
7828
- * @param {Boolean} props.debounce
7829
- * @param {Boolean} props.disabled
7830
- * @param {Boolean} props.feel
7831
- * @param {String} props.label
7832
- * @param {Function} props.getValue
7833
- * @param {Function} props.setValue
7834
- * @param {Function} props.tooltipContainer
7835
- * @param {Function} props.validate
7836
- * @param {Function} props.show
7837
- * @param {Function} props.example
7838
- * @param {Function} props.variables
7839
- * @param {Function} props.onFocus
7840
- * @param {Function} props.onBlur
7821
+ /**
7822
+ * @param {Object} props
7823
+ * @param {Object} props.element
7824
+ * @param {String} props.id
7825
+ * @param {String} props.description
7826
+ * @param {String} props.hostLanguage
7827
+ * @param {Boolean} props.singleLine
7828
+ * @param {Boolean} props.debounce
7829
+ * @param {Boolean} props.disabled
7830
+ * @param {Boolean} props.feel
7831
+ * @param {String} props.label
7832
+ * @param {Function} props.getValue
7833
+ * @param {Function} props.setValue
7834
+ * @param {Function} props.tooltipContainer
7835
+ * @param {Function} props.validate
7836
+ * @param {Function} props.show
7837
+ * @param {Function} props.example
7838
+ * @param {Function} props.variables
7839
+ * @param {Function} props.onFocus
7840
+ * @param {Function} props.onBlur
7841
7841
  */
7842
7842
  function FeelTemplatingEntry(props) {
7843
7843
  return jsxRuntime.jsx(FeelEntry, {
@@ -7905,85 +7905,85 @@ const DEFAULT_LAYOUT = {};
7905
7905
  const DEFAULT_DESCRIPTION = {};
7906
7906
  const DEFAULT_TOOLTIP = {};
7907
7907
 
7908
- /**
7909
- * @typedef { {
7910
- * component: import('preact').Component,
7911
- * id: String,
7912
- * isEdited?: Function
7913
- * } } EntryDefinition
7914
- *
7915
- * @typedef { {
7916
- * autoFocusEntry: String,
7917
- * autoOpen?: Boolean,
7918
- * entries: Array<EntryDefinition>,
7919
- * id: String,
7920
- * label: String,
7921
- * remove: (event: MouseEvent) => void
7922
- * } } ListItemDefinition
7923
- *
7924
- * @typedef { {
7925
- * add: (event: MouseEvent) => void,
7926
- * component: import('preact').Component,
7927
- * element: Object,
7928
- * id: String,
7929
- * items: Array<ListItemDefinition>,
7930
- * label: String,
7931
- * shouldOpen?: Boolean
7932
- * } } ListGroupDefinition
7933
- *
7934
- * @typedef { {
7935
- * component?: import('preact').Component,
7936
- * entries: Array<EntryDefinition>,
7937
- * id: String,
7938
- * label: String,
7939
- * shouldOpen?: Boolean
7940
- * } } GroupDefinition
7941
- *
7942
- * @typedef { {
7943
- * [id: String]: GetDescriptionFunction
7944
- * } } DescriptionConfig
7945
- *
7946
- * @typedef { {
7947
- * [id: String]: GetTooltipFunction
7948
- * } } TooltipConfig
7949
- *
7950
- * @callback { {
7951
- * @param {string} id
7952
- * @param {Object} element
7953
- * @returns {string}
7954
- * } } GetDescriptionFunction
7955
- *
7956
- * @callback { {
7957
- * @param {string} id
7958
- * @param {Object} element
7959
- * @returns {string}
7960
- * } } GetTooltipFunction
7961
- *
7962
- * @typedef { {
7963
- * getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
7964
- * getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
7965
- * } } PlaceholderProvider
7966
- *
7908
+ /**
7909
+ * @typedef { {
7910
+ * component: import('preact').Component,
7911
+ * id: String,
7912
+ * isEdited?: Function
7913
+ * } } EntryDefinition
7914
+ *
7915
+ * @typedef { {
7916
+ * autoFocusEntry: String,
7917
+ * autoOpen?: Boolean,
7918
+ * entries: Array<EntryDefinition>,
7919
+ * id: String,
7920
+ * label: String,
7921
+ * remove: (event: MouseEvent) => void
7922
+ * } } ListItemDefinition
7923
+ *
7924
+ * @typedef { {
7925
+ * add: (event: MouseEvent) => void,
7926
+ * component: import('preact').Component,
7927
+ * element: Object,
7928
+ * id: String,
7929
+ * items: Array<ListItemDefinition>,
7930
+ * label: String,
7931
+ * shouldOpen?: Boolean
7932
+ * } } ListGroupDefinition
7933
+ *
7934
+ * @typedef { {
7935
+ * component?: import('preact').Component,
7936
+ * entries: Array<EntryDefinition>,
7937
+ * id: String,
7938
+ * label: String,
7939
+ * shouldOpen?: Boolean
7940
+ * } } GroupDefinition
7941
+ *
7942
+ * @typedef { {
7943
+ * [id: String]: GetDescriptionFunction
7944
+ * } } DescriptionConfig
7945
+ *
7946
+ * @typedef { {
7947
+ * [id: String]: GetTooltipFunction
7948
+ * } } TooltipConfig
7949
+ *
7950
+ * @callback { {
7951
+ * @param {string} id
7952
+ * @param {Object} element
7953
+ * @returns {string}
7954
+ * } } GetDescriptionFunction
7955
+ *
7956
+ * @callback { {
7957
+ * @param {string} id
7958
+ * @param {Object} element
7959
+ * @returns {string}
7960
+ * } } GetTooltipFunction
7961
+ *
7962
+ * @typedef { {
7963
+ * getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
7964
+ * getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
7965
+ * } } PlaceholderProvider
7966
+ *
7967
7967
  */
7968
7968
 
7969
- /**
7970
- * A basic properties panel component. Describes *how* content will be rendered, accepts
7971
- * data from implementor to describe *what* will be rendered.
7972
- *
7973
- * @param {Object} props
7974
- * @param {Object|Array} props.element
7975
- * @param {import('./components/Header').HeaderProvider} props.headerProvider
7976
- * @param {PlaceholderProvider} [props.placeholderProvider]
7977
- * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
7978
- * @param {Object} [props.layoutConfig]
7979
- * @param {Function} [props.layoutChanged]
7980
- * @param {DescriptionConfig} [props.descriptionConfig]
7981
- * @param {Function} [props.descriptionLoaded]
7982
- * @param {TooltipConfig} [props.tooltipConfig]
7983
- * @param {Function} [props.tooltipLoaded]
7984
- * @param {HTMLElement} [props.feelPopupContainer]
7985
- * @param {Function} [props.getFeelPopupLinks]
7986
- * @param {Object} [props.eventBus]
7969
+ /**
7970
+ * A basic properties panel component. Describes *how* content will be rendered, accepts
7971
+ * data from implementor to describe *what* will be rendered.
7972
+ *
7973
+ * @param {Object} props
7974
+ * @param {Object|Array} props.element
7975
+ * @param {import('./components/Header').HeaderProvider} props.headerProvider
7976
+ * @param {PlaceholderProvider} [props.placeholderProvider]
7977
+ * @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
7978
+ * @param {Object} [props.layoutConfig]
7979
+ * @param {Function} [props.layoutChanged]
7980
+ * @param {DescriptionConfig} [props.descriptionConfig]
7981
+ * @param {Function} [props.descriptionLoaded]
7982
+ * @param {TooltipConfig} [props.tooltipConfig]
7983
+ * @param {Function} [props.tooltipLoaded]
7984
+ * @param {HTMLElement} [props.feelPopupContainer]
7985
+ * @param {Function} [props.getFeelPopupLinks]
7986
+ * @param {Object} [props.eventBus]
7987
7987
  */
7988
7988
  function PropertiesPanel$1(props) {
7989
7989
  const {
@@ -8156,11 +8156,11 @@ function createTooltipContext(overrides = {}) {
8156
8156
 
8157
8157
  // hooks //////////////////
8158
8158
 
8159
- /**
8160
- * This hook behaves like useLayoutEffect, but does not trigger on the first render.
8161
- *
8162
- * @param {Function} effect
8163
- * @param {Array} deps
8159
+ /**
8160
+ * This hook behaves like useLayoutEffect, but does not trigger on the first render.
8161
+ *
8162
+ * @param {Function} effect
8163
+ * @param {Array} deps
8164
8164
  */
8165
8165
  function useUpdateLayoutEffect(effect, deps) {
8166
8166
  const isMounted = hooks.useRef(false);
@@ -8173,20 +8173,20 @@ function useUpdateLayoutEffect(effect, deps) {
8173
8173
  }, deps);
8174
8174
  }
8175
8175
 
8176
- /**
8177
- * @typedef { {
8178
- * [key: string]: string;
8179
- * } } TranslateReplacements
8176
+ /**
8177
+ * @typedef { {
8178
+ * [key: string]: string;
8179
+ * } } TranslateReplacements
8180
8180
  */
8181
8181
 
8182
- /**
8183
- * A simple translation stub to be used for multi-language support.
8184
- * Can be easily replaced with a more sophisticated solution.
8185
- *
8186
- * @param {string} template to interpolate
8187
- * @param {TranslateReplacements} [replacements] a map with substitutes
8188
- *
8189
- * @return {string} the translated string
8182
+ /**
8183
+ * A simple translation stub to be used for multi-language support.
8184
+ * Can be easily replaced with a more sophisticated solution.
8185
+ *
8186
+ * @param {string} template to interpolate
8187
+ * @param {TranslateReplacements} [replacements] a map with substitutes
8188
+ *
8189
+ * @return {string} the translated string
8190
8190
  */
8191
8191
  function translateFallback(template, replacements) {
8192
8192
  replacements = replacements || {};
@@ -8295,8 +8295,8 @@ function ListItem(props) {
8295
8295
  }
8296
8296
  const noop$1 = () => {};
8297
8297
 
8298
- /**
8299
- * @param {import('../PropertiesPanel').ListGroupDefinition} props
8298
+ /**
8299
+ * @param {import('../PropertiesPanel').ListGroupDefinition} props
8300
8300
  */
8301
8301
  function ListGroup(props) {
8302
8302
  const {
@@ -8487,18 +8487,18 @@ function Checkbox(props) {
8487
8487
  });
8488
8488
  }
8489
8489
 
8490
- /**
8491
- * @param {Object} props
8492
- * @param {Object} props.element
8493
- * @param {String} props.id
8494
- * @param {String} props.description
8495
- * @param {String} props.label
8496
- * @param {Function} props.getValue
8497
- * @param {Function} props.setValue
8498
- * @param {Function} props.onFocus
8499
- * @param {Function} props.onBlur
8500
- * @param {string|import('preact').Component} props.tooltip
8501
- * @param {boolean} [props.disabled]
8490
+ /**
8491
+ * @param {Object} props
8492
+ * @param {Object} props.element
8493
+ * @param {String} props.id
8494
+ * @param {String} props.description
8495
+ * @param {String} props.label
8496
+ * @param {Function} props.getValue
8497
+ * @param {Function} props.setValue
8498
+ * @param {Function} props.onFocus
8499
+ * @param {Function} props.onBlur
8500
+ * @param {string|import('preact').Component} props.tooltip
8501
+ * @param {boolean} [props.disabled]
8502
8502
  */
8503
8503
  function CheckboxEntry(props) {
8504
8504
  const {
@@ -8618,20 +8618,20 @@ function Select(props) {
8618
8618
  });
8619
8619
  }
8620
8620
 
8621
- /**
8622
- * @param {object} props
8623
- * @param {object} props.element
8624
- * @param {string} props.id
8625
- * @param {string} [props.description]
8626
- * @param {string} props.label
8627
- * @param {Function} props.getValue
8628
- * @param {Function} props.setValue
8629
- * @param {Function} props.onFocus
8630
- * @param {Function} props.onBlur
8631
- * @param {Function} props.getOptions
8632
- * @param {boolean} [props.disabled]
8633
- * @param {Function} [props.validate]
8634
- * @param {string|import('preact').Component} props.tooltip
8621
+ /**
8622
+ * @param {object} props
8623
+ * @param {object} props.element
8624
+ * @param {string} props.id
8625
+ * @param {string} [props.description]
8626
+ * @param {string} props.label
8627
+ * @param {Function} props.getValue
8628
+ * @param {Function} props.setValue
8629
+ * @param {Function} props.onFocus
8630
+ * @param {Function} props.onBlur
8631
+ * @param {Function} props.getOptions
8632
+ * @param {boolean} [props.disabled]
8633
+ * @param {Function} [props.validate]
8634
+ * @param {string|import('preact').Component} props.tooltip
8635
8635
  */
8636
8636
  function SelectEntry(props) {
8637
8637
  const {
@@ -8922,20 +8922,20 @@ function Textfield(props) {
8922
8922
  });
8923
8923
  }
8924
8924
 
8925
- /**
8926
- * @param {Object} props
8927
- * @param {Object} props.element
8928
- * @param {String} props.id
8929
- * @param {String} props.description
8930
- * @param {Boolean} props.debounce
8931
- * @param {Boolean} props.disabled
8932
- * @param {String} props.label
8933
- * @param {Function} props.getValue
8934
- * @param {Function} props.setValue
8935
- * @param {Function} props.onFocus
8936
- * @param {Function} props.onBlur
8937
- * @param {string|import('preact').Component} props.tooltip
8938
- * @param {Function} props.validate
8925
+ /**
8926
+ * @param {Object} props
8927
+ * @param {Object} props.element
8928
+ * @param {String} props.id
8929
+ * @param {String} props.description
8930
+ * @param {Boolean} props.debounce
8931
+ * @param {Boolean} props.disabled
8932
+ * @param {String} props.label
8933
+ * @param {Function} props.getValue
8934
+ * @param {Function} props.setValue
8935
+ * @param {Function} props.onFocus
8936
+ * @param {Function} props.onBlur
8937
+ * @param {string|import('preact').Component} props.tooltip
8938
+ * @param {Function} props.validate
8939
8939
  */
8940
8940
  function TextfieldEntry(props) {
8941
8941
  const {
@@ -9010,20 +9010,20 @@ class FeelPopupModule {
9010
9010
  this._eventBus = eventBus;
9011
9011
  }
9012
9012
 
9013
- /**
9014
- * Check if the FEEL popup is open.
9015
- * @return {Boolean}
9013
+ /**
9014
+ * Check if the FEEL popup is open.
9015
+ * @return {Boolean}
9016
9016
  */
9017
9017
  isOpen() {
9018
9018
  return this._eventBus.fire('feelPopup._isOpen');
9019
9019
  }
9020
9020
 
9021
- /**
9022
- * Open the FEEL popup.
9023
- *
9024
- * @param {String} entryId
9025
- * @param {Object} popupConfig
9026
- * @param {HTMLElement} sourceElement
9021
+ /**
9022
+ * Open the FEEL popup.
9023
+ *
9024
+ * @param {String} entryId
9025
+ * @param {Object} popupConfig
9026
+ * @param {HTMLElement} sourceElement
9027
9027
  */
9028
9028
  open(entryId, popupConfig, sourceElement) {
9029
9029
  return this._eventBus.fire('feelPopup._open', {
@@ -9033,8 +9033,8 @@ class FeelPopupModule {
9033
9033
  });
9034
9034
  }
9035
9035
 
9036
- /**
9037
- * Close the FEEL popup.
9036
+ /**
9037
+ * Close the FEEL popup.
9038
9038
  */
9039
9039
  close() {
9040
9040
  return this._eventBus.fire('feelPopup._close');
@@ -9448,7 +9448,7 @@ function Columns(props) {
9448
9448
  editField,
9449
9449
  id
9450
9450
  } = props;
9451
- const debounce = useService('debounce');
9451
+ useService('debounce');
9452
9452
  const formLayoutValidator = useService('formLayoutValidator');
9453
9453
  const validate = hooks.useCallback(value => {
9454
9454
  return formLayoutValidator.validateField(field, value ? parseInt(value) : null);
@@ -9474,7 +9474,6 @@ function Columns(props) {
9474
9474
  ...asArray(16).filter(i => i >= MIN_COLUMNS).map(asOption)];
9475
9475
  };
9476
9476
  return SelectEntry({
9477
- debounce,
9478
9477
  element: field,
9479
9478
  id,
9480
9479
  label: 'Columns',
@@ -11954,7 +11953,6 @@ function RepeatableEntry(props) {
11954
11953
  path: ['nonCollapsedItems'],
11955
11954
  label: 'Number of non-collapsing items',
11956
11955
  min: 1,
11957
- defaultValue: 5,
11958
11956
  props
11959
11957
  });
11960
11958
  entries.push(nonCollapseItemsEntry);
@@ -12996,13 +12994,9 @@ function GeneralGroup(field, editField, getService) {
12996
12994
  editField
12997
12995
  }), ...TextEntry({
12998
12996
  field,
12999
- editField,
13000
- getService
13001
- }), ...HtmlEntry({
12997
+ editField}), ...HtmlEntry({
13002
12998
  field,
13003
- editField,
13004
- getService
13005
- }), ...IFrameUrlEntry({
12999
+ editField}), ...IFrameUrlEntry({
13006
13000
  field,
13007
13001
  editField
13008
13002
  }), ...IFrameHeightEntry({
@@ -13324,12 +13318,11 @@ function ValidationType(props) {
13324
13318
  id,
13325
13319
  onChange
13326
13320
  } = props;
13327
- const debounce = useService('debounce');
13321
+ useService('debounce');
13328
13322
  const setValue = validationType => {
13329
13323
  onChange('validationType')(validationType || undefined);
13330
13324
  };
13331
13325
  return SelectEntry({
13332
- debounce,
13333
13326
  element: field,
13334
13327
  getValue: getValue('validationType'),
13335
13328
  id,