camunda-bpmn-js 4.16.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -1505
- package/dist/base-modeler.development.js +615 -596
- package/dist/base-modeler.production.min.js +3 -3
- package/dist/camunda-cloud-modeler.development.js +1135 -969
- package/dist/camunda-cloud-modeler.production.min.js +7 -7
- package/dist/camunda-cloud-navigated-viewer.development.js +58 -40
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +58 -40
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +989 -964
- package/dist/camunda-platform-modeler.production.min.js +3 -3
- 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
|
@@ -27687,29 +27687,34 @@
|
|
|
27687
27687
|
* Update context pad position.
|
|
27688
27688
|
*/
|
|
27689
27689
|
ContextPad.prototype._updatePosition = function() {
|
|
27690
|
-
if (!this.isOpen()) {
|
|
27691
|
-
return;
|
|
27692
|
-
}
|
|
27693
27690
|
|
|
27694
|
-
|
|
27691
|
+
const updateFn = () => {
|
|
27692
|
+
if (!this.isOpen()) {
|
|
27693
|
+
return;
|
|
27694
|
+
}
|
|
27695
|
+
|
|
27696
|
+
var html = this._current.html;
|
|
27695
27697
|
|
|
27696
|
-
|
|
27698
|
+
var position = this._getPosition(this._current.target);
|
|
27697
27699
|
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
|
|
27706
|
-
|
|
27707
|
-
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
|
|
27712
|
-
|
|
27700
|
+
if ('x' in position && 'y' in position) {
|
|
27701
|
+
html.style.left = position.x + 'px';
|
|
27702
|
+
html.style.top = position.y + 'px';
|
|
27703
|
+
} else {
|
|
27704
|
+
[
|
|
27705
|
+
'top',
|
|
27706
|
+
'right',
|
|
27707
|
+
'bottom',
|
|
27708
|
+
'left'
|
|
27709
|
+
].forEach(function(key) {
|
|
27710
|
+
if (key in position) {
|
|
27711
|
+
html.style[ key ] = position[ key ] + 'px';
|
|
27712
|
+
}
|
|
27713
|
+
});
|
|
27714
|
+
}
|
|
27715
|
+
};
|
|
27716
|
+
|
|
27717
|
+
this._scheduler.schedule(updateFn, 'ContextPad#_updatePosition');
|
|
27713
27718
|
};
|
|
27714
27719
|
|
|
27715
27720
|
/**
|
|
@@ -44915,9 +44920,16 @@
|
|
|
44915
44920
|
hints.moveChildren = false;
|
|
44916
44921
|
}
|
|
44917
44922
|
|
|
44918
|
-
// apply same
|
|
44919
|
-
|
|
44920
|
-
|
|
44923
|
+
// apply same directionality
|
|
44924
|
+
var isHorizontalPool = isHorizontal$3(element);
|
|
44925
|
+
if (!getDi(element).isHorizontal) {
|
|
44926
|
+
getDi(newElement).isHorizontal = isHorizontalPool;
|
|
44927
|
+
}
|
|
44928
|
+
|
|
44929
|
+
// keep the existing size of the pool's direction to
|
|
44930
|
+
// prevent dangling message flows
|
|
44931
|
+
newElement.width = isHorizontalPool ? element.width : elementFactory.getDefaultSize(newElement).width;
|
|
44932
|
+
newElement.height = isHorizontalPool ? elementFactory.getDefaultSize(newElement).height : element.height;
|
|
44921
44933
|
}
|
|
44922
44934
|
|
|
44923
44935
|
if (!rules.allowed('shape.resize', { shape: newBusinessObject })) {
|
|
@@ -48603,10 +48615,17 @@
|
|
|
48603
48615
|
}
|
|
48604
48616
|
|
|
48605
48617
|
if (is$5(bo, 'bpmn:Participant')) {
|
|
48618
|
+
var isHorizontalPool = di.isHorizontal === undefined || di.isHorizontal === true;
|
|
48606
48619
|
if (isExpanded(bo, di)) {
|
|
48607
|
-
|
|
48620
|
+
if (isHorizontalPool) {
|
|
48621
|
+
return { width: 600, height: 250 };
|
|
48622
|
+
}
|
|
48623
|
+
return { width: 250, height: 600 };
|
|
48608
48624
|
} else {
|
|
48609
|
-
|
|
48625
|
+
if (isHorizontalPool) {
|
|
48626
|
+
return { width: 400, height: 60 };
|
|
48627
|
+
}
|
|
48628
|
+
return { width: 60, height: 400 };
|
|
48610
48629
|
}
|
|
48611
48630
|
}
|
|
48612
48631
|
|
|
@@ -98069,19 +98088,19 @@
|
|
|
98069
98088
|
errors: {}
|
|
98070
98089
|
});
|
|
98071
98090
|
|
|
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
|
|
98091
|
+
/**
|
|
98092
|
+
* @typedef {Function} <propertiesPanel.showEntry> callback
|
|
98093
|
+
*
|
|
98094
|
+
* @example
|
|
98095
|
+
*
|
|
98096
|
+
* useEvent('propertiesPanel.showEntry', ({ focus = false, ...rest }) => {
|
|
98097
|
+
* // ...
|
|
98098
|
+
* });
|
|
98099
|
+
*
|
|
98100
|
+
* @param {Object} context
|
|
98101
|
+
* @param {boolean} [context.focus]
|
|
98102
|
+
*
|
|
98103
|
+
* @returns void
|
|
98085
98104
|
*/
|
|
98086
98105
|
|
|
98087
98106
|
const EventContext = F$2({
|
|
@@ -98100,20 +98119,20 @@
|
|
|
98100
98119
|
getTooltipForId: () => {}
|
|
98101
98120
|
});
|
|
98102
98121
|
|
|
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}
|
|
98122
|
+
/**
|
|
98123
|
+
* Accesses the global TooltipContext and returns a tooltip for a given id and element.
|
|
98124
|
+
*
|
|
98125
|
+
* @example
|
|
98126
|
+
* ```jsx
|
|
98127
|
+
* function TextField(props) {
|
|
98128
|
+
* const tooltip = useTooltipContext('input1', element);
|
|
98129
|
+
* }
|
|
98130
|
+
* ```
|
|
98131
|
+
*
|
|
98132
|
+
* @param {string} id
|
|
98133
|
+
* @param {object} element
|
|
98134
|
+
*
|
|
98135
|
+
* @returns {string}
|
|
98117
98136
|
*/
|
|
98118
98137
|
function useTooltipContext(id, element) {
|
|
98119
98138
|
const {
|
|
@@ -98266,20 +98285,20 @@
|
|
|
98266
98285
|
return `bio-properties-panel-${id}`;
|
|
98267
98286
|
}
|
|
98268
98287
|
|
|
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}
|
|
98288
|
+
/**
|
|
98289
|
+
* Accesses the global DescriptionContext and returns a description for a given id and element.
|
|
98290
|
+
*
|
|
98291
|
+
* @example
|
|
98292
|
+
* ```jsx
|
|
98293
|
+
* function TextField(props) {
|
|
98294
|
+
* const description = useDescriptionContext('input1', element);
|
|
98295
|
+
* }
|
|
98296
|
+
* ```
|
|
98297
|
+
*
|
|
98298
|
+
* @param {string} id
|
|
98299
|
+
* @param {object} element
|
|
98300
|
+
*
|
|
98301
|
+
* @returns {string}
|
|
98283
98302
|
*/
|
|
98284
98303
|
function useDescriptionContext(id, element) {
|
|
98285
98304
|
const {
|
|
@@ -98301,11 +98320,11 @@
|
|
|
98301
98320
|
return errors;
|
|
98302
98321
|
}
|
|
98303
98322
|
|
|
98304
|
-
/**
|
|
98305
|
-
* Subscribe to an event immediately. Update subscription after inputs changed.
|
|
98306
|
-
*
|
|
98307
|
-
* @param {string} event
|
|
98308
|
-
* @param {Function} callback
|
|
98323
|
+
/**
|
|
98324
|
+
* Subscribe to an event immediately. Update subscription after inputs changed.
|
|
98325
|
+
*
|
|
98326
|
+
* @param {string} event
|
|
98327
|
+
* @param {Function} callback
|
|
98309
98328
|
*/
|
|
98310
98329
|
function useEvent(event, callback, eventBus) {
|
|
98311
98330
|
const eventContext = q$1(EventContext);
|
|
@@ -98335,20 +98354,20 @@
|
|
|
98335
98354
|
}, [callback, event, eventBus]);
|
|
98336
98355
|
}
|
|
98337
98356
|
|
|
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 ]}
|
|
98357
|
+
/**
|
|
98358
|
+
* Creates a state that persists in the global LayoutContext.
|
|
98359
|
+
*
|
|
98360
|
+
* @example
|
|
98361
|
+
* ```jsx
|
|
98362
|
+
* function Group(props) {
|
|
98363
|
+
* const [ open, setOpen ] = useLayoutState([ 'groups', 'foo', 'open' ], false);
|
|
98364
|
+
* }
|
|
98365
|
+
* ```
|
|
98366
|
+
*
|
|
98367
|
+
* @param {(string|number)[]} path
|
|
98368
|
+
* @param {any} [defaultValue]
|
|
98369
|
+
*
|
|
98370
|
+
* @returns {[ any, Function ]}
|
|
98352
98371
|
*/
|
|
98353
98372
|
function useLayoutState(path, defaultValue) {
|
|
98354
98373
|
const {
|
|
@@ -98362,11 +98381,11 @@
|
|
|
98362
98381
|
return [layoutForKey, setState];
|
|
98363
98382
|
}
|
|
98364
98383
|
|
|
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
|
|
98384
|
+
/**
|
|
98385
|
+
* @pinussilvestrus: we need to introduce our own hook to persist the previous
|
|
98386
|
+
* state on updates.
|
|
98387
|
+
*
|
|
98388
|
+
* cf. https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state
|
|
98370
98389
|
*/
|
|
98371
98390
|
|
|
98372
98391
|
function usePrevious(value) {
|
|
@@ -98377,12 +98396,12 @@
|
|
|
98377
98396
|
return ref.current;
|
|
98378
98397
|
}
|
|
98379
98398
|
|
|
98380
|
-
/**
|
|
98381
|
-
* Subscribe to `propertiesPanel.showEntry`.
|
|
98382
|
-
*
|
|
98383
|
-
* @param {string} id
|
|
98384
|
-
*
|
|
98385
|
-
* @returns {import('preact').Ref}
|
|
98399
|
+
/**
|
|
98400
|
+
* Subscribe to `propertiesPanel.showEntry`.
|
|
98401
|
+
*
|
|
98402
|
+
* @param {string} id
|
|
98403
|
+
*
|
|
98404
|
+
* @returns {import('preact').Ref}
|
|
98386
98405
|
*/
|
|
98387
98406
|
function useShowEntryEvent(id) {
|
|
98388
98407
|
const {
|
|
@@ -98413,20 +98432,20 @@
|
|
|
98413
98432
|
return ref;
|
|
98414
98433
|
}
|
|
98415
98434
|
|
|
98416
|
-
/**
|
|
98417
|
-
* @callback setSticky
|
|
98418
|
-
* @param {boolean} value
|
|
98435
|
+
/**
|
|
98436
|
+
* @callback setSticky
|
|
98437
|
+
* @param {boolean} value
|
|
98419
98438
|
*/
|
|
98420
98439
|
|
|
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
|
|
98440
|
+
/**
|
|
98441
|
+
* Use IntersectionObserver to identify when DOM element is in sticky mode.
|
|
98442
|
+
* If sticky is observered setSticky(true) will be called.
|
|
98443
|
+
* If sticky mode is left, setSticky(false) will be called.
|
|
98444
|
+
*
|
|
98445
|
+
*
|
|
98446
|
+
* @param {Object} ref
|
|
98447
|
+
* @param {string} scrollContainerSelector
|
|
98448
|
+
* @param {setSticky} setSticky
|
|
98430
98449
|
*/
|
|
98431
98450
|
function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky) {
|
|
98432
98451
|
const [scrollContainer, setScrollContainer] = h(query(scrollContainerSelector));
|
|
@@ -98480,19 +98499,19 @@
|
|
|
98480
98499
|
}, [ref.current, scrollContainer, setSticky]);
|
|
98481
98500
|
}
|
|
98482
98501
|
|
|
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
|
|
98502
|
+
/**
|
|
98503
|
+
* Creates a static function reference with changing body.
|
|
98504
|
+
* This is necessary when external libraries require a callback function
|
|
98505
|
+
* that has references to state variables.
|
|
98506
|
+
*
|
|
98507
|
+
* Usage:
|
|
98508
|
+
* const callback = useStaticCallback((val) => {val === currentState});
|
|
98509
|
+
*
|
|
98510
|
+
* The `callback` reference is static and can be safely used in external
|
|
98511
|
+
* libraries or as a prop that does not cause rerendering of children.
|
|
98512
|
+
*
|
|
98513
|
+
* @param {Function} callback function with changing reference
|
|
98514
|
+
* @returns {Function} static function reference
|
|
98496
98515
|
*/
|
|
98497
98516
|
function useStaticCallback(callback) {
|
|
98498
98517
|
const callbackRef = _(callback);
|
|
@@ -98635,13 +98654,13 @@
|
|
|
98635
98654
|
return null;
|
|
98636
98655
|
}
|
|
98637
98656
|
|
|
98638
|
-
/**
|
|
98639
|
-
* @typedef { {
|
|
98640
|
-
* text: (element: object) => string,
|
|
98641
|
-
* icon?: (element: Object) => import('preact').Component
|
|
98642
|
-
* } } PlaceholderDefinition
|
|
98643
|
-
*
|
|
98644
|
-
* @param { PlaceholderDefinition } props
|
|
98657
|
+
/**
|
|
98658
|
+
* @typedef { {
|
|
98659
|
+
* text: (element: object) => string,
|
|
98660
|
+
* icon?: (element: Object) => import('preact').Component
|
|
98661
|
+
* } } PlaceholderDefinition
|
|
98662
|
+
*
|
|
98663
|
+
* @param { PlaceholderDefinition } props
|
|
98645
98664
|
*/
|
|
98646
98665
|
function Placeholder(props) {
|
|
98647
98666
|
const {
|
|
@@ -98680,9 +98699,9 @@
|
|
|
98680
98699
|
|
|
98681
98700
|
const noop$6 = () => {};
|
|
98682
98701
|
|
|
98683
|
-
/**
|
|
98684
|
-
* Buffer `.focus()` calls while the editor is not initialized.
|
|
98685
|
-
* Set Focus inside when the editor is ready.
|
|
98702
|
+
/**
|
|
98703
|
+
* Buffer `.focus()` calls while the editor is not initialized.
|
|
98704
|
+
* Set Focus inside when the editor is ready.
|
|
98686
98705
|
*/
|
|
98687
98706
|
const useBufferedFocus$1 = function (editor, ref) {
|
|
98688
98707
|
const [buffer, setBuffer] = h(undefined);
|
|
@@ -98783,9 +98802,9 @@
|
|
|
98783
98802
|
|
|
98784
98803
|
const noop$5 = () => {};
|
|
98785
98804
|
|
|
98786
|
-
/**
|
|
98787
|
-
* Buffer `.focus()` calls while the editor is not initialized.
|
|
98788
|
-
* Set Focus inside when the editor is ready.
|
|
98805
|
+
/**
|
|
98806
|
+
* Buffer `.focus()` calls while the editor is not initialized.
|
|
98807
|
+
* Set Focus inside when the editor is ready.
|
|
98789
98808
|
*/
|
|
98790
98809
|
const useBufferedFocus = function (editor, ref) {
|
|
98791
98810
|
const [buffer, setBuffer] = h(undefined);
|
|
@@ -98834,10 +98853,10 @@
|
|
|
98834
98853
|
p(() => {
|
|
98835
98854
|
let editor;
|
|
98836
98855
|
|
|
98837
|
-
/* Trigger FEEL toggle when
|
|
98838
|
-
*
|
|
98839
|
-
* - `backspace` is pressed
|
|
98840
|
-
* - AND the cursor is at the beginning of the input
|
|
98856
|
+
/* Trigger FEEL toggle when
|
|
98857
|
+
*
|
|
98858
|
+
* - `backspace` is pressed
|
|
98859
|
+
* - AND the cursor is at the beginning of the input
|
|
98841
98860
|
*/
|
|
98842
98861
|
const onKeyDown = e => {
|
|
98843
98862
|
if (e.key !== 'Backspace' || !editor) {
|
|
@@ -98919,22 +98938,22 @@
|
|
|
98919
98938
|
source: null
|
|
98920
98939
|
});
|
|
98921
98940
|
|
|
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
|
|
98941
|
+
/**
|
|
98942
|
+
* Add a dragger that calls back the passed function with
|
|
98943
|
+
* { event, delta } on drag.
|
|
98944
|
+
*
|
|
98945
|
+
* @example
|
|
98946
|
+
*
|
|
98947
|
+
* function dragMove(event, delta) {
|
|
98948
|
+
* // we are dragging (!!)
|
|
98949
|
+
* }
|
|
98950
|
+
*
|
|
98951
|
+
* domElement.addEventListener('dragstart', dragger(dragMove));
|
|
98952
|
+
*
|
|
98953
|
+
* @param {Function} fn
|
|
98954
|
+
* @param {Element} [dragPreview]
|
|
98955
|
+
*
|
|
98956
|
+
* @return {Function} drag start callback function
|
|
98938
98957
|
*/
|
|
98939
98958
|
function createDragger(fn, dragPreview) {
|
|
98940
98959
|
let self;
|
|
@@ -98989,23 +99008,23 @@
|
|
|
98989
99008
|
|
|
98990
99009
|
const noop$3 = () => {};
|
|
98991
99010
|
|
|
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]
|
|
99011
|
+
/**
|
|
99012
|
+
* A generic popup component.
|
|
99013
|
+
*
|
|
99014
|
+
* @param {Object} props
|
|
99015
|
+
* @param {HTMLElement} [props.container]
|
|
99016
|
+
* @param {string} [props.className]
|
|
99017
|
+
* @param {boolean} [props.delayInitialFocus]
|
|
99018
|
+
* @param {{x: number, y: number}} [props.position]
|
|
99019
|
+
* @param {number} [props.width]
|
|
99020
|
+
* @param {number} [props.height]
|
|
99021
|
+
* @param {Function} props.onClose
|
|
99022
|
+
* @param {Function} [props.onPostActivate]
|
|
99023
|
+
* @param {Function} [props.onPostDeactivate]
|
|
99024
|
+
* @param {boolean} [props.returnFocus]
|
|
99025
|
+
* @param {boolean} [props.closeOnEscape]
|
|
99026
|
+
* @param {string} props.title
|
|
99027
|
+
* @param {Ref} [ref]
|
|
99009
99028
|
*/
|
|
99010
99029
|
function PopupComponent(props, globalRef) {
|
|
99011
99030
|
const {
|
|
@@ -99224,12 +99243,12 @@
|
|
|
99224
99243
|
const FEEL_POPUP_WIDTH = 700;
|
|
99225
99244
|
const FEEL_POPUP_HEIGHT = 250;
|
|
99226
99245
|
|
|
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
|
|
99246
|
+
/**
|
|
99247
|
+
* FEEL popup component, built as a singleton. Emits lifecycle events as follows:
|
|
99248
|
+
* - `feelPopup.open` - fired before the popup is mounted
|
|
99249
|
+
* - `feelPopup.opened` - fired after the popup is mounted. Event context contains the DOM node of the popup
|
|
99250
|
+
* - `feelPopup.close` - fired before the popup is unmounted. Event context contains the DOM node of the popup
|
|
99251
|
+
* - `feelPopup.closed` - fired after the popup is unmounted
|
|
99233
99252
|
*/
|
|
99234
99253
|
function FEELPopupRoot(props) {
|
|
99235
99254
|
const {
|
|
@@ -99452,11 +99471,11 @@
|
|
|
99452
99471
|
return element.closest('.cm-editor').querySelector('.cm-tooltip-autocomplete');
|
|
99453
99472
|
}
|
|
99454
99473
|
|
|
99455
|
-
/**
|
|
99456
|
-
* This hook behaves like useEffect, but does not trigger on the first render.
|
|
99457
|
-
*
|
|
99458
|
-
* @param {Function} effect
|
|
99459
|
-
* @param {Array} deps
|
|
99474
|
+
/**
|
|
99475
|
+
* This hook behaves like useEffect, but does not trigger on the first render.
|
|
99476
|
+
*
|
|
99477
|
+
* @param {Function} effect
|
|
99478
|
+
* @param {Array} deps
|
|
99460
99479
|
*/
|
|
99461
99480
|
function useUpdateEffect(effect, deps) {
|
|
99462
99481
|
const isMounted = _(false);
|
|
@@ -99821,84 +99840,84 @@
|
|
|
99821
99840
|
const DEFAULT_DESCRIPTION = {};
|
|
99822
99841
|
const DEFAULT_TOOLTIP = {};
|
|
99823
99842
|
|
|
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
|
-
*
|
|
99843
|
+
/**
|
|
99844
|
+
* @typedef { {
|
|
99845
|
+
* component: import('preact').Component,
|
|
99846
|
+
* id: String,
|
|
99847
|
+
* isEdited?: Function
|
|
99848
|
+
* } } EntryDefinition
|
|
99849
|
+
*
|
|
99850
|
+
* @typedef { {
|
|
99851
|
+
* autoFocusEntry: String,
|
|
99852
|
+
* autoOpen?: Boolean,
|
|
99853
|
+
* entries: Array<EntryDefinition>,
|
|
99854
|
+
* id: String,
|
|
99855
|
+
* label: String,
|
|
99856
|
+
* remove: (event: MouseEvent) => void
|
|
99857
|
+
* } } ListItemDefinition
|
|
99858
|
+
*
|
|
99859
|
+
* @typedef { {
|
|
99860
|
+
* add: (event: MouseEvent) => void,
|
|
99861
|
+
* component: import('preact').Component,
|
|
99862
|
+
* element: Object,
|
|
99863
|
+
* id: String,
|
|
99864
|
+
* items: Array<ListItemDefinition>,
|
|
99865
|
+
* label: String,
|
|
99866
|
+
* shouldOpen?: Boolean
|
|
99867
|
+
* } } ListGroupDefinition
|
|
99868
|
+
*
|
|
99869
|
+
* @typedef { {
|
|
99870
|
+
* component?: import('preact').Component,
|
|
99871
|
+
* entries: Array<EntryDefinition>,
|
|
99872
|
+
* id: String,
|
|
99873
|
+
* label: String,
|
|
99874
|
+
* shouldOpen?: Boolean
|
|
99875
|
+
* } } GroupDefinition
|
|
99876
|
+
*
|
|
99877
|
+
* @typedef { {
|
|
99878
|
+
* [id: String]: GetDescriptionFunction
|
|
99879
|
+
* } } DescriptionConfig
|
|
99880
|
+
*
|
|
99881
|
+
* @typedef { {
|
|
99882
|
+
* [id: String]: GetTooltipFunction
|
|
99883
|
+
* } } TooltipConfig
|
|
99884
|
+
*
|
|
99885
|
+
* @callback { {
|
|
99886
|
+
* @param {string} id
|
|
99887
|
+
* @param {Object} element
|
|
99888
|
+
* @returns {string}
|
|
99889
|
+
* } } GetDescriptionFunction
|
|
99890
|
+
*
|
|
99891
|
+
* @callback { {
|
|
99892
|
+
* @param {string} id
|
|
99893
|
+
* @param {Object} element
|
|
99894
|
+
* @returns {string}
|
|
99895
|
+
* } } GetTooltipFunction
|
|
99896
|
+
*
|
|
99897
|
+
* @typedef { {
|
|
99898
|
+
* getEmpty: (element: object) => import('./components/Placeholder').PlaceholderDefinition,
|
|
99899
|
+
* getMultiple: (element: Object) => import('./components/Placeholder').PlaceholderDefinition
|
|
99900
|
+
* } } PlaceholderProvider
|
|
99901
|
+
*
|
|
99883
99902
|
*/
|
|
99884
99903
|
|
|
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]
|
|
99904
|
+
/**
|
|
99905
|
+
* A basic properties panel component. Describes *how* content will be rendered, accepts
|
|
99906
|
+
* data from implementor to describe *what* will be rendered.
|
|
99907
|
+
*
|
|
99908
|
+
* @param {Object} props
|
|
99909
|
+
* @param {Object|Array} props.element
|
|
99910
|
+
* @param {import('./components/Header').HeaderProvider} props.headerProvider
|
|
99911
|
+
* @param {PlaceholderProvider} [props.placeholderProvider]
|
|
99912
|
+
* @param {Array<GroupDefinition|ListGroupDefinition>} props.groups
|
|
99913
|
+
* @param {Object} [props.layoutConfig]
|
|
99914
|
+
* @param {Function} [props.layoutChanged]
|
|
99915
|
+
* @param {DescriptionConfig} [props.descriptionConfig]
|
|
99916
|
+
* @param {Function} [props.descriptionLoaded]
|
|
99917
|
+
* @param {TooltipConfig} [props.tooltipConfig]
|
|
99918
|
+
* @param {Function} [props.tooltipLoaded]
|
|
99919
|
+
* @param {HTMLElement} [props.feelPopupContainer]
|
|
99920
|
+
* @param {Object} [props.eventBus]
|
|
99902
99921
|
*/
|
|
99903
99922
|
function PropertiesPanel(props) {
|
|
99904
99923
|
const {
|
|
@@ -100069,11 +100088,11 @@
|
|
|
100069
100088
|
|
|
100070
100089
|
// hooks //////////////////
|
|
100071
100090
|
|
|
100072
|
-
/**
|
|
100073
|
-
* This hook behaves like useLayoutEffect, but does not trigger on the first render.
|
|
100074
|
-
*
|
|
100075
|
-
* @param {Function} effect
|
|
100076
|
-
* @param {Array} deps
|
|
100091
|
+
/**
|
|
100092
|
+
* This hook behaves like useLayoutEffect, but does not trigger on the first render.
|
|
100093
|
+
*
|
|
100094
|
+
* @param {Function} effect
|
|
100095
|
+
* @param {Array} deps
|
|
100077
100096
|
*/
|
|
100078
100097
|
function useUpdateLayoutEffect(effect, deps) {
|
|
100079
100098
|
const isMounted = _(false);
|
|
@@ -100140,18 +100159,18 @@
|
|
|
100140
100159
|
});
|
|
100141
100160
|
}
|
|
100142
100161
|
|
|
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]
|
|
100162
|
+
/**
|
|
100163
|
+
* @param {Object} props
|
|
100164
|
+
* @param {Object} props.element
|
|
100165
|
+
* @param {String} props.id
|
|
100166
|
+
* @param {String} props.description
|
|
100167
|
+
* @param {String} props.label
|
|
100168
|
+
* @param {Function} props.getValue
|
|
100169
|
+
* @param {Function} props.setValue
|
|
100170
|
+
* @param {Function} props.onFocus
|
|
100171
|
+
* @param {Function} props.onBlur
|
|
100172
|
+
* @param {string|import('preact').Component} props.tooltip
|
|
100173
|
+
* @param {boolean} [props.disabled]
|
|
100155
100174
|
*/
|
|
100156
100175
|
function CheckboxEntry(props) {
|
|
100157
100176
|
const {
|
|
@@ -100272,20 +100291,20 @@
|
|
|
100272
100291
|
});
|
|
100273
100292
|
}
|
|
100274
100293
|
|
|
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
|
|
100294
|
+
/**
|
|
100295
|
+
* @param {object} props
|
|
100296
|
+
* @param {object} props.element
|
|
100297
|
+
* @param {string} props.id
|
|
100298
|
+
* @param {string} [props.description]
|
|
100299
|
+
* @param {string} props.label
|
|
100300
|
+
* @param {Function} props.getValue
|
|
100301
|
+
* @param {Function} props.setValue
|
|
100302
|
+
* @param {Function} props.onFocus
|
|
100303
|
+
* @param {Function} props.onBlur
|
|
100304
|
+
* @param {Function} props.getOptions
|
|
100305
|
+
* @param {boolean} [props.disabled]
|
|
100306
|
+
* @param {Function} [props.validate]
|
|
100307
|
+
* @param {string|import('preact').Component} props.tooltip
|
|
100289
100308
|
*/
|
|
100290
100309
|
function SelectEntry(props) {
|
|
100291
100310
|
const {
|
|
@@ -100373,7 +100392,7 @@
|
|
|
100373
100392
|
monospace,
|
|
100374
100393
|
onFocus,
|
|
100375
100394
|
onBlur,
|
|
100376
|
-
autoResize,
|
|
100395
|
+
autoResize = true,
|
|
100377
100396
|
placeholder,
|
|
100378
100397
|
rows = autoResize ? 1 : 2,
|
|
100379
100398
|
tooltip
|
|
@@ -100430,21 +100449,21 @@
|
|
|
100430
100449
|
});
|
|
100431
100450
|
}
|
|
100432
100451
|
|
|
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]
|
|
100452
|
+
/**
|
|
100453
|
+
* @param {object} props
|
|
100454
|
+
* @param {object} props.element
|
|
100455
|
+
* @param {string} props.id
|
|
100456
|
+
* @param {string} props.description
|
|
100457
|
+
* @param {boolean} props.debounce
|
|
100458
|
+
* @param {string} props.label
|
|
100459
|
+
* @param {Function} props.getValue
|
|
100460
|
+
* @param {Function} props.setValue
|
|
100461
|
+
* @param {Function} props.onFocus
|
|
100462
|
+
* @param {Function} props.onBlur
|
|
100463
|
+
* @param {number} props.rows
|
|
100464
|
+
* @param {boolean} props.monospace
|
|
100465
|
+
* @param {Function} [props.validate]
|
|
100466
|
+
* @param {boolean} [props.disabled]
|
|
100448
100467
|
*/
|
|
100449
100468
|
function TextAreaEntry(props) {
|
|
100450
100469
|
const {
|
|
@@ -100578,20 +100597,20 @@
|
|
|
100578
100597
|
});
|
|
100579
100598
|
}
|
|
100580
100599
|
|
|
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
|
|
100600
|
+
/**
|
|
100601
|
+
* @param {Object} props
|
|
100602
|
+
* @param {Object} props.element
|
|
100603
|
+
* @param {String} props.id
|
|
100604
|
+
* @param {String} props.description
|
|
100605
|
+
* @param {Boolean} props.debounce
|
|
100606
|
+
* @param {Boolean} props.disabled
|
|
100607
|
+
* @param {String} props.label
|
|
100608
|
+
* @param {Function} props.getValue
|
|
100609
|
+
* @param {Function} props.setValue
|
|
100610
|
+
* @param {Function} props.onFocus
|
|
100611
|
+
* @param {Function} props.onBlur
|
|
100612
|
+
* @param {string|import('preact').Component} props.tooltip
|
|
100613
|
+
* @param {Function} props.validate
|
|
100595
100614
|
*/
|
|
100596
100615
|
function TextfieldEntry(props) {
|
|
100597
100616
|
const {
|
|
@@ -100684,20 +100703,20 @@
|
|
|
100684
100703
|
this._eventBus = eventBus;
|
|
100685
100704
|
}
|
|
100686
100705
|
|
|
100687
|
-
/**
|
|
100688
|
-
* Check if the FEEL popup is open.
|
|
100689
|
-
* @return {Boolean}
|
|
100706
|
+
/**
|
|
100707
|
+
* Check if the FEEL popup is open.
|
|
100708
|
+
* @return {Boolean}
|
|
100690
100709
|
*/
|
|
100691
100710
|
isOpen() {
|
|
100692
100711
|
return this._eventBus.fire('feelPopup._isOpen');
|
|
100693
100712
|
}
|
|
100694
100713
|
|
|
100695
|
-
/**
|
|
100696
|
-
* Open the FEEL popup.
|
|
100697
|
-
*
|
|
100698
|
-
* @param {String} entryId
|
|
100699
|
-
* @param {Object} popupConfig
|
|
100700
|
-
* @param {HTMLElement} sourceElement
|
|
100714
|
+
/**
|
|
100715
|
+
* Open the FEEL popup.
|
|
100716
|
+
*
|
|
100717
|
+
* @param {String} entryId
|
|
100718
|
+
* @param {Object} popupConfig
|
|
100719
|
+
* @param {HTMLElement} sourceElement
|
|
100701
100720
|
*/
|
|
100702
100721
|
open(entryId, popupConfig, sourceElement) {
|
|
100703
100722
|
return this._eventBus.fire('feelPopup._open', {
|
|
@@ -100707,8 +100726,8 @@
|
|
|
100707
100726
|
});
|
|
100708
100727
|
}
|
|
100709
100728
|
|
|
100710
|
-
/**
|
|
100711
|
-
* Close the FEEL popup.
|
|
100729
|
+
/**
|
|
100730
|
+
* Close the FEEL popup.
|
|
100712
100731
|
*/
|
|
100713
100732
|
close() {
|
|
100714
100733
|
return this._eventBus.fire('feelPopup._close');
|
|
@@ -104505,8 +104524,8 @@
|
|
|
104505
104524
|
});
|
|
104506
104525
|
const selectedElement = state.selectedElement;
|
|
104507
104526
|
|
|
104508
|
-
/**
|
|
104509
|
-
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
104527
|
+
/**
|
|
104528
|
+
* @param {djs.model.Base | Array<djs.model.Base>} element
|
|
104510
104529
|
*/
|
|
104511
104530
|
const _update = element => {
|
|
104512
104531
|
if (!element) {
|
|
@@ -104691,10 +104710,10 @@
|
|
|
104691
104710
|
|
|
104692
104711
|
const DEFAULT_PRIORITY = 1000;
|
|
104693
104712
|
|
|
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
|
|
104713
|
+
/**
|
|
104714
|
+
* @typedef { import('@bpmn-io/properties-panel').GroupDefinition } GroupDefinition
|
|
104715
|
+
* @typedef { import('@bpmn-io/properties-panel').ListGroupDefinition } ListGroupDefinition
|
|
104716
|
+
* @typedef { { getGroups: (ModdleElement) => (Array{GroupDefinition|ListGroupDefinition}) => Array{GroupDefinition|ListGroupDefinition}) } PropertiesProvider
|
|
104698
104717
|
*/
|
|
104699
104718
|
|
|
104700
104719
|
class BpmnPropertiesPanelRenderer {
|
|
@@ -104731,10 +104750,10 @@
|
|
|
104731
104750
|
});
|
|
104732
104751
|
}
|
|
104733
104752
|
|
|
104734
|
-
/**
|
|
104735
|
-
* Attach the properties panel to a parent node.
|
|
104736
|
-
*
|
|
104737
|
-
* @param {HTMLElement} container
|
|
104753
|
+
/**
|
|
104754
|
+
* Attach the properties panel to a parent node.
|
|
104755
|
+
*
|
|
104756
|
+
* @param {HTMLElement} container
|
|
104738
104757
|
*/
|
|
104739
104758
|
attachTo(container) {
|
|
104740
104759
|
if (!container) {
|
|
@@ -104759,8 +104778,8 @@
|
|
|
104759
104778
|
this._eventBus.fire('propertiesPanel.attach');
|
|
104760
104779
|
}
|
|
104761
104780
|
|
|
104762
|
-
/**
|
|
104763
|
-
* Detach the properties panel from its parent node.
|
|
104781
|
+
/**
|
|
104782
|
+
* Detach the properties panel from its parent node.
|
|
104764
104783
|
*/
|
|
104765
104784
|
detach() {
|
|
104766
104785
|
const parentNode = this._container.parentNode;
|
|
@@ -104770,11 +104789,11 @@
|
|
|
104770
104789
|
}
|
|
104771
104790
|
}
|
|
104772
104791
|
|
|
104773
|
-
/**
|
|
104774
|
-
* Register a new properties provider to the properties panel.
|
|
104775
|
-
*
|
|
104776
|
-
* @param {Number} [priority]
|
|
104777
|
-
* @param {PropertiesProvider} provider
|
|
104792
|
+
/**
|
|
104793
|
+
* Register a new properties provider to the properties panel.
|
|
104794
|
+
*
|
|
104795
|
+
* @param {Number} [priority]
|
|
104796
|
+
* @param {PropertiesProvider} provider
|
|
104778
104797
|
*/
|
|
104779
104798
|
registerProvider(priority, provider) {
|
|
104780
104799
|
if (!provider) {
|
|
@@ -104791,9 +104810,9 @@
|
|
|
104791
104810
|
this._eventBus.fire('propertiesPanel.providersChanged');
|
|
104792
104811
|
}
|
|
104793
104812
|
|
|
104794
|
-
/**
|
|
104795
|
-
* Updates the layout of the properties panel.
|
|
104796
|
-
* @param {Object} layout
|
|
104813
|
+
/**
|
|
104814
|
+
* Updates the layout of the properties panel.
|
|
104815
|
+
* @param {Object} layout
|
|
104797
104816
|
*/
|
|
104798
104817
|
setLayout(layout) {
|
|
104799
104818
|
this._eventBus.fire('propertiesPanel.setLayout', {
|
|
@@ -104843,12 +104862,12 @@
|
|
|
104843
104862
|
return element && (element.isImplicit || element.id === '__implicitroot');
|
|
104844
104863
|
}
|
|
104845
104864
|
|
|
104846
|
-
/**
|
|
104847
|
-
* Setup keyboard bindings (undo, redo) on the given container.
|
|
104848
|
-
*
|
|
104849
|
-
* @param {Element} container
|
|
104850
|
-
* @param {EventBus} eventBus
|
|
104851
|
-
* @param {CommandStack} commandStack
|
|
104865
|
+
/**
|
|
104866
|
+
* Setup keyboard bindings (undo, redo) on the given container.
|
|
104867
|
+
*
|
|
104868
|
+
* @param {Element} container
|
|
104869
|
+
* @param {EventBus} eventBus
|
|
104870
|
+
* @param {CommandStack} commandStack
|
|
104852
104871
|
*/
|
|
104853
104872
|
function setupKeyboard(container, eventBus, commandStack) {
|
|
104854
104873
|
function cancel(event) {
|
|
@@ -104873,14 +104892,14 @@
|
|
|
104873
104892
|
});
|
|
104874
104893
|
}
|
|
104875
104894
|
|
|
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.
|
|
104895
|
+
/**
|
|
104896
|
+
* A handler that combines and executes multiple commands.
|
|
104897
|
+
*
|
|
104898
|
+
* All updates are bundled on the command stack and executed in one step.
|
|
104899
|
+
* This also makes it possible to revert the changes in one step.
|
|
104900
|
+
*
|
|
104901
|
+
* Example use case: remove the camunda:formKey attribute and in addition
|
|
104902
|
+
* add all form fields needed for the camunda:formData property.
|
|
104884
104903
|
*/
|
|
104885
104904
|
class MultiCommandHandler {
|
|
104886
104905
|
constructor(commandStack) {
|
|
@@ -105007,12 +105026,12 @@
|
|
|
105007
105026
|
return compensateEventDefinition && compensateEventDefinition.get('activityRef');
|
|
105008
105027
|
}
|
|
105009
105028
|
|
|
105010
|
-
/**
|
|
105011
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105029
|
+
/**
|
|
105030
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105012
105031
|
*/
|
|
105013
105032
|
|
|
105014
|
-
/**
|
|
105015
|
-
* @returns {Array<Entry>} entries
|
|
105033
|
+
/**
|
|
105034
|
+
* @returns {Array<Entry>} entries
|
|
105016
105035
|
*/
|
|
105017
105036
|
function CompensationProps(props) {
|
|
105018
105037
|
const {
|
|
@@ -105122,12 +105141,12 @@
|
|
|
105122
105141
|
return getFlowElements(element, 'bpmn:BoundaryEvent');
|
|
105123
105142
|
}
|
|
105124
105143
|
|
|
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}
|
|
105144
|
+
/**
|
|
105145
|
+
* Checks whether an Activity is attaching a CompensateEvent of the parent container.
|
|
105146
|
+
*
|
|
105147
|
+
* @param {ModdleElement} activity
|
|
105148
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
105149
|
+
* @returns {Boolean}
|
|
105131
105150
|
*/
|
|
105132
105151
|
function hasCompensationEventAttached(activity, boundaryEvents) {
|
|
105133
105152
|
const {
|
|
@@ -105142,15 +105161,15 @@
|
|
|
105142
105161
|
});
|
|
105143
105162
|
}
|
|
105144
105163
|
|
|
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}
|
|
105164
|
+
/**
|
|
105165
|
+
* Checks whether an Activity can be compensated. That's the case when it is
|
|
105166
|
+
* a) a CallActivity
|
|
105167
|
+
* b) a SubProcess, when it is not event based and not a compensation
|
|
105168
|
+
* c) any other Activity, when it is attaching a CompensateEvent of the parent container
|
|
105169
|
+
*
|
|
105170
|
+
* @param {ModdleElement} activity
|
|
105171
|
+
* @param {Array<ModdleElement>} boundaryEvents
|
|
105172
|
+
* @returns {Boolean}
|
|
105154
105173
|
*/
|
|
105155
105174
|
function canBeCompensated(activity, boundaryEvents) {
|
|
105156
105175
|
return is$5(activity, 'bpmn:CallActivity') || is$5(activity, 'bpmn:SubProcess') && !activity.triggeredByEvent && !activity.isForCompensation || hasCompensationEventAttached(activity, boundaryEvents);
|
|
@@ -105163,11 +105182,11 @@
|
|
|
105163
105182
|
});
|
|
105164
105183
|
}
|
|
105165
105184
|
|
|
105166
|
-
/**
|
|
105167
|
-
* Retrieves all possible activities to reference for a Compensation.
|
|
105168
|
-
*
|
|
105169
|
-
* @param {djs.model.Base} element
|
|
105170
|
-
* @returns {Array<ModdleElement>}
|
|
105185
|
+
/**
|
|
105186
|
+
* Retrieves all possible activities to reference for a Compensation.
|
|
105187
|
+
*
|
|
105188
|
+
* @param {djs.model.Base} element
|
|
105189
|
+
* @returns {Array<ModdleElement>}
|
|
105171
105190
|
*/
|
|
105172
105191
|
function findActivityRefs(element) {
|
|
105173
105192
|
const businessObject = getBusinessObject$1(element);
|
|
@@ -105187,13 +105206,13 @@
|
|
|
105187
105206
|
return activities;
|
|
105188
105207
|
}
|
|
105189
105208
|
|
|
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}
|
|
105209
|
+
/**
|
|
105210
|
+
* Retrieves an option label in the form
|
|
105211
|
+
* a) with name: "my Task (id=Task_1)"
|
|
105212
|
+
* b) without name: "(id=Task_1)"
|
|
105213
|
+
*
|
|
105214
|
+
* @param {ModdleElement} activity
|
|
105215
|
+
* @returns {String}
|
|
105197
105216
|
*/
|
|
105198
105217
|
function createOptionLabel(activity) {
|
|
105199
105218
|
const {
|
|
@@ -105208,12 +105227,12 @@
|
|
|
105208
105227
|
|
|
105209
105228
|
const DOCUMENTATION_TEXT_FORMAT = 'text/plain';
|
|
105210
105229
|
|
|
105211
|
-
/**
|
|
105212
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105230
|
+
/**
|
|
105231
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105213
105232
|
*/
|
|
105214
105233
|
|
|
105215
|
-
/**
|
|
105216
|
-
* @returns {Array<Entry>} entries
|
|
105234
|
+
/**
|
|
105235
|
+
* @returns {Array<Entry>} entries
|
|
105217
105236
|
*/
|
|
105218
105237
|
function DocumentationProps(props) {
|
|
105219
105238
|
const {
|
|
@@ -105284,12 +105303,12 @@
|
|
|
105284
105303
|
});
|
|
105285
105304
|
}
|
|
105286
105305
|
|
|
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.
|
|
105306
|
+
/**
|
|
105307
|
+
* Retrieves a documentation element from a given moddle element.
|
|
105308
|
+
*
|
|
105309
|
+
* @param {ModdleElement} businessObject
|
|
105310
|
+
*
|
|
105311
|
+
* @returns {ModdleElement} documentation element inside the given moddle element.
|
|
105293
105312
|
*/
|
|
105294
105313
|
function getDocumentation(businessObject) {
|
|
105295
105314
|
return function () {
|
|
@@ -105298,10 +105317,10 @@
|
|
|
105298
105317
|
};
|
|
105299
105318
|
}
|
|
105300
105319
|
|
|
105301
|
-
/**
|
|
105302
|
-
* Sets a documentation element for a given moddle element.
|
|
105303
|
-
*
|
|
105304
|
-
* @param {ModdleElement} businessObject
|
|
105320
|
+
/**
|
|
105321
|
+
* Sets a documentation element for a given moddle element.
|
|
105322
|
+
*
|
|
105323
|
+
* @param {ModdleElement} businessObject
|
|
105305
105324
|
*/
|
|
105306
105325
|
function setDocumentation(element, businessObject, bpmnFactory, commandStack) {
|
|
105307
105326
|
return function (value) {
|
|
@@ -105344,15 +105363,15 @@
|
|
|
105344
105363
|
};
|
|
105345
105364
|
}
|
|
105346
105365
|
|
|
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}
|
|
105366
|
+
/**
|
|
105367
|
+
* Create a new element and (optionally) set its parent.
|
|
105368
|
+
*
|
|
105369
|
+
* @param {string} type
|
|
105370
|
+
* @param {Object} properties
|
|
105371
|
+
* @param {import('bpmn-js/lib/model/Types').ModdleElement} parent
|
|
105372
|
+
* @param {import('bpmn-js/lib/features/modeling/BpmnFactory').default} bpmnFactory
|
|
105373
|
+
*
|
|
105374
|
+
* @returns {import('bpmn-js/lib/model/Types').ModdleElement}
|
|
105356
105375
|
*/
|
|
105357
105376
|
function createElement(type, properties, parent, bpmnFactory) {
|
|
105358
105377
|
const element = bpmnFactory.create(type, properties);
|
|
@@ -105362,8 +105381,8 @@
|
|
|
105362
105381
|
return element;
|
|
105363
105382
|
}
|
|
105364
105383
|
|
|
105365
|
-
/**
|
|
105366
|
-
* generate a semantic id with given prefix
|
|
105384
|
+
/**
|
|
105385
|
+
* generate a semantic id with given prefix
|
|
105367
105386
|
*/
|
|
105368
105387
|
function nextId(prefix) {
|
|
105369
105388
|
const ids = new Ids$1([32, 32, 1]);
|
|
@@ -105392,12 +105411,12 @@
|
|
|
105392
105411
|
const EMPTY_OPTION$4 = '';
|
|
105393
105412
|
const CREATE_NEW_OPTION$4 = 'create-new';
|
|
105394
105413
|
|
|
105395
|
-
/**
|
|
105396
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105414
|
+
/**
|
|
105415
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105397
105416
|
*/
|
|
105398
105417
|
|
|
105399
|
-
/**
|
|
105400
|
-
* @returns {Array<Entry>} entries
|
|
105418
|
+
/**
|
|
105419
|
+
* @returns {Array<Entry>} entries
|
|
105401
105420
|
*/
|
|
105402
105421
|
function ErrorProps$2(props) {
|
|
105403
105422
|
const {
|
|
@@ -105573,12 +105592,12 @@
|
|
|
105573
105592
|
|
|
105574
105593
|
const CREATE_NEW_OPTION$3 = 'create-new';
|
|
105575
105594
|
|
|
105576
|
-
/**
|
|
105577
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105595
|
+
/**
|
|
105596
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105578
105597
|
*/
|
|
105579
105598
|
|
|
105580
|
-
/**
|
|
105581
|
-
* @returns {Array<Entry>} entries
|
|
105599
|
+
/**
|
|
105600
|
+
* @returns {Array<Entry>} entries
|
|
105582
105601
|
*/
|
|
105583
105602
|
function EscalationProps$2(props) {
|
|
105584
105603
|
const {
|
|
@@ -105751,12 +105770,12 @@
|
|
|
105751
105770
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
105752
105771
|
}
|
|
105753
105772
|
|
|
105754
|
-
/**
|
|
105755
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105773
|
+
/**
|
|
105774
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105756
105775
|
*/
|
|
105757
105776
|
|
|
105758
|
-
/**
|
|
105759
|
-
* @returns {Array<Entry>} entries
|
|
105777
|
+
/**
|
|
105778
|
+
* @returns {Array<Entry>} entries
|
|
105760
105779
|
*/
|
|
105761
105780
|
function ExecutableProps(props) {
|
|
105762
105781
|
const {
|
|
@@ -105827,14 +105846,14 @@
|
|
|
105827
105846
|
// for ID validation as per BPMN Schema (QName - Namespace)
|
|
105828
105847
|
const ID_REGEX = /^[a-z_][\w-.]*$/i;
|
|
105829
105848
|
|
|
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
|
|
105849
|
+
/**
|
|
105850
|
+
* checks whether the id value is valid
|
|
105851
|
+
*
|
|
105852
|
+
* @param {ModdleElement} element
|
|
105853
|
+
* @param {String} idValue
|
|
105854
|
+
* @param {Function} translate
|
|
105855
|
+
*
|
|
105856
|
+
* @return {String} error message
|
|
105838
105857
|
*/
|
|
105839
105858
|
function isIdValid(element, idValue, translate) {
|
|
105840
105859
|
const assigned = element.$model.ids.assigned(idValue);
|
|
@@ -105862,12 +105881,12 @@
|
|
|
105862
105881
|
return SPACE_REGEX.test(value);
|
|
105863
105882
|
}
|
|
105864
105883
|
|
|
105865
|
-
/**
|
|
105866
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105884
|
+
/**
|
|
105885
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105867
105886
|
*/
|
|
105868
105887
|
|
|
105869
|
-
/**
|
|
105870
|
-
* @returns {Array<Entry>} entries
|
|
105888
|
+
/**
|
|
105889
|
+
* @returns {Array<Entry>} entries
|
|
105871
105890
|
*/
|
|
105872
105891
|
function IdProps$1() {
|
|
105873
105892
|
return [{
|
|
@@ -105909,12 +105928,12 @@
|
|
|
105909
105928
|
});
|
|
105910
105929
|
}
|
|
105911
105930
|
|
|
105912
|
-
/**
|
|
105913
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105931
|
+
/**
|
|
105932
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105914
105933
|
*/
|
|
105915
105934
|
|
|
105916
|
-
/**
|
|
105917
|
-
* @returns {Array<Entry>} entries
|
|
105935
|
+
/**
|
|
105936
|
+
* @returns {Array<Entry>} entries
|
|
105918
105937
|
*/
|
|
105919
105938
|
function LinkProps(props) {
|
|
105920
105939
|
const {
|
|
@@ -105962,12 +105981,12 @@
|
|
|
105962
105981
|
const EMPTY_OPTION$3 = '';
|
|
105963
105982
|
const CREATE_NEW_OPTION$2 = 'create-new';
|
|
105964
105983
|
|
|
105965
|
-
/**
|
|
105966
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105984
|
+
/**
|
|
105985
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
105967
105986
|
*/
|
|
105968
105987
|
|
|
105969
|
-
/**
|
|
105970
|
-
* @returns {Array<Entry>} entries
|
|
105988
|
+
/**
|
|
105989
|
+
* @returns {Array<Entry>} entries
|
|
105971
105990
|
*/
|
|
105972
105991
|
function MessageProps$1(props) {
|
|
105973
105992
|
const {
|
|
@@ -106110,12 +106129,12 @@
|
|
|
106110
106129
|
return sortBy$1(elements, e => (e.name || '').toLowerCase());
|
|
106111
106130
|
}
|
|
106112
106131
|
|
|
106113
|
-
/**
|
|
106114
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106132
|
+
/**
|
|
106133
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106115
106134
|
*/
|
|
106116
106135
|
|
|
106117
|
-
/**
|
|
106118
|
-
* @returns {Array<Entry>} entries
|
|
106136
|
+
/**
|
|
106137
|
+
* @returns {Array<Entry>} entries
|
|
106119
106138
|
*/
|
|
106120
106139
|
function MultiInstanceProps$2(props) {
|
|
106121
106140
|
const {
|
|
@@ -106186,59 +106205,59 @@
|
|
|
106186
106205
|
|
|
106187
106206
|
// generic ///////////////////////////
|
|
106188
106207
|
|
|
106189
|
-
/**
|
|
106190
|
-
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
106191
|
-
*
|
|
106192
|
-
* @param {djs.model.Base} element
|
|
106193
|
-
* @return {boolean}
|
|
106208
|
+
/**
|
|
106209
|
+
* isMultiInstanceSupported - check whether given element supports MultiInstanceLoopCharacteristics.
|
|
106210
|
+
*
|
|
106211
|
+
* @param {djs.model.Base} element
|
|
106212
|
+
* @return {boolean}
|
|
106194
106213
|
*/
|
|
106195
106214
|
function isMultiInstanceSupported$1(element) {
|
|
106196
106215
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
106197
106216
|
return !!loopCharacteristics && is$5(loopCharacteristics, 'bpmn:MultiInstanceLoopCharacteristics');
|
|
106198
106217
|
}
|
|
106199
106218
|
|
|
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
|
|
106219
|
+
/**
|
|
106220
|
+
* getBody - get the body of a given expression.
|
|
106221
|
+
*
|
|
106222
|
+
* @param {ModdleElement<bpmn:FormalExpression>} expression
|
|
106223
|
+
* @return {string} the body (value) of the expression
|
|
106205
106224
|
*/
|
|
106206
106225
|
function getBody(expression) {
|
|
106207
106226
|
return expression && expression.get('body');
|
|
106208
106227
|
}
|
|
106209
106228
|
|
|
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
|
|
106229
|
+
/**
|
|
106230
|
+
* getProperty - get a property value of the loop characteristics.
|
|
106231
|
+
*
|
|
106232
|
+
* @param {djs.model.Base} element
|
|
106233
|
+
* @param {string} propertyName
|
|
106234
|
+
*
|
|
106235
|
+
* @return {any} the property value
|
|
106217
106236
|
*/
|
|
106218
106237
|
function getProperty$2(element, propertyName) {
|
|
106219
106238
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
106220
106239
|
return loopCharacteristics && loopCharacteristics.get(propertyName);
|
|
106221
106240
|
}
|
|
106222
106241
|
|
|
106223
|
-
/**
|
|
106224
|
-
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
106225
|
-
*
|
|
106226
|
-
* @param {djs.model.Base} element
|
|
106227
|
-
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
106242
|
+
/**
|
|
106243
|
+
* getLoopCharacteristics - get loopCharacteristics of a given element.
|
|
106244
|
+
*
|
|
106245
|
+
* @param {djs.model.Base} element
|
|
106246
|
+
* @return {ModdleElement<bpmn:MultiInstanceLoopCharacteristics> | undefined}
|
|
106228
106247
|
*/
|
|
106229
106248
|
function getLoopCharacteristics$2(element) {
|
|
106230
106249
|
const bo = getBusinessObject$1(element);
|
|
106231
106250
|
return bo.loopCharacteristics;
|
|
106232
106251
|
}
|
|
106233
106252
|
|
|
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
|
|
106253
|
+
/**
|
|
106254
|
+
* createFormalExpression - creates a 'bpmn:FormalExpression' element.
|
|
106255
|
+
*
|
|
106256
|
+
* @param {ModdleElement} parent
|
|
106257
|
+
* @param {string} body
|
|
106258
|
+
* @param {BpmnFactory} bpmnFactory
|
|
106259
|
+
*
|
|
106260
|
+
* @result {ModdleElement<bpmn:FormalExpression>} a formal expression
|
|
106242
106261
|
*/
|
|
106243
106262
|
function createFormalExpression$1(parent, body, bpmnFactory) {
|
|
106244
106263
|
return createElement('bpmn:FormalExpression', {
|
|
@@ -106246,13 +106265,13 @@
|
|
|
106246
106265
|
}, parent, bpmnFactory);
|
|
106247
106266
|
}
|
|
106248
106267
|
|
|
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
|
|
106268
|
+
/**
|
|
106269
|
+
* updateFormalExpression - updates a specific formal expression of the loop characteristics.
|
|
106270
|
+
*
|
|
106271
|
+
* @param {djs.model.Base} element
|
|
106272
|
+
* @param {string} propertyName
|
|
106273
|
+
* @param {string} newValue
|
|
106274
|
+
* @param {BpmnFactory} bpmnFactory
|
|
106256
106275
|
*/
|
|
106257
106276
|
function updateFormalExpression(element, propertyName, newValue, bpmnFactory) {
|
|
106258
106277
|
const loopCharacteristics = getLoopCharacteristics$2(element);
|
|
@@ -106289,23 +106308,23 @@
|
|
|
106289
106308
|
|
|
106290
106309
|
// loopCardinality
|
|
106291
106310
|
|
|
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
|
|
106311
|
+
/**
|
|
106312
|
+
* getLoopCardinality - get the loop cardinality of the loop characteristics.
|
|
106313
|
+
*
|
|
106314
|
+
* @param {djs.model.Base} element
|
|
106315
|
+
*
|
|
106316
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the loop cardinality
|
|
106298
106317
|
*/
|
|
106299
106318
|
function getLoopCardinality(element) {
|
|
106300
106319
|
return getProperty$2(element, 'loopCardinality');
|
|
106301
106320
|
}
|
|
106302
106321
|
|
|
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
|
|
106322
|
+
/**
|
|
106323
|
+
* getLoopCardinalityValue - get the loop cardinality value of the loop characteristics.
|
|
106324
|
+
*
|
|
106325
|
+
* @param {djs.model.Base} element
|
|
106326
|
+
*
|
|
106327
|
+
* @return {string} the loop cardinality value
|
|
106309
106328
|
*/
|
|
106310
106329
|
function getLoopCardinalityValue(element) {
|
|
106311
106330
|
const loopCardinality = getLoopCardinality(element);
|
|
@@ -106314,35 +106333,35 @@
|
|
|
106314
106333
|
|
|
106315
106334
|
// completionCondition /////////////////////
|
|
106316
106335
|
|
|
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
|
|
106336
|
+
/**
|
|
106337
|
+
* getCompletionCondition - get the completion condition of the loop characteristics.
|
|
106338
|
+
*
|
|
106339
|
+
* @param {djs.model.Base} element
|
|
106340
|
+
*
|
|
106341
|
+
* @return {ModdleElement<bpmn:FormalExpression>} an expression representing the completion condition
|
|
106323
106342
|
*/
|
|
106324
106343
|
function getCompletionCondition$1(element) {
|
|
106325
106344
|
return getProperty$2(element, 'completionCondition');
|
|
106326
106345
|
}
|
|
106327
106346
|
|
|
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
|
|
106347
|
+
/**
|
|
106348
|
+
* getCompletionConditionValue - get the completion condition value of the loop characteristics.
|
|
106349
|
+
*
|
|
106350
|
+
* @param {djs.model.Base} element
|
|
106351
|
+
*
|
|
106352
|
+
* @return {string} the completion condition value
|
|
106334
106353
|
*/
|
|
106335
106354
|
function getCompletionConditionValue(element) {
|
|
106336
106355
|
const completionCondition = getCompletionCondition$1(element);
|
|
106337
106356
|
return getBody(completionCondition);
|
|
106338
106357
|
}
|
|
106339
106358
|
|
|
106340
|
-
/**
|
|
106341
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106359
|
+
/**
|
|
106360
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106342
106361
|
*/
|
|
106343
106362
|
|
|
106344
|
-
/**
|
|
106345
|
-
* @returns {Array<Entry>} entries
|
|
106363
|
+
/**
|
|
106364
|
+
* @returns {Array<Entry>} entries
|
|
106346
106365
|
*/
|
|
106347
106366
|
function NameProps(props) {
|
|
106348
106367
|
const {
|
|
@@ -106446,12 +106465,12 @@
|
|
|
106446
106465
|
return categoryValue;
|
|
106447
106466
|
}
|
|
106448
106467
|
|
|
106449
|
-
/**
|
|
106450
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106468
|
+
/**
|
|
106469
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106451
106470
|
*/
|
|
106452
106471
|
|
|
106453
|
-
/**
|
|
106454
|
-
* @returns {Array<Entry>} entries
|
|
106472
|
+
/**
|
|
106473
|
+
* @returns {Array<Entry>} entries
|
|
106455
106474
|
*/
|
|
106456
106475
|
function ProcessProps$1(props) {
|
|
106457
106476
|
const {
|
|
@@ -106542,15 +106561,15 @@
|
|
|
106542
106561
|
return is$5(element, 'bpmn:Participant') && element.businessObject.get('processRef');
|
|
106543
106562
|
}
|
|
106544
106563
|
|
|
106545
|
-
/**
|
|
106546
|
-
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106564
|
+
/**
|
|
106565
|
+
* @typedef { import('@bpmn-io/properties-panel').EntryDefinition } Entry
|
|
106547
106566
|
*/
|
|
106548
106567
|
|
|
106549
106568
|
const EMPTY_OPTION$2 = '';
|
|
106550
106569
|
const CREATE_NEW_OPTION$1 = 'create-new';
|
|
106551
106570
|
|
|
106552
|
-
/**
|
|
106553
|
-
* @returns {Entry[]}
|
|
106571
|
+
/**
|
|
106572
|
+
* @returns {Entry[]}
|
|
106554
106573
|
*/
|
|
106555
106574
|
function SignalProps$1(props) {
|
|
106556
106575
|
const {
|
|
@@ -106696,12 +106715,12 @@
|
|
|
106696
106715
|
return isAny(element, ['bpmn:StartEvent', 'bpmn:IntermediateCatchEvent', 'bpmn:BoundaryEvent']) && !!getTimerEventDefinition(element);
|
|
106697
106716
|
}
|
|
106698
106717
|
|
|
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
|
|
106718
|
+
/**
|
|
106719
|
+
* Get the timer definition type for a given timer event definition.
|
|
106720
|
+
*
|
|
106721
|
+
* @param {ModdleElement<bpmn:TimerEventDefinition>} timer
|
|
106722
|
+
*
|
|
106723
|
+
* @return {string|undefined} the timer definition type
|
|
106705
106724
|
*/
|
|
106706
106725
|
function getTimerDefinitionType(timer) {
|
|
106707
106726
|
if (!timer) {
|
|
@@ -106771,12 +106790,12 @@
|
|
|
106771
106790
|
return entries;
|
|
106772
106791
|
}
|
|
106773
106792
|
|
|
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}
|
|
106793
|
+
/**
|
|
106794
|
+
* TimerEventDefinitionType - Generic select entry allowing to select a specific
|
|
106795
|
+
* timerEventDefintionType. To be used together with timerEventDefinitionValue.
|
|
106796
|
+
*
|
|
106797
|
+
* @param {type} props
|
|
106798
|
+
* @return {SelectEntry}
|
|
106780
106799
|
*/
|
|
106781
106800
|
function TimerEventDefinitionType$2(props) {
|
|
106782
106801
|
const {
|
|
@@ -106844,13 +106863,13 @@
|
|
|
106844
106863
|
});
|
|
106845
106864
|
}
|
|
106846
106865
|
|
|
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}
|
|
106866
|
+
/**
|
|
106867
|
+
* TimerEventDefinitionValue - Generic textField entry allowing to specify the
|
|
106868
|
+
* timerEventDefintionValue based on the set timerEventDefintionType. To be used
|
|
106869
|
+
* together with timerEventDefinitionType.
|
|
106870
|
+
*
|
|
106871
|
+
* @param {type} props
|
|
106872
|
+
* @return {TextFieldEntry}
|
|
106854
106873
|
*/
|
|
106855
106874
|
function TimerEventDefinitionValue$2(props) {
|
|
106856
106875
|
const {
|
|
@@ -107135,54 +107154,54 @@
|
|
|
107135
107154
|
bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
|
|
107136
107155
|
};
|
|
107137
107156
|
|
|
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
|
|
107157
|
+
/**
|
|
107158
|
+
* @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
|
|
107159
|
+
*
|
|
107160
|
+
* @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
|
|
107161
|
+
*/
|
|
107162
|
+
|
|
107163
|
+
/**
|
|
107164
|
+
*
|
|
107165
|
+
* @param {BaseViewerOptions} options
|
|
107166
|
+
*/
|
|
107167
|
+
function Modeler(options = {}) {
|
|
107168
|
+
Modeler$1.call(this, options);
|
|
107169
|
+
}
|
|
107170
|
+
|
|
107171
|
+
e$5(Modeler, Modeler$1);
|
|
107172
|
+
|
|
107173
|
+
/**
|
|
107174
|
+
* @param { {
|
|
107175
|
+
* disableAdjustOrigin?: boolean;
|
|
107176
|
+
* disableGrid?: boolean;
|
|
107177
|
+
* } } [options]
|
|
107178
|
+
*
|
|
107179
|
+
* @returns {ModuleDeclaration[]}
|
|
107180
|
+
*/
|
|
107181
|
+
Modeler.prototype.getModules = function(options = {}) {
|
|
107182
|
+
const modules = Modeler$1.prototype.getModules.call(this, options);
|
|
107183
|
+
|
|
107184
|
+
return [
|
|
107185
|
+
...modules,
|
|
107186
|
+
options.disableAdjustOrigin
|
|
107187
|
+
? diagramOriginModule
|
|
107188
|
+
: alignToOriginModule,
|
|
107189
|
+
options.disableGrid
|
|
107190
|
+
? {}
|
|
107191
|
+
: index$4
|
|
107192
|
+
];
|
|
107193
|
+
};
|
|
107194
|
+
|
|
107195
|
+
Modeler.prototype._extensionModules = [
|
|
107196
|
+
index$5,
|
|
107197
|
+
ExecutableFixModule,
|
|
107198
|
+
index$3,
|
|
107199
|
+
index$2
|
|
107200
|
+
];
|
|
107201
|
+
|
|
107202
|
+
Modeler.prototype._modules = [].concat(
|
|
107203
|
+
Modeler$1.prototype._modules,
|
|
107204
|
+
Modeler.prototype._extensionModules
|
|
107186
107205
|
);
|
|
107187
107206
|
|
|
107188
107207
|
return Modeler;
|