camunda-bpmn-js 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/properties-panel.css +1517 -1509
- package/dist/base-modeler.development.js +290 -290
- package/dist/camunda-cloud-modeler.development.js +421 -421
- package/dist/camunda-platform-modeler.development.js +343 -343
- package/package.json +2 -2
|
@@ -98679,19 +98679,19 @@
|
|
|
98679
98679
|
errors: {}
|
|
98680
98680
|
});
|
|
98681
98681
|
|
|
98682
|
-
/**
|
|
98683
|
-
* @typedef {Function} <propertiesPanel.showEntry> callback
|
|
98684
|
-
*
|
|
98685
|
-
* @example
|
|
98686
|
-
*
|
|
98687
|
-
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
|
|
98688
|
-
* // ...
|
|
98689
|
-
* });
|
|
98690
|
-
*
|
|
98691
|
-
* @param {Object} context
|
|
98692
|
-
* @param {boolean} [context.focus]
|
|
98693
|
-
*
|
|
98694
|
-
* @returns void
|
|
98682
|
+
/**
|
|
98683
|
+
* @typedef {Function} <propertiesPanel.showEntry> callback
|
|
98684
|
+
*
|
|
98685
|
+
* @example
|
|
98686
|
+
*
|
|
98687
|
+
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
|
|
98688
|
+
* // ...
|
|
98689
|
+
* });
|
|
98690
|
+
*
|
|
98691
|
+
* @param {Object} context
|
|
98692
|
+
* @param {boolean} [context.focus]
|
|
98693
|
+
*
|
|
98694
|
+
* @returns void
|
|
98695
98695
|
*/
|
|
98696
98696
|
|
|
98697
98697
|
const EventContext = F$2({
|
|
@@ -98710,20 +98710,20 @@
|
|
|
98710
98710
|
getTooltipForId: () => {}
|
|
98711
98711
|
});
|
|
98712
98712
|
|
|
98713
|
-
/**
|
|
98714
|
-
* Accesses the global TooltipContext and returns a tooltip for a given id and element.
|
|
98715
|
-
*
|
|
98716
|
-
* @example
|
|
98717
|
-
* ```jsx
|
|
98718
|
-
* function TextField(props) {
|
|
98719
|
-
* const tooltip = useTooltipContext('input1', element);
|
|
98720
|
-
* }
|
|
98721
|
-
* ```
|
|
98722
|
-
*
|
|
98723
|
-
* @param {string} id
|
|
98724
|
-
* @param {object} element
|
|
98725
|
-
*
|
|
98726
|
-
* @returns {string}
|
|
98713
|
+
/**
|
|
98714
|
+
* Accesses the global TooltipContext and returns a tooltip for a given id and element.
|
|
98715
|
+
*
|
|
98716
|
+
* @example
|
|
98717
|
+
* ```jsx
|
|
98718
|
+
* function TextField(props) {
|
|
98719
|
+
* const tooltip = useTooltipContext('input1', element);
|
|
98720
|
+
* }
|
|
98721
|
+
* ```
|
|
98722
|
+
*
|
|
98723
|
+
* @param {string} id
|
|
98724
|
+
* @param {object} element
|
|
98725
|
+
*
|
|
98726
|
+
* @returns {string}
|
|
98727
98727
|
*/
|
|
98728
98728
|
function useTooltipContext(id, element) {
|
|
98729
98729
|
const {
|
|
@@ -98876,20 +98876,20 @@
|
|
|
98876
98876
|
return `bio-properties-panel-${id}`;
|
|
98877
98877
|
}
|
|
98878
98878
|
|
|
98879
|
-
/**
|
|
98880
|
-
* Accesses the global DescriptionContext and returns a description for a given id and element.
|
|
98881
|
-
*
|
|
98882
|
-
* @example
|
|
98883
|
-
* ```jsx
|
|
98884
|
-
* function TextField(props) {
|
|
98885
|
-
* const description = useDescriptionContext('input1', element);
|
|
98886
|
-
* }
|
|
98887
|
-
* ```
|
|
98888
|
-
*
|
|
98889
|
-
* @param {string} id
|
|
98890
|
-
* @param {object} element
|
|
98891
|
-
*
|
|
98892
|
-
* @returns {string}
|
|
98879
|
+
/**
|
|
98880
|
+
* Accesses the global DescriptionContext and returns a description for a given id and element.
|
|
98881
|
+
*
|
|
98882
|
+
* @example
|
|
98883
|
+
* ```jsx
|
|
98884
|
+
* function TextField(props) {
|
|
98885
|
+
* const description = useDescriptionContext('input1', element);
|
|
98886
|
+
* }
|
|
98887
|
+
* ```
|
|
98888
|
+
*
|
|
98889
|
+
* @param {string} id
|
|
98890
|
+
* @param {object} element
|
|
98891
|
+
*
|
|
98892
|
+
* @returns {string}
|
|
98893
98893
|
*/
|
|
98894
98894
|
function useDescriptionContext(id, element) {
|
|
98895
98895
|
const {
|
|
@@ -98911,11 +98911,11 @@
|
|
|
98911
98911
|
return errors;
|
|
98912
98912
|
}
|
|
98913
98913
|
|
|
98914
|
-
/**
|
|
98915
|
-
* Subscribe to an event immediately. Update subscription after inputs changed.
|
|
98916
|
-
*
|
|
98917
|
-
* @param {string} event
|
|
98918
|
-
* @param {Function} callback
|
|
98914
|
+
/**
|
|
98915
|
+
* Subscribe to an event immediately. Update subscription after inputs changed.
|
|
98916
|
+
*
|
|
98917
|
+
* @param {string} event
|
|
98918
|
+
* @param {Function} callback
|
|
98919
98919
|
*/
|
|
98920
98920
|
function useEvent(event, callback, eventBus) {
|
|
98921
98921
|
const eventContext = q$1(EventContext);
|
|
@@ -98945,20 +98945,20 @@
|
|
|
98945
98945
|
}, [callback, event, eventBus]);
|
|
98946
98946
|
}
|
|
98947
98947
|
|
|
98948
|
-
/**
|
|
98949
|
-
* Creates a state that persists in the global LayoutContext.
|
|
98950
|
-
*
|
|
98951
|
-
* @example
|
|
98952
|
-
* ```jsx
|
|
98953
|
-
* function Group(props) {
|
|
98954
|
-
* const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
|
|
98955
|
-
* }
|
|
98956
|
-
* ```
|
|
98957
|
-
*
|
|
98958
|
-
* @param {(string|number)[]} path
|
|
98959
|
-
* @param {any} [defaultValue]
|
|
98960
|
-
*
|
|
98961
|
-
* @returns {[ any, Function ]}
|
|
98948
|
+
/**
|
|
98949
|
+
* Creates a state that persists in the global LayoutContext.
|
|
98950
|
+
*
|
|
98951
|
+
* @example
|
|
98952
|
+
* ```jsx
|
|
98953
|
+
* function Group(props) {
|
|
98954
|
+
* const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
|
|
98955
|
+
* }
|
|
98956
|
+
* ```
|
|
98957
|
+
*
|
|
98958
|
+
* @param {(string|number)[]} path
|
|
98959
|
+
* @param {any} [defaultValue]
|
|
98960
|
+
*
|
|
98961
|
+
* @returns {[ any, Function ]}
|
|
98962
98962
|
*/
|
|
98963
98963
|
function useLayoutState(path, defaultValue) {
|
|
98964
98964
|
const {
|
|
@@ -98972,11 +98972,11 @@
|
|
|
98972
98972
|
return [layoutForKey, setState];
|
|
98973
98973
|
}
|
|
98974
98974
|
|
|
98975
|
-
/**
|
|
98976
|
-
* @pinussilvestrus: we need to introduce our own hook to persist the previous
|
|
98977
|
-
* state on updates.
|
|
98978
|
-
*
|
|
98979
|
-
* cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
98975
|
+
/**
|
|
98976
|
+
* @pinussilvestrus: we need to introduce our own hook to persist the previous
|
|
98977
|
+
* state on updates.
|
|
98978
|
+
*
|
|
98979
|
+
* cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
98980
98980
|
*/
|
|
98981
98981
|
|
|
98982
98982
|
function usePrevious(value) {
|
|
@@ -98987,12 +98987,12 @@
|
|
|
98987
98987
|
return ref.current;
|
|
98988
98988
|
}
|
|
98989
98989
|
|
|
98990
|
-
/**
|
|
98991
|
-
* Subscribe to `propertiesPanel.showEntry`.
|
|
98992
|
-
*
|
|
98993
|
-
* @param {string} id
|
|
98994
|
-
*
|
|
98995
|
-
* @returns {import('preact').Ref}
|
|
98990
|
+
/**
|
|
98991
|
+
* Subscribe to `propertiesPanel.showEntry`.
|
|
98992
|
+
*
|
|
98993
|
+
* @param {string} id
|
|
98994
|
+
*
|
|
98995
|
+
* @returns {import('preact').Ref}
|
|
98996
98996
|
*/
|
|
98997
98997
|
function useShowEntryEvent(id) {
|
|
98998
98998
|
const {
|
|
@@ -99023,20 +99023,20 @@
|
|
|
99023
99023
|
return ref;
|
|
99024
99024
|
}
|
|
99025
99025
|
|
|
99026
|
-
/**
|
|
99027
|
-
* @callback setSticky
|
|
99028
|
-
* @param {boolean} value
|
|
99026
|
+
/**
|
|
99027
|
+
* @callback setSticky
|
|
99028
|
+
* @param {boolean} value
|
|
99029
99029
|
*/
|
|
99030
99030
|
|
|
99031
|
-
/**
|
|
99032
|
-
* Use IntersectionObserver to identify when DOM element is in sticky mode.
|
|
99033
|
-
* If sticky is observered setSticky(true) will be called.
|
|
99034
|
-
* If sticky mode is left, setSticky(false) will be called.
|
|
99035
|
-
*
|
|
99036
|
-
*
|
|
99037
|
-
* @param {Object} ref
|
|
99038
|
-
* @param {string} scrollContainerSelector
|
|
99039
|
-
* @param {setSticky} setSticky
|
|
99031
|
+
/**
|
|
99032
|
+
* Use IntersectionObserver to identify when DOM element is in sticky mode.
|
|
99033
|
+
* If sticky is observered setSticky(true) will be called.
|
|
99034
|
+
* If sticky mode is left, setSticky(false) will be called.
|
|
99035
|
+
*
|
|
99036
|
+
*
|
|
99037
|
+
* @param {Object} ref
|
|
99038
|
+
* @param {string} scrollContainerSelector
|
|
99039
|
+
* @param {setSticky} setSticky
|
|
99040
99040
|
*/
|
|
99041
99041
|
function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky) {
|
|
99042
99042
|
const [scrollContainer, setScrollContainer] = h(query(scrollContainerSelector));
|
|
@@ -99090,19 +99090,19 @@
|
|
|
99090
99090
|
}, [ref.current, scrollContainer, setSticky]);
|
|
99091
99091
|
}
|
|
99092
99092
|
|
|
99093
|
-
/**
|
|
99094
|
-
* Creates a static function reference with changing body.
|
|
99095
|
-
* This is necessary when external libraries require a callback function
|
|
99096
|
-
* that has references to state variables.
|
|
99097
|
-
*
|
|
99098
|
-
* Usage:
|
|
99099
|
-
* const callback = useStaticCallback((val) => {val === currentState});
|
|
99100
|
-
*
|
|
99101
|
-
* The `callback` reference is static and can be safely used in external
|
|
99102
|
-
* libraries or as a prop that does not cause rerendering of children.
|
|
99103
|
-
*
|
|
99104
|
-
* @param {Function} callback function with changing reference
|
|
99105
|
-
* @returns {Function} static function reference
|
|
99093
|
+
/**
|
|
99094
|
+
* Creates a static function reference with changing body.
|
|
99095
|
+
* This is necessary when external libraries require a callback function
|
|
99096
|
+
* that has references to state variables.
|
|
99097
|
+
*
|
|
99098
|
+
* Usage:
|
|
99099
|
+
* const callback = useStaticCallback((val) => {val === currentState});
|
|
99100
|
+
*
|
|
99101
|
+
* The `callback` reference is static and can be safely used in external
|
|
99102
|
+
* libraries or as a prop that does not cause rerendering of children.
|
|
99103
|
+
*
|
|
99104
|
+
* @param {Function} callback function with changing reference
|
|
99105
|
+
* @returns {Function} static function reference
|
|
99106
99106
|
*/
|
|
99107
99107
|
function useStaticCallback(callback) {
|
|
99108
99108
|
const callbackRef = _(callback);
|
|
@@ -99245,13 +99245,13 @@
|
|
|
99245
99245
|
return null;
|
|
99246
99246
|
}
|
|
99247
99247
|
|
|
99248
|
-
/**
|
|
99249
|
-
* @typedef { {
|
|
99250
|
-
* text: (element: object) => string,
|
|
99251
|
-
* icon?: (element: Object) => import('preact').Component
|
|
99252
|
-
* } } PlaceholderDefinition
|
|
99253
|
-
*
|
|
99254
|
-
* @param { PlaceholderDefinition } props
|
|
99248
|
+
/**
|
|
99249
|
+
* @typedef { {
|
|
99250
|
+
* text: (element: object) => string,
|
|
99251
|
+
* icon?: (element: Object) => import('preact').Component
|
|
99252
|
+
* } } PlaceholderDefinition
|
|
99253
|
+
*
|
|
99254
|
+
* @param { PlaceholderDefinition } props
|
|
99255
99255
|
*/
|
|
99256
99256
|
function Placeholder(props) {
|
|
99257
99257
|
const {
|
|
@@ -99290,9 +99290,9 @@
|
|
|
99290
99290
|
|
|
99291
99291
|
const noop$6 = () => {};
|
|
99292
99292
|
|
|
99293
|
-
/**
|
|
99294
|
-
* Buffer `.focus()` calls while the editor is not initialized.
|
|
99295
|
-
* Set Focus inside when the editor is ready.
|
|
99293
|
+
/**
|
|
99294
|
+
* Buffer `.focus()` calls while the editor is not initialized.
|
|
99295
|
+
* Set Focus inside when the editor is ready.
|
|
99296
99296
|
*/
|
|
99297
99297
|
const useBufferedFocus$1 = function (editor, ref) {
|
|
99298
99298
|
const [buffer, setBuffer] = h(undefined);
|
|
@@ -99393,9 +99393,9 @@
|
|
|
99393
99393
|
|
|
99394
99394
|
const noop$5 = () => {};
|
|
99395
99395
|
|
|
99396
|
-
/**
|
|
99397
|
-
* Buffer `.focus()` calls while the editor is not initialized.
|
|
99398
|
-
* Set Focus inside when the editor is ready.
|
|
99396
|
+
/**
|
|
99397
|
+
* Buffer `.focus()` calls while the editor is not initialized.
|
|
99398
|
+
* Set Focus inside when the editor is ready.
|
|
99399
99399
|
*/
|
|
99400
99400
|
const useBufferedFocus = function (editor, ref) {
|
|
99401
99401
|
const [buffer, setBuffer] = h(undefined);
|
|
@@ -99444,10 +99444,10 @@
|
|
|
99444
99444
|
p(() => {
|
|
99445
99445
|
let editor;
|
|
99446
99446
|
|
|
99447
|
-
/* Trigger FEEL toggle when
|
|
99448
|
-
*
|
|
99449
|
-
* - `backspace` is pressed
|
|
99450
|
-
* - AND the cursor is at the beginning of the input
|
|
99447
|
+
/* Trigger FEEL toggle when
|
|
99448
|
+
*
|
|
99449
|
+
* - `backspace` is pressed
|
|
99450
|
+
* - AND the cursor is at the beginning of the input
|
|
99451
99451
|
*/
|
|
99452
99452
|
const onKeyDown = e => {
|
|
99453
99453
|
if (e.key !== 'Backspace' || !editor) {
|
|
@@ -99529,22 +99529,22 @@
|
|
|
99529
99529
|
source: null
|
|
99530
99530
|
});
|
|
99531
99531
|
|
|
99532
|
-
/**
|
|
99533
|
-
* Add a dragger that calls back the passed function with
|
|
99534
|
-
* { event, delta } on drag.
|
|
99535
|
-
*
|
|
99536
|
-
* @example
|
|
99537
|
-
*
|
|
99538
|
-
* function dragMove(event, delta) {
|
|
99539
|
-
* // we are dragging (!!)
|
|
99540
|
-
* }
|
|
99541
|
-
*
|
|
99542
|
-
* domElement.addEventListener('dragstart', dragger(dragMove));
|
|
99543
|
-
*
|
|
99544
|
-
* @param {Function} fn
|
|
99545
|
-
* @param {Element} [dragPreview]
|
|
99546
|
-
*
|
|
99547
|
-
* @return {Function} drag start callback function
|
|
99532
|
+
/**
|
|
99533
|
+
* Add a dragger that calls back the passed function with
|
|
99534
|
+
* { event, delta } on drag.
|
|
99535
|
+
*
|
|
99536
|
+
* @example
|
|
99537
|
+
*
|
|
99538
|
+
* function dragMove(event, delta) {
|
|
99539
|
+
* // we are dragging (!!)
|
|
99540
|
+
* }
|
|
99541
|
+
*
|
|
99542
|
+
* domElement.addEventListener('dragstart', dragger(dragMove));
|
|
99543
|
+
*
|
|
99544
|
+
* @param {Function} fn
|
|
99545
|
+
* @param {Element} [dragPreview]
|
|
99546
|
+
*
|
|
99547
|
+
* @return {Function} drag start callback function
|
|
99548
99548
|
*/
|
|
99549
99549
|
function createDragger(fn, dragPreview) {
|
|
99550
99550
|
let self;
|
|
@@ -99599,23 +99599,23 @@
|
|
|
99599
99599
|
|
|
99600
99600
|
const noop$3 = () => {};
|
|
99601
99601
|
|
|
99602
|
-
/**
|
|
99603
|
-
* A generic popup component.
|
|
99604
|
-
*
|
|
99605
|
-
* @param {Object} props
|
|
99606
|
-
* @param {HTMLElement} [props.container]
|
|
99607
|
-
* @param {string} [props.className]
|
|
99608
|
-
* @param {boolean} [props.delayInitialFocus]
|
|
99609
|
-
* @param {{x: number, y: number}} [props.position]
|
|
99610
|
-
* @param {number} [props.width]
|
|
99611
|
-
* @param {number} [props.height]
|
|
99612
|
-
* @param {Function} props.onClose
|
|
99613
|
-
* @param {Function} [props.onPostActivate]
|
|
99614
|
-
* @param {Function} [props.onPostDeactivate]
|
|
99615
|
-
* @param {boolean} [props.returnFocus]
|
|
99616
|
-
* @param {boolean} [props.closeOnEscape]
|
|
99617
|
-
* @param {string} props.title
|
|
99618
|
-
* @param {Ref} [ref]
|
|
99602
|
+
/**
|
|
99603
|
+
* A generic popup component.
|
|
99604
|
+
*
|
|
99605
|
+
* @param {Object} props
|
|
99606
|
+
* @param {HTMLElement} [props.container]
|
|
99607
|
+
* @param {string} [props.className]
|
|
99608
|
+
* @param {boolean} [props.delayInitialFocus]
|
|
99609
|
+
* @param {{x: number, y: number}} [props.position]
|
|
99610
|
+
* @param {number} [props.width]
|
|
99611
|
+
* @param {number} [props.height]
|
|
99612
|
+
* @param {Function} props.onClose
|
|
99613
|
+
* @param {Function} [props.onPostActivate]
|
|
99614
|
+
* @param {Function} [props.onPostDeactivate]
|
|
99615
|
+
* @param {boolean} [props.returnFocus]
|
|
99616
|
+
* @param {boolean} [props.closeOnEscape]
|
|
99617
|
+
* @param {string} props.title
|
|
99618
|
+
* @param {Ref} [ref]
|
|
99619
99619
|
*/
|
|
99620
99620
|
function PopupComponent(props, globalRef) {
|
|
99621
99621
|
const {
|
|
@@ -99834,12 +99834,12 @@
|
|
|
99834
99834
|
const FEEL_POPUP_WIDTH = 700;
|
|
99835
99835
|
const FEEL_POPUP_HEIGHT = 250;
|
|
99836
99836
|
|
|
99837
|
-
/**
|
|
99838
|
-
* FEEL popup component, built as a singleton. Emits lifecycle events as follows:
|
|
99839
|
-
* - `feelPopup.open` - fired before the popup is mounted
|
|
99840
|
-
* - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
|
|
99841
|
-
* - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
|
|
99842
|
-
* - `feelPopup.closed` - fired after the popup is unmounted
|
|
99837
|
+
/**
|
|
99838
|
+
* FEEL popup component, built as a singleton. Emits lifecycle events as follows:
|
|
99839
|
+
* - `feelPopup.open` - fired before the popup is mounted
|
|
99840
|
+
* - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
|
|
99841
|
+
* - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
|
|
99842
|
+
* - `feelPopup.closed` - fired after the popup is unmounted
|
|
99843
99843
|
*/
|
|
99844
99844
|
function FEELPopupRoot(props) {
|
|
99845
99845
|
const {
|
|
@@ -100065,11 +100065,11 @@
|
|
|
100065
100065
|
return element.closest('.cm-editor').querySelector('.cm-tooltip-autocomplete');
|
|
100066
100066
|
}
|
|
100067
100067
|
|
|
100068
|
-
/**
|
|
100069
|
-
* This hook behaves like useEffect, but does not trigger on the first render.
|
|
100070
|
-
*
|
|
100071
|
-
* @param {Function} effect
|
|
100072
|
-
* @param {Array} deps
|
|
100068
|
+
/**
|
|
100069
|
+
* This hook behaves like useEffect, but does not trigger on the first render.
|
|
100070
|
+
*
|
|
100071
|
+
* @param {Function} effect
|
|
100072
|
+
* @param {Array} deps
|
|
100073
100073
|
*/
|
|
100074
100074
|
function useUpdateEffect(effect, deps) {
|
|
100075
100075
|
const isMounted = _(false);
|
|
@@ -100434,85 +100434,85 @@
|
|
|
100434
100434
|
const DEFAULT_DESCRIPTION = {};
|
|
100435
100435
|
const DEFAULT_TOOLTIP = {};
|
|
100436
100436
|
|
|
100437
|
-
/**
|
|
100438
|
-
* @typedef { {
|
|
100439
|
-
* component: import('preact').Component,
|
|
100440
|
-
* id: String,
|
|
100441
|
-
* isEdited?: Function
|
|
100442
|
-
* } } EntryDefinition
|
|
100443
|
-
*
|
|
100444
|
-
* @typedef { {
|
|
100445
|
-
* autoFocusEntry: String,
|
|
100446
|
-
* autoOpen?: Boolean,
|
|
100447
|
-
* entries: Array<EntryDefinition>,
|
|
100448
|
-
* id: String,
|
|
100449
|
-
* label: String,
|
|
100450
|
-
* remove: (event: MouseEvent) => void
|
|
100451
|
-
* } } ListItemDefinition
|
|
100452
|
-
*
|
|
100453
|
-
* @typedef { {
|
|
100454
|
-
* add: (event: MouseEvent) => void,
|
|
100455
|
-
* component: import('preact').Component,
|
|
100456
|
-
* element: Object,
|
|
100457
|
-
* id: String,
|
|
100458
|
-
* items: Array<ListItemDefinition>,
|
|
100459
|
-
* label: String,
|
|
100460
|
-
* shouldOpen?: Boolean
|
|
100461
|
-
* } } ListGroupDefinition
|
|
100462
|
-
*
|
|
100463
|
-
* @typedef { {
|
|
100464
|
-
* component?: import('preact').Component,
|
|
100465
|
-
* entries: Array<EntryDefinition>,
|
|
100466
|
-
* id: String,
|
|
100467
|
-
* label: String,
|
|
100468
|
-
* shouldOpen?: Boolean
|
|
100469
|
-
* } } GroupDefinition
|
|
100470
|
-
*
|
|
100471
|
-
* @typedef { {
|
|
100472
|
-
* [id: String]: GetDescriptionFunction
|
|
100473
|
-
* } } DescriptionConfig
|
|
100474
|
-
*
|
|
100475
|
-
* @typedef { {
|
|
100476
|
-
* [id: String]: GetTooltipFunction
|
|
100477
|
-
* } } TooltipConfig
|
|
100478
|
-
*
|
|
100479
|
-
* @callback { {
|
|
100480
|
-
* @param {string} id
|
|
100481
|
-
* @param {Object} element
|
|
100482
|
-
* @returns {string}
|
|
100483
|
-
* } } GetDescriptionFunction
|
|
100484
|
-
*
|
|
100485
|
-
* @callback { {
|
|
100486
|
-
* @param {string} id
|
|
100487
|
-
* @param {Object} element
|
|
100488
|
-
* @returns {string}
|
|
100489
|
-
* } } GetTooltipFunction
|
|
100490
|
-
*
|
|
100491
|
-
* @typedef { {
|
|
100492
|
-
* getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
|
|
100493
|
-
* getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
|
|
100494
|
-
* } } PlaceholderProvider
|
|
100495
|
-
*
|
|
100437
|
+
/**
|
|
100438
|
+
* @typedef { {
|
|
100439
|
+
* component: import('preact').Component,
|
|
100440
|
+
* id: String,
|
|
100441
|
+
* isEdited?: Function
|
|
100442
|
+
* } } EntryDefinition
|
|
100443
|
+
*
|
|
100444
|
+
* @typedef { {
|
|
100445
|
+
* autoFocusEntry: String,
|
|
100446
|
+
* autoOpen?: Boolean,
|
|
100447
|
+
* entries: Array<EntryDefinition>,
|
|
100448
|
+
* id: String,
|
|
100449
|
+
* label: String,
|
|
100450
|
+
* remove: (event: MouseEvent) => void
|
|
100451
|
+
* } } ListItemDefinition
|
|
100452
|
+
*
|
|
100453
|
+
* @typedef { {
|
|
100454
|
+
* add: (event: MouseEvent) => void,
|
|
100455
|
+
* component: import('preact').Component,
|
|
100456
|
+
* element: Object,
|
|
100457
|
+
* id: String,
|
|
100458
|
+
* items: Array<ListItemDefinition>,
|
|
100459
|
+
* label: String,
|
|
100460
|
+
* shouldOpen?: Boolean
|
|
100461
|
+
* } } ListGroupDefinition
|
|
100462
|
+
*
|
|
100463
|
+
* @typedef { {
|
|
100464
|
+
* component?: import('preact').Component,
|
|
100465
|
+
* entries: Array<EntryDefinition>,
|
|
100466
|
+
* id: String,
|
|
100467
|
+
* label: String,
|
|
100468
|
+
* shouldOpen?: Boolean
|
|
100469
|
+
* } } GroupDefinition
|
|
100470
|
+
*
|
|
100471
|
+
* @typedef { {
|
|
100472
|
+
* [id: String]: GetDescriptionFunction
|
|
100473
|
+
* } } DescriptionConfig
|
|
100474
|
+
*
|
|
100475
|
+
* @typedef { {
|
|
100476
|
+
* [id: String]: GetTooltipFunction
|
|
100477
|
+
* } } TooltipConfig
|
|
100478
|
+
*
|
|
100479
|
+
* @callback { {
|
|
100480
|
+
* @param {string} id
|
|
100481
|
+
* @param {Object} element
|
|
100482
|
+
* @returns {string}
|
|
100483
|
+
* } } GetDescriptionFunction
|
|
100484
|
+
*
|
|
100485
|
+
* @callback { {
|
|
100486
|
+
* @param {string} id
|
|
100487
|
+
* @param {Object} element
|
|
100488
|
+
* @returns {string}
|
|
100489
|
+
* } } GetTooltipFunction
|
|
100490
|
+
*
|
|
100491
|
+
* @typedef { {
|
|
100492
|
+
* getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
|
|
100493
|
+
* getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
|
|
100494
|
+
* } } PlaceholderProvider
|
|
100495
|
+
*
|
|
100496
100496
|
*/
|
|
100497
100497
|
|
|
100498
|
-
/**
|
|
100499
|
-
* A basic properties panel component. Describes *how* content will be rendered, accepts
|
|
100500
|
-
* data from implementor to describe *what* will be rendered.
|
|
100501
|
-
*
|
|
100502
|
-
* @param {Object} props
|
|
100503
|
-
* @param {Object|Array} props.element
|
|
100504
|
-
* @param {import('./components/Header').HeaderProvider} props.headerProvider
|
|
100505
|
-
* @param {PlaceholderProvider} [props.placeholderProvider]
|
|
100506
|
-
* @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
|
|
100507
|
-
* @param {Object} [props.layoutConfig]
|
|
100508
|
-
* @param {Function} [props.layoutChanged]
|
|
100509
|
-
* @param {DescriptionConfig} [props.descriptionConfig]
|
|
100510
|
-
* @param {Function} [props.descriptionLoaded]
|
|
100511
|
-
* @param {TooltipConfig} [props.tooltipConfig]
|
|
100512
|
-
* @param {Function} [props.tooltipLoaded]
|
|
100513
|
-
* @param {HTMLElement} [props.feelPopupContainer]
|
|
100514
|
-
* @param {Function} [props.getFeelPopupLinks]
|
|
100515
|
-
* @param {Object} [props.eventBus]
|
|
100498
|
+
/**
|
|
100499
|
+
* A basic properties panel component. Describes *how* content will be rendered, accepts
|
|
100500
|
+
* data from implementor to describe *what* will be rendered.
|
|
100501
|
+
*
|
|
100502
|
+
* @param {Object} props
|
|
100503
|
+
* @param {Object|Array} props.element
|
|
100504
|
+
* @param {import('./components/Header').HeaderProvider} props.headerProvider
|
|
100505
|
+
* @param {PlaceholderProvider} [props.placeholderProvider]
|
|
100506
|
+
* @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
|
|
100507
|
+
* @param {Object} [props.layoutConfig]
|
|
100508
|
+
* @param {Function} [props.layoutChanged]
|
|
100509
|
+
* @param {DescriptionConfig} [props.descriptionConfig]
|
|
100510
|
+
* @param {Function} [props.descriptionLoaded]
|
|
100511
|
+
* @param {TooltipConfig} [props.tooltipConfig]
|
|
100512
|
+
* @param {Function} [props.tooltipLoaded]
|
|
100513
|
+
* @param {HTMLElement} [props.feelPopupContainer]
|
|
100514
|
+
* @param {Function} [props.getFeelPopupLinks]
|
|
100515
|
+
* @param {Object} [props.eventBus]
|
|
100516
100516
|
*/
|
|
100517
100517
|
function PropertiesPanel(props) {
|
|
100518
100518
|
const {
|
|
@@ -100685,11 +100685,11 @@
|
|
|
100685
100685
|
|
|
100686
100686
|
// hooks //////////////////
|
|
100687
100687
|
|
|
100688
|
-
/**
|
|
100689
|
-
* This hook behaves like useLayoutEffect, but does not trigger on the first render.
|
|
100690
|
-
*
|
|
100691
|
-
* @param {Function} effect
|
|
100692
|
-
* @param {Array} deps
|
|
100688
|
+
/**
|
|
100689
|
+
* This hook behaves like useLayoutEffect, but does not trigger on the first render.
|
|
100690
|
+
*
|
|
100691
|
+
* @param {Function} effect
|
|
100692
|
+
* @param {Array} deps
|
|
100693
100693
|
*/
|
|
100694
100694
|
function useUpdateLayoutEffect(effect, deps) {
|
|
100695
100695
|
const isMounted = _(false);
|
|
@@ -100756,18 +100756,18 @@
|
|
|
100756
100756
|
});
|
|
100757
100757
|
}
|
|
100758
100758
|
|
|
100759
|
-
/**
|
|
100760
|
-
* @param {Object} props
|
|
100761
|
-
* @param {Object} props.element
|
|
100762
|
-
* @param {String} props.id
|
|
100763
|
-
* @param {String} props.description
|
|
100764
|
-
* @param {String} props.label
|
|
100765
|
-
* @param {Function} props.getValue
|
|
100766
|
-
* @param {Function} props.setValue
|
|
100767
|
-
* @param {Function} props.onFocus
|
|
100768
|
-
* @param {Function} props.onBlur
|
|
100769
|
-
* @param {string|import('preact').Component} props.tooltip
|
|
100770
|
-
* @param {boolean} [props.disabled]
|
|
100759
|
+
/**
|
|
100760
|
+
* @param {Object} props
|
|
100761
|
+
* @param {Object} props.element
|
|
100762
|
+
* @param {String} props.id
|
|
100763
|
+
* @param {String} props.description
|
|
100764
|
+
* @param {String} props.label
|
|
100765
|
+
* @param {Function} props.getValue
|
|
100766
|
+
* @param {Function} props.setValue
|
|
100767
|
+
* @param {Function} props.onFocus
|
|
100768
|
+
* @param {Function} props.onBlur
|
|
100769
|
+
* @param {string|import('preact').Component} props.tooltip
|
|
100770
|
+
* @param {boolean} [props.disabled]
|
|
100771
100771
|
*/
|
|
100772
100772
|
function CheckboxEntry(props) {
|
|
100773
100773
|
const {
|
|
@@ -100888,20 +100888,20 @@
|
|
|
100888
100888
|
});
|
|
100889
100889
|
}
|
|
100890
100890
|
|
|
100891
|
-
/**
|
|
100892
|
-
* @param {object} props
|
|
100893
|
-
* @param {object} props.element
|
|
100894
|
-
* @param {string} props.id
|
|
100895
|
-
* @param {string} [props.description]
|
|
100896
|
-
* @param {string} props.label
|
|
100897
|
-
* @param {Function} props.getValue
|
|
100898
|
-
* @param {Function} props.setValue
|
|
100899
|
-
* @param {Function} props.onFocus
|
|
100900
|
-
* @param {Function} props.onBlur
|
|
100901
|
-
* @param {Function} props.getOptions
|
|
100902
|
-
* @param {boolean} [props.disabled]
|
|
100903
|
-
* @param {Function} [props.validate]
|
|
100904
|
-
* @param {string|import('preact').Component} props.tooltip
|
|
100891
|
+
/**
|
|
100892
|
+
* @param {object} props
|
|
100893
|
+
* @param {object} props.element
|
|
100894
|
+
* @param {string} props.id
|
|
100895
|
+
* @param {string} [props.description]
|
|
100896
|
+
* @param {string} props.label
|
|
100897
|
+
* @param {Function} props.getValue
|
|
100898
|
+
* @param {Function} props.setValue
|
|
100899
|
+
* @param {Function} props.onFocus
|
|
100900
|
+
* @param {Function} props.onBlur
|
|
100901
|
+
* @param {Function} props.getOptions
|
|
100902
|
+
* @param {boolean} [props.disabled]
|
|
100903
|
+
* @param {Function} [props.validate]
|
|
100904
|
+
* @param {string|import('preact').Component} props.tooltip
|
|
100905
100905
|
*/
|
|
100906
100906
|
function SelectEntry(props) {
|
|
100907
100907
|
const {
|
|
@@ -101194,20 +101194,20 @@
|
|
|
101194
101194
|
});
|
|
101195
101195
|
}
|
|
101196
101196
|
|
|
101197
|
-
/**
|
|
101198
|
-
* @param {Object} props
|
|
101199
|
-
* @param {Object} props.element
|
|
101200
|
-
* @param {String} props.id
|
|
101201
|
-
* @param {String} props.description
|
|
101202
|
-
* @param {Boolean} props.debounce
|
|
101203
|
-
* @param {Boolean} props.disabled
|
|
101204
|
-
* @param {String} props.label
|
|
101205
|
-
* @param {Function} props.getValue
|
|
101206
|
-
* @param {Function} props.setValue
|
|
101207
|
-
* @param {Function} props.onFocus
|
|
101208
|
-
* @param {Function} props.onBlur
|
|
101209
|
-
* @param {string|import('preact').Component} props.tooltip
|
|
101210
|
-
* @param {Function} props.validate
|
|
101197
|
+
/**
|
|
101198
|
+
* @param {Object} props
|
|
101199
|
+
* @param {Object} props.element
|
|
101200
|
+
* @param {String} props.id
|
|
101201
|
+
* @param {String} props.description
|
|
101202
|
+
* @param {Boolean} props.debounce
|
|
101203
|
+
* @param {Boolean} props.disabled
|
|
101204
|
+
* @param {String} props.label
|
|
101205
|
+
* @param {Function} props.getValue
|
|
101206
|
+
* @param {Function} props.setValue
|
|
101207
|
+
* @param {Function} props.onFocus
|
|
101208
|
+
* @param {Function} props.onBlur
|
|
101209
|
+
* @param {string|import('preact').Component} props.tooltip
|
|
101210
|
+
* @param {Function} props.validate
|
|
101211
101211
|
*/
|
|
101212
101212
|
function TextfieldEntry(props) {
|
|
101213
101213
|
const {
|
|
@@ -101300,20 +101300,20 @@
|
|
|
101300
101300
|
this._eventBus = eventBus;
|
|
101301
101301
|
}
|
|
101302
101302
|
|
|
101303
|
-
/**
|
|
101304
|
-
* Check if the FEEL popup is open.
|
|
101305
|
-
* @return {Boolean}
|
|
101303
|
+
/**
|
|
101304
|
+
* Check if the FEEL popup is open.
|
|
101305
|
+
* @return {Boolean}
|
|
101306
101306
|
*/
|
|
101307
101307
|
isOpen() {
|
|
101308
101308
|
return this._eventBus.fire('feelPopup._isOpen');
|
|
101309
101309
|
}
|
|
101310
101310
|
|
|
101311
|
-
/**
|
|
101312
|
-
* Open the FEEL popup.
|
|
101313
|
-
*
|
|
101314
|
-
* @param {String} entryId
|
|
101315
|
-
* @param {Object} popupConfig
|
|
101316
|
-
* @param {HTMLElement} sourceElement
|
|
101311
|
+
/**
|
|
101312
|
+
* Open the FEEL popup.
|
|
101313
|
+
*
|
|
101314
|
+
* @param {String} entryId
|
|
101315
|
+
* @param {Object} popupConfig
|
|
101316
|
+
* @param {HTMLElement} sourceElement
|
|
101317
101317
|
*/
|
|
101318
101318
|
open(entryId, popupConfig, sourceElement) {
|
|
101319
101319
|
return this._eventBus.fire('feelPopup._open', {
|
|
@@ -101323,8 +101323,8 @@
|
|
|
101323
101323
|
});
|
|
101324
101324
|
}
|
|
101325
101325
|
|
|
101326
|
-
/**
|
|
101327
|
-
* Close the FEEL popup.
|
|
101326
|
+
/**
|
|
101327
|
+
* Close the FEEL popup.
|
|
101328
101328
|
*/
|
|
101329
101329
|
close() {
|
|
101330
101330
|
return this._eventBus.fire('feelPopup._close');
|