bpmn-js 8.8.1 → 9.0.0-subprocesses.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/assets/bpmn-js.css +57 -0
  3. package/dist/assets/diagram-js.css +2 -0
  4. package/dist/bpmn-modeler.development.js +1289 -795
  5. package/dist/bpmn-modeler.production.min.js +8 -7
  6. package/dist/bpmn-navigated-viewer.development.js +20635 -19973
  7. package/dist/bpmn-navigated-viewer.production.min.js +22 -20
  8. package/dist/bpmn-viewer.development.js +19836 -19174
  9. package/dist/bpmn-viewer.production.min.js +22 -20
  10. package/lib/BaseViewer.js +0 -13
  11. package/lib/Viewer.js +3 -1
  12. package/lib/draw/BpmnRenderUtil.js +6 -4
  13. package/lib/draw/BpmnRenderer.js +363 -296
  14. package/lib/features/context-pad/ContextPadProvider.js +1 -1
  15. package/lib/features/copy-paste/BpmnCopyPaste.js +13 -13
  16. package/lib/features/copy-paste/ModdleCopy.js +15 -3
  17. package/lib/features/di-ordering/BpmnDiOrdering.js +2 -3
  18. package/lib/features/drilldown/DrilldownCentering.js +41 -0
  19. package/lib/features/drilldown/DrilldownOverlays.js +109 -0
  20. package/lib/features/drilldown/SubprocessCompatibility.js +193 -0
  21. package/lib/features/drilldown/index.js +14 -0
  22. package/lib/features/label-editing/LabelEditingPreview.js +3 -3
  23. package/lib/features/label-editing/cmd/UpdateLabelHandler.js +2 -1
  24. package/lib/features/modeling/BpmnFactory.js +8 -8
  25. package/lib/features/modeling/BpmnUpdater.js +35 -27
  26. package/lib/features/modeling/ElementFactory.js +60 -37
  27. package/lib/features/modeling/behavior/DataStoreBehavior.js +3 -1
  28. package/lib/features/modeling/behavior/IsHorizontalFix.js +7 -4
  29. package/lib/features/modeling/behavior/LabelBehavior.js +8 -7
  30. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +6 -6
  31. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +8 -6
  32. package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +19 -12
  33. package/lib/features/modeling/cmd/UpdateSemanticParentHandler.js +5 -3
  34. package/lib/features/palette/PaletteProvider.js +3 -1
  35. package/lib/features/popup-menu/ReplaceMenuProvider.js +5 -5
  36. package/lib/features/popup-menu/util/TypeUtil.js +1 -1
  37. package/lib/features/replace/BpmnReplace.js +29 -29
  38. package/lib/import/BpmnImporter.js +27 -22
  39. package/lib/import/BpmnTreeWalker.js +19 -17
  40. package/lib/import/Importer.js +17 -6
  41. package/lib/util/CompatibilityUtil.js +21 -1
  42. package/lib/util/DiUtil.js +10 -3
  43. package/lib/util/LabelUtil.js +2 -3
  44. package/lib/util/ModelUtil.js +11 -0
  45. package/package.json +2 -2
  46. package/test/matchers/BoundsMatchers.js +10 -10
  47. package/test/matchers/ConnectionMatchers.js +5 -5
  48. package/test/util/MockEvents.js +10 -2
package/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen
6
6
 
7
7
  ___Note:__ Yet to be released changes appear here._
8
8
 
9
+ ### Breaking Changes
10
+
11
+ * Reworked the link of elements to bpmn DIs. You must access the `di` directly from the diagram element instead of the `businessObject`. [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472)
12
+ * Reworked import and `BpmnFactory` APIs. [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472)
13
+
14
+ ## 8.8.2
15
+
16
+ * `FIX`: properly re-use ID of a copied element if available ([#1503](https://github.com/bpmn-io/bpmn-js/pull/1509))
17
+
9
18
  ## 8.8.1
10
19
 
11
20
  * `FIX`: re-use ID of a copied element if available ([#1503](https://github.com/bpmn-io/bpmn-js/pull/1503))
@@ -0,0 +1,57 @@
1
+ .bjs-container {
2
+ --bjs-font-family: Arial, sans-serif;
3
+ }
4
+
5
+ .bjs-breadcrumbs {
6
+ position: absolute;
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ top: 10px;
10
+ left: 100px;
11
+ font-family: var(--bjs-font-family);
12
+ font-size: 16px;
13
+ align-items: center;
14
+ }
15
+
16
+ .bjs-breadcrumbs li {
17
+ display: inline-flex;
18
+ color: var(--blue-base-65);
19
+ cursor: pointer;
20
+ padding-bottom: 5px;
21
+ }
22
+
23
+ .bjs-breadcrumbs li:last-of-type {
24
+ color: inherit;
25
+ cursor: default;
26
+ }
27
+
28
+ .bjs-breadcrumbs li:not(:first-child)::before {
29
+ content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" /><path d="M0 0h24v24H0z" fill="none" /></svg>');
30
+ padding: 0 8px;
31
+ color: black;
32
+ height: 16px;
33
+ }
34
+
35
+ .bjs-breadcrumbs .bpmnjs-crumb {
36
+ display: inline-block;
37
+ max-width: 200px;
38
+ overflow: hidden;
39
+ text-overflow: ellipsis;
40
+ white-space: nowrap;
41
+ }
42
+
43
+ .bjs-drilldown {
44
+ width: 20px;
45
+ height: 20px;
46
+
47
+ padding: 0px;
48
+ margin-left: -20px;
49
+
50
+ cursor: pointer;
51
+ border: none;
52
+ border-radius: 2px;
53
+ outline: none;
54
+
55
+ fill: white;
56
+ background-color: var(--blue-base-65);
57
+ }
@@ -468,6 +468,7 @@ marker.djs-dragger tspan {
468
468
  */
469
469
  .djs-overlay-context-pad {
470
470
  width: 72px;
471
+ z-index: 100;
471
472
  }
472
473
 
473
474
  .djs-context-pad {
@@ -750,6 +751,7 @@ marker.djs-dragger tspan {
750
751
  width: 100%;
751
752
  padding: 6px 10px;
752
753
  border: 1px solid var(--search-input-border-color);
754
+ box-sizing: border-box;
753
755
  }
754
756
 
755
757
  .djs-search-input input:focus {