bpmn-js 9.0.1 → 9.0.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/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ All notable changes to [bpmn-js](https://github.com/bpmn-io/bpmn-js) are documen
7
7
 
8
8
  ___Note:__ Yet to be released changes appear here._
9
9
 
10
+ ## 9.0.2
11
+
12
+ * `FIX`: support modeling of groups in collapsed subporcesses ([#1606](https://github.com/bpmn-io/bpmn-js/issues/1606))
13
+ * `FIX`: override default padding of breadcrumb element ([#1608](https://github.com/bpmn-io/bpmn-js/pull/1608))
10
14
 
11
15
  ## 9.0.1
12
16
 
@@ -40,7 +40,10 @@
40
40
  display: none;
41
41
  flex-wrap: wrap;
42
42
  align-items: center;
43
- top: 10px;
43
+ top: 30px;
44
+ left: 30px;
45
+ padding: 0px;
46
+ margin: 0px;
44
47
  font-family: var(--breadcrumbs-font-family);
45
48
  font-size: 16px;
46
49
  line-height: normal;
@@ -51,11 +54,11 @@
51
54
  }
52
55
 
53
56
  .djs-palette-shown .bjs-breadcrumbs {
54
- left: 50px;
57
+ left: 90px;
55
58
  }
56
59
 
57
60
  .djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
58
- left: 100px;
61
+ left: 140px;
59
62
  }
60
63
 
61
64
  .bjs-breadcrumbs li {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * bpmn-js - bpmn-modeler v9.0.1
2
+ * bpmn-js - bpmn-modeler v9.0.2
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: 2022-02-18
11
+ * Date: 2022-02-23
12
12
  */
13
13
  (function (global, factory) {
14
14
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -42337,7 +42337,7 @@
42337
42337
  */
42338
42338
  function GroupBehavior(
42339
42339
  bpmnFactory,
42340
- canvas,
42340
+ bpmnjs,
42341
42341
  elementRegistry,
42342
42342
  eventBus,
42343
42343
  injector,
@@ -42345,18 +42345,6 @@
42345
42345
  ) {
42346
42346
  injector.invoke(CommandInterceptor, this);
42347
42347
 
42348
- /**
42349
- * Gets process definitions
42350
- *
42351
- * @return {ModdleElement} definitions
42352
- */
42353
- function getDefinitions() {
42354
- var rootElement = canvas.getRootElement(),
42355
- businessObject = getBusinessObject(rootElement);
42356
-
42357
- return businessObject.$parent;
42358
- }
42359
-
42360
42348
  /**
42361
42349
  * Removes a referenced category value for a given group shape
42362
42350
  *
@@ -42392,7 +42380,7 @@
42392
42380
  */
42393
42381
  function removeCategory(category) {
42394
42382
 
42395
- var definitions = getDefinitions();
42383
+ var definitions = bpmnjs.getDefinitions();
42396
42384
 
42397
42385
  remove(definitions.get('rootElements'), category);
42398
42386
  }
@@ -42457,7 +42445,7 @@
42457
42445
 
42458
42446
  var businessObject = getBusinessObject(shape),
42459
42447
  categoryValueRef = businessObject.categoryValueRef,
42460
- definitions = getDefinitions(),
42448
+ definitions = bpmnjs.getDefinitions(),
42461
42449
  category = categoryValueRef ? categoryValueRef.$parent : null;
42462
42450
 
42463
42451
  add(category.get('categoryValue'), categoryValueRef);
@@ -42475,7 +42463,7 @@
42475
42463
 
42476
42464
  if (is$1(businessObject, 'bpmn:Group') && !businessObject.categoryValueRef) {
42477
42465
 
42478
- var definitions = getDefinitions(),
42466
+ var definitions = bpmnjs.getDefinitions(),
42479
42467
  categoryValue = createCategoryValue(definitions, bpmnFactory);
42480
42468
 
42481
42469
  // link the reference to the Group
@@ -42503,7 +42491,7 @@
42503
42491
  categoryValue;
42504
42492
 
42505
42493
  if (is$1(property, 'bpmn:CategoryValue')) {
42506
- categoryValue = createCategoryValue(getDefinitions(), bpmnFactory);
42494
+ categoryValue = createCategoryValue(bpmnjs.getDefinitions(), bpmnFactory);
42507
42495
 
42508
42496
  // return copy of category
42509
42497
  return moddleCopy.copyElement(property, categoryValue);
@@ -42514,7 +42502,7 @@
42514
42502
 
42515
42503
  GroupBehavior.$inject = [
42516
42504
  'bpmnFactory',
42517
- 'canvas',
42505
+ 'bpmnjs',
42518
42506
  'elementRegistry',
42519
42507
  'eventBus',
42520
42508
  'injector',