camunda-bpmn-js 0.13.0-alpha.7 → 0.13.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 (88) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/assets/base-navigated-viewer.css +2 -0
  3. package/dist/assets/base-viewer.css +2 -0
  4. package/dist/assets/camunda-cloud-navigated-viewer.css +1 -0
  5. package/dist/assets/camunda-cloud-viewer.css +1 -0
  6. package/dist/assets/camunda-platform-navigated-viewer.css +1 -0
  7. package/dist/assets/camunda-platform-viewer.css +1 -0
  8. package/dist/base-modeler.development.js +32 -6
  9. package/dist/base-modeler.production.min.js +1 -1
  10. package/dist/base-navigated-viewer.development.js +22218 -0
  11. package/dist/base-navigated-viewer.production.min.js +2 -0
  12. package/dist/base-viewer.development.js +21227 -0
  13. package/dist/base-viewer.production.min.js +2 -0
  14. package/dist/camunda-cloud-modeler.development.js +1380 -456
  15. package/dist/camunda-cloud-modeler.production.min.js +4 -4
  16. package/dist/camunda-cloud-navigated-viewer.development.js +23041 -0
  17. package/dist/camunda-cloud-navigated-viewer.production.min.js +2 -0
  18. package/dist/camunda-cloud-viewer.development.js +22050 -0
  19. package/dist/camunda-cloud-viewer.production.min.js +2 -0
  20. package/dist/camunda-platform-modeler.development.js +1657 -1340
  21. package/dist/camunda-platform-modeler.production.min.js +4 -4
  22. package/dist/camunda-platform-navigated-viewer.development.js +23413 -0
  23. package/dist/camunda-platform-navigated-viewer.production.min.js +2 -0
  24. package/dist/camunda-platform-viewer.development.js +22422 -0
  25. package/dist/camunda-platform-viewer.production.min.js +2 -0
  26. package/lib/base/NavigatedViewer.js +3 -0
  27. package/lib/base/Viewer.js +3 -0
  28. package/lib/camunda-cloud/Modeler.js +6 -7
  29. package/lib/camunda-cloud/NavigatedViewer.js +34 -0
  30. package/lib/camunda-cloud/Viewer.js +34 -0
  31. package/lib/camunda-cloud/util/commonModules.js +14 -0
  32. package/lib/camunda-platform/Modeler.js +5 -5
  33. package/lib/camunda-platform/NavigatedViewer.js +25 -0
  34. package/lib/camunda-platform/Viewer.js +24 -0
  35. package/lib/camunda-platform/util/commonModules.js +7 -0
  36. package/package.json +13 -7
  37. package/styles/base-navigated-viewer.css +2 -0
  38. package/styles/base-viewer.css +2 -0
  39. package/styles/camunda-cloud-navigated-viewer.css +1 -0
  40. package/styles/camunda-cloud-viewer.css +1 -0
  41. package/styles/camunda-platform-navigated-viewer.css +1 -0
  42. package/styles/camunda-platform-viewer.css +1 -0
  43. package/util/index.js +39 -0
  44. package/dist/assets/bpmn-font/bpmn-codes.css +0 -108
  45. package/dist/assets/bpmn-font/bpmn-embedded.css +0 -161
  46. package/dist/assets/bpmn-font/bpmn.css +0 -164
  47. package/dist/assets/bpmn-font/bpmn.eot +0 -0
  48. package/dist/assets/bpmn-font/bpmn.svg +0 -224
  49. package/dist/assets/bpmn-font/bpmn.ttf +0 -0
  50. package/dist/assets/bpmn-font/bpmn.woff +0 -0
  51. package/dist/assets/bpmn-font/bpmn.woff2 +0 -0
  52. package/dist/assets/bpmn-font/css/bpmn-codes.css +0 -108
  53. package/dist/assets/bpmn-font/css/bpmn-embedded.css +0 -161
  54. package/dist/assets/bpmn-font/css/bpmn.css +0 -164
  55. package/dist/assets/bpmn-font/font/bpmn.eot +0 -0
  56. package/dist/assets/bpmn-font/font/bpmn.svg +0 -224
  57. package/dist/assets/bpmn-font/font/bpmn.ttf +0 -0
  58. package/dist/assets/bpmn-font/font/bpmn.woff +0 -0
  59. package/dist/assets/bpmn-font/font/bpmn.woff2 +0 -0
  60. package/dist/assets/bpmn-js.css +0 -116
  61. package/dist/assets/diagram-js-minimap.css +0 -87
  62. package/dist/assets/diagram-js.css +0 -819
  63. package/dist/assets/element-templates.css +0 -75
  64. package/dist/assets/properties-panel.css +0 -902
  65. package/lib/camunda-cloud/features/modeling/behavior/CleanUpBusinessRuleTaskBehavior.js +0 -115
  66. package/lib/camunda-cloud/features/modeling/behavior/CreateZeebeBoundaryEventBehavior.js +0 -76
  67. package/lib/camunda-cloud/features/modeling/behavior/CreateZeebeCallActivityBehavior.js +0 -86
  68. package/lib/camunda-cloud/features/modeling/behavior/FormDefinitionBehavior.js +0 -138
  69. package/lib/camunda-cloud/features/modeling/behavior/RemoveAssignmentDefinitionBehavior.js +0 -51
  70. package/lib/camunda-cloud/features/modeling/behavior/UpdatePropagateAllChildVariablesBehavior.js +0 -136
  71. package/lib/camunda-cloud/features/modeling/behavior/index.js +0 -24
  72. package/lib/camunda-cloud/features/modeling/index.js +0 -7
  73. package/lib/camunda-cloud/helper/CalledElementHelper.js +0 -72
  74. package/lib/camunda-cloud/helper/ElementHelper.js +0 -18
  75. package/lib/camunda-cloud/helper/FormsHelper.js +0 -84
  76. package/lib/camunda-cloud/helper/InputOutputHelper.js +0 -138
  77. package/lib/camunda-cloud/helper/Utils.js +0 -10
  78. package/lib/camunda-cloud/helper/ZeebeServiceTaskHelper.js +0 -41
  79. package/lib/camunda-platform/features/modeling/behavior/DeleteErrorEventDefinitionBehavior.js +0 -54
  80. package/lib/camunda-platform/features/modeling/behavior/DeleteRetryTimeCycleBehavior.js +0 -96
  81. package/lib/camunda-platform/features/modeling/behavior/UpdateCamundaExclusiveBehavior.js +0 -68
  82. package/lib/camunda-platform/features/modeling/behavior/UpdateInputOutputBehavior.js +0 -44
  83. package/lib/camunda-platform/features/modeling/behavior/UpdateResultVariableBehavior.js +0 -54
  84. package/lib/camunda-platform/features/modeling/behavior/UserTaskFormsBehavior.js +0 -71
  85. package/lib/camunda-platform/features/modeling/behavior/UserTaskGeneratedFormsBehavior.js +0 -116
  86. package/lib/camunda-platform/features/modeling/behavior/index.js +0 -26
  87. package/lib/camunda-platform/features/modeling/index.js +0 -7
  88. package/lib/camunda-platform/helper/InputOutputHelper.js +0 -29
