bpmn-js 17.8.2 → 17.9.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 +14 -7
- package/dist/bpmn-modeler.production.min.js +2 -3
- 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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-navigated-viewer v17.
|
|
2
|
+
* bpmn-js - bpmn-navigated-viewer v17.9.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-06-
|
|
11
|
+
* Date: 2024-06-28
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -8474,6 +8474,7 @@
|
|
|
8474
8474
|
* @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry
|
|
8475
8475
|
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
|
|
8476
8476
|
* @typedef {import('diagram-js/lib/features/overlays/Overlays').default} Overlays
|
|
8477
|
+
* @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
|
|
8477
8478
|
*
|
|
8478
8479
|
* @typedef {import('../../model/Types').Element} Element
|
|
8479
8480
|
* @typedef {import('../../model/Types').Parent} Parent
|
|
@@ -8490,9 +8491,10 @@
|
|
|
8490
8491
|
* @param {EventBus} eventBus
|
|
8491
8492
|
* @param {ElementRegistry} elementRegistry
|
|
8492
8493
|
* @param {Overlays} overlays
|
|
8494
|
+
* @param {Translate} translate
|
|
8493
8495
|
*/
|
|
8494
8496
|
function DrilldownOverlayBehavior(
|
|
8495
|
-
canvas, eventBus, elementRegistry, overlays
|
|
8497
|
+
canvas, eventBus, elementRegistry, overlays, translate
|
|
8496
8498
|
) {
|
|
8497
8499
|
CommandInterceptor.call(this, eventBus);
|
|
8498
8500
|
|
|
@@ -8500,6 +8502,7 @@
|
|
|
8500
8502
|
this._eventBus = eventBus;
|
|
8501
8503
|
this._elementRegistry = elementRegistry;
|
|
8502
8504
|
this._overlays = overlays;
|
|
8505
|
+
this._translate = translate;
|
|
8503
8506
|
|
|
8504
8507
|
var self = this;
|
|
8505
8508
|
|
|
@@ -8633,7 +8636,8 @@
|
|
|
8633
8636
|
*/
|
|
8634
8637
|
DrilldownOverlayBehavior.prototype._addOverlay = function(element) {
|
|
8635
8638
|
var canvas = this._canvas,
|
|
8636
|
-
overlays = this._overlays
|
|
8639
|
+
overlays = this._overlays,
|
|
8640
|
+
bo = getBusinessObject(element);
|
|
8637
8641
|
|
|
8638
8642
|
var existingOverlays = overlays.get({ element: element, type: 'drilldown' });
|
|
8639
8643
|
|
|
@@ -8641,7 +8645,10 @@
|
|
|
8641
8645
|
this._removeOverlay(element);
|
|
8642
8646
|
}
|
|
8643
8647
|
|
|
8644
|
-
var button = domify$1('<button class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>')
|
|
8648
|
+
var button = domify$1('<button type="button" class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>'),
|
|
8649
|
+
elementName = bo.get('name') || bo.get('id'),
|
|
8650
|
+
title = this._translate('Open {element}', { element: elementName });
|
|
8651
|
+
button.setAttribute('title', title);
|
|
8645
8652
|
|
|
8646
8653
|
button.addEventListener('click', function() {
|
|
8647
8654
|
canvas.setRootElement(canvas.findRoot(getPlaneIdFromShape(element)));
|
|
@@ -8671,7 +8678,8 @@
|
|
|
8671
8678
|
'canvas',
|
|
8672
8679
|
'eventBus',
|
|
8673
8680
|
'elementRegistry',
|
|
8674
|
-
'overlays'
|
|
8681
|
+
'overlays',
|
|
8682
|
+
'translate'
|
|
8675
8683
|
];
|
|
8676
8684
|
|
|
8677
8685
|
var DrilldownModdule = {
|