bpmn-js 16.0.0 → 16.1.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/README.md +2 -11
- package/dist/bpmn-modeler.development.js +77 -138
- package/dist/bpmn-modeler.production.min.js +35 -35
- package/dist/bpmn-navigated-viewer.development.js +29 -94
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +29 -94
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/package.json +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer v16.
|
|
2
|
+
* bpmn-js - bpmn-viewer v16.1.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: 2023-12-
|
|
11
|
+
* Date: 2023-12-14
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -6176,10 +6176,6 @@
|
|
|
6176
6176
|
translate: [ 'value', translate ]
|
|
6177
6177
|
};
|
|
6178
6178
|
|
|
6179
|
-
function getDefaultExportFromCjs (x) {
|
|
6180
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6181
|
-
}
|
|
6182
|
-
|
|
6183
6179
|
/**
|
|
6184
6180
|
* @param {Point} point
|
|
6185
6181
|
*
|
|
@@ -12338,32 +12334,17 @@
|
|
|
12338
12334
|
}
|
|
12339
12335
|
};
|
|
12340
12336
|
|
|
12341
|
-
var objectRefs = {exports: {}};
|
|
12342
|
-
|
|
12343
|
-
var collection = {};
|
|
12344
|
-
|
|
12345
|
-
/**
|
|
12346
|
-
* An empty collection stub. Use {@link RefsCollection.extend} to extend a
|
|
12347
|
-
* collection with ref semantics.
|
|
12348
|
-
*
|
|
12349
|
-
* @class RefsCollection
|
|
12350
|
-
*/
|
|
12351
|
-
|
|
12352
12337
|
/**
|
|
12353
12338
|
* Extends a collection with {@link Refs} aware methods
|
|
12354
12339
|
*
|
|
12355
|
-
* @
|
|
12356
|
-
* @
|
|
12357
|
-
*
|
|
12358
|
-
* @param
|
|
12359
|
-
* @param {Refs} refs instance
|
|
12360
|
-
* @param {Object} property represented by the collection
|
|
12361
|
-
* @param {Object} target object the collection is attached to
|
|
12340
|
+
* @param {Array<Object>} collection
|
|
12341
|
+
* @param {Refs} refs instance
|
|
12342
|
+
* @param {Object} property represented by the collection
|
|
12343
|
+
* @param {Object} target object the collection is attached to
|
|
12362
12344
|
*
|
|
12363
12345
|
* @return {RefsCollection<Object>} the extended array
|
|
12364
12346
|
*/
|
|
12365
12347
|
function extend(collection, refs, property, target) {
|
|
12366
|
-
|
|
12367
12348
|
var inverseProperty = property.inverse;
|
|
12368
12349
|
|
|
12369
12350
|
/**
|
|
@@ -12374,7 +12355,7 @@
|
|
|
12374
12355
|
* @param {Object} element the element to remove
|
|
12375
12356
|
*/
|
|
12376
12357
|
Object.defineProperty(collection, 'remove', {
|
|
12377
|
-
value: function(element) {
|
|
12358
|
+
value: function (element) {
|
|
12378
12359
|
var idx = this.indexOf(element);
|
|
12379
12360
|
if (idx !== -1) {
|
|
12380
12361
|
this.splice(idx, 1);
|
|
@@ -12382,7 +12363,6 @@
|
|
|
12382
12363
|
// unset inverse
|
|
12383
12364
|
refs.unset(element, inverseProperty, target);
|
|
12384
12365
|
}
|
|
12385
|
-
|
|
12386
12366
|
return element;
|
|
12387
12367
|
}
|
|
12388
12368
|
});
|
|
@@ -12395,7 +12375,7 @@
|
|
|
12395
12375
|
* @param {Object} element the element to check for
|
|
12396
12376
|
*/
|
|
12397
12377
|
Object.defineProperty(collection, 'contains', {
|
|
12398
|
-
value: function(element) {
|
|
12378
|
+
value: function (element) {
|
|
12399
12379
|
return this.indexOf(element) !== -1;
|
|
12400
12380
|
}
|
|
12401
12381
|
});
|
|
@@ -12410,12 +12390,9 @@
|
|
|
12410
12390
|
* (possibly moving other elements around)
|
|
12411
12391
|
*/
|
|
12412
12392
|
Object.defineProperty(collection, 'add', {
|
|
12413
|
-
value: function(element, idx) {
|
|
12414
|
-
|
|
12393
|
+
value: function (element, idx) {
|
|
12415
12394
|
var currentIdx = this.indexOf(element);
|
|
12416
|
-
|
|
12417
12395
|
if (typeof idx === 'undefined') {
|
|
12418
|
-
|
|
12419
12396
|
if (currentIdx !== -1) {
|
|
12420
12397
|
// element already in collection (!)
|
|
12421
12398
|
return;
|
|
@@ -12427,14 +12404,12 @@
|
|
|
12427
12404
|
|
|
12428
12405
|
// handle already in collection
|
|
12429
12406
|
if (currentIdx !== -1) {
|
|
12430
|
-
|
|
12431
12407
|
// remove element from currentIdx
|
|
12432
12408
|
this.splice(currentIdx, 1);
|
|
12433
12409
|
}
|
|
12434
12410
|
|
|
12435
12411
|
// add element at idx
|
|
12436
12412
|
this.splice(idx, 0, element);
|
|
12437
|
-
|
|
12438
12413
|
if (currentIdx === -1) {
|
|
12439
12414
|
// set inverse, unless element was
|
|
12440
12415
|
// in collection already
|
|
@@ -12448,69 +12423,53 @@
|
|
|
12448
12423
|
Object.defineProperty(collection, '__refs_collection', {
|
|
12449
12424
|
value: true
|
|
12450
12425
|
});
|
|
12451
|
-
|
|
12452
12426
|
return collection;
|
|
12453
12427
|
}
|
|
12454
12428
|
|
|
12455
|
-
|
|
12429
|
+
/**
|
|
12430
|
+
* Checks if a given collection is extended
|
|
12431
|
+
*
|
|
12432
|
+
* @param {Array<Object>} collection
|
|
12433
|
+
*
|
|
12434
|
+
* @return {boolean}
|
|
12435
|
+
*/
|
|
12456
12436
|
function isExtended(collection) {
|
|
12457
12437
|
return collection.__refs_collection === true;
|
|
12458
12438
|
}
|
|
12459
12439
|
|
|
12460
|
-
collection.extend = extend;
|
|
12461
|
-
|
|
12462
|
-
collection.isExtended = isExtended;
|
|
12463
|
-
|
|
12464
|
-
var Collection = collection;
|
|
12465
|
-
|
|
12466
12440
|
function hasOwnProperty$1(e, property) {
|
|
12467
12441
|
return Object.prototype.hasOwnProperty.call(e, property.name || property);
|
|
12468
12442
|
}
|
|
12469
|
-
|
|
12470
12443
|
function defineCollectionProperty(ref, property, target) {
|
|
12471
|
-
|
|
12472
|
-
var collection = Collection.extend(target[property.name] || [], ref, property, target);
|
|
12473
|
-
|
|
12444
|
+
var collection = extend(target[property.name] || [], ref, property, target);
|
|
12474
12445
|
Object.defineProperty(target, property.name, {
|
|
12475
12446
|
enumerable: property.enumerable,
|
|
12476
12447
|
value: collection
|
|
12477
12448
|
});
|
|
12478
|
-
|
|
12479
12449
|
if (collection.length) {
|
|
12480
|
-
|
|
12481
|
-
collection.forEach(function(o) {
|
|
12450
|
+
collection.forEach(function (o) {
|
|
12482
12451
|
ref.set(o, property.inverse, target);
|
|
12483
12452
|
});
|
|
12484
12453
|
}
|
|
12485
12454
|
}
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
12455
|
function defineProperty$1(ref, property, target) {
|
|
12489
|
-
|
|
12490
12456
|
var inverseProperty = property.inverse;
|
|
12491
|
-
|
|
12492
12457
|
var _value = target[property.name];
|
|
12493
|
-
|
|
12494
12458
|
Object.defineProperty(target, property.name, {
|
|
12495
12459
|
configurable: property.configurable,
|
|
12496
12460
|
enumerable: property.enumerable,
|
|
12497
|
-
|
|
12498
|
-
get: function() {
|
|
12461
|
+
get: function () {
|
|
12499
12462
|
return _value;
|
|
12500
12463
|
},
|
|
12501
|
-
|
|
12502
|
-
set: function(value) {
|
|
12503
|
-
|
|
12464
|
+
set: function (value) {
|
|
12504
12465
|
// return if we already performed all changes
|
|
12505
12466
|
if (value === _value) {
|
|
12506
12467
|
return;
|
|
12507
12468
|
}
|
|
12508
|
-
|
|
12509
12469
|
var old = _value;
|
|
12510
12470
|
|
|
12511
12471
|
// temporary set null
|
|
12512
12472
|
_value = null;
|
|
12513
|
-
|
|
12514
12473
|
if (old) {
|
|
12515
12474
|
ref.unset(old, inverseProperty, target);
|
|
12516
12475
|
}
|
|
@@ -12522,7 +12481,6 @@
|
|
|
12522
12481
|
ref.set(_value, inverseProperty, target);
|
|
12523
12482
|
}
|
|
12524
12483
|
});
|
|
12525
|
-
|
|
12526
12484
|
}
|
|
12527
12485
|
|
|
12528
12486
|
/**
|
|
@@ -12568,16 +12526,14 @@
|
|
|
12568
12526
|
*
|
|
12569
12527
|
* wheels[0].car // undefined
|
|
12570
12528
|
*/
|
|
12571
|
-
function Refs
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
return new Refs$1(a, b);
|
|
12529
|
+
function Refs(a, b) {
|
|
12530
|
+
if (!(this instanceof Refs)) {
|
|
12531
|
+
return new Refs(a, b);
|
|
12575
12532
|
}
|
|
12576
12533
|
|
|
12577
12534
|
// link
|
|
12578
12535
|
a.inverse = b;
|
|
12579
12536
|
b.inverse = a;
|
|
12580
|
-
|
|
12581
12537
|
this.props = {};
|
|
12582
12538
|
this.props[a.name] = a;
|
|
12583
12539
|
this.props[b.name] = b;
|
|
@@ -12592,43 +12548,34 @@
|
|
|
12592
12548
|
* @param {Object} target
|
|
12593
12549
|
* @param {String} property
|
|
12594
12550
|
*/
|
|
12595
|
-
Refs
|
|
12551
|
+
Refs.prototype.bind = function (target, property) {
|
|
12596
12552
|
if (typeof property === 'string') {
|
|
12597
12553
|
if (!this.props[property]) {
|
|
12598
12554
|
throw new Error('no property <' + property + '> in ref');
|
|
12599
12555
|
}
|
|
12600
12556
|
property = this.props[property];
|
|
12601
12557
|
}
|
|
12602
|
-
|
|
12603
12558
|
if (property.collection) {
|
|
12604
12559
|
defineCollectionProperty(this, property, target);
|
|
12605
12560
|
} else {
|
|
12606
12561
|
defineProperty$1(this, property, target);
|
|
12607
12562
|
}
|
|
12608
12563
|
};
|
|
12609
|
-
|
|
12610
|
-
Refs$1.prototype.ensureRefsCollection = function(target, property) {
|
|
12611
|
-
|
|
12564
|
+
Refs.prototype.ensureRefsCollection = function (target, property) {
|
|
12612
12565
|
var collection = target[property.name];
|
|
12613
|
-
|
|
12614
|
-
if (!Collection.isExtended(collection)) {
|
|
12566
|
+
if (!isExtended(collection)) {
|
|
12615
12567
|
defineCollectionProperty(this, property, target);
|
|
12616
12568
|
}
|
|
12617
|
-
|
|
12618
12569
|
return collection;
|
|
12619
12570
|
};
|
|
12620
|
-
|
|
12621
|
-
Refs$1.prototype.ensureBound = function(target, property) {
|
|
12571
|
+
Refs.prototype.ensureBound = function (target, property) {
|
|
12622
12572
|
if (!hasOwnProperty$1(target, property)) {
|
|
12623
12573
|
this.bind(target, property);
|
|
12624
12574
|
}
|
|
12625
12575
|
};
|
|
12626
|
-
|
|
12627
|
-
Refs$1.prototype.unset = function(target, property, value) {
|
|
12628
|
-
|
|
12576
|
+
Refs.prototype.unset = function (target, property, value) {
|
|
12629
12577
|
if (target) {
|
|
12630
12578
|
this.ensureBound(target, property);
|
|
12631
|
-
|
|
12632
12579
|
if (property.collection) {
|
|
12633
12580
|
this.ensureRefsCollection(target, property).remove(value);
|
|
12634
12581
|
} else {
|
|
@@ -12636,12 +12583,9 @@
|
|
|
12636
12583
|
}
|
|
12637
12584
|
}
|
|
12638
12585
|
};
|
|
12639
|
-
|
|
12640
|
-
Refs$1.prototype.set = function(target, property, value) {
|
|
12641
|
-
|
|
12586
|
+
Refs.prototype.set = function (target, property, value) {
|
|
12642
12587
|
if (target) {
|
|
12643
12588
|
this.ensureBound(target, property);
|
|
12644
|
-
|
|
12645
12589
|
if (property.collection) {
|
|
12646
12590
|
this.ensureRefsCollection(target, property).add(value);
|
|
12647
12591
|
} else {
|
|
@@ -12650,15 +12594,6 @@
|
|
|
12650
12594
|
}
|
|
12651
12595
|
};
|
|
12652
12596
|
|
|
12653
|
-
var refs = Refs$1;
|
|
12654
|
-
|
|
12655
|
-
objectRefs.exports = refs;
|
|
12656
|
-
|
|
12657
|
-
objectRefs.exports.Collection = collection;
|
|
12658
|
-
|
|
12659
|
-
var objectRefsExports = objectRefs.exports;
|
|
12660
|
-
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
|
|
12661
|
-
|
|
12662
12597
|
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
12663
12598
|
labelRefs = new Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget' }),
|
|
12664
12599
|
attacherRefs = new Refs({ name: 'attachers', collection: true }, { name: 'host' }),
|