camunda-bpmn-js 0.13.0-alpha.7 → 0.13.0-alpha.8
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 +16 -1
- package/dist/assets/element-templates.css +4 -0
- package/dist/base-modeler.development.js +32 -6
- package/dist/base-modeler.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +687 -68
- package/dist/camunda-cloud-modeler.production.min.js +4 -4
- package/dist/camunda-platform-modeler.development.js +260 -26
- package/dist/camunda-platform-modeler.production.min.js +4 -4
- package/lib/camunda-cloud/Modeler.js +4 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ 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-alpha.8
|
|
10
|
+
|
|
11
|
+
* `FEAT`: support element template custom icons ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
|
|
12
|
+
* `DEPS`: update to `bpmn-js-properties-panel@1.0.0-alpha.12` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
|
|
13
|
+
* `DEPS`: update to `diagram-js@8.2.1` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
|
|
14
|
+
* `DEPS`: update to `camunda-bpmn-moddle@6.1.2` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
|
|
15
|
+
* `DEPS`: update to `zeebe-bpmn-moddle@0.12.0` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
|
|
16
|
+
* `DEPS`: update to `@bpmn-io/element-templates-icons-renderer@0.1.2` ([#108](https://github.com/camunda/camunda-bpmn-js/pull/108))
|
|
17
|
+
|
|
18
|
+
### Key changes in Properties Panel
|
|
19
|
+
|
|
20
|
+
* `FEAT`: apply element template icons ([#641](https://github.com/bpmn-io/bpmn-js-properties-panel/pull/641))
|
|
21
|
+
* `FEAT`: change task type when element template is applied ([#648](https://github.com/bpmn-io/bpmn-js-properties-panel/pull/648))
|
|
22
|
+
* `FEAT`: display element template icons in header ([#650](https://github.com/bpmn-io/bpmn-js-properties-panel/pull/650))
|
|
23
|
+
|
|
9
24
|
## 0.13.0-alpha.7
|
|
10
25
|
|
|
11
26
|
_Re-publish of v0.13.0-alpha.6 with fixed distro._
|
|
@@ -18,7 +33,7 @@ _Re-publish of v0.13.0-alpha.6 with fixed distro._
|
|
|
18
33
|
* `DEPS`: update to `@bpmn-io/properties-panel@0.13.1`
|
|
19
34
|
* `DEPS`: update to `bpmn-js-properties-panel@1.0.0-alpha.9`
|
|
20
35
|
|
|
21
|
-
|
|
36
|
+
### Key changes in Properties Panel
|
|
22
37
|
|
|
23
38
|
* `FEAT`: allow showing entries and errors through events ([#137](https://github.com/bpmn-io/properties-panel/pull/137))
|
|
24
39
|
* `FEAT`: allow opening groups per default ([#139](https://github.com/bpmn-io/properties-panel/pull/139))
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
--select-template-information-text-color: var(--color-grey-225-10-55);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.bio-properties-panel-header-template-icon {
|
|
14
|
+
object-fit: contain;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.bio-properties-panel-templates-group .bio-properties-panel-group-header-button:not(.bio-properties-panel-arrow) {
|
|
14
18
|
padding-right: 6px;
|
|
15
19
|
padding-left: 9px;
|
|
@@ -64144,8 +64144,7 @@
|
|
|
64144
64144
|
}
|
|
64145
64145
|
const PanelHeaderProvider = {
|
|
64146
64146
|
getDocumentationRef: element => {
|
|
64147
|
-
|
|
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
|
-
|
|
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
|
|