camunda-bpmn-js 4.20.1 → 4.20.2
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/base-modeler.development.js +72 -44
- package/dist/base-modeler.production.min.js +5 -5
- package/dist/base-navigated-viewer.development.js +1 -1
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +1 -1
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +9328 -8555
- package/dist/camunda-cloud-modeler.production.min.js +7 -7
- package/dist/camunda-cloud-navigated-viewer.development.js +1 -1
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +1 -1
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +126 -77
- package/dist/camunda-platform-modeler.production.min.js +5 -5
- package/dist/camunda-platform-navigated-viewer.development.js +1 -1
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +1 -1
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/package.json +7 -7
|
@@ -6041,7 +6041,7 @@
|
|
|
6041
6041
|
Canvas.prototype.viewbox = function(box) {
|
|
6042
6042
|
|
|
6043
6043
|
if (box === undefined && this._cachedViewbox) {
|
|
6044
|
-
return this._cachedViewbox;
|
|
6044
|
+
return structuredClone(this._cachedViewbox);
|
|
6045
6045
|
}
|
|
6046
6046
|
|
|
6047
6047
|
const viewport = this._viewport,
|
|
@@ -64796,6 +64796,8 @@
|
|
|
64796
64796
|
* @typedef {import('./SearchPadProvider').Token} Token
|
|
64797
64797
|
*/
|
|
64798
64798
|
|
|
64799
|
+
var SCROLL_TO_ELEMENT_PADDING = 300;
|
|
64800
|
+
|
|
64799
64801
|
/**
|
|
64800
64802
|
* Provides searching infrastructure.
|
|
64801
64803
|
*
|
|
@@ -64806,7 +64808,7 @@
|
|
|
64806
64808
|
*/
|
|
64807
64809
|
function SearchPad(canvas, eventBus, selection, translate) {
|
|
64808
64810
|
this._open = false;
|
|
64809
|
-
this._results =
|
|
64811
|
+
this._results = {};
|
|
64810
64812
|
this._eventMaps = [];
|
|
64811
64813
|
|
|
64812
64814
|
this._cachedRootElement = null;
|
|
@@ -64960,6 +64962,9 @@
|
|
|
64960
64962
|
});
|
|
64961
64963
|
|
|
64962
64964
|
if (!searchResults.length) {
|
|
64965
|
+
this._clearMarkers();
|
|
64966
|
+
this._selection.select(null);
|
|
64967
|
+
|
|
64963
64968
|
return;
|
|
64964
64969
|
}
|
|
64965
64970
|
|
|
@@ -65028,12 +65033,22 @@
|
|
|
65028
65033
|
SearchPad.prototype._clearResults = function() {
|
|
65029
65034
|
clear$1(this._resultsContainer);
|
|
65030
65035
|
|
|
65031
|
-
this._results =
|
|
65036
|
+
this._results = {};
|
|
65032
65037
|
|
|
65033
65038
|
this._eventBus.fire('searchPad.cleared');
|
|
65034
65039
|
};
|
|
65035
65040
|
|
|
65036
65041
|
|
|
65042
|
+
/**
|
|
65043
|
+
* Clears all markers.
|
|
65044
|
+
*/
|
|
65045
|
+
SearchPad.prototype._clearMarkers = function() {
|
|
65046
|
+
for (var id in this._results) {
|
|
65047
|
+
this._canvas.removeMarker(this._results[id].element, 'djs-search-preselected');
|
|
65048
|
+
}
|
|
65049
|
+
};
|
|
65050
|
+
|
|
65051
|
+
|
|
65037
65052
|
/**
|
|
65038
65053
|
* Get currently selected result.
|
|
65039
65054
|
*
|
|
@@ -65150,6 +65165,8 @@
|
|
|
65150
65165
|
classes$1(this._canvas.getContainer()).remove('djs-search-open');
|
|
65151
65166
|
classes$1(this._container).remove('open');
|
|
65152
65167
|
|
|
65168
|
+
this._clearMarkers();
|
|
65169
|
+
|
|
65153
65170
|
this._clearResults();
|
|
65154
65171
|
|
|
65155
65172
|
this._searchInput.value = '';
|
|
@@ -65188,6 +65205,8 @@
|
|
|
65188
65205
|
return;
|
|
65189
65206
|
}
|
|
65190
65207
|
|
|
65208
|
+
this._clearMarkers();
|
|
65209
|
+
|
|
65191
65210
|
// removing preselection from current node
|
|
65192
65211
|
if (selectedNode) {
|
|
65193
65212
|
classes$1(selectedNode).remove(SearchPad.RESULT_SELECTED_CLASS);
|
|
@@ -65198,14 +65217,14 @@
|
|
|
65198
65217
|
|
|
65199
65218
|
classes$1(node).add(SearchPad.RESULT_SELECTED_CLASS);
|
|
65200
65219
|
|
|
65201
|
-
this._canvas.zoom(1);
|
|
65202
|
-
|
|
65203
65220
|
this._canvas.scrollToElement(element, {
|
|
65204
|
-
top:
|
|
65221
|
+
top: SCROLL_TO_ELEMENT_PADDING
|
|
65205
65222
|
});
|
|
65206
65223
|
|
|
65207
65224
|
this._selection.select(element);
|
|
65208
65225
|
|
|
65226
|
+
this._canvas.addMarker(element, 'djs-search-preselected');
|
|
65227
|
+
|
|
65209
65228
|
this._eventBus.fire('searchPad.preselected', element);
|
|
65210
65229
|
};
|
|
65211
65230
|
|
|
@@ -65224,7 +65243,9 @@
|
|
|
65224
65243
|
|
|
65225
65244
|
this.close(false);
|
|
65226
65245
|
|
|
65227
|
-
this._canvas.scrollToElement(element, {
|
|
65246
|
+
this._canvas.scrollToElement(element, {
|
|
65247
|
+
top: SCROLL_TO_ELEMENT_PADDING
|
|
65248
|
+
});
|
|
65228
65249
|
|
|
65229
65250
|
this._selection.select(element);
|
|
65230
65251
|
|
|
@@ -67211,57 +67232,64 @@
|
|
|
67211
67232
|
http://jedwatson.github.io/classnames
|
|
67212
67233
|
*/
|
|
67213
67234
|
|
|
67214
|
-
|
|
67215
|
-
/* global define */
|
|
67235
|
+
var hasRequiredClassnames;
|
|
67216
67236
|
|
|
67217
|
-
|
|
67237
|
+
function requireClassnames () {
|
|
67238
|
+
if (hasRequiredClassnames) return classnames$1.exports;
|
|
67239
|
+
hasRequiredClassnames = 1;
|
|
67240
|
+
(function (module) {
|
|
67241
|
+
/* global define */
|
|
67218
67242
|
|
|
67219
|
-
|
|
67243
|
+
(function () {
|
|
67220
67244
|
|
|
67221
|
-
|
|
67222
|
-
var classes = [];
|
|
67245
|
+
var hasOwn = {}.hasOwnProperty;
|
|
67223
67246
|
|
|
67224
|
-
|
|
67225
|
-
var
|
|
67226
|
-
if (!arg) continue;
|
|
67247
|
+
function classNames() {
|
|
67248
|
+
var classes = [];
|
|
67227
67249
|
|
|
67228
|
-
var
|
|
67250
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
67251
|
+
var arg = arguments[i];
|
|
67252
|
+
if (!arg) continue;
|
|
67229
67253
|
|
|
67230
|
-
|
|
67231
|
-
|
|
67232
|
-
|
|
67233
|
-
|
|
67234
|
-
|
|
67235
|
-
if (
|
|
67236
|
-
|
|
67254
|
+
var argType = typeof arg;
|
|
67255
|
+
|
|
67256
|
+
if (argType === 'string' || argType === 'number') {
|
|
67257
|
+
classes.push(arg);
|
|
67258
|
+
} else if (Array.isArray(arg)) {
|
|
67259
|
+
if (arg.length) {
|
|
67260
|
+
var inner = classNames.apply(null, arg);
|
|
67261
|
+
if (inner) {
|
|
67262
|
+
classes.push(inner);
|
|
67263
|
+
}
|
|
67237
67264
|
}
|
|
67238
|
-
}
|
|
67239
|
-
|
|
67240
|
-
|
|
67241
|
-
|
|
67242
|
-
|
|
67243
|
-
|
|
67265
|
+
} else if (argType === 'object') {
|
|
67266
|
+
if (arg.toString === Object.prototype.toString) {
|
|
67267
|
+
for (var key in arg) {
|
|
67268
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
67269
|
+
classes.push(key);
|
|
67270
|
+
}
|
|
67244
67271
|
}
|
|
67272
|
+
} else {
|
|
67273
|
+
classes.push(arg.toString());
|
|
67245
67274
|
}
|
|
67246
|
-
} else {
|
|
67247
|
-
classes.push(arg.toString());
|
|
67248
67275
|
}
|
|
67249
67276
|
}
|
|
67250
|
-
}
|
|
67251
67277
|
|
|
67252
|
-
|
|
67253
|
-
|
|
67278
|
+
return classes.join(' ');
|
|
67279
|
+
}
|
|
67254
67280
|
|
|
67255
|
-
|
|
67256
|
-
|
|
67257
|
-
|
|
67258
|
-
|
|
67259
|
-
|
|
67260
|
-
|
|
67261
|
-
|
|
67262
|
-
|
|
67281
|
+
if (module.exports) {
|
|
67282
|
+
classNames.default = classNames;
|
|
67283
|
+
module.exports = classNames;
|
|
67284
|
+
} else {
|
|
67285
|
+
window.classNames = classNames;
|
|
67286
|
+
}
|
|
67287
|
+
}());
|
|
67288
|
+
} (classnames$1));
|
|
67289
|
+
return classnames$1.exports;
|
|
67290
|
+
}
|
|
67263
67291
|
|
|
67264
|
-
var classnamesExports =
|
|
67292
|
+
var classnamesExports = requireClassnames();
|
|
67265
67293
|
var classnames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
67266
67294
|
|
|
67267
67295
|
/**
|