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