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-viewer v17.
|
|
2
|
+
* bpmn-js - bpmn-viewer 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() :
|
|
@@ -22127,7 +22127,7 @@
|
|
|
22127
22127
|
// avoid multiple rendering of elements
|
|
22128
22128
|
if (gfx) {
|
|
22129
22129
|
throw new Error(
|
|
22130
|
-
|
|
22130
|
+
`already rendered ${ elementToString(element) }`
|
|
22131
22131
|
);
|
|
22132
22132
|
}
|
|
22133
22133
|
|
|
@@ -22803,6 +22803,12 @@
|
|
|
22803
22803
|
* @see http://bpmn.io/license for more information.
|
|
22804
22804
|
*/
|
|
22805
22805
|
|
|
22806
|
+
/**
|
|
22807
|
+
* @template T
|
|
22808
|
+
*
|
|
22809
|
+
* @typedef { import('diagram-js/lib/core/EventBus').default<T> } EventBus
|
|
22810
|
+
*/
|
|
22811
|
+
|
|
22806
22812
|
/**
|
|
22807
22813
|
* @template T
|
|
22808
22814
|
*
|
|
@@ -22888,12 +22894,22 @@
|
|
|
22888
22894
|
* } } SaveSVGDoneEvent
|
|
22889
22895
|
*/
|
|
22890
22896
|
|
|
22897
|
+
/**
|
|
22898
|
+
* @template Type
|
|
22899
|
+
*
|
|
22900
|
+
* @typedef { Type extends { eventBus: EventBus<infer X> } ? X : never } EventMap
|
|
22901
|
+
*/
|
|
22902
|
+
|
|
22891
22903
|
/**
|
|
22892
22904
|
* A base viewer for BPMN 2.0 diagrams.
|
|
22893
22905
|
*
|
|
22894
|
-
* Have a look at {@link Viewer}, {@link NavigatedViewer} or {@link Modeler} for
|
|
22906
|
+
* Have a look at {@link bpmn-js/lib/Viewer}, {@link bpmn-js/lib/NavigatedViewer} or {@link bpmn-js/lib/Modeler} for
|
|
22895
22907
|
* bundles that include actual features.
|
|
22896
22908
|
*
|
|
22909
|
+
* @template [ServiceMap=null]
|
|
22910
|
+
*
|
|
22911
|
+
* @extends Diagram<ServiceMap>
|
|
22912
|
+
*
|
|
22897
22913
|
* @param {BaseViewerOptions} [options] The options to configure the viewer.
|
|
22898
22914
|
*/
|
|
22899
22915
|
function BaseViewer(options) {
|
|
@@ -23314,9 +23330,18 @@
|
|
|
23314
23330
|
};
|
|
23315
23331
|
|
|
23316
23332
|
/**
|
|
23317
|
-
*
|
|
23333
|
+
* @overlord
|
|
23334
|
+
*
|
|
23335
|
+
* Register an event listener for events with the given name.
|
|
23318
23336
|
*
|
|
23319
|
-
*
|
|
23337
|
+
* The callback will be invoked with `event, ...additionalArguments`
|
|
23338
|
+
* that have been passed to {@link EventBus#fire}.
|
|
23339
|
+
*
|
|
23340
|
+
* Returning false from a listener will prevent the events default action
|
|
23341
|
+
* (if any is specified). To stop an event from being processed further in
|
|
23342
|
+
* other listeners execute {@link Event#stopPropagation}.
|
|
23343
|
+
*
|
|
23344
|
+
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
23320
23345
|
*
|
|
23321
23346
|
* @template T
|
|
23322
23347
|
*
|
|
@@ -23325,6 +23350,25 @@
|
|
|
23325
23350
|
* @param {EventBusEventCallback<T>} callback The callback.
|
|
23326
23351
|
* @param {any} [that] Value of `this` the callback will be called with.
|
|
23327
23352
|
*/
|
|
23353
|
+
/**
|
|
23354
|
+
* Register an event listener for events with the given name.
|
|
23355
|
+
*
|
|
23356
|
+
* The callback will be invoked with `event, ...additionalArguments`
|
|
23357
|
+
* that have been passed to {@link EventBus#fire}.
|
|
23358
|
+
*
|
|
23359
|
+
* Returning false from a listener will prevent the events default action
|
|
23360
|
+
* (if any is specified). To stop an event from being processed further in
|
|
23361
|
+
* other listeners execute {@link Event#stopPropagation}.
|
|
23362
|
+
*
|
|
23363
|
+
* Returning anything but `undefined` from a listener will stop the listener propagation.
|
|
23364
|
+
*
|
|
23365
|
+
* @template {keyof EventMap<ServiceMap>} EventName
|
|
23366
|
+
*
|
|
23367
|
+
* @param {EventName} events to subscribe to
|
|
23368
|
+
* @param {number} [priority=1000] listen priority
|
|
23369
|
+
* @param {EventBusEventCallback<(EventMap<ServiceMap>)[EventName]>} callback
|
|
23370
|
+
* @param {any} [that] callback context
|
|
23371
|
+
*/
|
|
23328
23372
|
BaseViewer.prototype.on = function(events, priority, callback, that) {
|
|
23329
23373
|
return this.get('eventBus').on(events, priority, callback, that);
|
|
23330
23374
|
};
|
|
@@ -23578,7 +23622,7 @@
|
|
|
23578
23622
|
/**
|
|
23579
23623
|
* A viewer for BPMN 2.0 diagrams.
|
|
23580
23624
|
*
|
|
23581
|
-
* Have a look at {@link NavigatedViewer} or {@link Modeler} for bundles that include
|
|
23625
|
+
* Have a look at {@link bpmn-js/lib/NavigatedViewer} or {@link bpmn-js/lib/Modeler} for bundles that include
|
|
23582
23626
|
* additional features.
|
|
23583
23627
|
*
|
|
23584
23628
|
*
|
|
@@ -23614,6 +23658,10 @@
|
|
|
23614
23658
|
* bpmnViewer.importXML(...);
|
|
23615
23659
|
* ```
|
|
23616
23660
|
*
|
|
23661
|
+
* @template [ServiceMap=null]
|
|
23662
|
+
*
|
|
23663
|
+
* @extends BaseViewer<ServiceMap>
|
|
23664
|
+
*
|
|
23617
23665
|
* @param {BaseViewerOptions} [options] The options to configure the viewer.
|
|
23618
23666
|
*/
|
|
23619
23667
|
function Viewer(options) {
|