bpmn-js 9.0.0-subprocesses.3 → 9.0.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/assets/bpmn-js.css +38 -4
  3. package/dist/assets/diagram-js.css +1 -1
  4. package/dist/bpmn-modeler.development.js +2411 -1110
  5. package/dist/bpmn-modeler.production.min.js +8 -8
  6. package/dist/bpmn-navigated-viewer.development.js +983 -315
  7. package/dist/bpmn-navigated-viewer.production.min.js +6 -6
  8. package/dist/bpmn-viewer.development.js +983 -315
  9. package/dist/bpmn-viewer.production.min.js +6 -6
  10. package/lib/BaseViewer.js +1 -1
  11. package/lib/draw/BpmnRenderer.js +8 -7
  12. package/lib/features/auto-resize/BpmnAutoResizeProvider.js +6 -0
  13. package/lib/features/copy-paste/BpmnCopyPaste.js +1 -0
  14. package/lib/features/di-ordering/BpmnDiOrdering.js +15 -11
  15. package/lib/features/drilldown/DrilldownBreadcrumbs.js +122 -0
  16. package/lib/features/drilldown/DrilldownCentering.js +87 -10
  17. package/lib/features/drilldown/DrilldownOverlayBehavior.js +181 -0
  18. package/lib/features/drilldown/SubprocessCompatibility.js +9 -6
  19. package/lib/features/drilldown/index.js +7 -4
  20. package/lib/features/label-editing/LabelEditingProvider.js +1 -1
  21. package/lib/features/label-editing/cmd/UpdateLabelHandler.js +29 -2
  22. package/lib/features/modeling/BpmnFactory.js +5 -1
  23. package/lib/features/modeling/BpmnUpdater.js +43 -1
  24. package/lib/features/modeling/ElementFactory.js +4 -0
  25. package/lib/features/modeling/behavior/CreateParticipantBehavior.js +59 -84
  26. package/lib/features/modeling/behavior/DropOnFlowBehavior.js +2 -2
  27. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.js +34 -0
  28. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.js +557 -0
  29. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.js +74 -0
  30. package/lib/features/modeling/behavior/UnclaimIdBehavior.js +3 -1
  31. package/lib/features/modeling/behavior/index.js +27 -18
  32. package/lib/features/modeling/cmd/SetColorHandler.js +23 -6
  33. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +4 -2
  34. package/lib/features/modeling/util/ModelingUtil.js +2 -20
  35. package/lib/features/ordering/BpmnOrderingProvider.js +3 -3
  36. package/lib/features/palette/PaletteProvider.js +1 -1
  37. package/lib/features/popup-menu/ReplaceMenuProvider.js +1 -1
  38. package/lib/import/BpmnImporter.js +15 -9
  39. package/lib/import/Importer.js +130 -10
  40. package/lib/util/DrilldownUtil.js +66 -0
  41. package/lib/util/ModelUtil.js +19 -0
  42. package/package.json +2 -2
  43. package/lib/features/drilldown/DrilldownOverlays.js +0 -110
package/CHANGELOG.md CHANGED
@@ -2,14 +2,70 @@
2
2
 
