bpmn-js 18.0.0 → 18.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.
@@ -984,7 +984,7 @@
984
984
  background: var(--search-result-hover-background-color);
985
985
  }
986
986
 
987
- .djs-element.djs-search-preselected .djs-outline {
987
+ .djs-search-open .djs-element .djs-outline {
988
988
  fill: var(--search-preselected-background-color) !important;
989
989
  }
990
990
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v18.0.0
2
+ * bpmn-js - bpmn-modeler v18.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: 2024-11-06
11
+ * Date: 2024-11-20
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2738,7 +2738,7 @@
2738
2738
  * @return {string}
2739
2739
  */
2740
2740
  function componentsToPath(elements) {
2741
- return elements.flat().join(',').replace(/,?([A-z]),?/g, '$1');
2741
+ return elements.flat().join(',').replace(/,?([A-Za-z]),?/g, '$1');
2742
2742
  }
2743
2743
 
2744
2744
  /**
@@ -25370,7 +25370,7 @@
25370
25370
  * `keyboard.bind=true|false` configuration option.
25371
25371
  *
25372
25372
  * @param {Object} config
25373
- * @param {EventTarget} [config.bindTo]
25373
+ * @param {boolean} [config.bind]
25374
25374
  * @param {EventBus} eventBus
25375
25375
  */
25376
25376
  function Keyboard(config, eventBus) {
@@ -25446,10 +25446,17 @@
25446
25446
  /**
25447
25447
  * Bind keyboard events to the given DOM node.
25448
25448
  *
25449
+ * @overlord
25450
+ * @deprecated No longer in use since version 15.0.0.
25451
+ *
25449
25452
  * @param {EventTarget} node
25450
25453
  */
25454
+ /**
25455
+ * Bind keyboard events to the canvas node.
25456
+ */
25451
25457
  Keyboard.prototype.bind = function(node) {
25452
25458
 
25459
+ // legacy <node> argument provided
25453
25460
  if (node) {
25454
25461
  console.error('unsupported argument <node>', new Error(compatMessage));
25455
25462
  }
@@ -65052,7 +65059,6 @@
65052
65059
  });
65053
65060
 
65054
65061
  if (!searchResults.length) {
65055
- this._clearMarkers();
65056
65062
  this._selection.select(null);
65057
65063
 
65058
65064
  return;
@@ -65129,16 +65135,6 @@
65129
65135
  };
65130
65136
 
65131
65137
 
65132
- /**
65133
- * Clears all markers.
65134
- */
65135
- SearchPad.prototype._clearMarkers = function() {
65136
- for (var id in this._results) {
65137
- this._canvas.removeMarker(this._results[id].element, 'djs-search-preselected');
65138
- }
65139
- };
65140
-
65141
-
65142
65138
  /**
65143
65139
  * Get currently selected result.
65144
65140
  *
@@ -65207,6 +65203,8 @@
65207
65203
  this._cachedSelection = this._selection.get();
65208
65204
  this._cachedViewbox = this._canvas.viewbox();
65209
65205
 
65206
+ this._selection.select(null);
65207
+
65210
65208
  this._bindEvents();
65211
65209
 
65212
65210
  this._open = true;
@@ -65255,8 +65253,6 @@
65255
65253
  classes$1(this._canvas.getContainer()).remove('djs-search-open');
65256
65254
  classes$1(this._container).remove('open');
65257
65255
 
65258
- this._clearMarkers();
65259
-
65260
65256
  this._clearResults();
65261
65257
 
65262
65258
  this._searchInput.value = '';
@@ -65297,8 +65293,6 @@
65297
65293
  return;
65298
65294
  }
65299
65295
 
65300
- this._clearMarkers();
65301
-
65302
65296
  // removing preselection from current node
65303
65297
  if (selectedNode) {
65304
65298
  classes$1(selectedNode).remove(SearchPad.RESULT_SELECTED_CLASS);
@@ -65315,8 +65309,6 @@
65315
65309
 
65316
65310
  this._selection.select(element);
65317
65311
 
65318
- this._canvas.addMarker(element, 'djs-search-preselected');
65319
-
65320
65312
  this._eventBus.fire('searchPad.preselected', element);
65321
65313
  };
65322
65314