package/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ All notable changes to [camunda-bpmn-js](https://github.com/camunda/camunda-bpmn
6
6
 
7
7
  ___Note:__ Yet to be released changes appear here._
8
8
 
9
+ ## 0.13.0
10
+
11
+ * `FEAT`: add viewer distributions ([#115](https://github.com/camunda/camunda-bpmn-js/pull/115))
12
+ * `CHORE`: import behaviors from camunda-bpmn-js-behaviors ([#116](https://github.com/camunda/camunda-bpmn-js/pull/116))
13
+ * `DEPS`: update to `bpmn-js-disable-collapsed-subprocess@0.1.4` ([#112](https://github.com/camunda/camunda-bpmn-js/pull/112))
14
+ * `DEPS`: update to `bpmn-js-properties-panel@1.1.0` ([03b659](https://github.com/camunda/camunda-bpmn-js/pull/123/commits/03b659da729364abf97ccc2dba421d83e9f5c48e))
15
+
16
+ ## 0.13.0-alpha.8
17
+
18
+ * `FEAT`: support element template custom icons ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
19
+ * `DEPS`: update to `bpmn-js-properties-panel@1.0.0-alpha.12` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
20
+ * `DEPS`: update to `diagram-js@8.2.1` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
21
+ * `DEPS`: update to `camunda-bpmn-moddle@6.1.2` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
22
+ * `DEPS`: update to `zeebe-bpmn-moddle@0.12.0` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
23
+ * `DEPS`: update to `@bpmn-io/element-templates-icons-renderer@0.1.2` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
24
+
25
+ ### Key changes in Properties Panel
26
+
27
+ * `FEAT`: apply element template icons ([#641](https://github.com/bpmn-io/bpmn-js-properties-panel/pull/641))
28
+ * `FEAT`: change task type when element template is applied ([#648](https://github.com/bpmn-io/bpmn-js-properties-panel/pull/648))
29
+ * `FEAT`: display element template icons in header ([#650](https://github.com/bpmn-io/bpmn-js-properties-panel/pull/650))
30
+
9
31
  ## 0.13.0-alpha.7
10
32
 
11
33
  _Re-publish of v0.13.0-alpha.6 with fixed distro._
@@ -18,7 +40,7 @@ _Re-publish of v0.13.0-alpha.6 with fixed distro._
18
40
  * `DEPS`: update to `@bpmn-io/properties-panel@0.13.1`
19
41
  * `DEPS`: update to `bpmn-js-properties-panel@1.0.0-alpha.9`
20
42
 
21
- # Properties Panel
43
+ ### Key changes in Properties Panel
22
44
 
23
45
  * `FEAT`: allow showing entries and errors through events ([#137](https://github.com/bpmn-io/properties-panel/pull/137))
24
46
  * `FEAT`: allow opening groups per default ([#139](https://github.com/bpmn-io/properties-panel/pull/139))
@@ -0,0 +1,2 @@
1
+ @import './diagram-js.css';
2
+ @import './bpmn-js.css';
@@ -0,0 +1,2 @@
1
+ @import './diagram-js.css';
2
+ @import './bpmn-js.css';
@@ -0,0 +1 @@
1
+ @import './base-navigated-viewer.css';
@@ -0,0 +1 @@
1
+ @import './base-viewer.css';
@@ -0,0 +1 @@
1
+ @import './base-navigated-viewer.css';
@@ -0,0 +1 @@
1
+ @import './base-viewer.css';
@@ -64144,8 +64144,7 @@
64144
64144
  }
64145
64145
  const PanelHeaderProvider = {
64146
64146
  getDocumentationRef: element => {
64147
- // eslint-disable-next-line react-hooks/rules-of-hooks
64148
- const elementTemplates = useService('elementTemplates', false);
64147
+ const elementTemplates = getTemplatesService();
64149
64148
 
64150
64149
  if (elementTemplates) {
64151
64150
  return getTemplateDocumentation(element, elementTemplates);
@@ -64160,11 +64159,25 @@
64160
64159
  },
64161
64160
  getElementIcon: element => {
64162
64161
  const concreteType = getConcreteType(element);
64162
+ const elementTemplates = getTemplatesService();
64163
+
64164
+ if (elementTemplates) {
64165
+ const template = getTemplate(element, elementTemplates);
64166
+
64167
+ if (template && template.icon) {
64168
+ return () => o$2("img", {
64169
+ class: "bio-properties-panel-header-template-icon",
64170
+ width: "32",
64171
+ height: "32",
64172
+ src: template.icon.contents
64173
+ });
64174
+ }
64175
+ }
64176
+
64163
64177
  return iconsByType[concreteType];
64164
64178
  },
64165
64179
  getTypeLabel: element => {
64166
- // eslint-disable-next-line react-hooks/rules-of-hooks
64167
- const elementTemplates = useService('elementTemplates', false);
64180
+ const elementTemplates = getTemplatesService();
64168
64181
 
64169
64182
  if (elementTemplates) {
64170
64183
  const template = getTemplate(element, elementTemplates);
@@ -64227,6 +64240,11 @@
64227
64240
  return is$1(di, 'bpmndi:BPMNPlane');
64228
64241
  }
64229
64242
 
64243
+ function getTemplatesService() {
64244
+ // eslint-disable-next-line react-hooks/rules-of-hooks
64245
+ return useService('elementTemplates', false);
64246
+ }
64247
+
64230
64248
  function getTemplate(element, elementTemplates) {
64231
64249
  const templateId = elementTemplates._getTemplateId(element);
64232
64250
 
@@ -65325,13 +65343,17 @@
65325
65343
  });
65326
65344
  };
65327
65345
 
65346
+ const businessObject = getBusinessObject(element),
65347
+ path = pathConcat(getPath(error, businessObject), 'errorCode');
65348
+ const show = useShowCallback(businessObject, path);
65328
65349
  return TextfieldEntry({
65329
65350
  element,
65330
65351
  id: 'errorCode',
65331
65352
  label: translate('Code'),
65332
65353
  getValue,
65333
65354
  setValue,
65334
- debounce
65355
+ debounce,
65356
+ show
65335
65357
  });
65336
65358
  } // helper /////////////////////////
65337
65359
 
@@ -65915,13 +65937,17 @@
65915
65937
  });
65916
65938
  };
65917
65939
 
65940
+ const businessObject = getBusinessObject(element),
65941
+ path = pathConcat(getPath(message, businessObject), 'name');
65942
+ const show = useShowCallback(businessObject, path);
65918
65943
  return TextfieldEntry({
65919
65944
  element,
65920
65945
  id: 'messageName',
65921
65946
  label: translate('Name'),
65922
65947
  getValue,
65923
65948
  setValue,
65924
- debounce
65949
+ debounce,
65950
+ show
65925
65951
  });
65926
65952
  } // helper /////////////////////////
65927
65953