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-modeler v17.8.
|
|
2
|
+
* bpmn-js - bpmn-modeler 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() :
|
|
@@ -23946,6 +23946,7 @@
|
|
|
23946
23946
|
* @typedef {import('diagram-js/lib/core/ElementRegistry').default} ElementRegistry
|
|
23947
23947
|
* @typedef {import('diagram-js/lib/core/EventBus').default} EventBus
|
|
23948
23948
|
* @typedef {import('diagram-js/lib/features/overlays/Overlays').default} Overlays
|
|
23949
|
+
* @typedef {import('diagram-js/lib/i18n/translate/translate').default} Translate
|
|
23949
23950
|
*
|
|
23950
23951
|
* @typedef {import('../../model/Types').Element} Element
|
|
23951
23952
|
* @typedef {import('../../model/Types').Parent} Parent
|
|
@@ -23962,9 +23963,10 @@
|
|
|
23962
23963
|
* @param {EventBus} eventBus
|
|
23963
23964
|
* @param {ElementRegistry} elementRegistry
|
|
23964
23965
|
* @param {Overlays} overlays
|
|
23966
|
+
* @param {Translate} translate
|
|
23965
23967
|
*/
|
|
23966
23968
|
function DrilldownOverlayBehavior(
|
|
23967
|
-
canvas, eventBus, elementRegistry, overlays
|
|
23969
|
+
canvas, eventBus, elementRegistry, overlays, translate
|
|
23968
23970
|
) {
|
|
23969
23971
|
CommandInterceptor.call(this, eventBus);
|
|
23970
23972
|
|
|
@@ -23972,6 +23974,7 @@
|
|
|
23972
23974
|
this._eventBus = eventBus;
|
|
23973
23975
|
this._elementRegistry = elementRegistry;
|
|
23974
23976
|
this._overlays = overlays;
|
|
23977
|
+
this._translate = translate;
|
|
23975
23978
|
|
|
23976
23979
|
var self = this;
|
|
23977
23980
|
|
|
@@ -24105,7 +24108,8 @@
|
|
|
24105
24108
|
*/
|
|
24106
24109
|
DrilldownOverlayBehavior.prototype._addOverlay = function(element) {
|
|
24107
24110
|
var canvas = this._canvas,
|
|
24108
|
-
overlays = this._overlays
|
|
24111
|
+
overlays = this._overlays,
|
|
24112
|
+
bo = getBusinessObject(element);
|
|
24109
24113
|
|
|
24110
24114
|
var existingOverlays = overlays.get({ element: element, type: 'drilldown' });
|
|
24111
24115
|
|
|
@@ -24113,7 +24117,10 @@
|
|
|
24113
24117
|
this._removeOverlay(element);
|
|
24114
24118
|
}
|
|
24115
24119
|
|
|
24116
|
-
var button = domify$1('<button class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>')
|
|
24120
|
+
var button = domify$1('<button type="button" class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>'),
|
|
24121
|
+
elementName = bo.get('name') || bo.get('id'),
|
|
24122
|
+
title = this._translate('Open {element}', { element: elementName });
|
|
24123
|
+
button.setAttribute('title', title);
|
|
24117
24124
|
|
|
24118
24125
|
button.addEventListener('click', function() {
|
|
24119
24126
|
canvas.setRootElement(canvas.findRoot(getPlaneIdFromShape(element)));
|
|
@@ -24143,7 +24150,8 @@
|
|
|
24143
24150
|
'canvas',
|
|
24144
24151
|
'eventBus',
|
|
24145
24152
|
'elementRegistry',
|
|
24146
|
-
'overlays'
|
|
24153
|
+
'overlays',
|
|
24154
|
+
'translate'
|
|
24147
24155
|
];
|
|
24148
24156
|
|
|
24149
24157
|
var DrilldownModdule = {
|