3
3
  All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documented here. We use [semantic versioning](http://semver.org/) for releases.
4
4
 
5
+
5
6
  ## Unreleased
6
7
 
7
8
  ___Note:__ Yet to be released changes appear here._
8
9
 
10
+ ## 9.0.0
11
+
12
+ * `FEAT`: update umbedded label bounds when shape is moved ([#1586](https://github.com/bpmn-io/bpmn-js/pull/1586))
13
+ * `FIX`: ensure plane ID change is undoable ([#1600](https://github.com/bpmn-io/bpmn-js/pull/1600))
14
+ * `FIX`: allow groups and associations to be created in subprocesses ([#1599](https://github.com/bpmn-io/bpmn-js/pull/1599))
15
+ * `CHORE`: expose `BpmnRenderer` extension points ([#1585](https://github.com/bpmn-io/bpmn-js/pull/1585))
16
+
17
+ ## 9.0.0-alpha.2
18
+
19
+ * `FIX`: use active plane for svg export ([#1592](https://github.com/bpmn-io/bpmn-js/issues/1592))
20
+ * `FIX`: prevent infinite loop on root property change ([#1593](https://github.com/bpmn-io/bpmn-js/pull/1593))
21
+
22
+ ## 9.0.0-alpha.1
23
+
24
+ * `FEAT`: support modeling of collapsed subprocesses ([#1443](https://github.com/bpmn-io/bpmn-js/issues/1443))
25
+ * `FIX`: create di for embedded labels ([#1579](https://github.com/bpmn-io/bpmn-js/pull/1579))
26
+ * `CHORE`: bump to `diagram-js@8.1.1`
27
+
28
+ ### Breaking Changes
29
+
30
+ * Reworked `viewer.open` behavior for single planes. ([#1576](https://github.com/bpmn-io/bpmn-js/pull/1576))
31
+
32
+ ## 9.0.0-alpha.0
33
+
34
+ * `FEAT`: support drilldown into collapsed subprocesses ([#1443](https://github.com/bpmn-io/bpmn-js/issues/1443))
35
+ * `CHORE`: bump to `diagram-js@8.0.1`
36
+
9
37
  ### Breaking Changes
10
38
 
11
39
  * 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
40
  * Reworked import and `BpmnFactory` APIs. [#1472](https://github.com/bpmn-io/bpmn-js/issues/1472)
41
+ * Added `bpmn-js.css`, which is required to display drilldown overlays correctly.
42
+
43
+ ## 8.10.0
44
+
45
+ * `CHORE`: provide `ModelUtil#isAny` utility ([#https://github.com/bpmn-io/bpmn-js/pull/1604](https://github.com/bpmn-io/bpmn-js/pull/1604))
46
+ * `CHORE`: provide `ModelUtil#getDi` utility ([#https://github.com/bpmn-io/bpmn-js/pull/1604](https://github.com/bpmn-io/bpmn-js/pull/1604))
47
+
48
+ ## 8.9.1
49
+
50
+ * `FIX`: re-use process for redo of first participant ([#1439](https://github.com/bpmn-io/bpmn-js/issues/1439))
51
+ * `FIX`: ensure IDs are claimed when used ([#1555](https://github.com/bpmn-io/bpmn-js/issues/1555))
52
+ * `FIX`: prevent morphing data stores outside participants ([#1508](https://github.com/bpmn-io/bpmn-js/issues/1508))
53
+
54
+ ## 8.9.0
55
+
56
+ * `FEAT`: select newly created sub-process ([`6214772b`](https://github.com/bpmn-io/bpmn-js/commit/6214772b8519cb82f61c4867b16c112bc6344922))
57
+ * `FEAT`: select newly created group for immediate resizing ([`56eb34cc`](https://github.com/bpmn-io/bpmn-js/commit/56eb34cc826ca0dc8ee788575a504d5fda301292))
58
+ * `FEAT`: simplify color scheme
59
+ * `FIX`: set label color on `bpmndi:BPMNLabel#color` ([#1543](https://github.com/bpmn-io/bpmn-js/pull/1543))
60
+ * `FIX`: don't create illegal `bpmndi:BPMNEdge#waypoints` property ([#1544](https://github.com/bpmn-io/bpmn-js/issues/1544))
61
+ * `FIX`: correct direct editing on touch devices
62
+ * `DEPS`: update to diagram-js@7.8.2
63
+
64
+ ## 8.8.3
65
+
66
+ * `FIX`: correct resize handles hidden behind element ([#1520](https://github.com/bpmn-io/bpmn-js/issues/1520))
67
+ * `FIX`: handle close to source or target drop on flow ([#1541](https://github.com/bpmn-io/bpmn-js/issues/1541))
68
+ * `CHORE`: bump to `diagram-js@7.6.3`
13
69
 
14
70
  ## 8.8.2
15
71
 
@@ -1,8 +1,34 @@
1
1
  .bjs-container {
2
2
  --bjs-font-family: Arial, sans-serif;
3
- }
4
3
 
5
- .djs-container {
4
+ --color-grey-225-10-15: hsl(225, 10%, 15%);
5
+ --color-grey-225-10-35: hsl(225, 10%, 35%);
6
+ --color-grey-225-10-55: hsl(225, 10%, 55%);
7
+ --color-grey-225-10-75: hsl(225, 10%, 75%);
8
+ --color-grey-225-10-80: hsl(225, 10%, 80%);
9
+ --color-grey-225-10-85: hsl(225, 10%, 85%);
10
+ --color-grey-225-10-90: hsl(225, 10%, 90%);
11
+ --color-grey-225-10-95: hsl(225, 10%, 95%);
12
+ --color-grey-225-10-97: hsl(225, 10%, 97%);
13
+
14
+ --color-blue-205-100-45: hsl(205, 100%, 45%);
15
+ --color-blue-205-100-45-opacity-30: hsla(205, 100%, 45%, 30%);
16
+ --color-blue-205-100-50: hsl(205, 100%, 50%);
17
+ --color-blue-205-100-95: hsl(205, 100%, 95%);
18
+
19
+ --color-green-150-86-44: hsl(150, 86%, 44%);
20
+
21
+ --color-red-360-100-40: hsl(360, 100%, 40%);
22
+ --color-red-360-100-45: hsl(360, 100%, 45%);
23
+ --color-red-360-100-92: hsl(360, 100%, 92%);
24
+ --color-red-360-100-97: hsl(360, 100%, 97%);
25
+
26
+ --color-white: hsl(0, 0%, 100%);
27
+ --color-black: hsl(0, 0%, 0%);
28
+ --color-black-opacity-05: hsla(0, 0%, 0%, 5%);
29
+ --color-black-opacity-10: hsla(0, 0%, 0%, 10%);
30
+
31
+ --breadcrumbs-font-family: var(--bjs-font-family);
6
32
  --breadcrumbs-item-color: var(--color-blue-205-100-50);
7
33
  --breadcrumbs-arrow-color: var(--color-black);
8
34
  --drilldown-fill-color: var(--color-white);
@@ -15,7 +41,7 @@
15
41
  flex-wrap: wrap;
16
42
  align-items: center;
17
43
  top: 10px;
18
- font-family: var(--bjs-font-family);
44
+ font-family: var(--breadcrumbs-font-family);
19
45
  font-size: 16px;
20
46
  line-height: normal;
21
47
  }
@@ -54,7 +80,7 @@
54
80
  height: 1em;
55
81
  }
56
82
 
57
- .bjs-breadcrumbs .bpmnjs-crumb {
83
+ .bjs-breadcrumbs .bjs-crumb {
58
84
  display: inline-block;
59
85
  max-width: 200px;
60
86
  overflow: hidden;
@@ -77,3 +103,11 @@
77
103
  fill: var(--drilldown-fill-color);
78
104
  background-color: var(--drilldown-background-color);
79
105
  }
106
+
107
+ .bjs-drilldown-empty {
108
+ display: none;
109
+ }
110
+
111
+ .selected .bjs-drilldown-empty {
112
+ display: inherit;
113
+ }
@@ -75,7 +75,7 @@
75
75
  --shape-drop-not-allowed-fill-color: var(--color-red-360-100-97);
76
76
  --shape-resize-preview-stroke-color: var(--color-blue-205-100-50);
77
77
 
78
- --snap-line-stroke-color: var(--color-blue-205-100-50-opacity-30);
78
+ --snap-line-stroke-color: var(--color-blue-205-100-45-opacity-30);
79
79
 
80
80
  --space-tool-crosshair-stroke-color: var(--color-black);
81
81