bpmn-js 17.5.0 → 17.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bpmn-modeler.development.js +76 -18
- package/dist/bpmn-modeler.production.min.js +6 -6
- package/dist/bpmn-navigated-viewer.development.js +59 -7
- package/dist/bpmn-navigated-viewer.production.min.js +3 -3
- package/dist/bpmn-viewer.development.js +55 -7
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/BaseModeler.d.ts +5 -2
- package/lib/BaseModeler.js +5 -1
- package/lib/BaseViewer.d.ts +81 -9
- package/lib/BaseViewer.js +47 -3
- package/lib/Modeler.d.ts +4 -2
- package/lib/Modeler.js +4 -1
- package/lib/NavigatedViewer.d.ts +4 -1
- package/lib/NavigatedViewer.js +4 -0
- package/lib/Viewer.d.ts +5 -2
- package/lib/Viewer.js +5 -1
- package/lib/features/context-pad/ContextPadProvider.js +4 -5
- package/lib/features/modeling/cmd/SetColorHandler.js +1 -1
- package/lib/features/modeling/cmd/SplitLaneHandler.js +1 -1
- package/lib/features/ordering/BpmnOrderingProvider.js +2 -2
- package/lib/import/BpmnTreeWalker.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v17.
|
|
2
|
+
* bpmn-js - bpmn-modeler v17.6.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date: 2024-04-
|
|
11
|
+
* Date: 2024-04-30
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -16321,7 +16321,7 @@
|
|
|
16321
16321
|
// avoid multiple rendering of elements
|
|
16322
16322
|
if (gfx) {
|
|
16323
16323
|
throw new Error(
|
|
16324
|
-
|
|
16324
|
+
`already rendered ${ elementToString(element) }`
|
|
16325
16325
|
);
|
|
16326
16326
|
}
|
|
16327
16327
|
|
|
@@ -17053,6 +17053,12 @@
|
|
|
17053
17053
|
* @see http://bpmn.io/license for more information.
|
|
17054
17054
|
*/
|
|
17055
17055
|
|
|
17056
|
+
/**
|
|
17057
|
+
* @template T
|
|
17058
|
+
*
|
|
17059
|
+
* @typedef { import('diagram-js/lib/core/EventBus').default<T> } EventBus
|
|
17060
|
+
*/
|
|
17061
|
+
|
|
17056
17062
|
/**
|
|
17057
17063
|
* @template T
|
|
17058
17064
|
*
|
|
@@ -17138,12 +17144,22 @@
|
|
|
17138
17144
|
* } } SaveSVGDoneEvent
|
|
17139
17145
|
*/
|
|
17140
17146
|
|
|
17147
|
+
/**
|
|
17148
|
+
* @template Type
|
|
17149
|
+
*
|
|
17150
|
+
* @typedef { Type extends { eventBus: EventBus<infer X> } ? X : never } EventMap
|
|
17151
|
+
*/
|
|
17152
|
+
|
|
17141
17153
|
/**
|
|
17142
17154
|
* A base viewer for BPMN 2.0 diagrams.
|
|
17143
17155
|
*
|
|
17144
|
-
* Have a look at {@link Viewer}, {@link NavigatedViewer} or {@link Modeler} for
|
|
17156
|
+
* Have a look at {@link bpmn-js/lib/Viewer}, {@link bpmn-js/lib/NavigatedViewer} or {@link bpmn-js/lib/Modeler} for
|
|
17145
17157
|
* bundles that include actual features.
|
|
17146
17158
|
*
|
|
17159
|
+
* @template [ServiceMap=null]
|
|
17160
|
+
*
|
|
17161
|
+
* @extends Diagram<ServiceMap>
|
|
17162
|
+
*
|
|
17147
17163
|
* @param {BaseViewerOptions} [options] The options to configure the viewer.
|
|
17148
17164
|
*/
|
|
17149
17165
|
function BaseViewer(options) {
|
|
@@ -17564,9 +17580,18 @@
|
|
|
17564
17580
|
};
|
|
17565
17581
|
|
|
17566
17582
|
/**
|
|
17567
|
-
*
|
|
17583
|
+
* @overlord
|
|
17568
17584
|
*
|
|
17569
|
-
*
|
|
17585
|
+
* Register an event listener for events with the given name.
|
|
17586
|
+
*
|
|
17587
|
+
* The callback will be invoked with `event, ...additionalArguments`
|
|
17588
|
+
* that have been passed to {@link EventBus#fire}.
|
|
17589
|
+
*
|
|
17590
|
+
* Returning false from a listener will prevent the events default action
|
|
17591
|
+
* (if any is specified). To stop an event from being processed further in
|
|
17592
|
+
* other listeners execute {@link Event#stopPropagation}.
|
|
17593
|
+
*
|
|
17594
|
+
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
17570
17595
|
*
|
|
17571
17596
|
* @template T
|
|
17572
17597
|
*
|
|
@@ -17575,6 +17600,25 @@
|
|
|
17575
17600
|
* @param {EventBusEventCallback<T>} callback The callback.
|
|
17576
17601
|
* @param {any} [that] Value of `this` the callback will be called with.
|
|
17577
17602
|
*/
|
|
17603
|
+
/**
|
|
17604
|
+
* Register an event listener for events with the given name.
|
|
17605
|
+
*
|
|
17606
|
+
* The callback will be invoked with `event, ...additionalArguments`
|
|
17607
|
+
* that have been passed to {@link EventBus#fire}.
|
|
17608
|
+
*
|
|
17609
|
+
* Returning false from a listener will prevent the events default action
|
|
17610
|
+
* (if any is specified). To stop an event from being processed further in
|
|
17611
|
+
* other listeners execute {@link Event#stopPropagation}.
|
|
17612
|
+
*
|
|
17613
|
+
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
17614
|
+
*
|
|
17615
|
+
* @template {keyof EventMap<ServiceMap>} EventName
|
|
17616
|
+
*
|
|
17617
|
+
* @param {EventName} events to subscribe to
|
|
17618
|
+
* @param {number} [priority=1000] listen priority
|
|
17619
|
+
* @param {EventBusEventCallback<(EventMap<ServiceMap>)[EventName]>} callback
|
|
17620
|
+
* @param {any} [that] callback context
|
|
17621
|
+
*/
|
|
17578
17622
|
BaseViewer.prototype.on = function(events, priority, callback, that) {
|
|
17579
17623
|
return this.get('eventBus').on(events, priority, callback, that);
|
|
17580
17624
|
};
|
|
@@ -17831,7 +17875,11 @@
|
|
|
17831
17875
|
/**
|
|
17832
17876
|
* A base modeler for BPMN 2.0 diagrams.
|
|
17833
17877
|
*
|
|
17834
|
-
* See {@link Modeler} for a fully-featured modeler.
|
|
17878
|
+
* See {@link bpmn-js/lib/Modeler} for a fully-featured modeler.
|
|
17879
|
+
*
|
|
17880
|
+
* @template [ServiceMap=null]
|
|
17881
|
+
*
|
|
17882
|
+
* @extends BaseViewer<ServiceMap>
|
|
17835
17883
|
*
|
|
17836
17884
|
* @param {BaseViewerOptions} [options] The options to configure the modeler.
|
|
17837
17885
|
*/
|
|
@@ -25540,7 +25588,7 @@
|
|
|
25540
25588
|
/**
|
|
25541
25589
|
* A viewer for BPMN 2.0 diagrams.
|
|
25542
25590
|
*
|
|
25543
|
-
* Have a look at {@link NavigatedViewer} or {@link Modeler} for bundles that include
|
|
25591
|
+
* Have a look at {@link bpmn-js/lib/NavigatedViewer} or {@link bpmn-js/lib/Modeler} for bundles that include
|
|
25544
25592
|
* additional features.
|
|
25545
25593
|
*
|
|
25546
25594
|
*
|
|
@@ -25576,6 +25624,10 @@
|
|
|
25576
25624
|
* bpmnViewer.importXML(...);
|
|
25577
25625
|
* ```
|
|
25578
25626
|
*
|
|
25627
|
+
* @template [ServiceMap=null]
|
|
25628
|
+
*
|
|
25629
|
+
* @extends BaseViewer<ServiceMap>
|
|
25630
|
+
*
|
|
25579
25631
|
* @param {BaseViewerOptions} [options] The options to configure the viewer.
|
|
25580
25632
|
*/
|
|
25581
25633
|
function Viewer(options) {
|
|
@@ -26698,6 +26750,10 @@
|
|
|
26698
26750
|
/**
|
|
26699
26751
|
* A viewer with mouse and keyboard navigation features.
|
|
26700
26752
|
*
|
|
26753
|
+
* @template [ServiceMap=null]
|
|
26754
|
+
*
|
|
26755
|
+
* @extends Viewer<ServiceMap>
|
|
26756
|
+
*
|
|
26701
26757
|
* @param {BaseViewerOptions} [options]
|
|
26702
26758
|
*/
|
|
26703
26759
|
function NavigatedViewer(options) {
|
|
@@ -42395,7 +42451,7 @@
|
|
|
42395
42451
|
}
|
|
42396
42452
|
|
|
42397
42453
|
if (!order) {
|
|
42398
|
-
throw new Error(
|
|
42454
|
+
throw new Error(`no order for <${ element.id }>`);
|
|
42399
42455
|
}
|
|
42400
42456
|
|
|
42401
42457
|
return order;
|
|
@@ -42415,7 +42471,7 @@
|
|
|
42415
42471
|
}
|
|
42416
42472
|
|
|
42417
42473
|
if (!actualParent) {
|
|
42418
|
-
throw new Error(
|
|
42474
|
+
throw new Error(`no parent for <${ element.id }> in <${ newParent && newParent.id }>`);
|
|
42419
42475
|
}
|
|
42420
42476
|
|
|
42421
42477
|
return actualParent;
|
|
@@ -51699,7 +51755,7 @@
|
|
|
51699
51755
|
existingLanesCount = childLanes.length;
|
|
51700
51756
|
|
|
51701
51757
|
if (existingLanesCount > newLanesCount) {
|
|
51702
|
-
throw new Error(`more than <${newLanesCount}> child lanes`);
|
|
51758
|
+
throw new Error(`more than <${ newLanesCount }> child lanes`);
|
|
51703
51759
|
}
|
|
51704
51760
|
|
|
51705
51761
|
var isHorizontalLane = isHorizontal$3(shape);
|
|
@@ -52173,7 +52229,7 @@
|
|
|
52173
52229
|
}
|
|
52174
52230
|
}
|
|
52175
52231
|
|
|
52176
|
-
throw new Error(
|
|
52232
|
+
throw new Error(`invalid color value: ${ color }`);
|
|
52177
52233
|
};
|
|
52178
52234
|
}
|
|
52179
52235
|
|
|
@@ -56553,6 +56609,10 @@
|
|
|
56553
56609
|
entries.replace.action.click(event, shape);
|
|
56554
56610
|
}
|
|
56555
56611
|
});
|
|
56612
|
+
|
|
56613
|
+
eventBus.on('contextPad.close', function() {
|
|
56614
|
+
appendPreview.cleanUp();
|
|
56615
|
+
});
|
|
56556
56616
|
}
|
|
56557
56617
|
|
|
56558
56618
|
ContextPadProvider.$inject = [
|
|
@@ -56687,16 +56747,12 @@
|
|
|
56687
56747
|
create.start(event, shape, {
|
|
56688
56748
|
source: element
|
|
56689
56749
|
});
|
|
56690
|
-
|
|
56691
|
-
appendPreview.cleanUp();
|
|
56692
56750
|
}
|
|
56693
56751
|
|
|
56694
56752
|
var append = autoPlace ? function(_, element) {
|
|
56695
56753
|
var shape = elementFactory.createShape(assign$1({ type: type }, options));
|
|
56696
56754
|
|
|
56697
56755
|
autoPlace.append(element, shape);
|
|
56698
|
-
|
|
56699
|
-
appendPreview.cleanUp();
|
|
56700
56756
|
} : appendStart;
|
|
56701
56757
|
|
|
56702
56758
|
var previewAppend = autoPlace ? function(_, element) {
|
|
@@ -56930,7 +56986,6 @@
|
|
|
56930
56986
|
'bpmn-icon-text-annotation',
|
|
56931
56987
|
translate('Add text annotation')
|
|
56932
56988
|
),
|
|
56933
|
-
|
|
56934
56989
|
'connect': {
|
|
56935
56990
|
group: 'connect',
|
|
56936
56991
|
className: 'bpmn-icon-connection-multi',
|
|
@@ -64949,7 +65004,6 @@
|
|
|
64949
65004
|
/**
|
|
64950
65005
|
* A modeler for BPMN 2.0 diagrams.
|
|
64951
65006
|
*
|
|
64952
|
-
*
|
|
64953
65007
|
* ## Extending the Modeler
|
|
64954
65008
|
*
|
|
64955
65009
|
* In order to extend the viewer pass extension modules to bootstrap via the
|
|
@@ -65010,6 +65064,10 @@
|
|
|
65010
65064
|
* var bpmnModeler = new Modeler({ additionalModules: [ overrideModule ]});
|
|
65011
65065
|
* ```
|
|
65012
65066
|
*
|
|
65067
|
+
* @template [ServiceMap=null]
|
|
65068
|
+
*
|
|
65069
|
+
* @extends BaseModeler<ServiceMap>
|
|
65070
|
+
*
|
|
65013
65071
|
* @param {BaseViewerOptions} [options] The options to configure the modeler.
|
|
65014
65072
|
*/
|
|
65015
65073
|
function Modeler(options) {
|