@valtimo/process-management 13.46.0 → 13.47.1
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.
|
@@ -276,7 +276,7 @@ class ProcessManagementEditorService {
|
|
|
276
276
|
}
|
|
277
277
|
updateProcessLink(event) {
|
|
278
278
|
this.setProcessLinksForSelectedDefinition(this.processLinksForSelectedDefinition.map(processLink => {
|
|
279
|
-
if (processLink.
|
|
279
|
+
if (processLink.id === event.id) {
|
|
280
280
|
return { ...processLink, ...event };
|
|
281
281
|
}
|
|
282
282
|
return processLink;
|
|
@@ -1167,6 +1167,75 @@ const CustomRootElement = (props) => {
|
|
|
1167
1167
|
${linkedButtons}
|
|
1168
1168
|
</div>`);
|
|
1169
1169
|
}
|
|
1170
|
+
const externalActionKey = processLink?.actionKey;
|
|
1171
|
+
if (processLink?.processLinkType === 'external_plugin' && externalActionKey) {
|
|
1172
|
+
return html `<div class="process-link-properties-panel">
|
|
1173
|
+
<div class="process-link-properties-panel__header">
|
|
1174
|
+
<span class="process-link-properties-panel__title-container">
|
|
1175
|
+
<span class="process-link-properties-panel__title">${externalActionKey}</span>
|
|
1176
|
+
</span>
|
|
1177
|
+
|
|
1178
|
+
<cds-tag
|
|
1179
|
+
class="cds--tag cds--tag--purple cds--tag--md cds--layout--size-md cds-tag--no-margin"
|
|
1180
|
+
><span class="cds--tag__label">
|
|
1181
|
+
${translateService.instant('processLinkType.plugin')}
|
|
1182
|
+
</span>
|
|
1183
|
+
</cds-tag>
|
|
1184
|
+
</div>
|
|
1185
|
+
|
|
1186
|
+
<div class="process-link-properties-panel__buttons">
|
|
1187
|
+
<button
|
|
1188
|
+
class="cds--btn cds--btn--danger cds--btn--sm cds--layout--side-md"
|
|
1189
|
+
onClick=${handleUnlinkClick}
|
|
1190
|
+
>
|
|
1191
|
+
${unlinkText}
|
|
1192
|
+
</button>
|
|
1193
|
+
|
|
1194
|
+
<button
|
|
1195
|
+
class="cds--btn cds--btn--primary cds--btn--sm cds--layout--size-md"
|
|
1196
|
+
onClick=${handleEditClick}
|
|
1197
|
+
>
|
|
1198
|
+
${editProcessLinkText}
|
|
1199
|
+
</button>
|
|
1200
|
+
</div>
|
|
1201
|
+
</div>`;
|
|
1202
|
+
}
|
|
1203
|
+
if (processLink?.processLinkType === 'external_plugin_task_form') {
|
|
1204
|
+
// A task-form's name is its bundle key (the form identifier), mirroring how the external-plugin
|
|
1205
|
+
// action panel shows its action key; fall back to a generic label for a plugin's sole, unkeyed
|
|
1206
|
+
// task-form bundle.
|
|
1207
|
+
const taskFormName = processLink?.bundleKey || translateService.instant('processLink.pluginForm');
|
|
1208
|
+
return html `<div class="process-link-properties-panel">
|
|
1209
|
+
<div class="process-link-properties-panel__header">
|
|
1210
|
+
<span class="process-link-properties-panel__title-container">
|
|
1211
|
+
<span class="process-link-properties-panel__title">${taskFormName}</span>
|
|
1212
|
+
</span>
|
|
1213
|
+
|
|
1214
|
+
<cds-tag
|
|
1215
|
+
class="cds--tag cds--tag--purple cds--tag--md cds--layout--size-md cds-tag--no-margin"
|
|
1216
|
+
><span class="cds--tag__label">
|
|
1217
|
+
${translateService.instant('processLinkType.plugin')}
|
|
1218
|
+
</span>
|
|
1219
|
+
</cds-tag>
|
|
1220
|
+
</div>
|
|
1221
|
+
|
|
1222
|
+
<div class="process-link-properties-panel__buttons">
|
|
1223
|
+
<button
|
|
1224
|
+
class="cds--btn cds--btn--danger cds--btn--sm cds--layout--side-md"
|
|
1225
|
+
onClick=${handleUnlinkClick}
|
|
1226
|
+
>
|
|
1227
|
+
${unlinkText}
|
|
1228
|
+
</button>
|
|
1229
|
+
|
|
1230
|
+
<button
|
|
1231
|
+
class="cds--btn cds--btn--primary cds--btn--sm cds--layout--size-md"
|
|
1232
|
+
onClick=${handleEditClick}
|
|
1233
|
+
>
|
|
1234
|
+
${editProcessLinkText}
|
|
1235
|
+
</button>
|
|
1236
|
+
</div>
|
|
1237
|
+
</div>`;
|
|
1238
|
+
}
|
|
1170
1239
|
const pluginActionKey = processLink?.pluginActionDefinitionKey;
|
|
1171
1240
|
const pluginActionTranslation = pluginTranslationService.instantByPluginActionKey(pluginActionKey);
|
|
1172
1241
|
const pluginTitleTranslation = pluginTranslationService.instantPluginTitleByPluginActionKey(pluginActionKey);
|