bpmn-js 17.8.2 → 17.8.3
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 +14 -6
- package/dist/bpmn-modeler.production.min.js +2 -2
- package/dist/bpmn-navigated-viewer.development.js +14 -6
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +14 -6
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +3 -1
- package/lib/features/drilldown/DrilldownOverlayBehavior.js +12 -4
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer v17.8.
|
|
2
|
+
* bpmn-js - bpmn-viewer v17.8.3
|
|
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-06-
|
|
11
|
+
* Date: 2024-06-25
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -8464,6 +8464,7 @@
|
|
|
8464
8464
|
* @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry
|
|
8465
8465
|
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
|
|
8466
8466
|
* @typedef {import('diagram-js/lib/features/overlays/Overlays').default} Overlays
|
|
8467
|
+
* @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
|
|
8467
8468
|
*
|
|
8468
8469
|
* @typedef {import('../../model/Types').Element} Element
|
|
8469
8470
|
* @typedef {import('../../model/Types').Parent} Parent
|
|
@@ -8480,9 +8481,10 @@
|
|
|
8480
8481
|
* @param {EventBus} eventBus
|
|
8481
8482
|
* @param {ElementRegistry} elementRegistry
|
|
8482
8483
|
* @param {Overlays} overlays
|
|
8484
|
+
* @param {Translate} translate
|
|
8483
8485
|
*/
|
|
8484
8486
|
function DrilldownOverlayBehavior(
|
|
8485
|
-
canvas, eventBus, elementRegistry, overlays
|
|
8487
|
+
canvas, eventBus, elementRegistry, overlays, translate
|
|
8486
8488
|
) {
|
|
8487
8489
|
CommandInterceptor.call(this, eventBus);
|
|
8488
8490
|
|
|
@@ -8490,6 +8492,7 @@
|
|
|
8490
8492
|
this._eventBus = eventBus;
|
|
8491
8493
|
this._elementRegistry = elementRegistry;
|
|
8492
8494
|
this._overlays = overlays;
|
|
8495
|
+
this._translate = translate;
|
|
8493
8496
|
|
|
8494
8497
|
var self = this;
|
|
8495
8498
|
|
|
@@ -8623,7 +8626,8 @@
|
|
|
8623
8626
|
*/
|
|
8624
8627
|
DrilldownOverlayBehavior.prototype._addOverlay = function(element) {
|
|
8625
8628
|
var canvas = this._canvas,
|
|
8626
|
-
overlays = this._overlays
|
|
8629
|
+
overlays = this._overlays,
|
|
8630
|
+
bo = getBusinessObject(element);
|
|
8627
8631
|
|
|
8628
8632
|
var existingOverlays = overlays.get({ element: element, type: 'drilldown' });
|
|
8629
8633
|
|
|
@@ -8631,7 +8635,10 @@
|
|
|
8631
8635
|
this._removeOverlay(element);
|
|
8632
8636
|
}
|
|
8633
8637
|
|
|
8634
|
-
var button = domify$1('<button class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>')
|
|
8638
|
+
var button = domify$1('<button type="button" class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>'),
|
|
8639
|
+
elementName = bo.get('name') || bo.get('id'),
|
|
8640
|
+
title = this._translate('Open {element}', { element: elementName });
|
|
8641
|
+
button.setAttribute('title', title);
|
|
8635
8642
|
|
|
8636
8643
|
button.addEventListener('click', function() {
|
|
8637
8644
|
canvas.setRootElement(canvas.findRoot(getPlaneIdFromShape(element)));
|
|
@@ -8661,7 +8668,8 @@
|
|
|
8661
8668
|
'canvas',
|
|
8662
8669
|
'eventBus',
|
|
8663
8670
|
'elementRegistry',
|
|
8664
|
-
'overlays'
|
|
8671
|
+
'overlays',
|
|
8672
|
+
'translate'
|
|
8665
8673
|
];
|
|
8666
8674
|
|
|
8667
8675
|
var DrilldownModdule = {
|