@valtimo/process-link 13.45.1 → 13.47.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 (32) hide show
  1. package/fesm2022/valtimo-process-link.mjs +1273 -252
  2. package/fesm2022/valtimo-process-link.mjs.map +1 -1
  3. package/lib/components/configure-building-block-plugins/configure-building-block-plugins.component.d.ts +17 -7
  4. package/lib/components/configure-building-block-plugins/configure-building-block-plugins.component.d.ts.map +1 -1
  5. package/lib/components/plugin-action-configuration/plugin-action-configuration.component.d.ts +89 -9
  6. package/lib/components/plugin-action-configuration/plugin-action-configuration.component.d.ts.map +1 -1
  7. package/lib/components/plugin-action-result-mappings/plugin-action-result-mappings.component.d.ts +73 -0
  8. package/lib/components/plugin-action-result-mappings/plugin-action-result-mappings.component.d.ts.map +1 -0
  9. package/lib/components/select-plugin-action/select-plugin-action.component.d.ts +24 -13
  10. package/lib/components/select-plugin-action/select-plugin-action.component.d.ts.map +1 -1
  11. package/lib/components/select-plugin-configuration/select-plugin-configuration.component.d.ts +18 -15
  12. package/lib/components/select-plugin-configuration/select-plugin-configuration.component.d.ts.map +1 -1
  13. package/lib/constants/process-link.test-ids.d.ts +9 -0
  14. package/lib/constants/process-link.test-ids.d.ts.map +1 -1
  15. package/lib/constants/process.link.d.ts +3 -1
  16. package/lib/constants/process.link.d.ts.map +1 -1
  17. package/lib/models/building-block-field.model.d.ts +8 -1
  18. package/lib/models/building-block-field.model.d.ts.map +1 -1
  19. package/lib/models/plugin.model.d.ts +16 -1
  20. package/lib/models/plugin.model.d.ts.map +1 -1
  21. package/lib/models/process-link.model.d.ts +91 -5
  22. package/lib/models/process-link.model.d.ts.map +1 -1
  23. package/lib/process-link.module.d.ts +2 -1
  24. package/lib/process-link.module.d.ts.map +1 -1
  25. package/lib/services/building-block-state.service.d.ts +4 -1
  26. package/lib/services/building-block-state.service.d.ts.map +1 -1
  27. package/lib/services/plugin-state.service.d.ts +6 -2
  28. package/lib/services/plugin-state.service.d.ts.map +1 -1
  29. package/lib/services/process-link-state.service.d.ts.map +1 -1
  30. package/lib/services/process-link-step.service.d.ts +14 -0
  31. package/lib/services/process-link-step.service.d.ts.map +1 -1
  32. package/package.json +1 -1
@@ -1,32 +1,33 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, InjectionToken, Optional, Inject, Component, EventEmitter, Output, Input, ViewChild, Directive, ChangeDetectionStrategy, NgModule, ViewContainerRef } from '@angular/core';
3
- import { catchError, of, BehaviorSubject, combineLatest, map, Subject, switchMap, throwError, filter, Subscription, forkJoin, startWith, mergeMap, tap, withLatestFrom as withLatestFrom$1, take as take$1, shareReplay, distinctUntilChanged } from 'rxjs';
2
+ import { Injectable, InjectionToken, Optional, Inject, Component, inject, ChangeDetectorRef, EventEmitter, Output, Input, ChangeDetectionStrategy, ViewChild, Directive, NgModule, ViewContainerRef } from '@angular/core';
3
+ import { catchError, of, BehaviorSubject, combineLatest, map, Subject, switchMap, throwError, filter, Subscription, forkJoin, startWith, mergeMap, tap, withLatestFrom as withLatestFrom$1, take as take$1, shareReplay as shareReplay$1, distinctUntilChanged } from 'rxjs';
4
4
  import * as i2 from '@angular/common/http';
5
5
  import { HttpHeaders, HttpParams } from '@angular/common/http';
6
6
  import * as i1 from '@valtimo/shared';
7
7
  import { BaseApiService, InterceptorSkip, getCaseManagementRouteParams, getBuildingBlockManagementRouteParams, getContextObservable, ROLE_ADMIN } from '@valtimo/shared';
8
- import { map as map$1, take, takeUntil, catchError as catchError$1, switchMap as switchMap$1, withLatestFrom, filter as filter$1, tap as tap$1 } from 'rxjs/operators';
8
+ import { map as map$1, take, takeUntil, catchError as catchError$1, switchMap as switchMap$1, withLatestFrom, filter as filter$1, shareReplay, tap as tap$1 } from 'rxjs/operators';
9
9
  import * as i1$1 from '@valtimo/plugin';
10
- import { PluginTranslatePipeModule, PluginConfigurationContainerModule } from '@valtimo/plugin';
10
+ import { getExternalPluginDisplayName, toExternalPluginKey, isExternalPluginKey, getExternalPluginDescription, getExternalPluginName, extractExternalDefinitionId, PluginTranslatePipeModule, PluginConfigurationContainerModule, ExternalPluginIframeComponent } from '@valtimo/plugin';
11
+ import * as i4 from '@ngx-translate/core';
12
+ import { TranslateModule } from '@ngx-translate/core';
11
13
  import * as i1$5 from '@valtimo/form-flow-management';
12
14
  import { FormFlowComponentService } from '@valtimo/form-flow-management';
13
15
  export { FORM_FLOW_COMPONENT_TOKEN, FormFlowComponentService } from '@valtimo/form-flow-management';
14
- import * as i3 from '@ngx-translate/core';
15
- import { TranslateModule } from '@ngx-translate/core';
16
- import * as i4 from '@angular/common';
16
+ import * as i4$1 from '@angular/common';
17
17
  import { CommonModule } from '@angular/common';
18
- import * as i5 from 'carbon-components-angular';
19
- import { ComboBoxModule, RadioModule, InputModule, ButtonModule, IconModule, LayerModule, ModalModule as ModalModule$1, ProgressIndicatorModule, LoadingModule, StructuredListModule, TilesModule, SelectModule as SelectModule$1, ToggleModule, ToggletipModule, NotificationModule } from 'carbon-components-angular';
18
+ import * as i6 from 'carbon-components-angular';
19
+ import { InputModule, ButtonModule, IconModule, LayerModule, ComboBoxModule, RadioModule, ModalModule as ModalModule$1, ProgressIndicatorModule, LoadingModule, StructuredListModule, TilesModule, SelectModule as SelectModule$1, ToggleModule, ToggletipModule, NotificationModule } from 'carbon-components-angular';
20
20
  import * as i1$2 from '@angular/forms';
21
- import { FormControl, Validators, FormGroup, FormArray, ReactiveFormsModule, FormsModule } from '@angular/forms';
22
- import { Upload16 } from '@carbon/icons';
23
- import * as i2$1 from '@valtimo/components';
21
+ import { FormBuilder, FormControl, ReactiveFormsModule, Validators, FormGroup, FormArray } from '@angular/forms';
22
+ import * as i3$1 from '@angular/router';
23
+ import { RouterModule } from '@angular/router';
24
+ import { isEqual } from 'lodash';
25
+ import * as i3 from '@valtimo/components';
24
26
  import { ValuePathSelectorPrefix, ValuePathSelectorComponent, InputLabelModule, SelectModule, FormioOptionsImpl, ModalModule, StepperModule, VModalModule, ParagraphModule, TooltipModule, TooltipIconModule, FormIoModule, ValtimoCdsModalDirective, RenderInPageHeaderDirective, CarbonMultiInputModule, RemoveClassnamesDirective } from '@valtimo/components';
25
- import * as i6 from 'carbon-components-angular/dropdown';
27
+ import { Upload16 } from '@carbon/icons';
28
+ import * as i6$1 from 'carbon-components-angular/dropdown';
26
29
  import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
27
30
  import * as i1$3 from '@valtimo/process';
28
- import * as i3$1 from '@angular/router';
29
- import { RouterModule } from '@angular/router';
30
31
  import { AuthGuardService } from '@valtimo/security';
31
32
  import * as i1$4 from '@valtimo/form';
32
33
 
@@ -174,6 +175,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
174
175
  * See the License for the specific language governing permissions and
175
176
  * limitations under the License.
176
177
  */
178
+ const EXTERNAL_PLUGIN_MAPPING_KEY_PREFIX = 'external-plugin:';
179
+ /**
180
+ * The `pluginConfigurationMappings` key a required plugin is stored/looked-up under. Embedded
181
+ * requirements use the plain `pluginDefinitionKey`; external requirements are namespaced and
182
+ * versioned (`external-plugin:<pluginId>@<version>`, D2) so the two systems can never collide on
183
+ * the same map key.
184
+ */
185
+ function toMappingKey(pluginDefinitionKey, source, pluginDefinitionVersion) {
186
+ return source === 'EXTERNAL' && pluginDefinitionVersion
187
+ ? `${EXTERNAL_PLUGIN_MAPPING_KEY_PREFIX}${pluginDefinitionKey}@${pluginDefinitionVersion}`
188
+ : pluginDefinitionKey;
189
+ }
177
190
  class BuildingBlockStateService {
178
191
  constructor(processLinkBuildingBlockApiService) {
179
192
  this.processLinkBuildingBlockApiService = processLinkBuildingBlockApiService;
@@ -181,6 +194,7 @@ class BuildingBlockStateService {
181
194
  this._definitionVersionTag$ = new BehaviorSubject(null);
182
195
  this._versions$ = new BehaviorSubject([]);
183
196
  this._requiredPluginKeys$ = new BehaviorSubject([]);
197
+ this._requiredPlugins$ = new BehaviorSubject([]);
184
198
  this._pluginMappings$ = new BehaviorSubject({});
185
199
  this._buildingBlockFields$ = new BehaviorSubject([]);
186
200
  this._inputMappings$ = new BehaviorSubject([]);
@@ -202,6 +216,9 @@ class BuildingBlockStateService {
202
216
  get requiredPluginKeys$() {
203
217
  return this._requiredPluginKeys$.asObservable();
204
218
  }
219
+ get requiredPlugins$() {
220
+ return this._requiredPlugins$.asObservable();
221
+ }
205
222
  get pluginMappings$() {
206
223
  return this._pluginMappings$.asObservable();
207
224
  }
@@ -377,26 +394,34 @@ class BuildingBlockStateService {
377
394
  .subscribe({
378
395
  next: res => {
379
396
  const plugins = res?.plugins ?? [];
380
- const pluginKeys = plugins.map(plugin => plugin.pluginDefinitionKey).filter(Boolean);
397
+ const requiredPlugins = plugins
398
+ .filter(plugin => !!plugin.pluginDefinitionKey)
399
+ .map(plugin => ({
400
+ mappingKey: toMappingKey(plugin.pluginDefinitionKey, plugin.source, plugin.pluginDefinitionVersion),
401
+ pluginDefinitionKey: plugin.pluginDefinitionKey,
402
+ pluginDefinitionVersion: plugin.pluginDefinitionVersion ?? null,
403
+ source: plugin.source ?? 'EMBEDDED',
404
+ }));
381
405
  const dependencies = Array.from(new Set(plugins.flatMap(p => p.dependencies ?? []).map(d => d.key)));
382
- this.applyPluginKeys(pluginKeys ?? []);
406
+ this.applyRequiredPlugins(requiredPlugins);
383
407
  this._pluginDependencies$.next(dependencies);
384
408
  this._loadingRequirements$.next(false);
385
409
  },
386
410
  error: () => {
387
- this.applyPluginKeys([]);
411
+ this.applyRequiredPlugins([]);
388
412
  this._pluginDependencies$.next([]);
389
413
  this._loadingRequirements$.next(false);
390
414
  },
391
415
  });
392
416
  }
393
- applyPluginKeys(pluginKeys) {
417
+ applyRequiredPlugins(requiredPlugins) {
394
418
  const currentMappings = this._pluginMappings$.getValue();
395
419
  const normalized = {};
396
- pluginKeys.forEach(key => {
397
- normalized[key] = currentMappings[key] ?? null;
420
+ requiredPlugins.forEach(plugin => {
421
+ normalized[plugin.mappingKey] = currentMappings[plugin.mappingKey] ?? null;
398
422
  });
399
- this._requiredPluginKeys$.next(pluginKeys);
423
+ this._requiredPlugins$.next(requiredPlugins);
424
+ this._requiredPluginKeys$.next(requiredPlugins.map(plugin => plugin.mappingKey));
400
425
  this._pluginMappings$.next(normalized);
401
426
  }
402
427
  loadFields(key, versionTag, options = {}) {
@@ -442,6 +467,7 @@ class BuildingBlockStateService {
442
467
  clearPluginRequirements(options = {}) {
443
468
  this._requirementsSubscription?.unsubscribe();
444
469
  this._requiredPluginKeys$.next([]);
470
+ this._requiredPlugins$.next([]);
445
471
  if (!options.preserveMappings) {
446
472
  this._pluginMappings$.next({});
447
473
  }
@@ -537,9 +563,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
537
563
  * limitations under the License.
538
564
  */
539
565
  class PluginStateService {
540
- constructor(pluginManagementService, pluginService) {
566
+ constructor(pluginManagementService, pluginService, externalPluginService, translateService) {
541
567
  this.pluginManagementService = pluginManagementService;
542
568
  this.pluginService = pluginService;
569
+ this.externalPluginService = externalPluginService;
570
+ this.translateService = translateService;
543
571
  this._selectedPluginDefinition$ = new BehaviorSubject(undefined);
544
572
  this._selectedPluginConfiguration$ = new BehaviorSubject(undefined);
545
573
  this._selectedPluginFunction$ = new BehaviorSubject(undefined);
@@ -569,7 +597,16 @@ class PluginStateService {
569
597
  this._selectedPluginConfiguration$,
570
598
  this._selectedPluginDefinition$,
571
599
  ]).pipe(map$1(([configuration, definition]) => configuration?.pluginDefinition.key || definition?.key))
572
- : this.getPluginDefinitionKeyForProcessLink(selectedProcesLink)));
600
+ : combineLatest([this._selectedProcessLink$, this._selectedPluginDefinition$]).pipe(switchMap(([processLink, selectedDefinition]) => {
601
+ if (processLink?.pluginDefinitionKey) {
602
+ return of(processLink.pluginDefinitionKey);
603
+ }
604
+ // For external plugins, use the definition set by loadExternalPluginStateForProcessLink
605
+ if (selectedDefinition?.key) {
606
+ return of(selectedDefinition.key);
607
+ }
608
+ return this.getPluginDefinitionKeyForProcessLink(processLink);
609
+ }))));
573
610
  }
574
611
  selectPluginDefinition(definition) {
575
612
  this._selectedPluginDefinition$.next(definition);
@@ -588,6 +625,10 @@ class PluginStateService {
588
625
  if (processLink?.processLinkType === 'plugin') {
589
626
  this.loadPluginDefinitionForProcessLink(processLink);
590
627
  }
628
+ else if (processLink?.processLinkType === 'external_plugin' ||
629
+ processLink?.processLinkType === 'external_plugin_task_form') {
630
+ this.loadExternalPluginStateForProcessLink(processLink);
631
+ }
591
632
  }
592
633
  clearPluginSelection() {
593
634
  this._selectedPluginDefinition$.next(undefined);
@@ -595,6 +636,18 @@ class PluginStateService {
595
636
  this._selectedPluginFunction$.next(undefined);
596
637
  }
597
638
  loadPluginDefinitionForProcessLink(processLink) {
639
+ // Seed the wizard synchronously from what the link itself carries: the configuration
640
+ // container only needs the key pair, and this service is a root singleton — waiting for the
641
+ // definitions request below leaves the container evaluating with a previously edited link's
642
+ // stale function/configuration until (or forever, if) that request completes.
643
+ if (processLink.pluginActionDefinitionKey) {
644
+ this._selectedPluginFunction$.next({
645
+ key: processLink.pluginActionDefinitionKey,
646
+ });
647
+ }
648
+ if (!processLink.pluginConfigurationId) {
649
+ this._selectedPluginConfiguration$.next(undefined);
650
+ }
598
651
  // Get the plugin definition key - either directly or from the configuration the link points at
599
652
  this.getPluginDefinitionKeyForProcessLink(processLink)
600
653
  .pipe(take(1), takeUntil(this._cancelPluginLoad$))
@@ -604,16 +657,10 @@ class PluginStateService {
604
657
  // Fetch all plugin definitions and find the one matching the key
605
658
  this.pluginManagementService
606
659
  .getPluginDefinitions()
607
- .pipe(take(1), map$1(definitions => definitions.find(d => d.key === pluginDefinitionKey)), takeUntil(this._cancelPluginLoad$))
660
+ .pipe(take(1), map$1(definitions => definitions.find(d => d.key === pluginDefinitionKey)), takeUntil(this._cancelPluginLoad$), catchError$1(() => of(undefined)))
608
661
  .subscribe(definition => {
609
662
  if (definition) {
610
663
  this._selectedPluginDefinition$.next(definition);
611
- // Also set the selected function if available
612
- if (processLink.pluginActionDefinitionKey) {
613
- this._selectedPluginFunction$.next({
614
- key: processLink.pluginActionDefinitionKey,
615
- });
616
- }
617
664
  }
618
665
  });
619
666
  }
@@ -629,11 +676,84 @@ class PluginStateService {
629
676
  if (configuration) {
630
677
  this._selectedPluginConfiguration$.next(configuration);
631
678
  }
679
+ else {
680
+ // The configuration was deleted out from under the link. Drop the function key
681
+ // seeded above too — a half-populated wizard step is worse than an empty one.
682
+ this.clearPluginSelection();
683
+ }
632
684
  },
633
685
  error: () => this.clearPluginSelection(),
634
686
  });
635
687
  }
636
688
  }
689
+ loadExternalPluginStateForProcessLink(processLink) {
690
+ // The "function" is a service-task action key, or — for a task-form link — the task-form
691
+ // bundle key (empty string for the plugin's sole, unkeyed bundle) so the wizard's selection
692
+ // matches the option listed in the action step. Seeded synchronously; see
693
+ // loadPluginDefinitionForProcessLink for why.
694
+ const functionKey = processLink.actionKey ??
695
+ (processLink.processLinkType === 'external_plugin_task_form'
696
+ ? (processLink.bundleKey ?? '')
697
+ : undefined);
698
+ if (functionKey !== undefined) {
699
+ this._selectedPluginFunction$.next({ key: functionKey });
700
+ }
701
+ const configId = processLink.externalPluginConfigurationId;
702
+ if (!configId) {
703
+ // A BUILDING_BLOCK reference carries no configuration — resolve the definition from the
704
+ // link's pluginId (+ version when recorded) instead, and drop whatever configuration a
705
+ // previously edited link left behind in this singleton.
706
+ this._selectedPluginConfiguration$.next(undefined);
707
+ const pluginId = processLink.pluginDefinitionKey;
708
+ if (!pluginId)
709
+ return;
710
+ this.externalPluginService
711
+ .getDefinitions()
712
+ .pipe(take(1), catchError$1(() => of([])))
713
+ .subscribe(definitions => {
714
+ const definition = definitions.find(d => d.pluginId === pluginId &&
715
+ (!processLink.pluginVersion || d.version === processLink.pluginVersion));
716
+ if (definition) {
717
+ // The manifest-translated display name rides along on the synthetic definition so the
718
+ // stepper can label the step — external plugins have no plugin-translation bundle.
719
+ this._selectedPluginDefinition$.next({
720
+ key: toExternalPluginKey(definition.id),
721
+ title: getExternalPluginDisplayName(definition, this.translateService.currentLang),
722
+ });
723
+ }
724
+ });
725
+ return;
726
+ }
727
+ // Fetch all external configurations and definitions to find the ones matching this process link
728
+ combineLatest([
729
+ this.externalPluginService.getConfigurations().pipe(catchError$1(() => of([]))),
730
+ this.externalPluginService.getDefinitions().pipe(catchError$1(() => of([]))),
731
+ ])
732
+ .pipe(take(1))
733
+ .subscribe(([configs, definitions]) => {
734
+ const config = configs.find(c => c.id === configId);
735
+ if (!config)
736
+ return;
737
+ const definitionId = config.definitionId;
738
+ const externalKey = toExternalPluginKey(definitionId);
739
+ const definition = definitions.find(d => d.id === definitionId);
740
+ const definitionTitle = definition
741
+ ? getExternalPluginDisplayName(definition, this.translateService.currentLang)
742
+ : undefined;
743
+ // Set synthetic plugin definition with the external: prefix key; the manifest-translated
744
+ // display name rides along so the stepper can label the step without a translation bundle.
745
+ this._selectedPluginDefinition$.next({
746
+ key: externalKey,
747
+ title: definitionTitle,
748
+ });
749
+ // Set synthetic plugin configuration with the external config ID
750
+ this._selectedPluginConfiguration$.next({
751
+ id: configId,
752
+ title: config.title,
753
+ pluginDefinition: { key: externalKey, title: definitionTitle },
754
+ });
755
+ });
756
+ }
637
757
  getPluginDefinitionKeyForProcessLink(processLink) {
638
758
  // If the key is directly available, use it
639
759
  if (processLink?.pluginDefinitionKey) {
@@ -664,7 +784,7 @@ class PluginStateService {
664
784
  save() {
665
785
  this._save$.next(null);
666
786
  }
667
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginStateService, deps: [{ token: i1$1.PluginManagementService }, { token: i1$1.PluginService }], target: i0.ɵɵFactoryTarget.Injectable }); }
787
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginStateService, deps: [{ token: i1$1.PluginManagementService }, { token: i1$1.PluginService }, { token: i1$1.ExternalPluginService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
668
788
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginStateService, providedIn: 'root' }); }
669
789
  }
670
790
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginStateService, decorators: [{
@@ -672,7 +792,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
672
792
  args: [{
673
793
  providedIn: 'root',
674
794
  }]
675
- }], ctorParameters: () => [{ type: i1$1.PluginManagementService }, { type: i1$1.PluginService }] });
795
+ }], ctorParameters: () => [{ type: i1$1.PluginManagementService }, { type: i1$1.PluginService }, { type: i1$1.ExternalPluginService }, { type: i4.TranslateService }] });
676
796
 
677
797
  /*
678
798
  * Copyright 2015-2026 Ritense BV, the Netherlands.
@@ -853,7 +973,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
853
973
  }], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
854
974
 
855
975
  /*
856
- * Copyright 2015-2025 Ritense BV, the Netherlands.
976
+ * Copyright 2015-2026 Ritense BV, the Netherlands.
857
977
  *
858
978
  * Licensed under EUPL, Version 1.2 (the "License");
859
979
  * you may not use this file except in compliance with the License.
@@ -891,6 +1011,8 @@ const formSizeToCarbonModalSizeMap = {
891
1011
  large: 'lg',
892
1012
  };
893
1013
  const UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK = ['ui-component'];
1014
+ /** The `activityListenerType` the BPMN editor reports for a user task. */
1015
+ const USER_TASK_ACTIVITY = 'bpmn:UserTask:create';
894
1016
 
895
1017
  /*
896
1018
  * Copyright 2015-2026 Ritense BV, the Netherlands.
@@ -964,6 +1086,15 @@ const BB_MAPPINGS_TEST_IDS = {
964
1086
  inputTargetSelectWrapper: 'bbMappingsInputTargetSelectWrapper',
965
1087
  outputSourceSelectWrapper: 'bbMappingsOutputSourceSelectWrapper',
966
1088
  };
1089
+ const PLUGIN_ACTION_RESULT_MAPPINGS_TEST_IDS = {
1090
+ section: 'pluginActionResultMappingsSection',
1091
+ row: 'pluginActionResultMappingsRow',
1092
+ sourceInput: 'pluginActionResultMappingsSourceInput',
1093
+ sourceSelectWrapper: 'pluginActionResultMappingsSourceSelectWrapper',
1094
+ targetSelectWrapper: 'pluginActionResultMappingsTargetSelectWrapper',
1095
+ addButton: 'pluginActionResultMappingsAddButton',
1096
+ deleteButton: 'pluginActionResultMappingsDeleteButton',
1097
+ };
967
1098
 
968
1099
  /*
969
1100
  * Copyright 2015-2025 Ritense BV, the Netherlands.
@@ -1104,10 +1235,15 @@ class ProcessLinkStepService {
1104
1235
  return combineLatest([
1105
1236
  this._steps$,
1106
1237
  this._disableSteps$,
1238
+ this._currentStepIndex$,
1107
1239
  this.translateService.stream('key'),
1108
- ]).pipe(filter(([steps]) => !!steps), map(([steps, disableSteps]) => steps.map(step => ({
1240
+ ]).pipe(filter(([steps]) => !!steps), map(([steps, disableSteps, currentStepIndex]) => steps.map((step, index) => ({
1109
1241
  ...step,
1110
1242
  disabled: disableSteps,
1243
+ // Carbon recomputes step completion only inside its `current` setter, and every emission
1244
+ // here produces fresh step objects (language change, disable toggle) — so the `complete`
1245
+ // flags must be carried explicitly or the completed steps' checkmarks are wiped.
1246
+ complete: index < currentStepIndex,
1111
1247
  label: this.translateService.instant(`processLinkSteps.${step.label}`),
1112
1248
  ...(step.secondaryLabel && {
1113
1249
  secondaryLabel: this.translateService.instant(step.secondaryLabel),
@@ -1178,7 +1314,7 @@ class ProcessLinkStepService {
1178
1314
  this._currentStepIndex$.next(0);
1179
1315
  }
1180
1316
  setChoosePluginConfigurationSteps() {
1181
- const selectionLabel = this._context === 'buildingBlock' ? 'choosePluginDefinition' : 'choosePluginConfiguration';
1317
+ const selectionLabel = this.selectionStepLabel;
1182
1318
  this._steps$.next([
1183
1319
  { label: 'chooseProcessLinkType', secondaryLabel: 'processLinkType.plugin' },
1184
1320
  { label: selectionLabel },
@@ -1188,7 +1324,7 @@ class ProcessLinkStepService {
1188
1324
  this._currentStepIndex$.next(1);
1189
1325
  }
1190
1326
  setSingleChoosePluginConfigurationSteps() {
1191
- const selectionLabel = this._context === 'buildingBlock' ? 'choosePluginDefinition' : 'choosePluginConfiguration';
1327
+ const selectionLabel = this.selectionStepLabel;
1192
1328
  this._steps$.next([
1193
1329
  { label: selectionLabel },
1194
1330
  { label: 'choosePluginAction', disabled: true },
@@ -1204,9 +1340,7 @@ class ProcessLinkStepService {
1204
1340
  ])
1205
1341
  .pipe(take(1))
1206
1342
  .subscribe(([hasOneType, selectedConfiguration, selectedDefinition]) => {
1207
- const selectionLabel = this._context === 'buildingBlock'
1208
- ? 'choosePluginDefinition'
1209
- : 'choosePluginConfiguration';
1343
+ const selectionLabel = this.selectionStepLabel;
1210
1344
  const selectedPluginLabel = this.getSelectedPluginLabel(selectedConfiguration, selectedDefinition);
1211
1345
  if (hasOneType) {
1212
1346
  this._steps$.next([
@@ -1245,36 +1379,98 @@ class ProcessLinkStepService {
1245
1379
  .pipe(take(1))
1246
1380
  .subscribe(([hasOneType, selectedConfiguration, selectedFunction, selectedDefinition]) => {
1247
1381
  const pluginKey = selectedDefinition?.key || selectedConfiguration?.pluginDefinition?.key || '';
1248
- const selectedFunctionTranslation = pluginKey
1249
- ? this.pluginTranslateService.instant(selectedFunction.key, pluginKey)
1250
- : selectedFunction.key;
1251
- const selectionLabel = this._context === 'buildingBlock'
1252
- ? 'choosePluginDefinition'
1253
- : 'choosePluginConfiguration';
1382
+ const isExternal = isExternalPluginKey(pluginKey);
1383
+ // External plugin actions/forms have no plugin-translation bundle — their display name comes
1384
+ // from the manifest and is already carried on the selected function's `title`. Using the
1385
+ // translate lookup here would render the raw `{externalKey}.{key}` fallback.
1386
+ const selectedFunctionTranslation = isExternal
1387
+ ? selectedFunction.title || selectedFunction.key
1388
+ : pluginKey
1389
+ ? this.pluginTranslateService.instant(selectedFunction.key, pluginKey)
1390
+ : selectedFunction.key;
1391
+ const selectionLabel = this.selectionStepLabel;
1254
1392
  const selectedPluginLabel = this.getSelectedPluginLabel(selectedConfiguration, selectedDefinition);
1393
+ // Only an external action that declares its `outputs` in the manifest offers the dedicated
1394
+ // output-mapping step — embedded actions have no declaration mechanism and never show it.
1395
+ const hasResultMappingsStep = isExternal && (selectedFunction?.outputs?.length ?? 0) > 0;
1396
+ const configureActionStep = hasResultMappingsStep
1397
+ ? [
1398
+ { label: 'configurePluginAction' },
1399
+ { label: 'configurePluginActionResultMappings', disabled: true },
1400
+ ]
1401
+ : [{ label: 'configurePluginAction' }];
1255
1402
  if (hasOneType) {
1256
1403
  this._steps$.next([
1257
1404
  { label: selectionLabel, secondaryLabel: selectedPluginLabel },
1258
1405
  { label: 'choosePluginAction', secondaryLabel: selectedFunctionTranslation },
1259
- { label: 'configurePluginAction' },
1406
+ ...configureActionStep,
1260
1407
  ]);
1261
1408
  this._currentStepIndex$.next(2);
1262
- this.buttonService.hideNextButton();
1263
- this.buttonService.showSaveButton();
1264
1409
  }
1265
1410
  else {
1266
1411
  this._steps$.next([
1267
1412
  { label: 'chooseProcessLinkType', secondaryLabel: 'processLinkType.plugin' },
1268
1413
  { label: selectionLabel, secondaryLabel: selectedPluginLabel },
1269
1414
  { label: 'choosePluginAction', secondaryLabel: selectedFunctionTranslation },
1270
- { label: 'configurePluginAction' },
1415
+ ...configureActionStep,
1271
1416
  ]);
1272
1417
  this._currentStepIndex$.next(3);
1418
+ }
1419
+ if (hasResultMappingsStep) {
1420
+ this.buttonService.showNextButton();
1421
+ this.buttonService.showBackButton();
1422
+ this.buttonService.hideSaveButton();
1423
+ this.buttonService.enableNextButton();
1424
+ }
1425
+ else {
1273
1426
  this.buttonService.hideNextButton();
1274
1427
  this.buttonService.showSaveButton();
1275
1428
  }
1276
1429
  });
1277
1430
  }
1431
+ setConfigurePluginActionResultMappingsSteps() {
1432
+ combineLatest([
1433
+ this._hasOneProcessLinkType$,
1434
+ this.pluginStateService.selectedPluginConfiguration$,
1435
+ this.pluginStateService.selectedPluginFunction$,
1436
+ this.pluginStateService.selectedPluginDefinition$,
1437
+ ])
1438
+ .pipe(take(1))
1439
+ .subscribe(([hasOneType, selectedConfiguration, selectedFunction, selectedDefinition]) => {
1440
+ const pluginKey = selectedDefinition?.key || selectedConfiguration?.pluginDefinition?.key || '';
1441
+ const selectedFunctionTranslation = isExternalPluginKey(pluginKey)
1442
+ ? selectedFunction.title || selectedFunction.key
1443
+ : pluginKey
1444
+ ? this.pluginTranslateService.instant(selectedFunction.key, pluginKey)
1445
+ : selectedFunction.key;
1446
+ const selectionLabel = this.selectionStepLabel;
1447
+ const selectedPluginLabel = this.getSelectedPluginLabel(selectedConfiguration, selectedDefinition);
1448
+ const configureActionSteps = [
1449
+ { label: 'configurePluginAction' },
1450
+ { label: 'configurePluginActionResultMappings' },
1451
+ ];
1452
+ if (hasOneType) {
1453
+ this._steps$.next([
1454
+ { label: selectionLabel, secondaryLabel: selectedPluginLabel },
1455
+ { label: 'choosePluginAction', secondaryLabel: selectedFunctionTranslation },
1456
+ ...configureActionSteps,
1457
+ ]);
1458
+ this._currentStepIndex$.next(3);
1459
+ }
1460
+ else {
1461
+ this._steps$.next([
1462
+ { label: 'chooseProcessLinkType', secondaryLabel: 'processLinkType.plugin' },
1463
+ { label: selectionLabel, secondaryLabel: selectedPluginLabel },
1464
+ { label: 'choosePluginAction', secondaryLabel: selectedFunctionTranslation },
1465
+ ...configureActionSteps,
1466
+ ]);
1467
+ this._currentStepIndex$.next(4);
1468
+ }
1469
+ this.buttonService.hideNextButton();
1470
+ this.buttonService.showSaveButton();
1471
+ this.buttonService.showBackButton();
1472
+ });
1473
+ }
1278
1474
  setBuildingBlockSteps() {
1279
1475
  this._hasOneProcessLinkType$.pipe(take(1)).subscribe(hasOneType => {
1280
1476
  this._steps$.next([
@@ -1430,9 +1626,15 @@ class ProcessLinkStepService {
1430
1626
  const prefix = [];
1431
1627
  if (!options.skipSelection) {
1432
1628
  if (!options.hasOneType) {
1433
- prefix.push({ label: 'chooseProcessLinkType', secondaryLabel: 'processLinkType.building-block' });
1629
+ prefix.push({
1630
+ label: 'chooseProcessLinkType',
1631
+ secondaryLabel: 'processLinkType.building-block',
1632
+ });
1434
1633
  }
1435
- prefix.push({ label: 'selectBuildingBlock', ...(options.selectionLabel && { secondaryLabel: options.selectionLabel }) });
1634
+ prefix.push({
1635
+ label: 'selectBuildingBlock',
1636
+ ...(options.selectionLabel && { secondaryLabel: options.selectionLabel }),
1637
+ });
1436
1638
  }
1437
1639
  const steps = [...prefix, ...bbSteps];
1438
1640
  const targetIndex = prefix.length + activeIdx;
@@ -1446,9 +1648,25 @@ class ProcessLinkStepService {
1446
1648
  ]);
1447
1649
  this._currentStepIndex$.next(0);
1448
1650
  }
1651
+ /**
1652
+ * Step label for the plugin selection step. In the building-block context the admin picks a
1653
+ * plugin *definition* (the configuration is resolved at runtime from the BB's mappings), so the
1654
+ * step must be titled accordingly — everywhere else a concrete configuration is chosen.
1655
+ */
1656
+ get selectionStepLabel() {
1657
+ return this._context === 'buildingBlock'
1658
+ ? 'choosePluginDefinition'
1659
+ : 'choosePluginConfiguration';
1660
+ }
1449
1661
  getSelectedPluginLabel(selectedConfiguration, selectedDefinition) {
1450
1662
  if (this._context === 'buildingBlock') {
1451
1663
  const definitionKey = selectedDefinition?.key || selectedConfiguration?.pluginDefinition?.key;
1664
+ // External definitions have no plugin-translation bundle — looking one up would render the
1665
+ // raw `external:<uuid>.title` key. Their localized display name comes from the manifest and
1666
+ // is carried on the (synthetic) definition's title.
1667
+ if (isExternalPluginKey(definitionKey)) {
1668
+ return selectedDefinition?.title || selectedConfiguration?.pluginDefinition?.title || '';
1669
+ }
1452
1670
  return definitionKey ? this.pluginTranslateService.instant('title', definitionKey) : '';
1453
1671
  }
1454
1672
  return selectedConfiguration?.title || '';
@@ -1477,10 +1695,9 @@ class ProcessLinkStepService {
1477
1695
  this._currentStepIndex$.next(0);
1478
1696
  break;
1479
1697
  case 'plugin': {
1480
- const selectionLabel = this._context === 'buildingBlock' ? 'choosePluginDefinition' : 'choosePluginConfiguration';
1481
1698
  // Plugin has 3 config steps: select config, select action, configure action
1482
1699
  this._steps$.next([
1483
- { label: selectionLabel },
1700
+ { label: this.selectionStepLabel },
1484
1701
  { label: 'choosePluginAction' },
1485
1702
  { label: 'configurePluginAction' },
1486
1703
  ]);
@@ -1498,6 +1715,18 @@ class ProcessLinkStepService {
1498
1715
  this._currentStepIndex$.next(bbIndex);
1499
1716
  break;
1500
1717
  }
1718
+ case 'external_plugin':
1719
+ case 'external_plugin_task_form':
1720
+ // Both external-plugin surfaces reuse the plugin wizard: select config, select action/form,
1721
+ // configure. A task-form's configure step has nothing to fill in (see the action-config
1722
+ // component), but the flow and step layout are identical.
1723
+ this._steps$.next([
1724
+ { label: this.selectionStepLabel },
1725
+ { label: 'choosePluginAction' },
1726
+ { label: 'configurePluginAction' },
1727
+ ]);
1728
+ this._currentStepIndex$.next(2); // Start at last step (configure action)
1729
+ break;
1501
1730
  case 'ui-component':
1502
1731
  // Single step for UI component
1503
1732
  this._steps$.next([{ label: 'uiComponent' }]);
@@ -1510,6 +1739,24 @@ class ProcessLinkStepService {
1510
1739
  break;
1511
1740
  }
1512
1741
  }
1742
+ /**
1743
+ * Edit-mode variant of {@link initializeEditModeSteps} for an `external_plugin` link whose
1744
+ * selected action declares `outputs` — inserts the fourth `configurePluginActionResultMappings`
1745
+ * step, active, with Next shown (to reach it isn't needed, edit mode opens directly on it) and
1746
+ * Save hidden until the admin steps forward from the properties step.
1747
+ */
1748
+ initializeEditModeResultMappingsSteps() {
1749
+ this._steps$.next([
1750
+ { label: this.selectionStepLabel },
1751
+ { label: 'choosePluginAction' },
1752
+ { label: 'configurePluginAction' },
1753
+ { label: 'configurePluginActionResultMappings' },
1754
+ ]);
1755
+ this._currentStepIndex$.next(2);
1756
+ this.buttonService.showNextButton();
1757
+ this.buttonService.hideSaveButton();
1758
+ this.buttonService.enableNextButton();
1759
+ }
1513
1760
  /**
1514
1761
  * Navigate to a specific step by index (for edit mode navigation)
1515
1762
  */
@@ -1570,12 +1817,12 @@ class ProcessLinkStepService {
1570
1817
  getCurrentStepIndex() {
1571
1818
  return this._currentStepIndex$.getValue();
1572
1819
  }
1573
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkStepService, deps: [{ token: i3.TranslateService }, { token: ProcessLinkButtonService }, { token: PluginStateService }, { token: i1$1.PluginTranslationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1820
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkStepService, deps: [{ token: i4.TranslateService }, { token: ProcessLinkButtonService }, { token: PluginStateService }, { token: i1$1.PluginTranslationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1574
1821
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkStepService }); }
1575
1822
  }
1576
1823
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkStepService, decorators: [{
1577
1824
  type: Injectable
1578
- }], ctorParameters: () => [{ type: i3.TranslateService }, { type: ProcessLinkButtonService }, { type: PluginStateService }, { type: i1$1.PluginTranslationService }] });
1825
+ }], ctorParameters: () => [{ type: i4.TranslateService }, { type: ProcessLinkButtonService }, { type: PluginStateService }, { type: i1$1.PluginTranslationService }] });
1579
1826
 
1580
1827
  /*
1581
1828
  * Copyright 2015-2025 Ritense BV, the Netherlands.
@@ -1612,17 +1859,41 @@ class ProcessLinkStateService {
1612
1859
  return this._elementName$.asObservable();
1613
1860
  }
1614
1861
  get availableProcessLinkTypes$() {
1615
- return combineLatest([this._availableProcessLinkTypes$, this._context$]).pipe(map(([types, context]) => (!this.formCustomComponentConfig
1616
- ? types.map(type => ({
1617
- ...type,
1618
- enabled: type.processLinkType === 'ui-component' ? false : type.enabled,
1619
- }))
1620
- : types)
1621
- .filter(type => type.processLinkType !== 'url')
1622
- .map(type => context === 'buildingBlock' &&
1623
- UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK.includes(type.processLinkType)
1624
- ? { ...type, enabled: false }
1625
- : type)));
1862
+ return combineLatest([this._availableProcessLinkTypes$, this._context$]).pipe(map(([types, context]) => {
1863
+ // The external plugin types get no tile of their own (see the filter below) — they are
1864
+ // reached through the "Plugins & Apps" (plugin) tile, whose backend enablement only counts
1865
+ // embedded plugin configurations. An enabled external type must therefore enable that tile
1866
+ // itself, or add it when the activity type has no embedded plugin actions at all.
1867
+ const externalPluginEnabled = types.some(type => (type.processLinkType === 'external_plugin' ||
1868
+ type.processLinkType === 'external_plugin_task_form') &&
1869
+ type.enabled);
1870
+ let mergedTypes = types;
1871
+ if (externalPluginEnabled && !types.some(type => type.processLinkType === 'plugin')) {
1872
+ mergedTypes = [...types];
1873
+ // The external types sit where the plugin tile belongs in the backend's order, so the
1874
+ // added tile takes the first one's place (the filter below removes them anyway).
1875
+ mergedTypes.splice(types.findIndex(type => type.processLinkType === 'external_plugin' ||
1876
+ type.processLinkType === 'external_plugin_task_form'), 0, { processLinkType: 'plugin', enabled: true });
1877
+ }
1878
+ return (!this.formCustomComponentConfig
1879
+ ? mergedTypes.map(type => ({
1880
+ ...type,
1881
+ enabled: type.processLinkType === 'ui-component' ? false : type.enabled,
1882
+ }))
1883
+ : mergedTypes)
1884
+ .filter(type => type.processLinkType !== 'url' &&
1885
+ type.processLinkType !== 'external_plugin' &&
1886
+ // No separate tile: an external plugin's task-form is offered inside the "Plugin" flow
1887
+ // (pick the plugin on a user task → its task-form appears as the selectable option).
1888
+ type.processLinkType !== 'external_plugin_task_form')
1889
+ .map(type => type.processLinkType === 'plugin' && externalPluginEnabled
1890
+ ? { ...type, enabled: true }
1891
+ : type)
1892
+ .map(type => context === 'buildingBlock' &&
1893
+ UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK.includes(type.processLinkType)
1894
+ ? { ...type, enabled: false }
1895
+ : type);
1896
+ }));
1626
1897
  }
1627
1898
  get hideProgressIndicator$() {
1628
1899
  return this._availableProcessLinkTypes$
@@ -1941,7 +2212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1941
2212
  */
1942
2213
 
1943
2214
  /*
1944
- * Copyright 2015-2025 Ritense BV, the Netherlands.
2215
+ * Copyright 2015-2026 Ritense BV, the Netherlands.
1945
2216
  *
1946
2217
  * Licensed under EUPL, Version 1.2 (the "License");
1947
2218
  * you may not use this file except in compliance with the License.
@@ -1956,71 +2227,134 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
1956
2227
  * limitations under the License.
1957
2228
  */
1958
2229
  class SelectPluginConfigurationComponent {
1959
- constructor(pluginManagementService, pluginStateService, pluginService, stateService, buttonService, stepService, pluginTranslationService) {
1960
- this.pluginManagementService = pluginManagementService;
1961
- this.pluginStateService = pluginStateService;
1962
- this.pluginService = pluginService;
1963
- this.stateService = stateService;
1964
- this.buttonService = buttonService;
1965
- this.stepService = stepService;
1966
- this.pluginTranslationService = pluginTranslationService;
2230
+ constructor(_pluginManagementService, _pluginStateService, _pluginService, _stateService, _buttonService, _stepService, _pluginTranslationService, _externalPluginService, _translateService) {
2231
+ this._pluginManagementService = _pluginManagementService;
2232
+ this._pluginStateService = _pluginStateService;
2233
+ this._pluginService = _pluginService;
2234
+ this._stateService = _stateService;
2235
+ this._buttonService = _buttonService;
2236
+ this._stepService = _stepService;
2237
+ this._pluginTranslationService = _pluginTranslationService;
2238
+ this._externalPluginService = _externalPluginService;
2239
+ this._translateService = _translateService;
1967
2240
  this.testIds = SELECT_PLUGIN_CONFIGURATION_TEST_IDS;
1968
2241
  this.rowTestIdPrefix = SELECT_PLUGIN_CONFIGURATION_ROW_TEST_ID_PREFIX;
1969
- this.isBuildingBlockContext$ = this.stateService.context$.pipe(map$1(context => context === 'buildingBlock'));
2242
+ this.isBuildingBlockContext$ = this._stateService.context$.pipe(map$1(context => context === 'buildingBlock'));
1970
2243
  this.listItems$ = combineLatest([
1971
2244
  this.isBuildingBlockContext$,
1972
- this.stateService.modalParams$,
2245
+ this._stateService.modalParams$,
1973
2246
  ]).pipe(switchMap$1(([isBuildingBlock, modalData]) => isBuildingBlock
1974
2247
  ? combineLatest([
1975
- this.pluginManagementService.getPluginDefinitions(modalData?.element?.activityListenerType),
1976
- this.pluginService.pluginSpecifications$,
1977
- ]).pipe(map$1(([definitions, specs]) => {
2248
+ this._pluginManagementService.getPluginDefinitions(modalData?.element?.activityListenerType),
2249
+ this._pluginService.pluginSpecifications$,
2250
+ this._externalPluginService
2251
+ .getDefinitions()
2252
+ .pipe(catchError$1(() => of([]))),
2253
+ this._translateService.stream('key'),
2254
+ ]).pipe(map$1(([definitions, specs, externalDefinitions]) => {
2255
+ const lang = this._translateService.currentLang;
1978
2256
  const limitedDefinitions = definitions?.filter(definition => specs.some(spec => spec.pluginId === definition.key)) ?? [];
1979
- const enriched = limitedDefinitions.map(definition => {
2257
+ const embeddedItems = limitedDefinitions.map(definition => {
1980
2258
  const spec = specs.find(item => item.pluginId === definition.key);
1981
2259
  return {
1982
2260
  id: definition.key,
1983
- title: this.pluginTranslationService.instant('title', definition.key) ||
2261
+ title: this._pluginTranslationService.instant('title', definition.key) ||
1984
2262
  definition.title,
1985
- description: this.pluginTranslationService.instant('description', definition.key) ||
2263
+ description: this._pluginTranslationService.instant('description', definition.key) ||
1986
2264
  definition.description,
1987
2265
  logo: spec?.pluginLogoBase64 ?? null,
1988
2266
  payload: definition.key,
1989
2267
  isDefinition: true,
1990
2268
  };
1991
2269
  });
1992
- this.pluginDefinitionsCache = limitedDefinitions;
1993
- return enriched;
2270
+ // Building-block process links may reference an external plugin **definition** (not a
2271
+ // concrete configuration) — the configuration is resolved at runtime from the building
2272
+ // block's plugin mappings (D1/D2). List every known external definition here, labeled
2273
+ // via getExternalPluginDisplayName so multiple versions of the same plugin stay
2274
+ // distinguishable.
2275
+ const externalDefinitionItems = externalDefinitions.map(externalDefinition => ({
2276
+ id: toExternalPluginKey(externalDefinition.id),
2277
+ title: getExternalPluginDisplayName(externalDefinition, lang),
2278
+ description: getExternalPluginDescription(externalDefinition, lang) ?? '',
2279
+ logo: externalDefinition.logoUrl ?? null,
2280
+ payload: toExternalPluginKey(externalDefinition.id),
2281
+ isDefinition: true,
2282
+ external: true,
2283
+ externalDefinitionId: externalDefinition.id,
2284
+ }));
2285
+ const externalPluginDefinitions = externalDefinitions.map(externalDefinition => ({
2286
+ key: toExternalPluginKey(externalDefinition.id),
2287
+ title: getExternalPluginDisplayName(externalDefinition, lang),
2288
+ description: getExternalPluginDescription(externalDefinition, lang) ?? '',
2289
+ }));
2290
+ this._pluginDefinitionsCache = [...limitedDefinitions, ...externalPluginDefinitions];
2291
+ return [...embeddedItems, ...externalDefinitionItems];
1994
2292
  }))
1995
2293
  : combineLatest([
1996
2294
  modalData?.element?.type
1997
- ? this.pluginManagementService.getAllPluginConfigurationsWithLogos(modalData?.element?.activityListenerType)
2295
+ ? this._pluginManagementService.getAllPluginConfigurationsWithLogos(modalData?.element?.activityListenerType)
1998
2296
  : of(undefined),
1999
- this.pluginService.availablePluginIds$,
2000
- ]).pipe(map$1(([configs, availablePluginIds]) => configs
2001
- ?.filter(configuration => availablePluginIds.includes(configuration.pluginDefinition.key))
2002
- ?.map(configuration => ({
2003
- id: configuration.id ?? configuration.title,
2004
- title: configuration.title,
2005
- description: this.pluginTranslationService.instant('description', configuration.pluginDefinition.key),
2006
- logo: configuration.pluginLogoBase64 ?? null,
2007
- payload: configuration,
2008
- isDefinition: false,
2009
- }))))));
2297
+ this._pluginService.availablePluginIds$,
2298
+ this._externalPluginService
2299
+ .getConfigurations()
2300
+ .pipe(catchError$1(() => of([]))),
2301
+ this._externalPluginService
2302
+ .getDefinitions()
2303
+ .pipe(catchError$1(() => of([]))),
2304
+ this._translateService.stream('key'),
2305
+ ]).pipe(map$1(([configs, availablePluginIds, externalConfigs, externalDefinitions]) => {
2306
+ const lang = this._translateService.currentLang;
2307
+ const embeddedItems = configs
2308
+ ?.filter(configuration => availablePluginIds.includes(configuration.pluginDefinition.key))
2309
+ ?.map(configuration => ({
2310
+ id: configuration.id ?? configuration.title,
2311
+ title: configuration.title,
2312
+ description: this._pluginTranslationService.instant('description', configuration.pluginDefinition.key),
2313
+ logo: configuration.pluginLogoBase64 ?? null,
2314
+ payload: configuration,
2315
+ isDefinition: false,
2316
+ })) ?? [];
2317
+ const externalItems = externalConfigs.map(extConfig => {
2318
+ const def = externalDefinitions.find(d => d.id === extConfig.definitionId);
2319
+ return {
2320
+ id: extConfig.id,
2321
+ title: extConfig.title,
2322
+ description: def
2323
+ ? getExternalPluginDisplayName(def, lang)
2324
+ : this._translateService.instant('processLinkConfiguration.externalPlugin'),
2325
+ logo: def?.logoUrl ?? null,
2326
+ payload: {
2327
+ id: extConfig.id,
2328
+ title: extConfig.title,
2329
+ pluginDefinition: {
2330
+ key: toExternalPluginKey(extConfig.definitionId),
2331
+ title: def ? getExternalPluginName(def, lang) : extConfig.definitionId,
2332
+ description: def ? (getExternalPluginDescription(def, lang) ?? '') : '',
2333
+ },
2334
+ properties: {},
2335
+ },
2336
+ isDefinition: false,
2337
+ external: true,
2338
+ externalConfigurationId: extConfig.id,
2339
+ externalDefinitionId: extConfig.definitionId,
2340
+ };
2341
+ });
2342
+ return [...embeddedItems, ...externalItems];
2343
+ }))));
2010
2344
  this.pageHeaderText$ = this.isBuildingBlockContext$.pipe(map$1(isBuildingBlock => isBuildingBlock
2011
2345
  ? 'processLinkConfiguration.choosePluginDefinitionDescription'
2012
2346
  : 'processLinkConfiguration.choosePluginConfigurationDescription'));
2013
2347
  this.columnHeaderText$ = this.isBuildingBlockContext$.pipe(map$1(isBuildingBlock => isBuildingBlock
2014
2348
  ? 'pluginManagement.labels.pluginName'
2015
2349
  : 'pluginManagement.labels.configurationName'));
2016
- this.selectedPluginConfiguration$ = this.pluginStateService.selectedPluginConfiguration$;
2017
- this.selectedPluginDefinition$ = this.pluginStateService.selectedPluginDefinition$;
2350
+ this.selectedPluginConfiguration$ = this._pluginStateService.selectedPluginConfiguration$;
2351
+ this.selectedPluginDefinition$ = this._pluginStateService.selectedPluginDefinition$;
2018
2352
  this._subscriptions = new Subscription();
2019
- this.pluginDefinitionsCache = [];
2353
+ this._pluginDefinitionsCache = [];
2020
2354
  }
2021
2355
  ngOnInit() {
2022
- this.openBackButtonSubscription();
2023
- this.openNextButtonSubscription();
2356
+ this._openBackButtonSubscription();
2357
+ this._openNextButtonSubscription();
2024
2358
  }
2025
2359
  ngOnDestroy() {
2026
2360
  this._subscriptions.unsubscribe();
@@ -2029,53 +2363,53 @@ class SelectPluginConfigurationComponent {
2029
2363
  this.isBuildingBlockContext$.pipe(take(1)).subscribe(isBuildingBlock => {
2030
2364
  if (isBuildingBlock) {
2031
2365
  const definitionKey = event.value;
2032
- const definition = this.pluginDefinitionsCache.find(def => def.key === definitionKey);
2033
- this.selectDefinition(definition);
2366
+ const definition = this._pluginDefinitionsCache.find(def => def.key === definitionKey);
2367
+ this._selectDefinition(definition);
2034
2368
  }
2035
2369
  else {
2036
- this.selectConfiguration(event.value);
2370
+ this._selectConfiguration(event.value);
2037
2371
  }
2038
- this.buttonService.enableNextButton();
2372
+ this._buttonService.enableNextButton();
2039
2373
  });
2040
2374
  }
2041
- selectConfiguration(configuration) {
2375
+ _selectConfiguration(configuration) {
2042
2376
  if (!configuration)
2043
2377
  return;
2044
2378
  if (configuration.pluginDefinition) {
2045
- this.pluginStateService.selectPluginDefinition(configuration.pluginDefinition);
2379
+ this._pluginStateService.selectPluginDefinition(configuration.pluginDefinition);
2046
2380
  }
2047
- this.pluginStateService.selectPluginConfiguration(configuration);
2381
+ this._pluginStateService.selectPluginConfiguration(configuration);
2048
2382
  }
2049
- selectDefinition(definition) {
2383
+ _selectDefinition(definition) {
2050
2384
  if (!definition)
2051
2385
  return;
2052
- this.pluginStateService.selectPluginDefinition(definition);
2053
- this.pluginStateService.selectPluginConfiguration(undefined);
2386
+ this._pluginStateService.selectPluginDefinition(definition);
2387
+ this._pluginStateService.selectPluginConfiguration(undefined);
2054
2388
  }
2055
- openBackButtonSubscription() {
2056
- this._subscriptions.add(this.buttonService.backButtonClick$
2057
- .pipe(withLatestFrom(this.stateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
2389
+ _openBackButtonSubscription() {
2390
+ this._subscriptions.add(this._buttonService.backButtonClick$
2391
+ .pipe(withLatestFrom(this._stateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
2058
2392
  .subscribe(() => {
2059
- this.stateService.setInitial();
2393
+ this._stateService.setInitial();
2060
2394
  }));
2061
2395
  }
2062
- openNextButtonSubscription() {
2063
- this._subscriptions.add(this.buttonService.nextButtonClick$
2064
- .pipe(withLatestFrom(this.stateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
2396
+ _openNextButtonSubscription() {
2397
+ this._subscriptions.add(this._buttonService.nextButtonClick$
2398
+ .pipe(withLatestFrom(this._stateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
2065
2399
  .subscribe(() => {
2066
- this.stepService.setChoosePluginActionSteps();
2400
+ this._stepService.setChoosePluginActionSteps();
2067
2401
  }));
2068
2402
  }
2069
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectPluginConfigurationComponent, deps: [{ token: i1$1.PluginManagementService }, { token: PluginStateService }, { token: i1$1.PluginService }, { token: ProcessLinkStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: i1$1.PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component }); }
2070
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectPluginConfigurationComponent, isStandalone: false, selector: "valtimo-select-plugin-configuration", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"listItems$ | async as items; else loading\">\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.container\">\n {{ pageHeaderText$ | async | translate }}\n </p>\n <div class=\"list-container\">\n <cds-structured-list\n [attr.data-test-id]=\"testIds.list\"\n (selected)=\"selected($event)\"\n selection=\"true\"\n >\n <cds-list-header>\n <cds-list-column nowrap=\"true\"></cds-list-column>\n <cds-list-column nowrap=\"true\">\n {{ columnHeaderText$ | async | translate }}\n </cds-list-column>\n <cds-list-column>\n {{ 'processLinkConfiguration.pluginDescription' | translate }}\n </cds-list-column>\n </cds-list-header>\n <cds-list-row\n *ngFor=\"let item of items\"\n [attr.data-test-id]=\"rowTestIdPrefix + item.id\"\n [value]=\"item.payload\"\n >\n <cds-list-column>\n <div *ngIf=\"item.logo\">\n <img [src]=\"item.logo\" [title]=\"item.title\" class=\"plugin-configuration-logo\" />\n </div>\n </cds-list-column>\n <cds-list-column>{{ item.title }}</cds-list-column>\n <cds-list-column>{{ item.description }}</cds-list-column>\n </cds-list-row>\n </cds-structured-list>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.plugin-configuration-logo{object-fit:contain;height:60px;width:100%;margin-bottom:-.5rem}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.list-container{margin-top:32px;margin-bottom:32px}::ng-deep .list-container .cds--structured-list-td{vertical-align:top}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i5.StructuredList, selector: "cds-structured-list, ibm-structured-list", inputs: ["selection", "flushed", "condensed", "name", "skeleton"], outputs: ["selected"] }, { kind: "component", type: i5.ListRow, selector: "cds-list-row, ibm-list-row", inputs: ["selected", "label", "value"], outputs: ["change"] }, { kind: "component", type: i5.ListHeader, selector: "cds-list-header, ibm-list-header", inputs: ["skeleton"] }, { kind: "component", type: i5.ListColumn, selector: "cds-list-column, ibm-list-column", inputs: ["skeleton", "nowrap"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
2403
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectPluginConfigurationComponent, deps: [{ token: i1$1.PluginManagementService }, { token: PluginStateService }, { token: i1$1.PluginService }, { token: ProcessLinkStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: i1$1.PluginTranslationService }, { token: i1$1.ExternalPluginService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
2404
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectPluginConfigurationComponent, isStandalone: false, selector: "valtimo-select-plugin-configuration", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"listItems$ | async as items; else loading\">\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.container\">\n {{ pageHeaderText$ | async | translate }}\n </p>\n <div class=\"list-container\">\n <cds-structured-list\n [attr.data-test-id]=\"testIds.list\"\n (selected)=\"selected($event)\"\n selection=\"true\"\n >\n <cds-list-header>\n <cds-list-column nowrap=\"true\"></cds-list-column>\n <cds-list-column nowrap=\"true\">\n {{ columnHeaderText$ | async | translate }}\n </cds-list-column>\n <cds-list-column>\n {{ 'processLinkConfiguration.pluginDescription' | translate }}\n </cds-list-column>\n </cds-list-header>\n <cds-list-row\n *ngFor=\"let item of items\"\n [attr.data-test-id]=\"rowTestIdPrefix + item.id\"\n [value]=\"item.payload\"\n >\n <cds-list-column>\n <div *ngIf=\"item.logo\">\n <img [src]=\"item.logo\" [title]=\"item.title\" class=\"plugin-configuration-logo\" />\n </div>\n </cds-list-column>\n <cds-list-column>{{ item.title }}</cds-list-column>\n <cds-list-column>{{ item.description }}</cds-list-column>\n </cds-list-row>\n </cds-structured-list>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.plugin-configuration-logo{object-fit:contain;height:60px;width:100%;margin-bottom:-.5rem}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.list-container{margin-top:32px;margin-bottom:32px}::ng-deep .list-container .cds--structured-list-td{vertical-align:top}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i6.StructuredList, selector: "cds-structured-list, ibm-structured-list", inputs: ["selection", "flushed", "condensed", "name", "skeleton"], outputs: ["selected"] }, { kind: "component", type: i6.ListRow, selector: "cds-list-row, ibm-list-row", inputs: ["selected", "label", "value"], outputs: ["change"] }, { kind: "component", type: i6.ListHeader, selector: "cds-list-header, ibm-list-header", inputs: ["skeleton"] }, { kind: "component", type: i6.ListColumn, selector: "cds-list-column, ibm-list-column", inputs: ["skeleton", "nowrap"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
2071
2405
  }
2072
2406
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectPluginConfigurationComponent, decorators: [{
2073
2407
  type: Component,
2074
2408
  args: [{ standalone: false, selector: 'valtimo-select-plugin-configuration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"listItems$ | async as items; else loading\">\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.container\">\n {{ pageHeaderText$ | async | translate }}\n </p>\n <div class=\"list-container\">\n <cds-structured-list\n [attr.data-test-id]=\"testIds.list\"\n (selected)=\"selected($event)\"\n selection=\"true\"\n >\n <cds-list-header>\n <cds-list-column nowrap=\"true\"></cds-list-column>\n <cds-list-column nowrap=\"true\">\n {{ columnHeaderText$ | async | translate }}\n </cds-list-column>\n <cds-list-column>\n {{ 'processLinkConfiguration.pluginDescription' | translate }}\n </cds-list-column>\n </cds-list-header>\n <cds-list-row\n *ngFor=\"let item of items\"\n [attr.data-test-id]=\"rowTestIdPrefix + item.id\"\n [value]=\"item.payload\"\n >\n <cds-list-column>\n <div *ngIf=\"item.logo\">\n <img [src]=\"item.logo\" [title]=\"item.title\" class=\"plugin-configuration-logo\" />\n </div>\n </cds-list-column>\n <cds-list-column>{{ item.title }}</cds-list-column>\n <cds-list-column>{{ item.description }}</cds-list-column>\n </cds-list-row>\n </cds-structured-list>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.plugin-configuration-logo{object-fit:contain;height:60px;width:100%;margin-bottom:-.5rem}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.list-container{margin-top:32px;margin-bottom:32px}::ng-deep .list-container .cds--structured-list-td{vertical-align:top}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2075
- }], ctorParameters: () => [{ type: i1$1.PluginManagementService }, { type: PluginStateService }, { type: i1$1.PluginService }, { type: ProcessLinkStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: i1$1.PluginTranslationService }] });
2409
+ }], ctorParameters: () => [{ type: i1$1.PluginManagementService }, { type: PluginStateService }, { type: i1$1.PluginService }, { type: ProcessLinkStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: i1$1.PluginTranslationService }, { type: i1$1.ExternalPluginService }, { type: i4.TranslateService }] });
2076
2410
 
2077
2411
  /*
2078
- * Copyright 2015-2025 Ritense BV, the Netherlands.
2412
+ * Copyright 2015-2026 Ritense BV, the Netherlands.
2079
2413
  *
2080
2414
  * Licensed under EUPL, Version 1.2 (the "License");
2081
2415
  * you may not use this file except in compliance with the License.
@@ -2089,27 +2423,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2089
2423
  * See the License for the specific language governing permissions and
2090
2424
  * limitations under the License.
2091
2425
  */
2426
+ /**
2427
+ * Maps the manifest action `activityTypes` (backend `ActivityTypeWithEventName` names) to the
2428
+ * `bpmn:{Type}:{event}` value the BPMN editor reports as `activityListenerType`. Only the activity
2429
+ * types an external plugin action can realistically declare need to be listed; an unrecognised name
2430
+ * never causes an action to be hidden (see `_actionSupportsActivity`).
2431
+ */
2432
+ const ACTIVITY_TYPE_NAME_TO_VALUE = {
2433
+ SERVICE_TASK_START: 'bpmn:ServiceTask:start',
2434
+ SERVICE_TASK_END: 'bpmn:ServiceTask:end',
2435
+ CALL_ACTIVITY_START: 'bpmn:CallActivity:start',
2436
+ CALL_ACTIVITY_END: 'bpmn:CallActivity:end',
2437
+ START_EVENT_START: 'bpmn:StartEvent:start',
2438
+ USER_TASK_CREATE: USER_TASK_ACTIVITY,
2439
+ };
2092
2440
  class SelectPluginActionComponent {
2093
- constructor(buttonService, injector, pluginManagementService, pluginService, pluginTranslationService, stateService, stepService, processLinkStateService) {
2094
- this.buttonService = buttonService;
2095
- this.injector = injector;
2096
- this.pluginManagementService = pluginManagementService;
2097
- this.pluginService = pluginService;
2098
- this.pluginTranslationService = pluginTranslationService;
2099
- this.stateService = stateService;
2100
- this.stepService = stepService;
2101
- this.processLinkStateService = processLinkStateService;
2441
+ constructor(_buttonService, _injector, _pluginManagementService, _pluginService, _pluginTranslationService, _stateService, _stepService, _processLinkStateService, _externalPluginService, _translateService) {
2442
+ this._buttonService = _buttonService;
2443
+ this._injector = _injector;
2444
+ this._pluginManagementService = _pluginManagementService;
2445
+ this._pluginService = _pluginService;
2446
+ this._pluginTranslationService = _pluginTranslationService;
2447
+ this._stateService = _stateService;
2448
+ this._stepService = _stepService;
2449
+ this._processLinkStateService = _processLinkStateService;
2450
+ this._externalPluginService = _externalPluginService;
2451
+ this._translateService = _translateService;
2102
2452
  this.testIds = SELECT_PLUGIN_ACTION_TEST_IDS;
2103
2453
  this.tileTestIdPrefix = SELECT_PLUGIN_ACTION_TILE_TEST_ID_PREFIX;
2104
2454
  this.pluginFunctions$ = combineLatest([
2105
- this.stateService.selectedPluginDefinition$,
2106
- this.processLinkStateService.modalParams$,
2107
- this.stateService.selectedPluginConfiguration$,
2108
- this.pluginService.pluginSpecifications$,
2455
+ this._stateService.selectedPluginDefinition$,
2456
+ this._processLinkStateService.modalParams$,
2457
+ this._stateService.selectedPluginConfiguration$,
2458
+ this._pluginService.pluginSpecifications$,
2109
2459
  ]).pipe(switchMap$1(([selectedDefinition, modalParams, selectedConfiguration, pluginSpecifications]) => {
2110
2460
  if (!selectedDefinition)
2111
2461
  return of(undefined);
2112
- return this.pluginManagementService
2462
+ if (isExternalPluginKey(selectedDefinition.key)) {
2463
+ const definitionId = extractExternalDefinitionId(selectedDefinition.key);
2464
+ const activityType = modalParams?.element?.activityListenerType;
2465
+ return this._externalPluginService.getDefinition(definitionId).pipe(map$1(definition => {
2466
+ // On a user task an external plugin contributes its `task-form` bundle(s) — the form the
2467
+ // plugin renders and completes — rather than service-task actions (which are invoked by
2468
+ // execution listeners and could never render on a user task). Offering them here keeps a
2469
+ // single "Plugin" entry point: pick the plugin, then pick its form.
2470
+ if (activityType === USER_TASK_ACTIVITY) {
2471
+ return (definition.manifest?.frontendBundles ?? [])
2472
+ .filter(bundle => bundle.type === 'task-form')
2473
+ .map(bundle => ({
2474
+ key: bundle.key ?? '',
2475
+ title: bundle.title ??
2476
+ bundle.key ??
2477
+ this._translateService.instant('processLinkConfiguration.externalPluginTaskForm.defaultTitle'),
2478
+ description: '',
2479
+ }));
2480
+ }
2481
+ const actions = definition.manifest?.actions;
2482
+ if (!actions?.length)
2483
+ return [];
2484
+ // Only offer actions valid for the activity being configured (mirrors the activity-type
2485
+ // filtering applied to embedded plugins below).
2486
+ return actions
2487
+ .filter(action => this._actionSupportsActivity(action, activityType))
2488
+ .map(action => ({
2489
+ key: action.key,
2490
+ title: action.title ?? action.key,
2491
+ description: action.description ?? '',
2492
+ outputs: action.outputs,
2493
+ }));
2494
+ }), catchError$1(() => of([])));
2495
+ }
2496
+ return this._pluginManagementService
2113
2497
  .getPluginFunctions(selectedDefinition.key, modalParams.element.activityListenerType)
2114
2498
  .pipe(switchMap$1(functions => {
2115
2499
  const specification = pluginSpecifications.find(s => s.pluginId === selectedDefinition.key);
@@ -2117,26 +2501,42 @@ class SelectPluginActionComponent {
2117
2501
  return of(functions);
2118
2502
  const props = (selectedConfiguration?.properties ?? {});
2119
2503
  const filterFn = specification.functionConfigurationComponentsFilter;
2120
- return forkJoin(functions.map(fn => filterFn(props, fn.key, this.injector).pipe(map$1(visible => ({ fn, visible }))))).pipe(map$1(results => results.filter(r => r.visible).map(r => r.fn)));
2504
+ return forkJoin(functions.map(fn => filterFn(props, fn.key, this._injector).pipe(map$1(visible => ({ fn, visible }))))).pipe(map$1(results => results.filter(r => r.visible).map(r => r.fn)));
2121
2505
  }), switchMap$1(functions => this.sortByTranslatedTitle(functions, selectedDefinition.key)));
2122
2506
  }));
2123
- this.selectedPluginDefinition$ = this.stateService.selectedPluginDefinition$;
2124
- this.selectedPluginFunction$ = this.stateService.selectedPluginFunction$;
2507
+ this.selectedPluginDefinition$ = this._stateService.selectedPluginDefinition$;
2508
+ this.selectedPluginFunction$ = this._stateService.selectedPluginFunction$;
2509
+ this.isExternalPlugin$ = this.selectedPluginDefinition$.pipe(map$1(def => isExternalPluginKey(def?.key)));
2125
2510
  this._subscriptions = new Subscription();
2126
2511
  }
2127
2512
  ngOnInit() {
2128
- this.openBackButtonSubscription();
2129
- this.openNextButtonSubscription();
2513
+ this._openBackButtonSubscription();
2514
+ this._openNextButtonSubscription();
2130
2515
  }
2131
2516
  ngOnDestroy() {
2132
2517
  this._subscriptions.unsubscribe();
2133
2518
  }
2519
+ /**
2520
+ * Whether an external plugin action may be linked to the activity currently being configured. An
2521
+ * action with no declared `activityTypes` is always shown. Otherwise it is shown when the current
2522
+ * activity matches one of its declared types, or when none of its declared types are recognised
2523
+ * (so an incomplete {@link ACTIVITY_TYPE_NAME_TO_VALUE} never hides a valid action).
2524
+ */
2525
+ _actionSupportsActivity(action, activityType) {
2526
+ const declaredTypes = action.activityTypes;
2527
+ if (!activityType || !declaredTypes?.length)
2528
+ return true;
2529
+ const supportedValues = declaredTypes
2530
+ .map(name => ACTIVITY_TYPE_NAME_TO_VALUE[name])
2531
+ .filter((value) => !!value);
2532
+ return supportedValues.length === 0 || supportedValues.includes(activityType);
2533
+ }
2134
2534
  selectFunction(pluginFunction) {
2135
- this.stateService.selectPluginFunction(pluginFunction);
2535
+ this._stateService.selectPluginFunction(pluginFunction);
2136
2536
  }
2137
2537
  selected(event) {
2138
2538
  this.selectFunction(JSON.parse(event.value));
2139
- this.buttonService.enableNextButton();
2539
+ this._buttonService.enableNextButton();
2140
2540
  }
2141
2541
  stringify(object) {
2142
2542
  return JSON.stringify(object);
@@ -2144,33 +2544,230 @@ class SelectPluginActionComponent {
2144
2544
  sortByTranslatedTitle(pluginFunctions, pluginDefinitionKey) {
2145
2545
  if (!pluginFunctions?.length)
2146
2546
  return of(pluginFunctions);
2147
- return combineLatest(pluginFunctions.map(pluginFunction => this.pluginTranslationService
2547
+ return combineLatest(pluginFunctions.map(pluginFunction => this._pluginTranslationService
2148
2548
  .translate(pluginFunction.key, pluginDefinitionKey)
2149
2549
  .pipe(map$1(title => ({ pluginFunction, title }))))).pipe(map$1(translatedFunctions => [...translatedFunctions]
2150
2550
  .sort((a, b) => a.title.localeCompare(b.title))
2151
2551
  .map(translatedFunction => translatedFunction.pluginFunction)));
2152
2552
  }
2153
- openBackButtonSubscription() {
2154
- this.buttonService.backButtonClick$
2155
- .pipe(withLatestFrom(this.processLinkStateService.isEditing$), filter$1(([, isEditing]) => !isEditing), switchMap$1(() => this.stepService.hasOneProcessLinkType$), take(1))
2156
- .subscribe((hasOneOption) => {
2157
- this.stepService.setProcessLinkTypeSteps('plugin', hasOneOption);
2158
- });
2553
+ _openBackButtonSubscription() {
2554
+ // Tracked in _subscriptions: an untracked handler here outlives the component (it is destroyed
2555
+ // when the wizard moves past this step) and hijacks back-clicks made on later steps.
2556
+ this._subscriptions.add(this._buttonService.backButtonClick$
2557
+ .pipe(withLatestFrom(this._processLinkStateService.isEditing$, this._stepService.hasOneProcessLinkType$), filter$1(([, isEditing]) => !isEditing))
2558
+ .subscribe(([, , hasOneOption]) => {
2559
+ this._stepService.setProcessLinkTypeSteps('plugin', hasOneOption);
2560
+ }));
2159
2561
  }
2160
- openNextButtonSubscription() {
2161
- this._subscriptions.add(this.buttonService.nextButtonClick$
2162
- .pipe(withLatestFrom(this.processLinkStateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
2562
+ _openNextButtonSubscription() {
2563
+ this._subscriptions.add(this._buttonService.nextButtonClick$
2564
+ .pipe(withLatestFrom(this._processLinkStateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
2163
2565
  .subscribe(() => {
2164
- this.stepService.setConfigurePluginActionSteps();
2566
+ this._stepService.setConfigurePluginActionSteps();
2165
2567
  }));
2166
2568
  }
2167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectPluginActionComponent, deps: [{ token: ProcessLinkButtonService }, { token: i0.Injector }, { token: i1$1.PluginManagementService }, { token: i1$1.PluginService }, { token: i1$1.PluginTranslationService }, { token: PluginStateService }, { token: ProcessLinkStepService }, { token: ProcessLinkStateService }], target: i0.ɵɵFactoryTarget.Component }); }
2168
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectPluginActionComponent, isStandalone: false, selector: "valtimo-select-plugin-action", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"pluginFunctions$ | async as pluginFunctions; else loading\">\n <div\n class=\"choose-plugin-action\"\n *ngIf=\"pluginFunctions?.length > 0\"\n [attr.data-test-id]=\"testIds.container\"\n >\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.choosePluginActionDescription' | translate }}\n </p>\n <div class=\"action-tiles\">\n <cds-tile-group\n [attr.data-test-id]=\"testIds.tileGroup\"\n [multiple]=\"false\"\n *ngIf=\"{selectedPluginDefinition: selectedPluginDefinition$ | async} as obs\"\n (selected)=\"selected($event)\"\n >\n <cds-selection-tile\n *ngFor=\"let pluginFunction of pluginFunctions\"\n [attr.data-test-id]=\"tileTestIdPrefix + pluginFunction.key\"\n [value]=\"stringify(pluginFunction)\"\n [selected]=\"false\"\n >{{\n pluginFunction.key | pluginTranslate: obs.selectedPluginDefinition.key | async\n }}</cds-selection-tile\n >\n </cds-tile-group>\n </div>\n </div>\n <ng-container *ngIf=\"!pluginFunctions || pluginFunctions?.length === 0\">\n <ng-container *ngTemplateOutlet=\"noPluginFunctionsTemplate\"> </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #noPluginFunctionsTemplate>\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.noActionsMessage\">\n {{ 'processLink.noPluginFunctions' | translate }}\n </p>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{width:calc(33.3% - 20px);margin-right:30px}.card:nth-child(3n+3){margin-right:0}.card-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.action-tiles{margin-top:24px;width:calc(100% + 8px);margin-left:-8px}::ng-deep .choose-plugin-action cds-selection-tile{display:flex;width:calc(33.3% - 8px)}::ng-deep .choose-plugin-action .cds--tile{width:100%}::ng-deep .choose-plugin-action cds-tile-group fieldset{display:flex;flex-direction:row;flex-wrap:wrap}::ng-deep .choose-plugin-action cds-selection-tile{margin-left:8px}::ng-deep .choose-plugin-action cds-selection-tile:nth-child(n+4){margin-top:8px}::ng-deep .action-tiles .cds--tile{background-color:var(--cds-layer-02, #ffffff)}::ng-deep .action-tiles .cds--tile:hover{background:var(--cds-layer-hover)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i5.SelectionTile, selector: "cds-selection-tile, ibm-selection-tile", inputs: ["theme", "id", "selected", "value", "disabled"], outputs: ["change"] }, { kind: "component", type: i5.TileGroup, selector: "cds-tile-group, ibm-tile-group", inputs: ["name", "multiple", "legend"], outputs: ["selected"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "pipe", type: i1$1.PluginTranslatePipe, name: "pluginTranslate" }] }); }
2569
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectPluginActionComponent, deps: [{ token: ProcessLinkButtonService }, { token: i0.Injector }, { token: i1$1.PluginManagementService }, { token: i1$1.PluginService }, { token: i1$1.PluginTranslationService }, { token: PluginStateService }, { token: ProcessLinkStepService }, { token: ProcessLinkStateService }, { token: i1$1.ExternalPluginService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
2570
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectPluginActionComponent, isStandalone: false, selector: "valtimo-select-plugin-action", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"pluginFunctions$ | async as pluginFunctions; else loading\">\n <div\n class=\"choose-plugin-action\"\n *ngIf=\"pluginFunctions?.length > 0\"\n [attr.data-test-id]=\"testIds.container\"\n >\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.choosePluginActionDescription' | translate }}\n </p>\n <div class=\"action-tiles\">\n <cds-tile-group\n [attr.data-test-id]=\"testIds.tileGroup\"\n [multiple]=\"false\"\n *ngIf=\"{\n selectedPluginDefinition: selectedPluginDefinition$ | async,\n isExternal: isExternalPlugin$ | async\n } as obs\"\n (selected)=\"selected($event)\"\n >\n <cds-selection-tile\n *ngFor=\"let pluginFunction of pluginFunctions\"\n [attr.data-test-id]=\"tileTestIdPrefix + pluginFunction.key\"\n [value]=\"stringify(pluginFunction)\"\n [selected]=\"false\"\n >\n <ng-container *ngIf=\"obs.isExternal; else embeddedLabel\">\n {{ pluginFunction.title || pluginFunction.key }}\n </ng-container>\n\n <ng-template #embeddedLabel>\n {{ pluginFunction.key | pluginTranslate: obs.selectedPluginDefinition.key | async }}\n </ng-template>\n </cds-selection-tile>\n </cds-tile-group>\n </div>\n </div>\n <ng-container *ngIf=\"!pluginFunctions || pluginFunctions?.length === 0\">\n <ng-container *ngTemplateOutlet=\"noPluginFunctionsTemplate\"> </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #noPluginFunctionsTemplate>\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.noActionsMessage\">\n {{ 'processLink.noPluginFunctions' | translate }}\n </p>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{width:calc(33.3% - 20px);margin-right:30px}.card:nth-child(3n+3){margin-right:0}.card-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.action-tiles{margin-top:24px;width:calc(100% + 8px);margin-left:-8px}::ng-deep .choose-plugin-action cds-selection-tile{display:flex;width:calc(33.3% - 8px)}::ng-deep .choose-plugin-action .cds--tile{width:100%}::ng-deep .choose-plugin-action cds-tile-group fieldset{display:flex;flex-direction:row;flex-wrap:wrap}::ng-deep .choose-plugin-action cds-selection-tile{margin-left:8px}::ng-deep .choose-plugin-action cds-selection-tile:nth-child(n+4){margin-top:8px}::ng-deep .action-tiles .cds--tile{background-color:var(--cds-layer-02, #ffffff)}::ng-deep .action-tiles .cds--tile:hover{background:var(--cds-layer-hover)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i6.SelectionTile, selector: "cds-selection-tile, ibm-selection-tile", inputs: ["theme", "id", "selected", "value", "disabled"], outputs: ["change"] }, { kind: "component", type: i6.TileGroup, selector: "cds-tile-group, ibm-tile-group", inputs: ["name", "multiple", "legend"], outputs: ["selected"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: i1$1.PluginTranslatePipe, name: "pluginTranslate" }] }); }
2169
2571
  }
2170
2572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectPluginActionComponent, decorators: [{
2171
2573
  type: Component,
2172
- args: [{ standalone: false, selector: 'valtimo-select-plugin-action', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"pluginFunctions$ | async as pluginFunctions; else loading\">\n <div\n class=\"choose-plugin-action\"\n *ngIf=\"pluginFunctions?.length > 0\"\n [attr.data-test-id]=\"testIds.container\"\n >\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.choosePluginActionDescription' | translate }}\n </p>\n <div class=\"action-tiles\">\n <cds-tile-group\n [attr.data-test-id]=\"testIds.tileGroup\"\n [multiple]=\"false\"\n *ngIf=\"{selectedPluginDefinition: selectedPluginDefinition$ | async} as obs\"\n (selected)=\"selected($event)\"\n >\n <cds-selection-tile\n *ngFor=\"let pluginFunction of pluginFunctions\"\n [attr.data-test-id]=\"tileTestIdPrefix + pluginFunction.key\"\n [value]=\"stringify(pluginFunction)\"\n [selected]=\"false\"\n >{{\n pluginFunction.key | pluginTranslate: obs.selectedPluginDefinition.key | async\n }}</cds-selection-tile\n >\n </cds-tile-group>\n </div>\n </div>\n <ng-container *ngIf=\"!pluginFunctions || pluginFunctions?.length === 0\">\n <ng-container *ngTemplateOutlet=\"noPluginFunctionsTemplate\"> </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #noPluginFunctionsTemplate>\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.noActionsMessage\">\n {{ 'processLink.noPluginFunctions' | translate }}\n </p>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{width:calc(33.3% - 20px);margin-right:30px}.card:nth-child(3n+3){margin-right:0}.card-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.action-tiles{margin-top:24px;width:calc(100% + 8px);margin-left:-8px}::ng-deep .choose-plugin-action cds-selection-tile{display:flex;width:calc(33.3% - 8px)}::ng-deep .choose-plugin-action .cds--tile{width:100%}::ng-deep .choose-plugin-action cds-tile-group fieldset{display:flex;flex-direction:row;flex-wrap:wrap}::ng-deep .choose-plugin-action cds-selection-tile{margin-left:8px}::ng-deep .choose-plugin-action cds-selection-tile:nth-child(n+4){margin-top:8px}::ng-deep .action-tiles .cds--tile{background-color:var(--cds-layer-02, #ffffff)}::ng-deep .action-tiles .cds--tile:hover{background:var(--cds-layer-hover)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2173
- }], ctorParameters: () => [{ type: ProcessLinkButtonService }, { type: i0.Injector }, { type: i1$1.PluginManagementService }, { type: i1$1.PluginService }, { type: i1$1.PluginTranslationService }, { type: PluginStateService }, { type: ProcessLinkStepService }, { type: ProcessLinkStateService }] });
2574
+ args: [{ standalone: false, selector: 'valtimo-select-plugin-action', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngIf=\"pluginFunctions$ | async as pluginFunctions; else loading\">\n <div\n class=\"choose-plugin-action\"\n *ngIf=\"pluginFunctions?.length > 0\"\n [attr.data-test-id]=\"testIds.container\"\n >\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.choosePluginActionDescription' | translate }}\n </p>\n <div class=\"action-tiles\">\n <cds-tile-group\n [attr.data-test-id]=\"testIds.tileGroup\"\n [multiple]=\"false\"\n *ngIf=\"{\n selectedPluginDefinition: selectedPluginDefinition$ | async,\n isExternal: isExternalPlugin$ | async\n } as obs\"\n (selected)=\"selected($event)\"\n >\n <cds-selection-tile\n *ngFor=\"let pluginFunction of pluginFunctions\"\n [attr.data-test-id]=\"tileTestIdPrefix + pluginFunction.key\"\n [value]=\"stringify(pluginFunction)\"\n [selected]=\"false\"\n >\n <ng-container *ngIf=\"obs.isExternal; else embeddedLabel\">\n {{ pluginFunction.title || pluginFunction.key }}\n </ng-container>\n\n <ng-template #embeddedLabel>\n {{ pluginFunction.key | pluginTranslate: obs.selectedPluginDefinition.key | async }}\n </ng-template>\n </cds-selection-tile>\n </cds-tile-group>\n </div>\n </div>\n <ng-container *ngIf=\"!pluginFunctions || pluginFunctions?.length === 0\">\n <ng-container *ngTemplateOutlet=\"noPluginFunctionsTemplate\"> </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #noPluginFunctionsTemplate>\n <p class=\"step-description\" [attr.data-test-id]=\"testIds.noActionsMessage\">\n {{ 'processLink.noPluginFunctions' | translate }}\n </p>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n", styles: [".btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{width:calc(33.3% - 20px);margin-right:30px}.card:nth-child(3n+3){margin-right:0}.card-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.loading-container{display:flex;justify-content:center;margin-top:40px;flex-direction:row}.action-tiles{margin-top:24px;width:calc(100% + 8px);margin-left:-8px}::ng-deep .choose-plugin-action cds-selection-tile{display:flex;width:calc(33.3% - 8px)}::ng-deep .choose-plugin-action .cds--tile{width:100%}::ng-deep .choose-plugin-action cds-tile-group fieldset{display:flex;flex-direction:row;flex-wrap:wrap}::ng-deep .choose-plugin-action cds-selection-tile{margin-left:8px}::ng-deep .choose-plugin-action cds-selection-tile:nth-child(n+4){margin-top:8px}::ng-deep .action-tiles .cds--tile{background-color:var(--cds-layer-02, #ffffff)}::ng-deep .action-tiles .cds--tile:hover{background:var(--cds-layer-hover)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2575
+ }], ctorParameters: () => [{ type: ProcessLinkButtonService }, { type: i0.Injector }, { type: i1$1.PluginManagementService }, { type: i1$1.PluginService }, { type: i1$1.PluginTranslationService }, { type: PluginStateService }, { type: ProcessLinkStepService }, { type: ProcessLinkStateService }, { type: i1$1.ExternalPluginService }, { type: i4.TranslateService }] });
2576
+
2577
+ /*
2578
+ * Copyright 2015-2026 Ritense BV, the Netherlands.
2579
+ *
2580
+ * Licensed under EUPL, Version 1.2 (the "License");
2581
+ * you may not use this file except in compliance with the License.
2582
+ * You may obtain a copy of the License at
2583
+ *
2584
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
2585
+ *
2586
+ * Unless required by applicable law or agreed to in writing, software
2587
+ * distributed under the License is distributed on an "AS IS" basis,
2588
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2589
+ * See the License for the specific language governing permissions and
2590
+ * limitations under the License.
2591
+ */
2592
+ class PluginActionResultMappingsComponent {
2593
+ constructor() {
2594
+ this.testIds = PLUGIN_ACTION_RESULT_MAPPINGS_TEST_IDS;
2595
+ this.ValuePathSelectorPrefix = ValuePathSelectorPrefix;
2596
+ this.formBuilder = inject(FormBuilder);
2597
+ this.changeDetectorRef = inject(ChangeDetectorRef);
2598
+ this._sourceKeys = [];
2599
+ this._sourceKeyItems = [];
2600
+ this.mappingsChangeEvent = new EventEmitter();
2601
+ /**
2602
+ * Emits whether the current rows are saveable: no rows at all is valid, but every present row
2603
+ * must have both a source and a target.
2604
+ */
2605
+ this.validityChangeEvent = new EventEmitter();
2606
+ this.mappingsForm = this.formBuilder.group({
2607
+ mappings: this.formBuilder.array([]),
2608
+ });
2609
+ this._subscriptions = new Subscription();
2610
+ this._refreshHandle = null;
2611
+ this._destroyed = false;
2612
+ }
2613
+ set mappings(value) {
2614
+ const incoming = value ?? [];
2615
+ if (isEqual(incoming, this.currentMappings())) {
2616
+ return;
2617
+ }
2618
+ this.rebuildForm(incoming);
2619
+ this.scheduleControlRefresh();
2620
+ }
2621
+ /**
2622
+ * Keys the selected external action declares in its manifest `outputs`. When non-empty, the
2623
+ * source column renders as a dropdown restricted to these keys instead of a free-text JSON
2624
+ * pointer — the persisted value is still an RFC 6901 pointer (`/` + key) so the backend handler
2625
+ * stays untouched.
2626
+ */
2627
+ set sourceKeys(value) {
2628
+ this._sourceKeys = value ?? [];
2629
+ this._sourceKeyItems = this._sourceKeys.map(key => ({ id: key, text: key }));
2630
+ if (this.hasDeclaredSourceKeys) {
2631
+ // Keys can arrive after the rows (manifest lookup): rows created in free-text mode still
2632
+ // hold pointer-shaped sources ('/key') that the dropdown items ('key') would not match.
2633
+ this.mappingRows.controls.forEach(group => {
2634
+ const source = group.controls.source.value ?? '';
2635
+ if (source.startsWith('/')) {
2636
+ group.controls.source.setValue(source.replace(/^\//, ''), { emitEvent: false });
2637
+ }
2638
+ });
2639
+ }
2640
+ this.scheduleControlRefresh();
2641
+ }
2642
+ get sourceKeys() {
2643
+ return this._sourceKeys;
2644
+ }
2645
+ get hasDeclaredSourceKeys() {
2646
+ return this._sourceKeys.length > 0;
2647
+ }
2648
+ get sourceKeyItems() {
2649
+ return this._sourceKeyItems;
2650
+ }
2651
+ get mappingRows() {
2652
+ return this.mappingsForm.controls.mappings;
2653
+ }
2654
+ /**
2655
+ * Without a case or building-block context there is no document schema to browse, so the
2656
+ * target falls back to a free-text value-resolver key (typically `pv:`) — the same degradation
2657
+ * the building-block mapping step applies for independent processes.
2658
+ */
2659
+ get hasDocumentContext() {
2660
+ return (!!(this.caseDefinitionKey && this.caseDefinitionVersionTag) ||
2661
+ !!(this.buildingBlockDefinitionKey && this.buildingBlockDefinitionVersionTag));
2662
+ }
2663
+ ngOnInit() {
2664
+ this._subscriptions.add(this.mappingsForm.valueChanges.subscribe(() => {
2665
+ this.mappingsChangeEvent.emit(this.currentMappings());
2666
+ this.validityChangeEvent.emit(this.isValid());
2667
+ }));
2668
+ this.validityChangeEvent.emit(this.isValid());
2669
+ }
2670
+ ngOnDestroy() {
2671
+ this._destroyed = true;
2672
+ if (this._refreshHandle !== null) {
2673
+ clearTimeout(this._refreshHandle);
2674
+ }
2675
+ this._subscriptions.unsubscribe();
2676
+ }
2677
+ addRow() {
2678
+ this.mappingRows.push(this.createRow());
2679
+ this.validityChangeEvent.emit(this.isValid());
2680
+ this.changeDetectorRef.detectChanges();
2681
+ }
2682
+ deleteRow(index) {
2683
+ this.mappingRows.removeAt(index);
2684
+ this.validityChangeEvent.emit(this.isValid());
2685
+ this.changeDetectorRef.detectChanges();
2686
+ }
2687
+ /**
2688
+ * Deferred re-sync after rows or dropdown items change outside a user event (prefill, late
2689
+ * manifest lookup): re-setting each control value once the current change-detection pass has
2690
+ * finished makes the select components pick up selections they missed while initializing, and
2691
+ * the explicit detectChanges renders it under OnPush. Mirrors the refresh
2692
+ * `ConfigureBuildingBlockMappingsComponent` applies to its own rows.
2693
+ */
2694
+ scheduleControlRefresh() {
2695
+ if (this._refreshHandle !== null) {
2696
+ clearTimeout(this._refreshHandle);
2697
+ }
2698
+ this._refreshHandle = window.setTimeout(() => {
2699
+ this._refreshHandle = null;
2700
+ if (this._destroyed)
2701
+ return;
2702
+ this.mappingRows.controls.forEach(group => {
2703
+ group.controls.source.setValue(group.controls.source.value ?? '', { emitEvent: false });
2704
+ group.controls.target.setValue(group.controls.target.value ?? '', { emitEvent: false });
2705
+ });
2706
+ this.changeDetectorRef.detectChanges();
2707
+ }, 0);
2708
+ }
2709
+ createRow(mapping) {
2710
+ const source = mapping?.source ?? '';
2711
+ return this.formBuilder.group({
2712
+ source: new FormControl(this.hasDeclaredSourceKeys ? source.replace(/^\//, '') : source, { nonNullable: true }),
2713
+ target: new FormControl(mapping?.target ?? '', { nonNullable: true }),
2714
+ });
2715
+ }
2716
+ rebuildForm(mappings) {
2717
+ this.mappingRows.clear({ emitEvent: false });
2718
+ mappings.forEach(mapping => this.mappingRows.push(this.createRow(mapping), { emitEvent: false }));
2719
+ }
2720
+ currentMappings() {
2721
+ // Incomplete rows are emitted as-is (not silently dropped) — the validity event keeps the
2722
+ // save button disabled until every row carries both values.
2723
+ return this.mappingRows.controls.map(group => {
2724
+ const rawSource = group.controls.source.value?.trim() ?? '';
2725
+ const source = this.hasDeclaredSourceKeys && rawSource && !rawSource.startsWith('/')
2726
+ ? `/${rawSource}`
2727
+ : rawSource;
2728
+ return {
2729
+ source,
2730
+ target: group.controls.target.value?.trim() ?? '',
2731
+ };
2732
+ });
2733
+ }
2734
+ isValid() {
2735
+ return this.currentMappings().every(mapping => !!mapping.source && !!mapping.target);
2736
+ }
2737
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginActionResultMappingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2738
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PluginActionResultMappingsComponent, isStandalone: true, selector: "valtimo-plugin-action-result-mappings", inputs: { mappings: "mappings", caseDefinitionKey: "caseDefinitionKey", caseDefinitionVersionTag: "caseDefinitionVersionTag", buildingBlockDefinitionKey: "buildingBlockDefinitionKey", buildingBlockDefinitionVersionTag: "buildingBlockDefinitionVersionTag", sourceKeys: "sourceKeys" }, outputs: { mappingsChangeEvent: "mappingsChangeEvent", validityChangeEvent: "validityChangeEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<section class=\"result-mappings-section\" [attr.data-test-id]=\"testIds.section\">\n <p class=\"section-description\">\n {{ 'processLinkConfiguration.resultMappings.description' | translate }}\n </p>\n\n <div class=\"mapping-table\" [formGroup]=\"mappingsForm\">\n @if (mappingRows.controls.length > 0) {\n <div class=\"mapping-header\">\n <v-input-label [title]=\"'processLinkConfiguration.resultMappings.source' | translate\" />\n\n <v-input-label [title]=\"'processLinkConfiguration.resultMappings.target' | translate\" />\n </div>\n }\n\n <div formArrayName=\"mappings\">\n @for (group of mappingRows.controls; let rowIndex = $index; track rowIndex) {\n <div class=\"mapping-row\" [formGroup]=\"group\" [attr.data-test-id]=\"testIds.row\">\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.sourceSelectWrapper\">\n @if (hasDeclaredSourceKeys) {\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"source\"\n [items]=\"sourceKeyItems\"\n [placeholder]=\"\n 'processLinkConfiguration.resultMappings.sourceSelectPlaceholder' | translate\n \"\n [dropUp]=\"false\"\n >\n </v-select>\n } @else {\n <input\n [cdsLayer]=\"2\"\n cdsText\n formControlName=\"source\"\n [placeholder]=\"\n 'processLinkConfiguration.resultMappings.sourcePlaceholder' | translate\n \"\n [attr.data-test-id]=\"testIds.sourceInput\"\n />\n }\n </div>\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.targetSelectWrapper\">\n @if (hasDocumentContext) {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"buildingBlockDefinitionVersionTag\"\n [formControl]=\"group.get('target')\"\n [appendInline]=\"false\"\n [dropUp]=\"true\"\n ></valtimo-value-path-selector>\n } @else {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"target\" [placeholder]=\"'pv:'\" />\n }\n </div>\n\n <div class=\"mapping-cell-actions\">\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteRow(rowIndex)\"\n [attr.data-test-id]=\"testIds.deleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addRow()\"\n [title]=\"'processLinkConfiguration.resultMappings.addRow' | translate\"\n [attr.data-test-id]=\"testIds.addButton\"\n >\n {{ 'processLinkConfiguration.resultMappings.addRow' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n</section>\n", styles: [".result-mappings-section{display:flex;flex-direction:column}.result-mappings-section .section-description{color:var(--cds-text-secondary);margin-bottom:var(--cds-spacing-04);font-size:var(--cds-body-compact-01-font-size, .875rem)}.result-mappings-section .mapping-header,.result-mappings-section .mapping-row{display:grid;grid-template-columns:1fr 1fr;align-items:center}.result-mappings-section .mapping-row{margin-bottom:var(--cds-spacing-03);padding:var(--cds-spacing-03);background-color:var(--cds-layer)}.result-mappings-section .mapping-row .mapping-part{display:flex}.result-mappings-section .mapping-row .arrow{text-align:center;width:var(--cds-spacing-08);line-height:var(--cds-spacing-08);font-size:var(--cds-body-02-font-size, 1rem)}.result-mappings-section .mapping-row .mapping-cell{flex:1;min-width:0}.result-mappings-section .mapping-row .mapping-cell-actions{display:flex;align-self:flex-end;margin-left:var(--cds-spacing-03)}.result-mappings-section .mapping-row .mapping-cell-actions button{margin-bottom:var(--cds-spacing-02)}.result-mappings-section .mapping-row .mapping-cell-actions button ::ng-deep .cds--btn__icon{margin:0!important}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "ngmodule", type: InputModule }, { kind: "directive", type: i6.TextInput, selector: "[cdsText], [ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { kind: "component", type: ValuePathSelectorComponent, selector: "valtimo-value-path-selector", inputs: ["name", "appendInline", "margin", "marginLg", "marginXl", "disabled", "caseDefinitionKey", "caseDefinitionVersionTag", "buildingBlockDefinitionKey", "buildingBlockDefinitionVersionTag", "prefixes", "excludePrefixes", "label", "tooltip", "required", "showCaseDefinitionSelector", "notation", "dropUp", "defaultValue", "type", "parentItem", "filterItems"], outputs: ["valueChangeEvent", "collectionSelected"] }, { kind: "ngmodule", type: InputLabelModule }, { kind: "component", type: i3.InputLabelComponent, selector: "v-input-label", inputs: ["name", "tooltip", "tooltipTranslationKey", "largeMargin", "small", "noMargin", "title", "titleTranslationKey", "required", "disabled", "carbonTheme"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i6.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "ngmodule", type: IconModule }, { kind: "directive", type: i6.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "ngmodule", type: LayerModule }, { kind: "directive", type: i6.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "defaultSelectionIds", "disabled", "dropUp", "invalid", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "clearText", "clearable", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder", "smallMargin", "carbonTheme", "appendInline", "warn", "warnText", "dataTestId"], outputs: ["selectedChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2739
+ }
2740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginActionResultMappingsComponent, decorators: [{
2741
+ type: Component,
2742
+ args: [{ standalone: true, selector: 'valtimo-plugin-action-result-mappings', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
2743
+ CommonModule,
2744
+ ReactiveFormsModule,
2745
+ InputModule,
2746
+ ValuePathSelectorComponent,
2747
+ InputLabelModule,
2748
+ TranslateModule,
2749
+ ButtonModule,
2750
+ IconModule,
2751
+ LayerModule,
2752
+ SelectModule,
2753
+ ], template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<section class=\"result-mappings-section\" [attr.data-test-id]=\"testIds.section\">\n <p class=\"section-description\">\n {{ 'processLinkConfiguration.resultMappings.description' | translate }}\n </p>\n\n <div class=\"mapping-table\" [formGroup]=\"mappingsForm\">\n @if (mappingRows.controls.length > 0) {\n <div class=\"mapping-header\">\n <v-input-label [title]=\"'processLinkConfiguration.resultMappings.source' | translate\" />\n\n <v-input-label [title]=\"'processLinkConfiguration.resultMappings.target' | translate\" />\n </div>\n }\n\n <div formArrayName=\"mappings\">\n @for (group of mappingRows.controls; let rowIndex = $index; track rowIndex) {\n <div class=\"mapping-row\" [formGroup]=\"group\" [attr.data-test-id]=\"testIds.row\">\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.sourceSelectWrapper\">\n @if (hasDeclaredSourceKeys) {\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"source\"\n [items]=\"sourceKeyItems\"\n [placeholder]=\"\n 'processLinkConfiguration.resultMappings.sourceSelectPlaceholder' | translate\n \"\n [dropUp]=\"false\"\n >\n </v-select>\n } @else {\n <input\n [cdsLayer]=\"2\"\n cdsText\n formControlName=\"source\"\n [placeholder]=\"\n 'processLinkConfiguration.resultMappings.sourcePlaceholder' | translate\n \"\n [attr.data-test-id]=\"testIds.sourceInput\"\n />\n }\n </div>\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.targetSelectWrapper\">\n @if (hasDocumentContext) {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"buildingBlockDefinitionVersionTag\"\n [formControl]=\"group.get('target')\"\n [appendInline]=\"false\"\n [dropUp]=\"true\"\n ></valtimo-value-path-selector>\n } @else {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"target\" [placeholder]=\"'pv:'\" />\n }\n </div>\n\n <div class=\"mapping-cell-actions\">\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteRow(rowIndex)\"\n [attr.data-test-id]=\"testIds.deleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addRow()\"\n [title]=\"'processLinkConfiguration.resultMappings.addRow' | translate\"\n [attr.data-test-id]=\"testIds.addButton\"\n >\n {{ 'processLinkConfiguration.resultMappings.addRow' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n</section>\n", styles: [".result-mappings-section{display:flex;flex-direction:column}.result-mappings-section .section-description{color:var(--cds-text-secondary);margin-bottom:var(--cds-spacing-04);font-size:var(--cds-body-compact-01-font-size, .875rem)}.result-mappings-section .mapping-header,.result-mappings-section .mapping-row{display:grid;grid-template-columns:1fr 1fr;align-items:center}.result-mappings-section .mapping-row{margin-bottom:var(--cds-spacing-03);padding:var(--cds-spacing-03);background-color:var(--cds-layer)}.result-mappings-section .mapping-row .mapping-part{display:flex}.result-mappings-section .mapping-row .arrow{text-align:center;width:var(--cds-spacing-08);line-height:var(--cds-spacing-08);font-size:var(--cds-body-02-font-size, 1rem)}.result-mappings-section .mapping-row .mapping-cell{flex:1;min-width:0}.result-mappings-section .mapping-row .mapping-cell-actions{display:flex;align-self:flex-end;margin-left:var(--cds-spacing-03)}.result-mappings-section .mapping-row .mapping-cell-actions button{margin-bottom:var(--cds-spacing-02)}.result-mappings-section .mapping-row .mapping-cell-actions button ::ng-deep .cds--btn__icon{margin:0!important}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2754
+ }], propDecorators: { mappings: [{
2755
+ type: Input
2756
+ }], caseDefinitionKey: [{
2757
+ type: Input
2758
+ }], caseDefinitionVersionTag: [{
2759
+ type: Input
2760
+ }], buildingBlockDefinitionKey: [{
2761
+ type: Input
2762
+ }], buildingBlockDefinitionVersionTag: [{
2763
+ type: Input
2764
+ }], sourceKeys: [{
2765
+ type: Input
2766
+ }], mappingsChangeEvent: [{
2767
+ type: Output
2768
+ }], validityChangeEvent: [{
2769
+ type: Output
2770
+ }] } });
2174
2771
 
2175
2772
  /*
2176
2773
  * Copyright 2015-2025 Ritense BV, the Netherlands.
@@ -2283,20 +2880,20 @@ class ImportPluginConfigurationComponent {
2283
2880
  activitySelected(event) {
2284
2881
  this.activity.setValue(event?.item?.content);
2285
2882
  }
2286
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ImportPluginConfigurationComponent, deps: [{ token: i2$1.CdsThemeService }, { token: i1$2.FormBuilder }, { token: ProcessLinkService }, { token: i5.IconService }, { token: ProcessLinkStateService }], target: i0.ɵɵFactoryTarget.Component }); }
2287
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ImportPluginConfigurationComponent, isStandalone: false, selector: "valtimo-import-plugin-configuration", inputs: { pluginActionKey: "pluginActionKey" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-toggletip\n *ngIf=\"!(readOnly$ | async)\"\n align=\"right-bottom\"\n [autoAlign]=\"true\"\n [isOpen]=\"open$ | async\"\n>\n <button\n class=\"process-link-configuration-import-button\"\n [disabled]=\"((compatiblePluginProcessLinks$ | async) || []).length === 0\"\n cdsToggletipButton\n [removeClassnames]=\"['cds--toggletip-button']\"\n cdsButton=\"ghost\"\n >\n {{ 'processLinkConfiguration.importConfiguration' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"upload\" size=\"16\"></svg>\n </button>\n\n <div\n cdsToggletipContent\n class=\"process-link-configuration-select\"\n >\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.process' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectProcess' | translate\"\n (selected)=\"processSelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"processListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.version' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectVersion' | translate\"\n [disabled]=\"!process.value\"\n (selected)=\"versionSelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"versionListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.activity' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectActivity' | translate\"\n [disabled]=\"!process.value || !version.value\"\n (selected)=\"activitySelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"activityListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <button cdsButton [attr.data-carbon-theme]=\"toggletipTheme$ | async\" [disabled]=\"!importPluginForm.valid\" (click)=\"onSubmit()\" [cdsLayer]=\"1\">\n {{ 'processLinkConfiguration.importConfiguration' | translate }}\n </button>\n </div>\n</cds-toggletip>\n", styles: [":host ::ng-deep .cds--popover-content{max-inline-size:unset}.process-link-configuration-import-button{margin-bottom:16px}.process-link-configuration-select{width:400px;max-inline-size:400px;display:flex;flex-direction:column;gap:16px}.process-link-configuration-select .cds--btn{width:100%;max-width:unset}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i5.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i6.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "hideLabel", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "readonly", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp", "fluid"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i6.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: i5.Toggletip, selector: "cds-toggletip, ibm-toggletip", inputs: ["id", "isOpen"] }, { kind: "directive", type: i5.ToggletipButton, selector: "[cdsToggletipButton], [ibmToggletipButton]", inputs: ["ariaLabel"] }, { kind: "directive", type: i5.ToggletipContent, selector: "[cdsToggletipContent], [ibmToggletipContent]" }, { kind: "directive", type: i2$1.RemoveClassnamesDirective, selector: "[removeClassnames]", inputs: ["removeClassnames"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
2883
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ImportPluginConfigurationComponent, deps: [{ token: i3.CdsThemeService }, { token: i1$2.FormBuilder }, { token: ProcessLinkService }, { token: i6.IconService }, { token: ProcessLinkStateService }], target: i0.ɵɵFactoryTarget.Component }); }
2884
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ImportPluginConfigurationComponent, isStandalone: false, selector: "valtimo-import-plugin-configuration", inputs: { pluginActionKey: "pluginActionKey" }, outputs: { configurationEvent: "configurationEvent" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-toggletip\n *ngIf=\"!(readOnly$ | async)\"\n align=\"right-bottom\"\n [autoAlign]=\"true\"\n [isOpen]=\"open$ | async\"\n>\n <button\n class=\"process-link-configuration-import-button\"\n [disabled]=\"((compatiblePluginProcessLinks$ | async) || []).length === 0\"\n cdsToggletipButton\n [removeClassnames]=\"['cds--toggletip-button']\"\n cdsButton=\"ghost\"\n >\n {{ 'processLinkConfiguration.importConfiguration' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"upload\" size=\"16\"></svg>\n </button>\n\n <div\n cdsToggletipContent\n class=\"process-link-configuration-select\"\n >\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.process' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectProcess' | translate\"\n (selected)=\"processSelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"processListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.version' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectVersion' | translate\"\n [disabled]=\"!process.value\"\n (selected)=\"versionSelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"versionListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.activity' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectActivity' | translate\"\n [disabled]=\"!process.value || !version.value\"\n (selected)=\"activitySelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"activityListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <button cdsButton [attr.data-carbon-theme]=\"toggletipTheme$ | async\" [disabled]=\"!importPluginForm.valid\" (click)=\"onSubmit()\" [cdsLayer]=\"1\">\n {{ 'processLinkConfiguration.importConfiguration' | translate }}\n </button>\n </div>\n</cds-toggletip>\n", styles: [":host ::ng-deep .cds--popover-content{max-inline-size:unset}.process-link-configuration-import-button{margin-bottom:16px}.process-link-configuration-select{width:400px;max-inline-size:400px;display:flex;flex-direction:column;gap:16px}.process-link-configuration-select .cds--btn{width:100%;max-width:unset}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i6.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i6$1.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "hideLabel", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "readonly", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp", "fluid"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i6$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "directive", type: i6.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: i6.Toggletip, selector: "cds-toggletip, ibm-toggletip", inputs: ["id", "isOpen"] }, { kind: "directive", type: i6.ToggletipButton, selector: "[cdsToggletipButton], [ibmToggletipButton]", inputs: ["ariaLabel"] }, { kind: "directive", type: i6.ToggletipContent, selector: "[cdsToggletipContent], [ibmToggletipContent]" }, { kind: "directive", type: i3.RemoveClassnamesDirective, selector: "[removeClassnames]", inputs: ["removeClassnames"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
2288
2885
  }
2289
2886
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ImportPluginConfigurationComponent, decorators: [{
2290
2887
  type: Component,
2291
2888
  args: [{ standalone: false, selector: 'valtimo-import-plugin-configuration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<cds-toggletip\n *ngIf=\"!(readOnly$ | async)\"\n align=\"right-bottom\"\n [autoAlign]=\"true\"\n [isOpen]=\"open$ | async\"\n>\n <button\n class=\"process-link-configuration-import-button\"\n [disabled]=\"((compatiblePluginProcessLinks$ | async) || []).length === 0\"\n cdsToggletipButton\n [removeClassnames]=\"['cds--toggletip-button']\"\n cdsButton=\"ghost\"\n >\n {{ 'processLinkConfiguration.importConfiguration' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"upload\" size=\"16\"></svg>\n </button>\n\n <div\n cdsToggletipContent\n class=\"process-link-configuration-select\"\n >\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.process' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectProcess' | translate\"\n (selected)=\"processSelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"processListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.version' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectVersion' | translate\"\n [disabled]=\"!process.value\"\n (selected)=\"versionSelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"versionListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <cds-dropdown\n [attr.data-carbon-theme]=\"toggletipTheme$ | async\"\n [label]=\"'processLinkConfiguration.activity' | translate\"\n [placeholder]=\"'processLinkConfiguration.selectActivity' | translate\"\n [disabled]=\"!process.value || !version.value\"\n (selected)=\"activitySelected($event)\"\n [appendInline]=\"true\"\n [cdsLayer]=\"1\"\n >\n <cds-dropdown-list\n [items]=\"activityListItems$ | async\"\n onclick=\"event.stopPropagation()\"\n ></cds-dropdown-list>\n </cds-dropdown>\n\n <button cdsButton [attr.data-carbon-theme]=\"toggletipTheme$ | async\" [disabled]=\"!importPluginForm.valid\" (click)=\"onSubmit()\" [cdsLayer]=\"1\">\n {{ 'processLinkConfiguration.importConfiguration' | translate }}\n </button>\n </div>\n</cds-toggletip>\n", styles: [":host ::ng-deep .cds--popover-content{max-inline-size:unset}.process-link-configuration-import-button{margin-bottom:16px}.process-link-configuration-select{width:400px;max-inline-size:400px;display:flex;flex-direction:column;gap:16px}.process-link-configuration-select .cds--btn{width:100%;max-width:unset}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2292
- }], ctorParameters: () => [{ type: i2$1.CdsThemeService }, { type: i1$2.FormBuilder }, { type: ProcessLinkService }, { type: i5.IconService }, { type: ProcessLinkStateService }], propDecorators: { pluginActionKey: [{
2889
+ }], ctorParameters: () => [{ type: i3.CdsThemeService }, { type: i1$2.FormBuilder }, { type: ProcessLinkService }, { type: i6.IconService }, { type: ProcessLinkStateService }], propDecorators: { pluginActionKey: [{
2293
2890
  type: Input
2294
2891
  }], configurationEvent: [{
2295
2892
  type: Output
2296
2893
  }] } });
2297
2894
 
2298
2895
  /*
2299
- * Copyright 2015-2025 Ritense BV, the Netherlands.
2896
+ * Copyright 2015-2026 Ritense BV, the Netherlands.
2300
2897
  *
2301
2898
  * Licensed under EUPL, Version 1.2 (the "License");
2302
2899
  * you may not use this file except in compliance with the License.
@@ -2311,24 +2908,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2311
2908
  * limitations under the License.
2312
2909
  */
2313
2910
  class PluginActionConfigurationComponent {
2314
- constructor(stateService, pluginStateService, buttonService, stepService, processLinkService) {
2315
- this.stateService = stateService;
2316
- this.pluginStateService = pluginStateService;
2317
- this.buttonService = buttonService;
2318
- this.stepService = stepService;
2319
- this.processLinkService = processLinkService;
2911
+ constructor(_stateService, _pluginStateService, _buttonService, _stepService, _processLinkService, _externalPluginService, _route) {
2912
+ this._stateService = _stateService;
2913
+ this._pluginStateService = _pluginStateService;
2914
+ this._buttonService = _buttonService;
2915
+ this._stepService = _stepService;
2916
+ this._processLinkService = _processLinkService;
2917
+ this._externalPluginService = _externalPluginService;
2918
+ this._route = _route;
2320
2919
  this.testIds = PLUGIN_ACTION_CONFIGURATION_TEST_IDS;
2321
2920
  this.valid = new EventEmitter();
2322
2921
  this.configuration = new EventEmitter();
2323
- this.pluginDefinitionKey$ = this.pluginStateService.pluginDefinitionKey$;
2324
- this.functionKey$ = this.pluginStateService.functionKey$;
2325
- this.save$ = this.pluginStateService.save$;
2326
- this.saving$ = this.stateService.saving$;
2922
+ this.pluginDefinitionKey$ = this._pluginStateService.pluginDefinitionKey$;
2923
+ this.functionKey$ = this._pluginStateService.functionKey$;
2924
+ this.save$ = this._pluginStateService.save$;
2925
+ this.saving$ = this._stateService.saving$;
2926
+ this.isExternalPlugin$ = this._pluginStateService.selectedPluginDefinition$.pipe(map$1(definition => isExternalPluginKey(definition?.key)));
2927
+ this.currentStepId$ = this._stepService.currentStepId$;
2928
+ this.selectedFunction$ = this._pluginStateService.selectedPluginFunction$;
2929
+ /**
2930
+ * The selected external action's declared `outputs`, resolved from the selected function when
2931
+ * available and falling back to a manifest lookup (edit mode: `loadExternalPluginStateForProcessLink`
2932
+ * only sets the selected function's `key`, not its `outputs`). Passed to the mappings editor as
2933
+ * `sourceKeys` — a dropdown of these keys replaces the free-text pointer input.
2934
+ */
2935
+ this.selectedFunctionOutputs$ = combineLatest([
2936
+ this.isExternalPlugin$,
2937
+ this._pluginStateService.selectedPluginDefinition$,
2938
+ this.selectedFunction$,
2939
+ this._stateService.selectedProcessLink$,
2940
+ ]).pipe(switchMap$1(([isExternal, definition, selectedFunction, selectedProcessLink]) => {
2941
+ if (!isExternal || !definition?.key)
2942
+ return of([]);
2943
+ if (selectedFunction?.outputs?.length)
2944
+ return of(selectedFunction.outputs);
2945
+ const actionKey = selectedFunction?.key || selectedProcessLink?.actionKey;
2946
+ if (!actionKey)
2947
+ return of([]);
2948
+ const definitionId = extractExternalDefinitionId(definition.key);
2949
+ return this._externalPluginService.getDefinition(definitionId).pipe(map$1((extDef) => {
2950
+ const action = extDef.manifest?.actions?.find(a => a.key === actionKey);
2951
+ return action?.outputs ?? [];
2952
+ }),
2953
+ // A failed manifest lookup must not kill the outer stream — fall back to "no outputs".
2954
+ catchError$1(() => of([])));
2955
+ }), shareReplay({ bufferSize: 1, refCount: true }));
2956
+ /**
2957
+ * True when the selected external action declares `outputs` in its manifest — the only case the
2958
+ * dedicated output-mapping step (and its Next/Save button swap) applies. Embedded actions have
2959
+ * no declaration mechanism and never carry this.
2960
+ */
2961
+ this.hasResultMappingsStep$ = this.selectedFunctionOutputs$.pipe(map$1(outputs => outputs.length > 0));
2962
+ /**
2963
+ * True when the external plugin is being linked to a user task: the plugin contributes a
2964
+ * `task-form` (rendered + completed by the plugin), not a service-task action. In that case this
2965
+ * step has nothing to configure — the selected form is saved as an `external_plugin_task_form`
2966
+ * link. Derived from the edited link's type (edit) or the activity being configured (create).
2967
+ */
2968
+ this.isTaskForm$ = combineLatest([
2969
+ this.isExternalPlugin$,
2970
+ this._stateService.modalParams$,
2971
+ this._stateService.selectedProcessLink$,
2972
+ ]).pipe(map$1(([isExternal, modalParams, selectedProcessLink]) => selectedProcessLink
2973
+ ? selectedProcessLink.processLinkType === 'external_plugin_task_form'
2974
+ : isExternal && modalParams?.element?.activityListenerType === USER_TASK_ACTIVITY));
2975
+ this.externalActionProperties = {};
2976
+ this.externalActionPropertiesValid = true;
2977
+ /** Reactive control backing the raw-JSON textarea fallback (no iframe bundle available). */
2978
+ this.externalActionPropertiesControl = new FormControl('{}', {
2979
+ nonNullable: true,
2980
+ });
2981
+ /**
2982
+ * `actionResultMappings` (#771): row-based JSON-pointer -> value-resolver-target write-back
2983
+ * rules for the action's return value, kept by `PluginActionResultMappingsComponent` and read
2984
+ * here purely as a plain value (that component owns its own form state).
2985
+ */
2986
+ this.actionResultMappings = [];
2987
+ this._resultMappingsValid$ = new BehaviorSubject(true);
2988
+ /** URL for the process-link-action iframe bundle: undefined = loading, null = no bundle, string = bundle URL */
2989
+ this.externalActionBundleUrl$ = new BehaviorSubject(undefined);
2990
+ /** Emits true once the bundle URL lookup has completed */
2991
+ this.externalBundleResolved$ = this.externalActionBundleUrl$.pipe(map$1(url => url !== undefined));
2992
+ /** Prefill data for the iframe when editing an existing process link */
2993
+ this.externalActionPrefill$ = new BehaviorSubject(null);
2327
2994
  this._prefillConfigurationSubject$ = new BehaviorSubject(null);
2328
2995
  // Only prefill if the action key hasn't changed from what's saved in the process link
2329
2996
  this._prefillConfiguration$ = combineLatest([
2330
- this.stateService.selectedProcessLink$,
2331
- this.pluginStateService.selectedPluginFunction$,
2997
+ this._stateService.selectedProcessLink$,
2998
+ this._pluginStateService.selectedPluginFunction$,
2332
2999
  ]).pipe(map$1(([processLink, selectedFunction]) => {
2333
3000
  if (!processLink)
2334
3001
  return undefined;
@@ -2344,24 +3011,69 @@ class PluginActionConfigurationComponent {
2344
3011
  this._prefillConfigurationSubject$,
2345
3012
  this._prefillConfiguration$,
2346
3013
  ]).pipe(map$1(([prefillConfigurationSubjectValue, prefillConfiguration]) => prefillConfigurationSubjectValue || prefillConfiguration));
3014
+ /** Case/building-block route context, forwarded to the result-mapping target's value-path selector. */
3015
+ this.caseParams$ = getCaseManagementRouteParams(this._route);
3016
+ this.buildingBlockParams$ = getBuildingBlockManagementRouteParams(this._route);
2347
3017
  this._subscriptions = new Subscription();
2348
3018
  }
2349
3019
  ngOnInit() {
2350
3020
  this.openBackButtonSubscription();
2351
3021
  this.openSaveButtonSubscription();
3022
+ this.openNextButtonSubscription();
3023
+ this.openMappingsBackButtonSubscription();
3024
+ this._subscriptions.add(combineLatest([this.isExternalPlugin$, this.hasResultMappingsStep$]).subscribe(([isExternal, hasResultMappingsStep]) => {
3025
+ // A pending output-mapping step keeps Next/Save handled by
3026
+ // `setConfigurePluginActionSteps()`/`setConfigurePluginActionResultMappingsSteps()` — do
3027
+ // not race that with an unconditional enableSaveButton() here. Save is only enabled when
3028
+ // the current action configuration is valid — an invalid configuration must never be
3029
+ // saveable (subsequent validity changes are handled by `applyActionPropertiesValidity`).
3030
+ if (isExternal && !hasResultMappingsStep && this.externalActionPropertiesValid) {
3031
+ this._buttonService.enableSaveButton();
3032
+ }
3033
+ }));
3034
+ this._subscriptions.add(this.externalActionPropertiesControl.valueChanges.subscribe(value => {
3035
+ this.handleExternalActionPropertiesChange(value);
3036
+ }));
3037
+ this._subscriptions.add(
3038
+ // Save on the mappings step is gated only by the rows' own validity (zero rows is valid;
3039
+ // every present row needs both source and target). The action properties were already
3040
+ // validated to reach this step — their validity gated the Next button — and neither the
3041
+ // create path (step service shows Save without enabling it) nor edit mode (the generic edit
3042
+ // navigation only toggles visibility) enables Save on arrival.
3043
+ combineLatest([this.currentStepId$, this._resultMappingsValid$])
3044
+ .pipe(filter$1(([stepId]) => stepId === 'configurePluginActionResultMappings'))
3045
+ .subscribe(([, mappingsValid]) => {
3046
+ if (mappingsValid) {
3047
+ this._buttonService.enableSaveButton();
3048
+ }
3049
+ else {
3050
+ this._buttonService.disableSaveButton();
3051
+ }
3052
+ }));
3053
+ this._subscriptions.add(this._stateService.selectedProcessLink$.pipe(take(1)).subscribe(processLink => {
3054
+ if (processLink?.actionProperties) {
3055
+ const json = JSON.stringify(processLink.actionProperties, null, 2);
3056
+ // Programmatic update: properties/validity are set directly, so skip re-parsing.
3057
+ this.externalActionPropertiesControl.setValue(json, { emitEvent: false });
3058
+ this.externalActionProperties = processLink.actionProperties;
3059
+ }
3060
+ this.actionResultMappings = processLink?.actionResultMappings ?? [];
3061
+ }));
3062
+ this.openEditModeResultMappingsSubscription();
3063
+ this.resolveExternalActionBundleUrl();
2352
3064
  }
2353
3065
  ngOnDestroy() {
2354
3066
  this._subscriptions.unsubscribe();
2355
3067
  }
2356
3068
  onValid(valid) {
2357
3069
  if (valid)
2358
- this.buttonService.enableSaveButton();
3070
+ this._buttonService.enableSaveButton();
2359
3071
  else
2360
- this.buttonService.disableSaveButton();
3072
+ this._buttonService.disableSaveButton();
2361
3073
  }
2362
3074
  onConfiguration(configuration) {
2363
- this.stateService.startSaving();
2364
- this.stateService.selectedProcessLink$.pipe(take(1)).subscribe(selectedProcessLink => {
3075
+ this._stateService.startSaving();
3076
+ this._stateService.selectedProcessLink$.pipe(take(1)).subscribe(selectedProcessLink => {
2365
3077
  if (selectedProcessLink) {
2366
3078
  this.updateProcessLink(configuration);
2367
3079
  }
@@ -2373,10 +3085,108 @@ class PluginActionConfigurationComponent {
2373
3085
  onImportConfiguration(configuration) {
2374
3086
  this._prefillConfigurationSubject$.next(configuration);
2375
3087
  }
3088
+ handleExternalActionPropertiesChange(value) {
3089
+ try {
3090
+ this.externalActionProperties = JSON.parse(value);
3091
+ this.externalActionPropertiesValid = true;
3092
+ }
3093
+ catch {
3094
+ this.externalActionPropertiesValid = false;
3095
+ }
3096
+ this.applyActionPropertiesValidity();
3097
+ }
3098
+ onIframeConfigurationChanged(event) {
3099
+ this.externalActionProperties = event.data;
3100
+ // Programmatic update: properties/validity are set directly, so skip re-parsing.
3101
+ this.externalActionPropertiesControl.setValue(JSON.stringify(event.data, null, 2), {
3102
+ emitEvent: false,
3103
+ });
3104
+ this.externalActionPropertiesValid = event.valid;
3105
+ this.applyActionPropertiesValidity();
3106
+ }
3107
+ /**
3108
+ * The action-properties step's validity gates whichever button is visible on it: `Save` when the
3109
+ * action has no pending output-mapping step, `Next` when it does (Save only appears on the
3110
+ * mappings step in that case — see {@link openNextButtonSubscription}).
3111
+ */
3112
+ applyActionPropertiesValidity() {
3113
+ this.hasResultMappingsStep$.pipe(take(1)).subscribe(hasResultMappingsStep => {
3114
+ const toggle = hasResultMappingsStep
3115
+ ? ['enableNextButton', 'disableNextButton']
3116
+ : ['enableSaveButton', 'disableSaveButton'];
3117
+ this._buttonService[this.externalActionPropertiesValid ? toggle[0] : toggle[1]]();
3118
+ });
3119
+ }
3120
+ onActionResultMappingsChange(mappings) {
3121
+ this.actionResultMappings = mappings;
3122
+ }
3123
+ onActionResultMappingsValidityChange(valid) {
3124
+ this._resultMappingsValid$.next(valid);
3125
+ }
3126
+ /**
3127
+ * Edit mode opens directly on the last step, bypassing `setConfigurePluginActionSteps()` (which
3128
+ * normally decides whether the mappings step exists). `loadExternalPluginStateForProcessLink`
3129
+ * only sets the selected function's `key` (no `outputs`), so this relies on
3130
+ * {@link selectedFunctionOutputs$}'s manifest-lookup fallback to find the declared `outputs`.
3131
+ */
3132
+ openEditModeResultMappingsSubscription() {
3133
+ this._subscriptions.add(combineLatest([this._stateService.selectedProcessLink$, this.hasResultMappingsStep$])
3134
+ .pipe(
3135
+ // The outputs resolution is async (definition + manifest lookups) and its first emission
3136
+ // can be a premature empty result — taking a single emission would lock in the 3-step
3137
+ // layout whenever those lookups lose the race. Wait for the first conclusive
3138
+ // "has outputs" instead; links whose action declares none simply never switch.
3139
+ filter$1(([selectedProcessLink, hasResultMappingsStep]) => selectedProcessLink?.processLinkType === 'external_plugin' && hasResultMappingsStep), take(1))
3140
+ .subscribe(() => {
3141
+ this._stepService.initializeEditModeResultMappingsSteps();
3142
+ }));
3143
+ }
3144
+ resolveExternalActionBundleUrl() {
3145
+ this._subscriptions.add(combineLatest([
3146
+ this._pluginStateService.selectedPluginDefinition$,
3147
+ this._pluginStateService.selectedPluginFunction$,
3148
+ this._stateService.selectedProcessLink$,
3149
+ ])
3150
+ .pipe(switchMap$1(([definition, selectedFunction, selectedProcessLink]) => {
3151
+ if (!definition?.key || !isExternalPluginKey(definition.key)) {
3152
+ return of(null);
3153
+ }
3154
+ const actionKey = selectedFunction?.key || selectedProcessLink?.actionKey || null;
3155
+ const definitionId = extractExternalDefinitionId(definition.key);
3156
+ return this._externalPluginService.getDefinition(definitionId).pipe(map$1((extDef) => ({ extDef, actionKey })),
3157
+ // A failed bundle resolve must not break the flow: emit null so the subscriber
3158
+ // marks the lookup as resolved without a bundle URL, which makes the template fall
3159
+ // back to the raw-JSON textarea configuration mode.
3160
+ catchError$1(() => of(null)));
3161
+ }))
3162
+ .subscribe(result => {
3163
+ if (!result) {
3164
+ this.externalActionBundleUrl$.next(null);
3165
+ return;
3166
+ }
3167
+ const { extDef, actionKey } = result;
3168
+ const actionBundle = extDef.manifest?.frontendBundles?.find(b => b.type === 'process-link-action' && (!b.key || b.key === actionKey));
3169
+ if (actionBundle) {
3170
+ const bundleUrl = `${extDef.baseUrl}/${extDef.version}${actionBundle.path}`;
3171
+ this.externalActionBundleUrl$.next(bundleUrl);
3172
+ // Set up prefill for editing existing process links
3173
+ if (this.externalActionProperties &&
3174
+ Object.keys(this.externalActionProperties).length > 0) {
3175
+ this.externalActionPrefill$.next({
3176
+ title: '',
3177
+ configuration: this.externalActionProperties,
3178
+ });
3179
+ }
3180
+ }
3181
+ else {
3182
+ this.externalActionBundleUrl$.next(null);
3183
+ }
3184
+ }));
3185
+ }
2376
3186
  updateProcessLink(configuration) {
2377
3187
  combineLatest([
2378
- this.stateService.selectedProcessLink$,
2379
- this.pluginStateService.selectedPluginFunction$,
3188
+ this._stateService.selectedProcessLink$,
3189
+ this._pluginStateService.selectedPluginFunction$,
2380
3190
  ])
2381
3191
  .pipe(take(1))
2382
3192
  .subscribe(([selectedProcessLink, selectedFunction]) => {
@@ -2395,28 +3205,29 @@ class PluginActionConfigurationComponent {
2395
3205
  activityId: selectedProcessLink.activityId,
2396
3206
  referenceType: inferredReferenceType,
2397
3207
  pluginDefinitionKey: selectedProcessLink.pluginDefinitionKey,
3208
+ actionResultMappings: this.actionResultMappings,
2398
3209
  };
2399
- this.stateService.sendProcessLinkUpdateEvent(updateProcessLinkRequest);
3210
+ this._stateService.sendProcessLinkUpdateEvent(updateProcessLinkRequest);
2400
3211
  });
2401
3212
  }
2402
3213
  saveNewProcessLink(configuration) {
2403
3214
  combineLatest([
2404
- this.stateService.modalParams$,
2405
- this.pluginStateService.selectedPluginConfiguration$,
2406
- this.pluginStateService.selectedPluginFunction$,
2407
- this.stateService.selectedProcessLinkTypeId$,
2408
- this.pluginStateService.selectedPluginDefinition$,
3215
+ this._stateService.modalParams$,
3216
+ this._pluginStateService.selectedPluginConfiguration$,
3217
+ this._pluginStateService.selectedPluginFunction$,
3218
+ this._stateService.selectedProcessLinkTypeId$,
3219
+ this._pluginStateService.selectedPluginDefinition$,
2409
3220
  ])
2410
3221
  .pipe(take(1))
2411
3222
  .subscribe(([modalData, selectedConfiguration, selectedFunction, selectedProcessLinkTypeId, selectedDefinition,]) => {
2412
- const isBuildingBlock = this.stateService.isBuildingBlockContext();
3223
+ const isBuildingBlock = this._stateService.isBuildingBlockContext();
2413
3224
  const pluginDefinitionKey = selectedConfiguration?.pluginDefinition?.key || selectedDefinition?.key;
2414
3225
  if (!selectedFunction || (isBuildingBlock && !pluginDefinitionKey)) {
2415
- this.stateService.stopSaving();
3226
+ this._stateService.stopSaving();
2416
3227
  return;
2417
3228
  }
2418
3229
  if (!isBuildingBlock && !selectedConfiguration) {
2419
- this.stateService.stopSaving();
3230
+ this._stateService.stopSaving();
2420
3231
  return;
2421
3232
  }
2422
3233
  const referenceType = isBuildingBlock
@@ -2432,29 +3243,172 @@ class PluginActionConfigurationComponent {
2432
3243
  processLinkType: selectedProcessLinkTypeId,
2433
3244
  referenceType,
2434
3245
  pluginDefinitionKey,
3246
+ actionResultMappings: this.actionResultMappings,
2435
3247
  };
2436
- this.stateService.sendProcessLinkCreateEvent(processLinkRequest);
3248
+ this._stateService.sendProcessLinkCreateEvent(processLinkRequest);
2437
3249
  });
2438
3250
  }
2439
3251
  openBackButtonSubscription() {
2440
- this._subscriptions.add(this.buttonService.backButtonClick$
2441
- .pipe(withLatestFrom(this.stateService.isEditing$), filter$1(([, isEditing]) => !isEditing))
3252
+ this._subscriptions.add(this._buttonService.backButtonClick$
3253
+ .pipe(withLatestFrom(this._stateService.isEditing$, this.currentStepId$), filter$1(([, isEditing, currentStepId]) => !isEditing && currentStepId === 'configurePluginAction'))
2442
3254
  .subscribe(() => {
2443
- this.stepService.setChoosePluginActionSteps();
3255
+ this._stepService.setChoosePluginActionSteps();
3256
+ }));
3257
+ }
3258
+ /**
3259
+ * Distinct from {@link openBackButtonSubscription}: back from the output-mapping step returns to
3260
+ * the (still-alive) properties step instead of `choosePluginAction`, guarded on this component's
3261
+ * own step relevance the same way the other back-handlers guard on `!isEditing`.
3262
+ */
3263
+ openMappingsBackButtonSubscription() {
3264
+ this._subscriptions.add(this._buttonService.backButtonClick$
3265
+ .pipe(withLatestFrom(this._stateService.isEditing$, this.currentStepId$), filter$1(([, isEditing, currentStepId]) => !isEditing && currentStepId === 'configurePluginActionResultMappings'))
3266
+ .subscribe(() => {
3267
+ this._stepService.setConfigurePluginActionSteps();
3268
+ }));
3269
+ }
3270
+ openNextButtonSubscription() {
3271
+ this._subscriptions.add(this._buttonService.nextButtonClick$
3272
+ .pipe(withLatestFrom(this._stateService.isEditing$, this.currentStepId$, this.hasResultMappingsStep$), filter$1(([, isEditing, currentStepId, hasResultMappingsStep]) => !isEditing && currentStepId === 'configurePluginAction' && hasResultMappingsStep))
3273
+ .subscribe(() => {
3274
+ this._stepService.setConfigurePluginActionResultMappingsSteps();
2444
3275
  }));
2445
3276
  }
2446
3277
  openSaveButtonSubscription() {
2447
- this._subscriptions.add(this.buttonService.saveButtonClick$.subscribe(() => {
2448
- this.pluginStateService.save();
3278
+ this._subscriptions.add(this._buttonService.saveButtonClick$
3279
+ .pipe(withLatestFrom(this.isExternalPlugin$))
3280
+ .subscribe(([, isExternal]) => {
3281
+ if (isExternal) {
3282
+ this.saveExternalPluginProcessLink();
3283
+ }
3284
+ else {
3285
+ this._pluginStateService.save();
3286
+ }
2449
3287
  }));
2450
3288
  }
2451
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginActionConfigurationComponent, deps: [{ token: ProcessLinkStateService }, { token: PluginStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: ProcessLinkService }], target: i0.ɵɵFactoryTarget.Component }); }
2452
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: PluginActionConfigurationComponent, isStandalone: false, selector: "valtimo-plugin-action-configuration", inputs: { selectedPluginConfiguration$: "selectedPluginConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-import-plugin-configuration\n [attr.data-test-id]=\"testIds.container\"\n [pluginActionKey]=\"functionKey$ | async\"\n (configurationEvent)=\"onImportConfiguration($event)\"\n></valtimo-import-plugin-configuration>\n\n<valtimo-plugin-configuration-container\n [pluginDefinitionKey]=\"pluginDefinitionKey$ | async\"\n [functionKey]=\"functionKey$ | async\"\n [save$]=\"save$\"\n [disabled$]=\"saving$\"\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onConfiguration($event)\"\n type=\"function\"\n></valtimo-plugin-configuration-container>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "component", type: i1$1.PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: ["type", "pluginDefinitionKey", "functionKey", "save$", "disabled$", "selectedPluginConfiguration$", "prefillConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "component", type: ImportPluginConfigurationComponent, selector: "valtimo-import-plugin-configuration", inputs: ["pluginActionKey"], outputs: ["configurationEvent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }] }); }
3289
+ saveExternalPluginProcessLink() {
3290
+ this._stateService.startSaving();
3291
+ const isBuildingBlock = this._stateService.isBuildingBlockContext();
3292
+ combineLatest([
3293
+ this._stateService.modalParams$,
3294
+ this._pluginStateService.selectedPluginConfiguration$,
3295
+ this._pluginStateService.selectedPluginFunction$,
3296
+ this._stateService.selectedProcessLink$,
3297
+ this._pluginStateService.selectedPluginDefinition$,
3298
+ ])
3299
+ .pipe(take(1), switchMap$1(([modalData, selectedConfiguration, selectedFunction, selectedProcessLink, selectedDefinition,]) => {
3300
+ if (!selectedFunction || !selectedDefinition) {
3301
+ this._stateService.stopSaving();
3302
+ return of(null);
3303
+ }
3304
+ if (!isBuildingBlock && !selectedConfiguration) {
3305
+ this._stateService.stopSaving();
3306
+ return of(null);
3307
+ }
3308
+ const definitionId = extractExternalDefinitionId(selectedDefinition.key);
3309
+ return this._externalPluginService.getDefinition(definitionId).pipe(map$1(definition => ({
3310
+ modalData,
3311
+ selectedConfiguration,
3312
+ selectedFunction,
3313
+ selectedProcessLink,
3314
+ pluginVersion: definition.version,
3315
+ pluginDefinitionKey: definition.pluginId,
3316
+ })),
3317
+ // A failed definition lookup would otherwise leave the modal in the "saving" state
3318
+ // forever — release it and bail out (the global HTTP interceptor shows the error).
3319
+ catchError$1(() => {
3320
+ this._stateService.stopSaving();
3321
+ return of(null);
3322
+ }));
3323
+ }))
3324
+ .subscribe(result => {
3325
+ if (!result)
3326
+ return;
3327
+ const { modalData, selectedConfiguration, selectedFunction, selectedProcessLink, pluginVersion, pluginDefinitionKey, } = result;
3328
+ // A user-task link is the plugin's task-form (rendered + completed by the plugin), not a
3329
+ // service-task action — persist it as the dedicated `external_plugin_task_form` type.
3330
+ const isTaskForm = selectedProcessLink
3331
+ ? selectedProcessLink.processLinkType === 'external_plugin_task_form'
3332
+ : modalData?.element?.activityListenerType === USER_TASK_ACTIVITY;
3333
+ if (isTaskForm) {
3334
+ // A task-form link always references a concrete configuration — without one (or its id)
3335
+ // there is nothing valid to persist, so release the saving state and bail out.
3336
+ if (!selectedConfiguration?.id) {
3337
+ this._stateService.stopSaving();
3338
+ return;
3339
+ }
3340
+ // The selected "function" is a task-form bundle; its key is the bundle key (empty = the
3341
+ // plugin's sole task-form bundle → null).
3342
+ const bundleKey = selectedFunction.key || null;
3343
+ if (selectedProcessLink) {
3344
+ const updateRequest = {
3345
+ id: selectedProcessLink.id,
3346
+ processLinkType: 'external_plugin_task_form',
3347
+ externalPluginConfigurationId: selectedConfiguration.id,
3348
+ pluginVersion,
3349
+ bundleKey,
3350
+ };
3351
+ this._stateService.sendProcessLinkUpdateEvent(updateRequest);
3352
+ }
3353
+ else {
3354
+ const createRequest = {
3355
+ processDefinitionId: modalData?.processDefinitionId,
3356
+ activityId: modalData?.element?.id,
3357
+ activityType: modalData?.element?.activityListenerType ?? '',
3358
+ processLinkType: 'external_plugin_task_form',
3359
+ externalPluginConfigurationId: selectedConfiguration.id,
3360
+ pluginVersion,
3361
+ bundleKey,
3362
+ };
3363
+ this._stateService.sendProcessLinkCreateEvent(createRequest);
3364
+ }
3365
+ return;
3366
+ }
3367
+ const actionProperties = this.externalActionProperties;
3368
+ const actionResultMappings = this.actionResultMappings;
3369
+ // In building-block context we send referenceType 'BUILDING_BLOCK' + pluginDefinitionKey +
3370
+ // pluginVersion and omit externalPluginConfigurationId — the concrete configuration is
3371
+ // resolved at runtime from the building block's plugin mappings (D1/D2), mirroring the
3372
+ // embedded save path's building-block branch.
3373
+ if (selectedProcessLink) {
3374
+ const updateRequest = {
3375
+ id: selectedProcessLink.id,
3376
+ processLinkType: 'external_plugin',
3377
+ externalPluginConfigurationId: isBuildingBlock ? undefined : selectedConfiguration.id,
3378
+ actionKey: selectedFunction.key,
3379
+ pluginVersion,
3380
+ referenceType: isBuildingBlock ? 'BUILDING_BLOCK' : 'FIXED',
3381
+ pluginDefinitionKey: isBuildingBlock ? pluginDefinitionKey : undefined,
3382
+ actionProperties,
3383
+ actionResultMappings,
3384
+ };
3385
+ this._stateService.sendProcessLinkUpdateEvent(updateRequest);
3386
+ }
3387
+ else {
3388
+ const createRequest = {
3389
+ processDefinitionId: modalData?.processDefinitionId,
3390
+ activityId: modalData?.element?.id,
3391
+ activityType: modalData?.element?.activityListenerType ?? '',
3392
+ processLinkType: 'external_plugin',
3393
+ externalPluginConfigurationId: isBuildingBlock ? undefined : selectedConfiguration.id,
3394
+ actionKey: selectedFunction.key,
3395
+ pluginVersion,
3396
+ referenceType: isBuildingBlock ? 'BUILDING_BLOCK' : 'FIXED',
3397
+ pluginDefinitionKey: isBuildingBlock ? pluginDefinitionKey : undefined,
3398
+ actionProperties,
3399
+ actionResultMappings,
3400
+ };
3401
+ this._stateService.sendProcessLinkCreateEvent(createRequest);
3402
+ }
3403
+ });
3404
+ }
3405
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginActionConfigurationComponent, deps: [{ token: ProcessLinkStateService }, { token: PluginStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: ProcessLinkService }, { token: i1$1.ExternalPluginService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
3406
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: PluginActionConfigurationComponent, isStandalone: false, selector: "valtimo-plugin-action-configuration", inputs: { selectedPluginConfiguration$: "selectedPluginConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"(currentStepId$ | async) === 'configurePluginActionResultMappings'; else configureStep\"\n>\n <!-- A separate stepper step, offered only for an external action that declares its `outputs` in\n the manifest \u2014 embedded actions have no declaration mechanism and never reach this branch.\n This component stays alive across the `configurePluginAction` <-> `configurePluginActionResultMappings`\n transition (see the modal template), so `actionProperties`/`actionResultMappings` carry over\n untouched. -->\n <valtimo-plugin-action-result-mappings\n [buildingBlockDefinitionKey]=\"(buildingBlockParams$ | async)?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n (buildingBlockParams$ | async)?.buildingBlockDefinitionVersionTag\n \"\n [caseDefinitionKey]=\"(caseParams$ | async)?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"(caseParams$ | async)?.caseDefinitionVersionTag\"\n [sourceKeys]=\"selectedFunctionOutputs$ | async\"\n [mappings]=\"actionResultMappings\"\n (mappingsChangeEvent)=\"onActionResultMappingsChange($event)\"\n (validityChangeEvent)=\"onActionResultMappingsValidityChange($event)\"\n ></valtimo-plugin-action-result-mappings>\n</ng-container>\n\n<ng-template #configureStep>\n <ng-container *ngIf=\"isExternalPlugin$ | async; else embeddedConfig\">\n <ng-container *ngIf=\"isTaskForm$ | async; else externalActionConfig\">\n <!-- A task-form has nothing to configure here: the plugin renders the form and completes the\n task. Saving links the selected task-form to this user task. -->\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.externalPluginTaskForm.description' | translate }}\n </p>\n </ng-container>\n\n <ng-template #externalActionConfig>\n <ng-container\n *ngIf=\"{\n url: externalActionBundleUrl$ | async,\n resolved: externalBundleResolved$ | async,\n } as bundle\"\n >\n <valtimo-external-plugin-iframe\n *ngIf=\"bundle.url\"\n [bundleUrl]=\"bundle.url\"\n [prefillConfiguration]=\"externalActionPrefill$ | async\"\n (configurationChangedEvent)=\"onIframeConfigurationChanged($event)\"\n ></valtimo-external-plugin-iframe>\n\n <div *ngIf=\"bundle.resolved && !bundle.url\" class=\"external-action-config\">\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.externalPluginActionProperties' | translate }}\n </p>\n <div class=\"cds--form-item\">\n <label class=\"cds--label\">{{\n 'processLinkConfiguration.actionPropertiesJson' | translate\n }}</label>\n <textarea\n [formControl]=\"externalActionPropertiesControl\"\n [class.cds--text-area--invalid]=\"!externalActionPropertiesValid\"\n class=\"cds--text-area\"\n rows=\"10\"\n ></textarea>\n <div *ngIf=\"!externalActionPropertiesValid\" class=\"cds--form-requirement\">\n {{ 'processLinkConfiguration.invalidJson' | translate }}\n </div>\n </div>\n </div>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #embeddedConfig>\n <valtimo-import-plugin-configuration\n [attr.data-test-id]=\"testIds.container\"\n [pluginActionKey]=\"functionKey$ | async\"\n (configurationEvent)=\"onImportConfiguration($event)\"\n ></valtimo-import-plugin-configuration>\n\n <valtimo-plugin-configuration-container\n [pluginDefinitionKey]=\"pluginDefinitionKey$ | async\"\n [functionKey]=\"functionKey$ | async\"\n [save$]=\"save$\"\n [disabled$]=\"saving$\"\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onConfiguration($event)\"\n type=\"function\"\n ></valtimo-plugin-configuration-container>\n </ng-template>\n</ng-template>\n", styles: [".external-action-config .cds--text-area{font-family:monospace;width:100%}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i1$1.PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: ["type", "pluginDefinitionKey", "functionKey", "save$", "disabled$", "selectedPluginConfiguration$", "prefillConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "component", type: PluginActionResultMappingsComponent, selector: "valtimo-plugin-action-result-mappings", inputs: ["mappings", "caseDefinitionKey", "caseDefinitionVersionTag", "buildingBlockDefinitionKey", "buildingBlockDefinitionVersionTag", "sourceKeys"], outputs: ["mappingsChangeEvent", "validityChangeEvent"] }, { kind: "component", type: i1$1.ExternalPluginIframeComponent, selector: "valtimo-external-plugin-iframe", inputs: ["bundleUrl", "context", "prefillConfiguration", "userToken", "pluginDataUrl", "allowedEndpoints", "configurationId", "autoHeight"], outputs: ["configurationChangedEvent", "readyEvent", "taskCompletedEvent", "submitTaskEvent"] }, { kind: "component", type: ImportPluginConfigurationComponent, selector: "valtimo-import-plugin-configuration", inputs: ["pluginActionKey"], outputs: ["configurationEvent"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
2453
3407
  }
2454
3408
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PluginActionConfigurationComponent, decorators: [{
2455
3409
  type: Component,
2456
- args: [{ standalone: false, selector: 'valtimo-plugin-action-configuration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-import-plugin-configuration\n [attr.data-test-id]=\"testIds.container\"\n [pluginActionKey]=\"functionKey$ | async\"\n (configurationEvent)=\"onImportConfiguration($event)\"\n></valtimo-import-plugin-configuration>\n\n<valtimo-plugin-configuration-container\n [pluginDefinitionKey]=\"pluginDefinitionKey$ | async\"\n [functionKey]=\"functionKey$ | async\"\n [save$]=\"save$\"\n [disabled$]=\"saving$\"\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onConfiguration($event)\"\n type=\"function\"\n></valtimo-plugin-configuration-container>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2457
- }], ctorParameters: () => [{ type: ProcessLinkStateService }, { type: PluginStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: ProcessLinkService }], propDecorators: { selectedPluginConfiguration$: [{
3410
+ args: [{ standalone: false, selector: 'valtimo-plugin-action-configuration', template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"(currentStepId$ | async) === 'configurePluginActionResultMappings'; else configureStep\"\n>\n <!-- A separate stepper step, offered only for an external action that declares its `outputs` in\n the manifest \u2014 embedded actions have no declaration mechanism and never reach this branch.\n This component stays alive across the `configurePluginAction` <-> `configurePluginActionResultMappings`\n transition (see the modal template), so `actionProperties`/`actionResultMappings` carry over\n untouched. -->\n <valtimo-plugin-action-result-mappings\n [buildingBlockDefinitionKey]=\"(buildingBlockParams$ | async)?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n (buildingBlockParams$ | async)?.buildingBlockDefinitionVersionTag\n \"\n [caseDefinitionKey]=\"(caseParams$ | async)?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"(caseParams$ | async)?.caseDefinitionVersionTag\"\n [sourceKeys]=\"selectedFunctionOutputs$ | async\"\n [mappings]=\"actionResultMappings\"\n (mappingsChangeEvent)=\"onActionResultMappingsChange($event)\"\n (validityChangeEvent)=\"onActionResultMappingsValidityChange($event)\"\n ></valtimo-plugin-action-result-mappings>\n</ng-container>\n\n<ng-template #configureStep>\n <ng-container *ngIf=\"isExternalPlugin$ | async; else embeddedConfig\">\n <ng-container *ngIf=\"isTaskForm$ | async; else externalActionConfig\">\n <!-- A task-form has nothing to configure here: the plugin renders the form and completes the\n task. Saving links the selected task-form to this user task. -->\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.externalPluginTaskForm.description' | translate }}\n </p>\n </ng-container>\n\n <ng-template #externalActionConfig>\n <ng-container\n *ngIf=\"{\n url: externalActionBundleUrl$ | async,\n resolved: externalBundleResolved$ | async,\n } as bundle\"\n >\n <valtimo-external-plugin-iframe\n *ngIf=\"bundle.url\"\n [bundleUrl]=\"bundle.url\"\n [prefillConfiguration]=\"externalActionPrefill$ | async\"\n (configurationChangedEvent)=\"onIframeConfigurationChanged($event)\"\n ></valtimo-external-plugin-iframe>\n\n <div *ngIf=\"bundle.resolved && !bundle.url\" class=\"external-action-config\">\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.externalPluginActionProperties' | translate }}\n </p>\n <div class=\"cds--form-item\">\n <label class=\"cds--label\">{{\n 'processLinkConfiguration.actionPropertiesJson' | translate\n }}</label>\n <textarea\n [formControl]=\"externalActionPropertiesControl\"\n [class.cds--text-area--invalid]=\"!externalActionPropertiesValid\"\n class=\"cds--text-area\"\n rows=\"10\"\n ></textarea>\n <div *ngIf=\"!externalActionPropertiesValid\" class=\"cds--form-requirement\">\n {{ 'processLinkConfiguration.invalidJson' | translate }}\n </div>\n </div>\n </div>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-template #embeddedConfig>\n <valtimo-import-plugin-configuration\n [attr.data-test-id]=\"testIds.container\"\n [pluginActionKey]=\"functionKey$ | async\"\n (configurationEvent)=\"onImportConfiguration($event)\"\n ></valtimo-import-plugin-configuration>\n\n <valtimo-plugin-configuration-container\n [pluginDefinitionKey]=\"pluginDefinitionKey$ | async\"\n [functionKey]=\"functionKey$ | async\"\n [save$]=\"save$\"\n [disabled$]=\"saving$\"\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n [prefillConfiguration$]=\"prefillConfiguration$\"\n (valid)=\"onValid($event)\"\n (configuration)=\"onConfiguration($event)\"\n type=\"function\"\n ></valtimo-plugin-configuration-container>\n </ng-template>\n</ng-template>\n", styles: [".external-action-config .cds--text-area{font-family:monospace;width:100%}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
3411
+ }], ctorParameters: () => [{ type: ProcessLinkStateService }, { type: PluginStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: ProcessLinkService }, { type: i1$1.ExternalPluginService }, { type: i3$1.ActivatedRoute }], propDecorators: { selectedPluginConfiguration$: [{
2458
3412
  type: Input
2459
3413
  }], valid: [{
2460
3414
  type: Output
@@ -2586,13 +3540,13 @@ class FormLinkProcessDiagramComponent {
2586
3540
  }
2587
3541
  this.version = +version;
2588
3542
  }
2589
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormLinkProcessDiagramComponent, deps: [{ token: i1$3.ProcessService }, { token: i3$1.ActivatedRoute }, { token: i2$1.PageTitleService }], target: i0.ɵɵFactoryTarget.Component }); }
2590
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormLinkProcessDiagramComponent, isStandalone: false, selector: "valtimo-form-link-process-diagram", outputs: { bpmnElementModalOpen: "bpmnElementModalOpen", bpmnElementModalClose: "bpmnElementModalClose" }, viewQueries: [{ propertyName: "el", first: true, predicate: ["ref"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row p-4 bg-white\">\n <div class=\"col\">\n <div #ref class=\"diagram-container\"></div>\n </div>\n </div>\n</div>\n<div class=\"p-4 text-center legenda-holder\">\n <span>Click on a User Task to specify a form definition for that User Task.</span>\n</div>\n\n<ng-container renderInPageHeader [fullWidth]=\"true\">\n <ng-template>\n <div class=\"form-link-dossier-actions\">\n <cds-select [label]=\"'Process'\" (change)=\"setProcessDefinitionKey($event.target.value)\"\n ><option\n *ngFor=\"let processDefinition of processDefinitions\"\n [value]=\"processDefinition.key\"\n [selected]=\"processDefinitionKey === processDefinition.key\"\n >\n {{ processDefinition.name }}\n </option>\n </cds-select>\n <cds-select [label]=\"'Version'\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option\n *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\"\n >\n {{ processDefinitionVersion.version }}\n </option>\n </cds-select>\n </div>\n </ng-template>\n</ng-container>\n", styles: [".diagram-container-switch-holder{width:100%;z-index:1000}.diagram-container{height:58vh}.container-fluid{border:1px solid #dee2e6}.options{border-bottom:1px solid #dee2e6}.form-link-dossier-actions{display:flex;flex-direction:row;gap:8px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2$1.RenderInPageHeaderDirective, selector: "[renderInPageHeader]", inputs: ["fullWidth"] }, { kind: "component", type: i5.Select, selector: "cds-select, ibm-select", inputs: ["value", "display", "label", "helperText", "invalidText", "warn", "warnText", "id", "size", "disabled", "skeleton", "invalid", "readonly", "theme", "ariaLabel", "fluid"], outputs: ["valueChange"] }, { kind: "directive", type: i5.Option, selector: "option" }] }); }
3543
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormLinkProcessDiagramComponent, deps: [{ token: i1$3.ProcessService }, { token: i3$1.ActivatedRoute }, { token: i3.PageTitleService }], target: i0.ɵɵFactoryTarget.Component }); }
3544
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormLinkProcessDiagramComponent, isStandalone: false, selector: "valtimo-form-link-process-diagram", outputs: { bpmnElementModalOpen: "bpmnElementModalOpen", bpmnElementModalClose: "bpmnElementModalClose" }, viewQueries: [{ propertyName: "el", first: true, predicate: ["ref"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row p-4 bg-white\">\n <div class=\"col\">\n <div #ref class=\"diagram-container\"></div>\n </div>\n </div>\n</div>\n<div class=\"p-4 text-center legenda-holder\">\n <span>Click on a User Task to specify a form definition for that User Task.</span>\n</div>\n\n<ng-container renderInPageHeader [fullWidth]=\"true\">\n <ng-template>\n <div class=\"form-link-dossier-actions\">\n <cds-select [label]=\"'Process'\" (change)=\"setProcessDefinitionKey($event.target.value)\"\n ><option\n *ngFor=\"let processDefinition of processDefinitions\"\n [value]=\"processDefinition.key\"\n [selected]=\"processDefinitionKey === processDefinition.key\"\n >\n {{ processDefinition.name }}\n </option>\n </cds-select>\n <cds-select [label]=\"'Version'\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option\n *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\"\n >\n {{ processDefinitionVersion.version }}\n </option>\n </cds-select>\n </div>\n </ng-template>\n</ng-container>\n", styles: [".diagram-container-switch-holder{width:100%;z-index:1000}.diagram-container{height:58vh}.container-fluid{border:1px solid #dee2e6}.options{border-bottom:1px solid #dee2e6}.form-link-dossier-actions{display:flex;flex-direction:row;gap:8px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.RenderInPageHeaderDirective, selector: "[renderInPageHeader]", inputs: ["fullWidth"] }, { kind: "component", type: i6.Select, selector: "cds-select, ibm-select", inputs: ["value", "display", "label", "helperText", "invalidText", "warn", "warnText", "id", "size", "disabled", "skeleton", "invalid", "readonly", "theme", "ariaLabel", "fluid"], outputs: ["valueChange"] }, { kind: "directive", type: i6.Option, selector: "option" }] }); }
2591
3545
  }
2592
3546
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormLinkProcessDiagramComponent, decorators: [{
2593
3547
  type: Component,
2594
3548
  args: [{ standalone: false, selector: 'valtimo-form-link-process-diagram', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row p-4 bg-white\">\n <div class=\"col\">\n <div #ref class=\"diagram-container\"></div>\n </div>\n </div>\n</div>\n<div class=\"p-4 text-center legenda-holder\">\n <span>Click on a User Task to specify a form definition for that User Task.</span>\n</div>\n\n<ng-container renderInPageHeader [fullWidth]=\"true\">\n <ng-template>\n <div class=\"form-link-dossier-actions\">\n <cds-select [label]=\"'Process'\" (change)=\"setProcessDefinitionKey($event.target.value)\"\n ><option\n *ngFor=\"let processDefinition of processDefinitions\"\n [value]=\"processDefinition.key\"\n [selected]=\"processDefinitionKey === processDefinition.key\"\n >\n {{ processDefinition.name }}\n </option>\n </cds-select>\n <cds-select [label]=\"'Version'\" (change)=\"setProcessDefinitionVersion($event.target.value)\">\n <option\n *ngFor=\"let processDefinitionVersion of processDefinitionVersions\"\n [value]=\"processDefinitionVersion.version\"\n [selected]=\"processDefinitionVersion.version === version\"\n >\n {{ processDefinitionVersion.version }}\n </option>\n </cds-select>\n </div>\n </ng-template>\n</ng-container>\n", styles: [".diagram-container-switch-holder{width:100%;z-index:1000}.diagram-container{height:58vh}.container-fluid{border:1px solid #dee2e6}.options{border-bottom:1px solid #dee2e6}.form-link-dossier-actions{display:flex;flex-direction:row;gap:8px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
2595
- }], ctorParameters: () => [{ type: i1$3.ProcessService }, { type: i3$1.ActivatedRoute }, { type: i2$1.PageTitleService }], propDecorators: { el: [{
3549
+ }], ctorParameters: () => [{ type: i1$3.ProcessService }, { type: i3$1.ActivatedRoute }, { type: i3.PageTitleService }], propDecorators: { el: [{
2596
3550
  type: ViewChild,
2597
3551
  args: ['ref']
2598
3552
  }], bpmnElementModalOpen: [{
@@ -3294,8 +4248,8 @@ class ConfigureBuildingBlockMappingsComponent {
3294
4248
  return false;
3295
4249
  return fields.some(field => field.required && field.name === target);
3296
4250
  }
3297
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ConfigureBuildingBlockMappingsComponent, deps: [{ token: i1$2.FormBuilder }, { token: BuildingBlockStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: ProcessLinkService }, { token: ProcessLinkStateService }, { token: i3.TranslateService }, { token: i3$1.ActivatedRoute }, { token: i0.ChangeDetectorRef }, { token: ProcessLinkBuildingBlockApiService }, { token: ProcessLinkStateService }], target: i0.ɵɵFactoryTarget.Component }); }
3298
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ConfigureBuildingBlockMappingsComponent, isStandalone: true, selector: "valtimo-configure-building-block-mappings", ngImport: i0, template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n@let obs =\n {\n fields: (buildingBlockFields$ | async),\n fieldItems: (buildingBlockFieldItems$ | async),\n params: (params$ | async),\n buildingBlockParams: (buildingBlockParams$ | async),\n sourceContextName: (sourceContextName$ | async),\n targetBuildingBlockName: (targetBuildingBlockName$ | async),\n sourceIsCase: (sourceIsCase$ | async),\n sourceIsIndependent: (sourceIsIndependent$ | async),\n caseLabelTranslation: ('Case' | translate),\n processLabelTranslation: ('processLinkConfiguration.buildingBlock.process' | translate),\n buildingBlockLabelTranslation:\n ('processLinkConfiguration.buildingBlock.selectLabel' | translate),\n };\n\n<div class=\"mapping-step\">\n <section class=\"mapping-section\" [attr.data-test-id]=\"testIds.inputSection\">\n <h4 class=\"section-header\">\n {{ 'processLinkConfiguration.buildingBlock.inputTitle' | translate }}\n </h4>\n\n <div class=\"mapping-table\" [formGroup]=\"inputsForm\">\n <div class=\"mapping-header input\">\n <v-input-label\n [title]=\"\n (obs.sourceIsIndependent\n ? obs.processLabelTranslation\n : obs.sourceIsCase\n ? obs.caseLabelTranslation\n : obs.buildingBlockLabelTranslation) +\n (obs.sourceIsIndependent ? '' : ': ' + obs.sourceContextName)\n \"\n />\n\n <v-input-label\n [title]=\"obs.buildingBlockLabelTranslation + ': ' + obs.targetBuildingBlockName\"\n />\n </div>\n\n <div formArrayName=\"inputs\">\n @for (group of inputs.controls; let inputIndex = $index; track inputIndex) {\n <div\n class=\"mapping-row input\"\n [formGroup]=\"group\"\n [attr.data-test-id]=\"testIds.inputRow\"\n >\n <div class=\"mapping-part\">\n @if (obs.sourceIsIndependent) {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"source\" [placeholder]=\"'pv:'\" />\n } @else {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"obs.params?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"obs.params?.caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"obs.buildingBlockParams?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n obs.buildingBlockParams?.buildingBlockDefinitionVersionTag\n \"\n [appendInline]=\"false\"\n [dropUp]=\"false\"\n [formControl]=\"group.get('source')\"\n ></valtimo-value-path-selector>\n }\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.inputTargetSelectWrapper\">\n @if (isRequiredTarget(obs.fields, group.get('target')?.value)) {\n <div class=\"required-target\" [attr.data-test-id]=\"testIds.inputRequiredTargetLabel\">\n {{ group.get('target')?.value }}\n </div>\n } @else {\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"target\"\n [placeholder]=\"\n 'processLinkConfiguration.buildingBlock.selectedBuildingBlockFieldPlaceholder'\n | translate\n \"\n [items]=\"getBuildingBlockFieldItemsForRow$(group) | async\"\n [dropUp]=\"false\"\n >\n </v-select>\n }\n </div>\n\n <div class=\"mapping-cell-actions\">\n @if (!isRequiredTarget(obs.fields, group.get('target')?.value)) {\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteInput(inputIndex)\"\n [attr.data-test-id]=\"testIds.inputDeleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n } @else {\n <div class=\"required-indicator\" [attr.data-test-id]=\"testIds.inputRequiredIndicator\">\n *\n </div>\n\n <div>\n {{ 'interface.required' | translate }}\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addInput()\"\n [title]=\"'processLinkConfiguration.buildingBlock.addInput' | translate\"\n [disabled]=\"allInputsMapped$ | async\"\n [attr.data-test-id]=\"testIds.addInputButton\"\n >\n {{ 'processLinkConfiguration.buildingBlock.addInput' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </section>\n\n <section class=\"mapping-section\" [attr.data-test-id]=\"testIds.outputSection\">\n <h4 class=\"section-header\">\n {{ 'processLinkConfiguration.buildingBlock.outputTitle' | translate }}\n </h4>\n\n <div class=\"mapping-table\" [formGroup]=\"outputsForm\">\n <div class=\"mapping-header output\">\n <v-input-label\n [title]=\"obs.buildingBlockLabelTranslation + ': ' + obs.targetBuildingBlockName\"\n />\n\n <v-input-label\n [title]=\"\n (obs.sourceIsIndependent\n ? obs.processLabelTranslation\n : obs.sourceIsCase\n ? obs.caseLabelTranslation\n : obs.buildingBlockLabelTranslation) +\n (obs.sourceIsIndependent ? '' : ': ' + obs.sourceContextName)\n \"\n />\n\n <div class=\"sync-options\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.sync.title' | translate\"\n />\n </div>\n </div>\n\n <div formArrayName=\"outputs\">\n @for (group of outputs.controls; let outputIndex = $index; track outputIndex) {\n <div\n class=\"mapping-row output\"\n [formGroup]=\"group\"\n [attr.data-test-id]=\"testIds.outputRow\"\n >\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.outputSourceSelectWrapper\">\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"source\"\n [items]=\"obs.fieldItems || []\"\n [placeholder]=\"\n 'processLinkConfiguration.buildingBlock.selectedBuildingBlockFieldPlaceholder'\n | translate\n \"\n [dropUp]=\"true\"\n >\n </v-select>\n </div>\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n @if (obs.sourceIsIndependent) {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"target\" [placeholder]=\"'pv:'\" />\n } @else {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"obs.params?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"obs.params?.caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"obs.buildingBlockParams?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n obs.buildingBlockParams?.buildingBlockDefinitionVersionTag\n \"\n [formControl]=\"group.get('target')\"\n [appendInline]=\"false\"\n [filterItems]=\"getUsedCaseTargetsForRow$(group) | async\"\n [dropUp]=\"true\"\n ></valtimo-value-path-selector>\n }\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\">\n <cds-radio-group\n class=\"sync-radio-group\"\n formControlName=\"syncTiming\"\n [attr.name]=\"'syncTiming-' + outputIndex\"\n >\n @for (item of syncTimingItems; track item.id) {\n <cds-radio [value]=\"item.id\" [checked]=\"isSyncTimingSelected(group, item.id)\">\n {{ item.labelKey | translate }}\n </cds-radio>\n }\n </cds-radio-group>\n </div>\n\n <div class=\"mapping-cell-actions\">\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteOutput(outputIndex)\"\n [attr.data-test-id]=\"testIds.outputDeleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addOutput()\"\n [title]=\"'processLinkConfiguration.buildingBlock.addOutput' | translate\"\n [attr.data-test-id]=\"testIds.addOutputButton\"\n >\n {{ 'processLinkConfiguration.buildingBlock.addOutput' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </section>\n</div>\n", styles: [".section-header{font-size:14px;line-height:18px;font-weight:600}.mapping-section{margin-bottom:16px}.mapping-row,.mapping-header{display:grid;align-items:center}.mapping-row.input,.mapping-header.input{grid-template-columns:1fr 1fr}.mapping-row.output,.mapping-header.output{grid-template-columns:5fr 6fr 3fr}.mapping-header.output .sync-options{padding-left:10px;display:flex}.mapping-row{margin-bottom:8px;padding:8px;background-color:var(--cds-layer)}.mapping-row .mapping-part{display:flex}.mapping-row .arrow{text-align:center;width:40px;line-height:40px;font-size:large}.mapping-row .mapping-cell{flex:1;min-width:0}.mapping-row .mapping-cell-actions{display:flex;align-self:flex-end;text-transform:capitalize;margin-left:10px}.mapping-row .mapping-cell-actions .required-indicator{margin:0 5px;color:var(--cds-text-error)}.mapping-row .mapping-cell-actions button{margin-bottom:5px}.mapping-row .mapping-cell-actions button ::ng-deep .cds--btn__icon{margin:0!important}.mapping-row .sync-radio-group{padding-left:10px;margin-top:8px}.mapping-row .sync-radio-group .sync-radio:first-child{margin-right:0}.mapping-row .sync-radio-group ::ng-deep .cds--radio-button__label{justify-content:normal}::ng-deep .process-link-modal-container .cds--modal-container{max-width:1280px}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "ngmodule", type: ComboBoxModule }, { kind: "ngmodule", type: RadioModule }, { kind: "component", type: i5.Radio, selector: "cds-radio, ibm-radio", inputs: ["checked", "name", "disabled", "labelPlacement", "ariaLabelledby", "ariaLabel", "required", "value", "skeleton", "id"], outputs: ["change"] }, { kind: "component", type: i5.RadioGroup, selector: "cds-radio-group, ibm-radio-group", inputs: ["selected", "value", "name", "disabled", "skeleton", "orientation", "labelPlacement", "legend", "ariaLabel", "ariaLabelledby", "helperText", "invalid", "invalidText", "warn", "warnText"], outputs: ["change"] }, { kind: "ngmodule", type: InputModule }, { kind: "directive", type: i5.TextInput, selector: "[cdsText], [ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { kind: "component", type: ValuePathSelectorComponent, selector: "valtimo-value-path-selector", inputs: ["name", "appendInline", "margin", "marginLg", "marginXl", "disabled", "caseDefinitionKey", "caseDefinitionVersionTag", "buildingBlockDefinitionKey", "buildingBlockDefinitionVersionTag", "prefixes", "excludePrefixes", "label", "tooltip", "required", "showCaseDefinitionSelector", "notation", "dropUp", "defaultValue", "type", "parentItem", "filterItems"], outputs: ["valueChangeEvent", "collectionSelected"] }, { kind: "ngmodule", type: InputLabelModule }, { kind: "component", type: i2$1.InputLabelComponent, selector: "v-input-label", inputs: ["name", "tooltip", "tooltipTranslationKey", "largeMargin", "small", "noMargin", "title", "titleTranslationKey", "required", "disabled", "carbonTheme"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "ngmodule", type: IconModule }, { kind: "directive", type: i5.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i2$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "defaultSelectionIds", "disabled", "dropUp", "invalid", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "clearText", "clearable", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder", "smallMargin", "carbonTheme", "appendInline", "warn", "warnText", "dataTestId"], outputs: ["selectedChange"] }, { kind: "ngmodule", type: LayerModule }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4251
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ConfigureBuildingBlockMappingsComponent, deps: [{ token: i1$2.FormBuilder }, { token: BuildingBlockStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: ProcessLinkService }, { token: ProcessLinkStateService }, { token: i4.TranslateService }, { token: i3$1.ActivatedRoute }, { token: i0.ChangeDetectorRef }, { token: ProcessLinkBuildingBlockApiService }, { token: ProcessLinkStateService }], target: i0.ɵɵFactoryTarget.Component }); }
4252
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ConfigureBuildingBlockMappingsComponent, isStandalone: true, selector: "valtimo-configure-building-block-mappings", ngImport: i0, template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n@let obs =\n {\n fields: (buildingBlockFields$ | async),\n fieldItems: (buildingBlockFieldItems$ | async),\n params: (params$ | async),\n buildingBlockParams: (buildingBlockParams$ | async),\n sourceContextName: (sourceContextName$ | async),\n targetBuildingBlockName: (targetBuildingBlockName$ | async),\n sourceIsCase: (sourceIsCase$ | async),\n sourceIsIndependent: (sourceIsIndependent$ | async),\n caseLabelTranslation: ('Case' | translate),\n processLabelTranslation: ('processLinkConfiguration.buildingBlock.process' | translate),\n buildingBlockLabelTranslation:\n ('processLinkConfiguration.buildingBlock.selectLabel' | translate),\n };\n\n<div class=\"mapping-step\">\n <section class=\"mapping-section\" [attr.data-test-id]=\"testIds.inputSection\">\n <h4 class=\"section-header\">\n {{ 'processLinkConfiguration.buildingBlock.inputTitle' | translate }}\n </h4>\n\n <div class=\"mapping-table\" [formGroup]=\"inputsForm\">\n <div class=\"mapping-header input\">\n <v-input-label\n [title]=\"\n (obs.sourceIsIndependent\n ? obs.processLabelTranslation\n : obs.sourceIsCase\n ? obs.caseLabelTranslation\n : obs.buildingBlockLabelTranslation) +\n (obs.sourceIsIndependent ? '' : ': ' + obs.sourceContextName)\n \"\n />\n\n <v-input-label\n [title]=\"obs.buildingBlockLabelTranslation + ': ' + obs.targetBuildingBlockName\"\n />\n </div>\n\n <div formArrayName=\"inputs\">\n @for (group of inputs.controls; let inputIndex = $index; track inputIndex) {\n <div\n class=\"mapping-row input\"\n [formGroup]=\"group\"\n [attr.data-test-id]=\"testIds.inputRow\"\n >\n <div class=\"mapping-part\">\n @if (obs.sourceIsIndependent) {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"source\" [placeholder]=\"'pv:'\" />\n } @else {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"obs.params?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"obs.params?.caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"obs.buildingBlockParams?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n obs.buildingBlockParams?.buildingBlockDefinitionVersionTag\n \"\n [appendInline]=\"false\"\n [dropUp]=\"false\"\n [formControl]=\"group.get('source')\"\n ></valtimo-value-path-selector>\n }\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.inputTargetSelectWrapper\">\n @if (isRequiredTarget(obs.fields, group.get('target')?.value)) {\n <div class=\"required-target\" [attr.data-test-id]=\"testIds.inputRequiredTargetLabel\">\n {{ group.get('target')?.value }}\n </div>\n } @else {\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"target\"\n [placeholder]=\"\n 'processLinkConfiguration.buildingBlock.selectedBuildingBlockFieldPlaceholder'\n | translate\n \"\n [items]=\"getBuildingBlockFieldItemsForRow$(group) | async\"\n [dropUp]=\"false\"\n >\n </v-select>\n }\n </div>\n\n <div class=\"mapping-cell-actions\">\n @if (!isRequiredTarget(obs.fields, group.get('target')?.value)) {\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteInput(inputIndex)\"\n [attr.data-test-id]=\"testIds.inputDeleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n } @else {\n <div class=\"required-indicator\" [attr.data-test-id]=\"testIds.inputRequiredIndicator\">\n *\n </div>\n\n <div>\n {{ 'interface.required' | translate }}\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addInput()\"\n [title]=\"'processLinkConfiguration.buildingBlock.addInput' | translate\"\n [disabled]=\"allInputsMapped$ | async\"\n [attr.data-test-id]=\"testIds.addInputButton\"\n >\n {{ 'processLinkConfiguration.buildingBlock.addInput' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </section>\n\n <section class=\"mapping-section\" [attr.data-test-id]=\"testIds.outputSection\">\n <h4 class=\"section-header\">\n {{ 'processLinkConfiguration.buildingBlock.outputTitle' | translate }}\n </h4>\n\n <div class=\"mapping-table\" [formGroup]=\"outputsForm\">\n <div class=\"mapping-header output\">\n <v-input-label\n [title]=\"obs.buildingBlockLabelTranslation + ': ' + obs.targetBuildingBlockName\"\n />\n\n <v-input-label\n [title]=\"\n (obs.sourceIsIndependent\n ? obs.processLabelTranslation\n : obs.sourceIsCase\n ? obs.caseLabelTranslation\n : obs.buildingBlockLabelTranslation) +\n (obs.sourceIsIndependent ? '' : ': ' + obs.sourceContextName)\n \"\n />\n\n <div class=\"sync-options\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.sync.title' | translate\"\n />\n </div>\n </div>\n\n <div formArrayName=\"outputs\">\n @for (group of outputs.controls; let outputIndex = $index; track outputIndex) {\n <div\n class=\"mapping-row output\"\n [formGroup]=\"group\"\n [attr.data-test-id]=\"testIds.outputRow\"\n >\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.outputSourceSelectWrapper\">\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"source\"\n [items]=\"obs.fieldItems || []\"\n [placeholder]=\"\n 'processLinkConfiguration.buildingBlock.selectedBuildingBlockFieldPlaceholder'\n | translate\n \"\n [dropUp]=\"true\"\n >\n </v-select>\n </div>\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n @if (obs.sourceIsIndependent) {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"target\" [placeholder]=\"'pv:'\" />\n } @else {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"obs.params?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"obs.params?.caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"obs.buildingBlockParams?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n obs.buildingBlockParams?.buildingBlockDefinitionVersionTag\n \"\n [formControl]=\"group.get('target')\"\n [appendInline]=\"false\"\n [filterItems]=\"getUsedCaseTargetsForRow$(group) | async\"\n [dropUp]=\"true\"\n ></valtimo-value-path-selector>\n }\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\">\n <cds-radio-group\n class=\"sync-radio-group\"\n formControlName=\"syncTiming\"\n [attr.name]=\"'syncTiming-' + outputIndex\"\n >\n @for (item of syncTimingItems; track item.id) {\n <cds-radio [value]=\"item.id\" [checked]=\"isSyncTimingSelected(group, item.id)\">\n {{ item.labelKey | translate }}\n </cds-radio>\n }\n </cds-radio-group>\n </div>\n\n <div class=\"mapping-cell-actions\">\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteOutput(outputIndex)\"\n [attr.data-test-id]=\"testIds.outputDeleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addOutput()\"\n [title]=\"'processLinkConfiguration.buildingBlock.addOutput' | translate\"\n [attr.data-test-id]=\"testIds.addOutputButton\"\n >\n {{ 'processLinkConfiguration.buildingBlock.addOutput' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </section>\n</div>\n", styles: [".section-header{font-size:14px;line-height:18px;font-weight:600}.mapping-section{margin-bottom:16px}.mapping-row,.mapping-header{display:grid;align-items:center}.mapping-row.input,.mapping-header.input{grid-template-columns:1fr 1fr}.mapping-row.output,.mapping-header.output{grid-template-columns:5fr 6fr 3fr}.mapping-header.output .sync-options{padding-left:10px;display:flex}.mapping-row{margin-bottom:8px;padding:8px;background-color:var(--cds-layer)}.mapping-row .mapping-part{display:flex}.mapping-row .arrow{text-align:center;width:40px;line-height:40px;font-size:large}.mapping-row .mapping-cell{flex:1;min-width:0}.mapping-row .mapping-cell-actions{display:flex;align-self:flex-end;text-transform:capitalize;margin-left:10px}.mapping-row .mapping-cell-actions .required-indicator{margin:0 5px;color:var(--cds-text-error)}.mapping-row .mapping-cell-actions button{margin-bottom:5px}.mapping-row .mapping-cell-actions button ::ng-deep .cds--btn__icon{margin:0!important}.mapping-row .sync-radio-group{padding-left:10px;margin-top:8px}.mapping-row .sync-radio-group .sync-radio:first-child{margin-right:0}.mapping-row .sync-radio-group ::ng-deep .cds--radio-button__label{justify-content:normal}::ng-deep .process-link-modal-container .cds--modal-container{max-width:1280px}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "ngmodule", type: ComboBoxModule }, { kind: "ngmodule", type: RadioModule }, { kind: "component", type: i6.Radio, selector: "cds-radio, ibm-radio", inputs: ["checked", "name", "disabled", "labelPlacement", "ariaLabelledby", "ariaLabel", "required", "value", "skeleton", "id"], outputs: ["change"] }, { kind: "component", type: i6.RadioGroup, selector: "cds-radio-group, ibm-radio-group", inputs: ["selected", "value", "name", "disabled", "skeleton", "orientation", "labelPlacement", "legend", "ariaLabel", "ariaLabelledby", "helperText", "invalid", "invalidText", "warn", "warnText"], outputs: ["change"] }, { kind: "ngmodule", type: InputModule }, { kind: "directive", type: i6.TextInput, selector: "[cdsText], [ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { kind: "component", type: ValuePathSelectorComponent, selector: "valtimo-value-path-selector", inputs: ["name", "appendInline", "margin", "marginLg", "marginXl", "disabled", "caseDefinitionKey", "caseDefinitionVersionTag", "buildingBlockDefinitionKey", "buildingBlockDefinitionVersionTag", "prefixes", "excludePrefixes", "label", "tooltip", "required", "showCaseDefinitionSelector", "notation", "dropUp", "defaultValue", "type", "parentItem", "filterItems"], outputs: ["valueChangeEvent", "collectionSelected"] }, { kind: "ngmodule", type: InputLabelModule }, { kind: "component", type: i3.InputLabelComponent, selector: "v-input-label", inputs: ["name", "tooltip", "tooltipTranslationKey", "largeMargin", "small", "noMargin", "title", "titleTranslationKey", "required", "disabled", "carbonTheme"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i6.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "ngmodule", type: IconModule }, { kind: "directive", type: i6.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "defaultSelectionIds", "disabled", "dropUp", "invalid", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "clearText", "clearable", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder", "smallMargin", "carbonTheme", "appendInline", "warn", "warnText", "dataTestId"], outputs: ["selectedChange"] }, { kind: "ngmodule", type: LayerModule }, { kind: "directive", type: i6.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3299
4253
  }
3300
4254
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ConfigureBuildingBlockMappingsComponent, decorators: [{
3301
4255
  type: Component,
@@ -3313,7 +4267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
3313
4267
  SelectModule,
3314
4268
  LayerModule,
3315
4269
  ], template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n@let obs =\n {\n fields: (buildingBlockFields$ | async),\n fieldItems: (buildingBlockFieldItems$ | async),\n params: (params$ | async),\n buildingBlockParams: (buildingBlockParams$ | async),\n sourceContextName: (sourceContextName$ | async),\n targetBuildingBlockName: (targetBuildingBlockName$ | async),\n sourceIsCase: (sourceIsCase$ | async),\n sourceIsIndependent: (sourceIsIndependent$ | async),\n caseLabelTranslation: ('Case' | translate),\n processLabelTranslation: ('processLinkConfiguration.buildingBlock.process' | translate),\n buildingBlockLabelTranslation:\n ('processLinkConfiguration.buildingBlock.selectLabel' | translate),\n };\n\n<div class=\"mapping-step\">\n <section class=\"mapping-section\" [attr.data-test-id]=\"testIds.inputSection\">\n <h4 class=\"section-header\">\n {{ 'processLinkConfiguration.buildingBlock.inputTitle' | translate }}\n </h4>\n\n <div class=\"mapping-table\" [formGroup]=\"inputsForm\">\n <div class=\"mapping-header input\">\n <v-input-label\n [title]=\"\n (obs.sourceIsIndependent\n ? obs.processLabelTranslation\n : obs.sourceIsCase\n ? obs.caseLabelTranslation\n : obs.buildingBlockLabelTranslation) +\n (obs.sourceIsIndependent ? '' : ': ' + obs.sourceContextName)\n \"\n />\n\n <v-input-label\n [title]=\"obs.buildingBlockLabelTranslation + ': ' + obs.targetBuildingBlockName\"\n />\n </div>\n\n <div formArrayName=\"inputs\">\n @for (group of inputs.controls; let inputIndex = $index; track inputIndex) {\n <div\n class=\"mapping-row input\"\n [formGroup]=\"group\"\n [attr.data-test-id]=\"testIds.inputRow\"\n >\n <div class=\"mapping-part\">\n @if (obs.sourceIsIndependent) {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"source\" [placeholder]=\"'pv:'\" />\n } @else {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"obs.params?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"obs.params?.caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"obs.buildingBlockParams?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n obs.buildingBlockParams?.buildingBlockDefinitionVersionTag\n \"\n [appendInline]=\"false\"\n [dropUp]=\"false\"\n [formControl]=\"group.get('source')\"\n ></valtimo-value-path-selector>\n }\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.inputTargetSelectWrapper\">\n @if (isRequiredTarget(obs.fields, group.get('target')?.value)) {\n <div class=\"required-target\" [attr.data-test-id]=\"testIds.inputRequiredTargetLabel\">\n {{ group.get('target')?.value }}\n </div>\n } @else {\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"target\"\n [placeholder]=\"\n 'processLinkConfiguration.buildingBlock.selectedBuildingBlockFieldPlaceholder'\n | translate\n \"\n [items]=\"getBuildingBlockFieldItemsForRow$(group) | async\"\n [dropUp]=\"false\"\n >\n </v-select>\n }\n </div>\n\n <div class=\"mapping-cell-actions\">\n @if (!isRequiredTarget(obs.fields, group.get('target')?.value)) {\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteInput(inputIndex)\"\n [attr.data-test-id]=\"testIds.inputDeleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n } @else {\n <div class=\"required-indicator\" [attr.data-test-id]=\"testIds.inputRequiredIndicator\">\n *\n </div>\n\n <div>\n {{ 'interface.required' | translate }}\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addInput()\"\n [title]=\"'processLinkConfiguration.buildingBlock.addInput' | translate\"\n [disabled]=\"allInputsMapped$ | async\"\n [attr.data-test-id]=\"testIds.addInputButton\"\n >\n {{ 'processLinkConfiguration.buildingBlock.addInput' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </section>\n\n <section class=\"mapping-section\" [attr.data-test-id]=\"testIds.outputSection\">\n <h4 class=\"section-header\">\n {{ 'processLinkConfiguration.buildingBlock.outputTitle' | translate }}\n </h4>\n\n <div class=\"mapping-table\" [formGroup]=\"outputsForm\">\n <div class=\"mapping-header output\">\n <v-input-label\n [title]=\"obs.buildingBlockLabelTranslation + ': ' + obs.targetBuildingBlockName\"\n />\n\n <v-input-label\n [title]=\"\n (obs.sourceIsIndependent\n ? obs.processLabelTranslation\n : obs.sourceIsCase\n ? obs.caseLabelTranslation\n : obs.buildingBlockLabelTranslation) +\n (obs.sourceIsIndependent ? '' : ': ' + obs.sourceContextName)\n \"\n />\n\n <div class=\"sync-options\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.sync.title' | translate\"\n />\n </div>\n </div>\n\n <div formArrayName=\"outputs\">\n @for (group of outputs.controls; let outputIndex = $index; track outputIndex) {\n <div\n class=\"mapping-row output\"\n [formGroup]=\"group\"\n [attr.data-test-id]=\"testIds.outputRow\"\n >\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\" [attr.data-test-id]=\"testIds.outputSourceSelectWrapper\">\n <v-select\n [cdsLayer]=\"2\"\n [appendInline]=\"false\"\n formControlName=\"source\"\n [items]=\"obs.fieldItems || []\"\n [placeholder]=\"\n 'processLinkConfiguration.buildingBlock.selectedBuildingBlockFieldPlaceholder'\n | translate\n \"\n [dropUp]=\"true\"\n >\n </v-select>\n </div>\n\n <div class=\"arrow\">\u2192</div>\n </div>\n\n <div class=\"mapping-part\">\n @if (obs.sourceIsIndependent) {\n <input [cdsLayer]=\"2\" cdsText formControlName=\"target\" [placeholder]=\"'pv:'\" />\n } @else {\n <valtimo-value-path-selector\n [cdsLayer]=\"2\"\n [prefixes]=\"[ValuePathSelectorPrefix.DOC, ValuePathSelectorPrefix.CASE]\"\n [notation]=\"'slashes'\"\n [caseDefinitionKey]=\"obs.params?.caseDefinitionKey\"\n [caseDefinitionVersionTag]=\"obs.params?.caseDefinitionVersionTag\"\n [excludePrefixes]=\"[ValuePathSelectorPrefix.TASK]\"\n [buildingBlockDefinitionKey]=\"obs.buildingBlockParams?.buildingBlockDefinitionKey\"\n [buildingBlockDefinitionVersionTag]=\"\n obs.buildingBlockParams?.buildingBlockDefinitionVersionTag\n \"\n [formControl]=\"group.get('target')\"\n [appendInline]=\"false\"\n [filterItems]=\"getUsedCaseTargetsForRow$(group) | async\"\n [dropUp]=\"true\"\n ></valtimo-value-path-selector>\n }\n </div>\n\n <div class=\"mapping-part\">\n <div class=\"mapping-cell\">\n <cds-radio-group\n class=\"sync-radio-group\"\n formControlName=\"syncTiming\"\n [attr.name]=\"'syncTiming-' + outputIndex\"\n >\n @for (item of syncTimingItems; track item.id) {\n <cds-radio [value]=\"item.id\" [checked]=\"isSyncTimingSelected(group, item.id)\">\n {{ item.labelKey | translate }}\n </cds-radio>\n }\n </cds-radio-group>\n </div>\n\n <div class=\"mapping-cell-actions\">\n <button\n cdsButton=\"danger--ghost\"\n iconOnly\n size=\"sm\"\n (click)=\"deleteOutput(outputIndex)\"\n [attr.data-test-id]=\"testIds.outputDeleteButton\"\n >\n <svg cdsIcon=\"trash-can\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n </div>\n\n <button\n cdsButton=\"tertiary\"\n size=\"sm\"\n (click)=\"addOutput()\"\n [title]=\"'processLinkConfiguration.buildingBlock.addOutput' | translate\"\n [attr.data-test-id]=\"testIds.addOutputButton\"\n >\n {{ 'processLinkConfiguration.buildingBlock.addOutput' | translate }}\n\n <svg cdsIcon=\"add\" class=\"cds--btn__icon\" size=\"16\"></svg>\n </button>\n </section>\n</div>\n", styles: [".section-header{font-size:14px;line-height:18px;font-weight:600}.mapping-section{margin-bottom:16px}.mapping-row,.mapping-header{display:grid;align-items:center}.mapping-row.input,.mapping-header.input{grid-template-columns:1fr 1fr}.mapping-row.output,.mapping-header.output{grid-template-columns:5fr 6fr 3fr}.mapping-header.output .sync-options{padding-left:10px;display:flex}.mapping-row{margin-bottom:8px;padding:8px;background-color:var(--cds-layer)}.mapping-row .mapping-part{display:flex}.mapping-row .arrow{text-align:center;width:40px;line-height:40px;font-size:large}.mapping-row .mapping-cell{flex:1;min-width:0}.mapping-row .mapping-cell-actions{display:flex;align-self:flex-end;text-transform:capitalize;margin-left:10px}.mapping-row .mapping-cell-actions .required-indicator{margin:0 5px;color:var(--cds-text-error)}.mapping-row .mapping-cell-actions button{margin-bottom:5px}.mapping-row .mapping-cell-actions button ::ng-deep .cds--btn__icon{margin:0!important}.mapping-row .sync-radio-group{padding-left:10px;margin-top:8px}.mapping-row .sync-radio-group .sync-radio:first-child{margin-right:0}.mapping-row .sync-radio-group ::ng-deep .cds--radio-button__label{justify-content:normal}::ng-deep .process-link-modal-container .cds--modal-container{max-width:1280px}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
3316
- }], ctorParameters: () => [{ type: i1$2.FormBuilder }, { type: BuildingBlockStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: ProcessLinkService }, { type: ProcessLinkStateService }, { type: i3.TranslateService }, { type: i3$1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: ProcessLinkBuildingBlockApiService }, { type: ProcessLinkStateService }] });
4270
+ }], ctorParameters: () => [{ type: i1$2.FormBuilder }, { type: BuildingBlockStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: ProcessLinkService }, { type: ProcessLinkStateService }, { type: i4.TranslateService }, { type: i3$1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: ProcessLinkBuildingBlockApiService }, { type: ProcessLinkStateService }] });
3317
4271
 
3318
4272
  /*
3319
4273
  * Copyright 2015-2026 Ritense BV, the Netherlands.
@@ -3348,7 +4302,7 @@ class ChooseProcessLinkTypeComponent {
3348
4302
  this.processLinkStateService.selectProcessLinkType(processLinkTypeId);
3349
4303
  }
3350
4304
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ChooseProcessLinkTypeComponent, deps: [{ token: ProcessLinkStateService }], target: i0.ɵɵFactoryTarget.Component }); }
3351
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ChooseProcessLinkTypeComponent, isStandalone: false, selector: "valtimo-choose-process-link-type", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n availableProcessLinkTypes: availableProcessLinkTypes$ | async,\n } as obs\"\n>\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.chooseProcessLinkTypeDescription' | translate }}\n </p>\n <div class=\"process-link-grid\" [attr.data-test-id]=\"testIds.container\">\n <div\n class=\"process-link-item\"\n *ngFor=\"let availableProcessLinkType of obs.availableProcessLinkTypes\"\n >\n <ng-container *ngIf=\"availableProcessLinkType.processLinkType as processLinkTypeId\">\n <button\n [attr.data-test-id]=\"testIdPrefix + processLinkTypeId\"\n (click)=\"selectProcessLinkType(processLinkTypeId)\"\n cdsButton=\"secondary\"\n size=\"xl\"\n class=\"process-link-type-button\"\n [disabled]=\"!availableProcessLinkType.enabled\"\n [vTooltip]=\"getTooltipKey(processLinkTypeId) | translate\"\n [onBottom]=\"true\"\n [tooltipDisabled]=\"availableProcessLinkType.enabled\"\n >\n {{ 'processLinkType.' + processLinkTypeId | translate }}\n <svg\n *ngIf=\"processLinkTypeId === 'plugin'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"link\"\n size=\"16\"\n ></svg>\n <svg\n *ngIf=\"processLinkTypeId === 'form'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"receipt\"\n size=\"16\"\n ></svg>\n <svg\n *ngIf=\"processLinkTypeId === 'form-flow'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"flow--data\"\n size=\"16\"\n ></svg>\n <svg\n *ngIf=\"processLinkTypeId === 'ui-component'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"receipt\"\n size=\"16\"\n ></svg>\n </button>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [".process-link-type-button{width:100%}.process-link-grid{margin-top:24px;display:flex;justify-content:flex-start;width:100%;flex-wrap:wrap;gap:8px}.process-link-item{flex-basis:calc(33.3% - 5.3333333333px)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i5.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "directive", type: i2$1.TooltipDirective, selector: "[vTooltip]", inputs: ["vTooltip", "onBottom", "tooltipDisabled"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
4305
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ChooseProcessLinkTypeComponent, isStandalone: false, selector: "valtimo-choose-process-link-type", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n availableProcessLinkTypes: availableProcessLinkTypes$ | async,\n } as obs\"\n>\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.chooseProcessLinkTypeDescription' | translate }}\n </p>\n <div class=\"process-link-grid\" [attr.data-test-id]=\"testIds.container\">\n <div\n class=\"process-link-item\"\n *ngFor=\"let availableProcessLinkType of obs.availableProcessLinkTypes\"\n >\n <ng-container *ngIf=\"availableProcessLinkType.processLinkType as processLinkTypeId\">\n <button\n [attr.data-test-id]=\"testIdPrefix + processLinkTypeId\"\n (click)=\"selectProcessLinkType(processLinkTypeId)\"\n cdsButton=\"secondary\"\n size=\"xl\"\n class=\"process-link-type-button\"\n [disabled]=\"!availableProcessLinkType.enabled\"\n [vTooltip]=\"getTooltipKey(processLinkTypeId) | translate\"\n [onBottom]=\"true\"\n [tooltipDisabled]=\"availableProcessLinkType.enabled\"\n >\n {{ 'processLinkType.' + processLinkTypeId | translate }}\n <svg\n *ngIf=\"processLinkTypeId === 'plugin'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"link\"\n size=\"16\"\n ></svg>\n <svg\n *ngIf=\"processLinkTypeId === 'form'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"receipt\"\n size=\"16\"\n ></svg>\n <svg\n *ngIf=\"processLinkTypeId === 'form-flow'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"flow--data\"\n size=\"16\"\n ></svg>\n <svg\n *ngIf=\"processLinkTypeId === 'ui-component'\"\n class=\"cds--btn__icon\"\n cdsIcon=\"receipt\"\n size=\"16\"\n ></svg>\n </button>\n </ng-container>\n </div>\n </div>\n</ng-container>\n", styles: [".process-link-type-button{width:100%}.process-link-grid{margin-top:24px;display:flex;justify-content:flex-start;width:100%;flex-wrap:wrap;gap:8px}.process-link-item{flex-basis:calc(33.3% - 5.3333333333px)}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i6.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "directive", type: i3.TooltipDirective, selector: "[vTooltip]", inputs: ["vTooltip", "onBottom", "tooltipDisabled"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
3352
4306
  }
3353
4307
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ChooseProcessLinkTypeComponent, decorators: [{
3354
4308
  type: Component,
@@ -3472,13 +4426,13 @@ class FormDisplayConfigurationComponent {
3472
4426
  else
3473
4427
  this.buttonService.disableSaveButton();
3474
4428
  }
3475
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormDisplayConfigurationComponent, deps: [{ token: ProcessLinkButtonService }, { token: ProcessLinkStateService }, { token: i3.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
3476
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FormDisplayConfigurationComponent, isStandalone: false, selector: "valtimo-form-display-configuration", inputs: { selectedFormDefinition: "selectedFormDefinition" }, outputs: { formDisplayValue: "formDisplayValue", formSizeValue: "formSizeValue", subtitlesValue: "subtitlesValue" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formDisplayValue: formDisplayValue$ | async,\n formDisplayTypeListItems: formDisplayTypeListItems$ | async,\n formSizeListItems: formSizeListItems$ | async,\n disableFormSizeInput: disableFormSizeInput$ | async,\n subtitles: subtitles$ | async,\n isUserTask: isUserTask$ | async,\n isStartEvent: isStartEvent$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n @if (obs.isUserTask || obs.isStartEvent) {\n <cds-combo-box\n [placeholder]=\"'processLinkSteps.displayType.placeholder' | translate\"\n [label]=\"'processLinkSteps.displayType.label' | translate\"\n [disabled]=\"obs.saving\"\n (selected)=\"selectFormDisplayType($event)\"\n >\n <cds-dropdown-list [items]=\"obs.formDisplayTypeListItems || []\"></cds-dropdown-list>\n </cds-combo-box>\n\n <br />\n }\n\n @if (obs.isUserTask || obs.isStartEvent) {\n <cds-combo-box\n [placeholder]=\"'processLinkSteps.formSize.placeholder' | translate\"\n [label]=\"'processLinkSteps.formSize.label' | translate\"\n [disabled]=\"obs.disableFormSizeInput || obs.saving\"\n (selected)=\"selectFormSize($event)\"\n >\n <cds-dropdown-list [items]=\"obs.formSizeListItems || []\"></cds-dropdown-list>\n </cds-combo-box>\n\n <br />\n }\n\n @if (obs.isUserTask) {\n <valtimo-carbon-multi-input\n type=\"value\"\n titleTranslationKey=\"processLinkSteps.subtitles\"\n addRowTranslationKey=\"processLinkSteps.addSubtitle\"\n [disabled]=\"obs.saving\"\n [fullWidth]=\"true\"\n [minimumAmountOfRows]=\"0\"\n [initialAmountOfRows]=\"0\"\n [defaultValues]=\"obs.subtitles\"\n (valueChange)=\"onSubtitlesChange($event)\"\n ></valtimo-carbon-multi-input>\n }\n</ng-container>\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i2$1.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addButtonType", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorCaseDefinitionKey", "valuePathSelectorPrefixes", "valuePathSelectorShowCaseDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
4429
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormDisplayConfigurationComponent, deps: [{ token: ProcessLinkButtonService }, { token: ProcessLinkStateService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
4430
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FormDisplayConfigurationComponent, isStandalone: false, selector: "valtimo-form-display-configuration", inputs: { selectedFormDefinition: "selectedFormDefinition" }, outputs: { formDisplayValue: "formDisplayValue", formSizeValue: "formSizeValue", subtitlesValue: "subtitlesValue" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formDisplayValue: formDisplayValue$ | async,\n formDisplayTypeListItems: formDisplayTypeListItems$ | async,\n formSizeListItems: formSizeListItems$ | async,\n disableFormSizeInput: disableFormSizeInput$ | async,\n subtitles: subtitles$ | async,\n isUserTask: isUserTask$ | async,\n isStartEvent: isStartEvent$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n @if (obs.isUserTask || obs.isStartEvent) {\n <cds-combo-box\n [placeholder]=\"'processLinkSteps.displayType.placeholder' | translate\"\n [label]=\"'processLinkSteps.displayType.label' | translate\"\n [disabled]=\"obs.saving\"\n (selected)=\"selectFormDisplayType($event)\"\n >\n <cds-dropdown-list [items]=\"obs.formDisplayTypeListItems || []\"></cds-dropdown-list>\n </cds-combo-box>\n\n <br />\n }\n\n @if (obs.isUserTask || obs.isStartEvent) {\n <cds-combo-box\n [placeholder]=\"'processLinkSteps.formSize.placeholder' | translate\"\n [label]=\"'processLinkSteps.formSize.label' | translate\"\n [disabled]=\"obs.disableFormSizeInput || obs.saving\"\n (selected)=\"selectFormSize($event)\"\n >\n <cds-dropdown-list [items]=\"obs.formSizeListItems || []\"></cds-dropdown-list>\n </cds-combo-box>\n\n <br />\n }\n\n @if (obs.isUserTask) {\n <valtimo-carbon-multi-input\n type=\"value\"\n titleTranslationKey=\"processLinkSteps.subtitles\"\n addRowTranslationKey=\"processLinkSteps.addSubtitle\"\n [disabled]=\"obs.saving\"\n [fullWidth]=\"true\"\n [minimumAmountOfRows]=\"0\"\n [initialAmountOfRows]=\"0\"\n [defaultValues]=\"obs.subtitles\"\n (valueChange)=\"onSubtitlesChange($event)\"\n ></valtimo-carbon-multi-input>\n }\n</ng-container>\n", dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i3.CarbonMultiInputComponent, selector: "valtimo-carbon-multi-input", inputs: ["addRowText", "addButtonType", "addRowTranslationKey", "arbitraryAmountTitles", "arbitraryValueAmount", "defaultValues", "deleteButtonType", "deleteRowText", "deleteRowTranslationKey", "disabled", "dropdownColumnTitle", "dropdownItems", "dropdownWidth", "fullWidth", "hideAddButton", "hideDeleteButton", "initialAmountOfRows", "keyColumnTitle", "margin", "maxRows", "minimumAmountOfRows", "name", "required", "title", "titleTranslationKey", "tooltip", "type", "valueColumnTitle", "valuePathSelectorCaseDefinitionKey", "valuePathSelectorPrefixes", "valuePathSelectorShowCaseDefinitionSelector", "valuePathSelectorNotation", "keyColumnFlex", "dropdownColumnFlex", "valueColumnFlex"], outputs: ["valueChange", "allValuesValidEvent"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
3477
4431
  }
3478
4432
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormDisplayConfigurationComponent, decorators: [{
3479
4433
  type: Component,
3480
4434
  args: [{ standalone: false, selector: 'valtimo-form-display-configuration', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formDisplayValue: formDisplayValue$ | async,\n formDisplayTypeListItems: formDisplayTypeListItems$ | async,\n formSizeListItems: formSizeListItems$ | async,\n disableFormSizeInput: disableFormSizeInput$ | async,\n subtitles: subtitles$ | async,\n isUserTask: isUserTask$ | async,\n isStartEvent: isStartEvent$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n @if (obs.isUserTask || obs.isStartEvent) {\n <cds-combo-box\n [placeholder]=\"'processLinkSteps.displayType.placeholder' | translate\"\n [label]=\"'processLinkSteps.displayType.label' | translate\"\n [disabled]=\"obs.saving\"\n (selected)=\"selectFormDisplayType($event)\"\n >\n <cds-dropdown-list [items]=\"obs.formDisplayTypeListItems || []\"></cds-dropdown-list>\n </cds-combo-box>\n\n <br />\n }\n\n @if (obs.isUserTask || obs.isStartEvent) {\n <cds-combo-box\n [placeholder]=\"'processLinkSteps.formSize.placeholder' | translate\"\n [label]=\"'processLinkSteps.formSize.label' | translate\"\n [disabled]=\"obs.disableFormSizeInput || obs.saving\"\n (selected)=\"selectFormSize($event)\"\n >\n <cds-dropdown-list [items]=\"obs.formSizeListItems || []\"></cds-dropdown-list>\n </cds-combo-box>\n\n <br />\n }\n\n @if (obs.isUserTask) {\n <valtimo-carbon-multi-input\n type=\"value\"\n titleTranslationKey=\"processLinkSteps.subtitles\"\n addRowTranslationKey=\"processLinkSteps.addSubtitle\"\n [disabled]=\"obs.saving\"\n [fullWidth]=\"true\"\n [minimumAmountOfRows]=\"0\"\n [initialAmountOfRows]=\"0\"\n [defaultValues]=\"obs.subtitles\"\n (valueChange)=\"onSubtitlesChange($event)\"\n ></valtimo-carbon-multi-input>\n }\n</ng-container>\n" }]
3481
- }], ctorParameters: () => [{ type: ProcessLinkButtonService }, { type: ProcessLinkStateService }, { type: i3.TranslateService }], propDecorators: { selectedFormDefinition: [{
4435
+ }], ctorParameters: () => [{ type: ProcessLinkButtonService }, { type: ProcessLinkStateService }, { type: i4.TranslateService }], propDecorators: { selectedFormDefinition: [{
3482
4436
  type: Input
3483
4437
  }], formDisplayValue: [{
3484
4438
  type: Output
@@ -3664,7 +4618,7 @@ class SelectFormComponent {
3664
4618
  });
3665
4619
  }
3666
4620
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectFormComponent, deps: [{ token: i1$4.FormService }, { token: ProcessLinkStateService }, { token: ProcessLinkService }, { token: ProcessLinkButtonService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
3667
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectFormComponent, isStandalone: false, selector: "valtimo-select-form", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formDefinitions: formDefinitionListItems$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.chooseFormDescription' | translate }}\n </p>\n <div class=\"select-form\">\n <cds-combo-box\n [appendInline]=\"true\"\n [disabled]=\"!obs.formDefinitions || obs.saving\"\n [items]=\"obs.formDefinitions || []\"\n [placeholder]=\"'interface.typeToSearch' | translate\"\n (selected)=\"selectFormDefinition($event)\"\n [label]=\"'processLinkSteps.selectForm' | translate\"\n ><cds-dropdown-list></cds-dropdown-list\n ></cds-combo-box>\n <br />\n\n <valtimo-form-display-configuration\n [selectedFormDefinition]=\"selectedFormDefinition\"\n (formDisplayValue)=\"selectedFormDisplayValue($event)\"\n (formSizeValue)=\"selectedFormSizeValue($event)\"\n (subtitlesValue)=\"selectedSubtitlesValue($event)\"\n ></valtimo-form-display-configuration>\n </div>\n</ng-container>\n", styles: [".label-with-tooltip{display:flex;align-items:center}.select-form{display:flex;flex-direction:column;width:100%;margin-top:24px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: FormDisplayConfigurationComponent, selector: "valtimo-form-display-configuration", inputs: ["selectedFormDefinition"], outputs: ["formDisplayValue", "formSizeValue", "subtitlesValue"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
4621
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectFormComponent, isStandalone: false, selector: "valtimo-select-form", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formDefinitions: formDefinitionListItems$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.chooseFormDescription' | translate }}\n </p>\n <div class=\"select-form\">\n <cds-combo-box\n [appendInline]=\"true\"\n [disabled]=\"!obs.formDefinitions || obs.saving\"\n [items]=\"obs.formDefinitions || []\"\n [placeholder]=\"'interface.typeToSearch' | translate\"\n (selected)=\"selectFormDefinition($event)\"\n [label]=\"'processLinkSteps.selectForm' | translate\"\n ><cds-dropdown-list></cds-dropdown-list\n ></cds-combo-box>\n <br />\n\n <valtimo-form-display-configuration\n [selectedFormDefinition]=\"selectedFormDefinition\"\n (formDisplayValue)=\"selectedFormDisplayValue($event)\"\n (formSizeValue)=\"selectedFormSizeValue($event)\"\n (subtitlesValue)=\"selectedSubtitlesValue($event)\"\n ></valtimo-form-display-configuration>\n </div>\n</ng-container>\n", styles: [".label-with-tooltip{display:flex;align-items:center}.select-form{display:flex;flex-direction:column;width:100%;margin-top:24px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: FormDisplayConfigurationComponent, selector: "valtimo-form-display-configuration", inputs: ["selectedFormDefinition"], outputs: ["formDisplayValue", "formSizeValue", "subtitlesValue"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
3668
4622
  }
3669
4623
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectFormComponent, decorators: [{
3670
4624
  type: Component,
@@ -3829,7 +4783,7 @@ class SelectFormFlowComponent {
3829
4783
  });
3830
4784
  }
3831
4785
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectFormFlowComponent, deps: [{ token: i1$5.FormFlowService }, { token: ProcessLinkStateService }, { token: ProcessLinkService }, { token: ProcessLinkButtonService }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
3832
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectFormFlowComponent, isStandalone: false, selector: "valtimo-select-form-flow", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formFlowDefinitions: formFlowDefinitionListItems$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.chooseFormFlowDescription' | translate }}\n </p>\n\n <div class=\"select-form-flow\">\n <cds-combo-box\n [appendInline]=\"true\"\n [disabled]=\"!obs.formFlowDefinitions || obs.saving\"\n [items]=\"obs.formFlowDefinitions || []\"\n [placeholder]=\"'interface.typeToSearch' | translate\"\n (selected)=\"selectFormFlowDefinition($event)\"\n [label]=\"'processLinkSteps.selectFormFlow' | translate\"\n ><cds-dropdown-list></cds-dropdown-list\n ></cds-combo-box>\n\n <br />\n\n <valtimo-form-display-configuration\n [selectedFormDefinition]=\"selectedFormFlowDefinitionId\"\n (formDisplayValue)=\"selectedFormDisplayValue($event)\"\n (formSizeValue)=\"selectedFormSizeValue($event)\"\n (subtitlesValue)=\"selectedSubtitlesValue($event)\"\n ></valtimo-form-display-configuration>\n </div>\n</ng-container>\n", styles: [".label-with-tooltip{display:flex;align-items:center}.select-form-flow{display:flex;flex-direction:column;width:100%;margin-top:24px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: FormDisplayConfigurationComponent, selector: "valtimo-form-display-configuration", inputs: ["selectedFormDefinition"], outputs: ["formDisplayValue", "formSizeValue", "subtitlesValue"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
4786
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectFormFlowComponent, isStandalone: false, selector: "valtimo-select-form-flow", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n formFlowDefinitions: formFlowDefinitionListItems$ | async,\n saving: saving$ | async,\n } as obs\"\n>\n <p class=\"step-description\">\n {{ 'processLinkConfiguration.chooseFormFlowDescription' | translate }}\n </p>\n\n <div class=\"select-form-flow\">\n <cds-combo-box\n [appendInline]=\"true\"\n [disabled]=\"!obs.formFlowDefinitions || obs.saving\"\n [items]=\"obs.formFlowDefinitions || []\"\n [placeholder]=\"'interface.typeToSearch' | translate\"\n (selected)=\"selectFormFlowDefinition($event)\"\n [label]=\"'processLinkSteps.selectFormFlow' | translate\"\n ><cds-dropdown-list></cds-dropdown-list\n ></cds-combo-box>\n\n <br />\n\n <valtimo-form-display-configuration\n [selectedFormDefinition]=\"selectedFormFlowDefinitionId\"\n (formDisplayValue)=\"selectedFormDisplayValue($event)\"\n (formSizeValue)=\"selectedFormSizeValue($event)\"\n (subtitlesValue)=\"selectedSubtitlesValue($event)\"\n ></valtimo-form-display-configuration>\n </div>\n</ng-container>\n", styles: [".label-with-tooltip{display:flex;align-items:center}.select-form-flow{display:flex;flex-direction:column;width:100%;margin-top:24px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: FormDisplayConfigurationComponent, selector: "valtimo-form-display-configuration", inputs: ["selectedFormDefinition"], outputs: ["formDisplayValue", "formSizeValue", "subtitlesValue"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
3833
4787
  }
3834
4788
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectFormFlowComponent, decorators: [{
3835
4789
  type: Component,
@@ -3933,7 +4887,7 @@ class SelectUIComponentComponent {
3933
4887
  });
3934
4888
  }
3935
4889
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectUIComponentComponent, deps: [{ token: ProcessLinkStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkService }, { token: FORM_CUSTOM_COMPONENT_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
3936
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectUIComponentComponent, isStandalone: false, selector: "valtimo-select-ui-component", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n<cds-combo-box\n [dropUp]=\"false\"\n formControlName=\"contentKey\"\n [items]=\"formCustomComponentListItems$ | async\"\n itemValueKey=\"contentKey\"\n [label]=\"'processLinkSteps.uiComponent' | translate\"\n (selected)=\"selectCustomComponent($event)\"\n>\n <cds-dropdown-list></cds-dropdown-list>\n</cds-combo-box>\n", styles: [".custom-widget{padding:24px}.custom-widget__header{display:flex;align-items:center;justify-content:space-between}.custom-widget__title{color:var(--cds-text-primary);font-weight:600;font-size:16px;line-height:24px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4890
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectUIComponentComponent, isStandalone: false, selector: "valtimo-select-ui-component", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n<cds-combo-box\n [dropUp]=\"false\"\n formControlName=\"contentKey\"\n [items]=\"formCustomComponentListItems$ | async\"\n itemValueKey=\"contentKey\"\n [label]=\"'processLinkSteps.uiComponent' | translate\"\n (selected)=\"selectCustomComponent($event)\"\n>\n <cds-dropdown-list></cds-dropdown-list>\n</cds-combo-box>\n", styles: [".custom-widget{padding:24px}.custom-widget__header{display:flex;align-items:center;justify-content:space-between}.custom-widget__title{color:var(--cds-text-primary);font-weight:600;font-size:16px;line-height:24px}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
3937
4891
  }
3938
4892
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectUIComponentComponent, decorators: [{
3939
4893
  type: Component,
@@ -3971,7 +4925,7 @@ class SelectBuildingBlockComponent {
3971
4925
  .getBuildingBlockDefinitions({ includeArtwork: true })
3972
4926
  .pipe(map(definitions => [...(definitions ?? [])]), map(definitions => definitions.sort((a, b) => (a.name || a.key).localeCompare(b.name || b.key))), catchError(() => of([])), tap(() => {
3973
4927
  this.loading = false;
3974
- }), shareReplay(1));
4928
+ }), shareReplay$1(1));
3975
4929
  this.loading = true;
3976
4930
  this.selectedKey = null;
3977
4931
  this.subscriptions = new Subscription();
@@ -4036,7 +4990,7 @@ class SelectBuildingBlockComponent {
4036
4990
  return name;
4037
4991
  }
4038
4992
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectBuildingBlockComponent, deps: [{ token: ProcessLinkBuildingBlockApiService }, { token: ProcessLinkStateService }, { token: BuildingBlockStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }], target: i0.ɵɵFactoryTarget.Component }); }
4039
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectBuildingBlockComponent, isStandalone: false, selector: "valtimo-select-building-block", ngImport: i0, template: "<!--\n Copyright 2015-2025 Ritense BV\n Licensed under the EUPL, Version 1.2\n-->\n\n<div class=\"select-building-block\" *ngIf=\"!loading; else loadingState\">\n <ng-container *ngIf=\"buildingBlocks$ | async as buildingBlocks\">\n <ng-container *ngIf=\"buildingBlocks.length; else emptyState\">\n <div class=\"list-container\">\n <cds-structured-list (selected)=\"onSelectionChange($event)\" selection=\"true\">\n <cds-list-header>\n <cds-list-column nowrap=\"true\"></cds-list-column>\n <cds-list-column nowrap=\"true\">\n {{ 'processLinkConfiguration.buildingBlock.name' | translate }}\n </cds-list-column>\n <cds-list-column>\n {{ 'processLinkConfiguration.buildingBlock.description' | translate }}\n </cds-list-column>\n </cds-list-header>\n <cds-list-row *ngFor=\"let buildingBlock of buildingBlocks\" [value]=\"buildingBlock\">\n <cds-list-column>\n <div *ngIf=\"buildingBlock.imageBase64\">\n <img\n class=\"building-block-artwork\"\n [src]=\"'data:image/png;base64,' + buildingBlock.imageBase64\"\n [title]=\"buildingBlock.name\"\n />\n </div>\n </cds-list-column>\n <cds-list-column>{{ buildingBlock.name }}</cds-list-column>\n <cds-list-column>{{ buildingBlock.description }}</cds-list-column>\n </cds-list-row>\n </cds-structured-list>\n </div>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #loadingState>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n\n<ng-template #emptyState>\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.emptyState' | translate }}\n </div>\n</ng-template>\n", styles: [".loading-container{display:flex;justify-content:center;padding:16px 0}.empty-state{padding:1rem;border:1px solid #e0e0e0;border-radius:4px;background-color:#f4f4f4;color:#8d8d8d}.building-block-artwork{object-fit:contain;height:60px;width:100%;margin-bottom:-.5rem}::ng-deep .list-container .cds--structured-list-td{vertical-align:top}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i5.StructuredList, selector: "cds-structured-list, ibm-structured-list", inputs: ["selection", "flushed", "condensed", "name", "skeleton"], outputs: ["selected"] }, { kind: "component", type: i5.ListRow, selector: "cds-list-row, ibm-list-row", inputs: ["selected", "label", "value"], outputs: ["change"] }, { kind: "component", type: i5.ListHeader, selector: "cds-list-header, ibm-list-header", inputs: ["skeleton"] }, { kind: "component", type: i5.ListColumn, selector: "cds-list-column, ibm-list-column", inputs: ["skeleton", "nowrap"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
4993
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: SelectBuildingBlockComponent, isStandalone: false, selector: "valtimo-select-building-block", ngImport: i0, template: "<!--\n Copyright 2015-2025 Ritense BV\n Licensed under the EUPL, Version 1.2\n-->\n\n<div class=\"select-building-block\" *ngIf=\"!loading; else loadingState\">\n <ng-container *ngIf=\"buildingBlocks$ | async as buildingBlocks\">\n <ng-container *ngIf=\"buildingBlocks.length; else emptyState\">\n <div class=\"list-container\">\n <cds-structured-list (selected)=\"onSelectionChange($event)\" selection=\"true\">\n <cds-list-header>\n <cds-list-column nowrap=\"true\"></cds-list-column>\n <cds-list-column nowrap=\"true\">\n {{ 'processLinkConfiguration.buildingBlock.name' | translate }}\n </cds-list-column>\n <cds-list-column>\n {{ 'processLinkConfiguration.buildingBlock.description' | translate }}\n </cds-list-column>\n </cds-list-header>\n <cds-list-row *ngFor=\"let buildingBlock of buildingBlocks\" [value]=\"buildingBlock\">\n <cds-list-column>\n <div *ngIf=\"buildingBlock.imageBase64\">\n <img\n class=\"building-block-artwork\"\n [src]=\"'data:image/png;base64,' + buildingBlock.imageBase64\"\n [title]=\"buildingBlock.name\"\n />\n </div>\n </cds-list-column>\n <cds-list-column>{{ buildingBlock.name }}</cds-list-column>\n <cds-list-column>{{ buildingBlock.description }}</cds-list-column>\n </cds-list-row>\n </cds-structured-list>\n </div>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #loadingState>\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n\n<ng-template #emptyState>\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.emptyState' | translate }}\n </div>\n</ng-template>\n", styles: [".loading-container{display:flex;justify-content:center;padding:16px 0}.empty-state{padding:1rem;border:1px solid #e0e0e0;border-radius:4px;background-color:#f4f4f4;color:#8d8d8d}.building-block-artwork{object-fit:contain;height:60px;width:100%;margin-bottom:-.5rem}::ng-deep .list-container .cds--structured-list-td{vertical-align:top}\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i6.StructuredList, selector: "cds-structured-list, ibm-structured-list", inputs: ["selection", "flushed", "condensed", "name", "skeleton"], outputs: ["selected"] }, { kind: "component", type: i6.ListRow, selector: "cds-list-row, ibm-list-row", inputs: ["selected", "label", "value"], outputs: ["change"] }, { kind: "component", type: i6.ListHeader, selector: "cds-list-header, ibm-list-header", inputs: ["skeleton"] }, { kind: "component", type: i6.ListColumn, selector: "cds-list-column, ibm-list-column", inputs: ["skeleton", "nowrap"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
4040
4994
  }
4041
4995
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: SelectBuildingBlockComponent, decorators: [{
4042
4996
  type: Component,
@@ -4059,7 +5013,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
4059
5013
  * limitations under the License.
4060
5014
  */
4061
5015
  class ConfigureBuildingBlockPluginsComponent {
4062
- constructor(stateService, buildingBlockStateService, buttonService, stepService, pluginManagementService, pluginTranslationService, processLinkService, translateService, processLinkBuildingBlockApiService) {
5016
+ constructor(stateService, buildingBlockStateService, buttonService, stepService, pluginManagementService, pluginTranslationService, processLinkService, translateService, processLinkBuildingBlockApiService, externalPluginService) {
4063
5017
  this.stateService = stateService;
4064
5018
  this.buildingBlockStateService = buildingBlockStateService;
4065
5019
  this.buttonService = buttonService;
@@ -4069,7 +5023,8 @@ class ConfigureBuildingBlockPluginsComponent {
4069
5023
  this.processLinkService = processLinkService;
4070
5024
  this.translateService = translateService;
4071
5025
  this.processLinkBuildingBlockApiService = processLinkBuildingBlockApiService;
4072
- this.pluginKeys$ = this.buildingBlockStateService.requiredPluginKeys$;
5026
+ this.externalPluginService = externalPluginService;
5027
+ this.requiredPlugins$ = this.buildingBlockStateService.requiredPlugins$;
4073
5028
  this.isNestedBuildingBlock$ = this.buildingBlockStateService.isNestedBuildingBlock$;
4074
5029
  this._pluginDependenciesWarningTranslationKey$ = this.buildingBlockStateService.pluginDependencies$.pipe(map$1(dependencies => {
4075
5030
  if (!dependencies || !dependencies.length)
@@ -4124,22 +5079,34 @@ class ConfigureBuildingBlockPluginsComponent {
4124
5079
  ];
4125
5080
  }));
4126
5081
  this.pluginConfigurationViewModels$ = combineLatest([
4127
- this.pluginKeys$,
5082
+ this.requiredPlugins$,
4128
5083
  this.buildingBlockStateService.pluginMappings$,
4129
5084
  this.configurationPlaceholder$,
4130
- ]).pipe(switchMap$1(([pluginKeys, pluginMappings, placeholder]) => {
4131
- if (!pluginKeys?.length) {
5085
+ this.translateService.stream('key'),
5086
+ ]).pipe(switchMap$1(([requiredPlugins, pluginMappings, placeholder]) => {
5087
+ if (!requiredPlugins?.length) {
4132
5088
  return of([]);
4133
5089
  }
4134
- return combineLatest(pluginKeys.map(pluginKey => this.getConfigurationOptions(pluginKey).pipe(map$1(options => ({
4135
- key: pluginKey,
4136
- label: this.pluginLabel(pluginKey),
4137
- dropdownItems: this.buildDropdownItems(options, pluginMappings?.[pluginKey], placeholder),
4138
- hasOptions: options.length > 0,
4139
- })))));
5090
+ return combineLatest(requiredPlugins.map(requiredPlugin => (requiredPlugin.source === 'EXTERNAL'
5091
+ ? this.getExternalConfigurationOptions(requiredPlugin)
5092
+ : this.getEmbeddedConfigurationOptions(requiredPlugin).pipe(map$1(options => ({ options, mismatchedVersionsById: new Map() })))).pipe(map$1(({ options, mismatchedVersionsById }) => {
5093
+ const selectedId = pluginMappings?.[requiredPlugin.mappingKey];
5094
+ return {
5095
+ key: requiredPlugin.mappingKey,
5096
+ label: this.pluginLabel(requiredPlugin),
5097
+ dropdownItems: this.buildDropdownItems(options, selectedId, placeholder),
5098
+ hasOptions: options.length > 0,
5099
+ source: requiredPlugin.source,
5100
+ pluginDefinitionVersion: requiredPlugin.pluginDefinitionVersion,
5101
+ selectedConfigurationVersion: selectedId
5102
+ ? mismatchedVersionsById.get(selectedId)
5103
+ : undefined,
5104
+ };
5105
+ }))));
4140
5106
  }));
4141
5107
  this._subscriptions = new Subscription();
4142
5108
  this._configurationOptionsCache = new Map();
5109
+ this._externalConfigurationOptionsCache = new Map();
4143
5110
  }
4144
5111
  ngOnInit() {
4145
5112
  // Check if we're configuring from within a building block process (nested building block)
@@ -4191,20 +5158,71 @@ class ConfigureBuildingBlockPluginsComponent {
4191
5158
  ngOnDestroy() {
4192
5159
  this._subscriptions.unsubscribe();
4193
5160
  }
4194
- getConfigurationOptions(pluginDefinitionKey) {
5161
+ getEmbeddedConfigurationOptions(requiredPlugin) {
5162
+ const pluginDefinitionKey = requiredPlugin.pluginDefinitionKey;
4195
5163
  if (!this._configurationOptionsCache.has(pluginDefinitionKey)) {
4196
5164
  this._configurationOptionsCache.set(pluginDefinitionKey, this.pluginManagementService
4197
5165
  .getPluginConfigurationsByPluginDefinitionKey(pluginDefinitionKey)
4198
- .pipe(catchError$1(() => of([])), shareReplay(1)));
5166
+ .pipe(catchError$1(() => of([])), shareReplay$1(1)));
4199
5167
  }
4200
5168
  return this._configurationOptionsCache.get(pluginDefinitionKey) ?? of([]);
4201
5169
  }
4202
- onMappingChange(pluginDefinitionKey, configurationId) {
5170
+ /**
5171
+ * Activated external configurations for the required plugin's `pluginId`. Configurations
5172
+ * matching `pluginId@version` exactly are offered as normal options; configurations of the same
5173
+ * `pluginId` at a different version are still offered (selectable), with their actual definition
5174
+ * version recorded in `mismatchedVersionsById` so the template can render the D3 non-blocking
5175
+ * warning when such a configuration is selected.
5176
+ */
5177
+ getExternalConfigurationOptions(requiredPlugin) {
5178
+ const cacheKey = requiredPlugin.mappingKey;
5179
+ if (!this._externalConfigurationOptionsCache.has(cacheKey)) {
5180
+ this._externalConfigurationOptionsCache.set(cacheKey, combineLatest([
5181
+ this.externalPluginService
5182
+ .getConfigurations()
5183
+ .pipe(catchError$1(() => of([]))),
5184
+ this.externalPluginService
5185
+ .getDefinitions()
5186
+ .pipe(catchError$1(() => of([]))),
5187
+ ]).pipe(map$1(([configurations, definitions]) => {
5188
+ const definitionById = new Map(definitions.map(d => [d.id, d]));
5189
+ const matchingConfigurations = configurations.filter(configuration => {
5190
+ const definition = definitionById.get(configuration.definitionId);
5191
+ return definition?.pluginId === requiredPlugin.pluginDefinitionKey;
5192
+ });
5193
+ const lang = this.translateService.currentLang;
5194
+ const mismatchedVersionsById = new Map();
5195
+ const options = matchingConfigurations.map(configuration => {
5196
+ const definition = definitionById.get(configuration.definitionId);
5197
+ if (definition && definition.version !== requiredPlugin.pluginDefinitionVersion) {
5198
+ mismatchedVersionsById.set(configuration.id, definition.version);
5199
+ }
5200
+ return {
5201
+ id: configuration.id,
5202
+ title: definition
5203
+ ? `${configuration.title} — ${getExternalPluginDisplayName(definition, lang)}`
5204
+ : configuration.title,
5205
+ properties: {},
5206
+ };
5207
+ });
5208
+ return { options, mismatchedVersionsById };
5209
+ }), shareReplay$1(1)));
5210
+ }
5211
+ return (this._externalConfigurationOptionsCache.get(cacheKey) ??
5212
+ of({ options: [], mismatchedVersionsById: new Map() }));
5213
+ }
5214
+ onMappingChange(mappingKey, configurationId) {
4203
5215
  const normalizedValue = configurationId || null;
4204
- this.buildingBlockStateService.setPluginConfigurationMapping(pluginDefinitionKey, normalizedValue);
5216
+ this.buildingBlockStateService.setPluginConfigurationMapping(mappingKey, normalizedValue);
4205
5217
  }
4206
- pluginLabel(pluginDefinitionKey) {
4207
- return (this.pluginTranslationService.instant('title', pluginDefinitionKey) || pluginDefinitionKey);
5218
+ pluginLabel(requiredPlugin) {
5219
+ if (requiredPlugin.source === 'EXTERNAL') {
5220
+ return requiredPlugin.pluginDefinitionVersion
5221
+ ? `${requiredPlugin.pluginDefinitionKey} (${requiredPlugin.pluginDefinitionVersion})`
5222
+ : requiredPlugin.pluginDefinitionKey;
5223
+ }
5224
+ return (this.pluginTranslationService.instant('title', requiredPlugin.pluginDefinitionKey) ||
5225
+ requiredPlugin.pluginDefinitionKey);
4208
5226
  }
4209
5227
  buildDropdownItems(options, selectedId, placeholder) {
4210
5228
  return [
@@ -4287,16 +5305,16 @@ class ConfigureBuildingBlockPluginsComponent {
4287
5305
  return acc;
4288
5306
  }, {});
4289
5307
  }
4290
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ConfigureBuildingBlockPluginsComponent, deps: [{ token: ProcessLinkStateService }, { token: BuildingBlockStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: i1$1.PluginManagementService }, { token: i1$1.PluginTranslationService }, { token: ProcessLinkService }, { token: i3.TranslateService }, { token: ProcessLinkBuildingBlockApiService }], target: i0.ɵɵFactoryTarget.Component }); }
4291
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ConfigureBuildingBlockPluginsComponent, isStandalone: false, selector: "valtimo-configure-building-block-plugins", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"configure-building-block-plugins\">\n <div\n *ngIf=\"dependenciesNotificationObject$ | async as dependenciesNotificationObject\"\n class=\"configure-building-block-plugins__warning\"\n >\n <cds-notification [notificationObj]=\"dependenciesNotificationObject\"> </cds-notification>\n </div>\n\n @if (versionItems$ | async; as versionItems) {\n @let versionPlaceholder = versionPlaceholder$ | async;\n <div class=\"version-select\">\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"versionItems\"\n [label]=\"'processLinkConfiguration.buildingBlock.versionLabel' | translate\"\n [placeholder]=\"versionPlaceholder || ''\"\n (selected)=\"onVersionChange($event?.id || '')\"\n (clear)=\"onVersionChange('')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </div>\n }\n\n @if (loading$ | async) {\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n } @else {\n <div class=\"plugin-list\">\n @if (definitionVersionTag$ | async) {\n @if (isNestedBuildingBlock$ | async) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.nestedBuildingBlockInfo' | translate }}\n </div>\n } @else {\n @if (pluginConfigurationViewModels$ | async; as pluginConfigurationViewModels) {\n @if (pluginConfigurationViewModels.length === 0) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.noRequirements' | translate }}\n </div>\n } @else {\n @let configurationPlaceholder = configurationPlaceholder$ | async;\n\n <div class=\"plugin-row\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.pluginLabel' | translate\"\n >\n </v-input-label>\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.configurationLabel' | translate\"\n required=\"true\"\n >\n </v-input-label>\n </div>\n\n @for (plugin of pluginConfigurationViewModels; track plugin.key) {\n <div class=\"plugin-row\">\n <div class=\"plugin-label\">\n {{ plugin.label }}\n </div>\n\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"plugin.dropdownItems\"\n [placeholder]=\"configurationPlaceholder || ''\"\n (selected)=\"onMappingChange(plugin.key, $event?.id || '')\"\n (clear)=\"onMappingChange(plugin.key, '')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </div>\n }\n }\n }\n }\n }\n </div>\n }\n</div>\n", styles: [".version-select ::ng-deep .cds--list-box__menu{scrollbar-color:var(--cds-border-strong) var(--cds-layer);scrollbar-width:thin}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar{width:8px}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-track{background:var(--cds-layer)}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-thumb{background:var(--cds-border-strong);border-radius:4px}.loading-container{display:flex;justify-content:center;padding:2rem 0}.empty-state{padding:1rem;border:1px solid #e0e0e0;border-radius:4px;background-color:#f4f4f4;color:#8d8d8d}.plugin-row{display:grid;align-items:center;grid-template-columns:1fr 1fr;margin-bottom:15px}.plugin-row .plugin-label{padding-left:16px;border-block-end:1px solid var(--cds-border-strong);height:100%;margin-right:15px;display:grid;align-items:center}.plugin-list{margin-top:30px}.configure-building-block-plugins__warning{display:flex;width:100%;margin-bottom:24px}.configure-building-block-plugins__warning ::ng-deep cds-notification{max-inline-size:100%;min-inline-size:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: i2$1.InputLabelComponent, selector: "v-input-label", inputs: ["name", "tooltip", "tooltipTranslationKey", "largeMargin", "small", "noMargin", "title", "titleTranslationKey", "required", "disabled", "carbonTheme"] }, { kind: "component", type: i5.Notification, selector: "cds-notification, cds-inline-notification, ibm-notification, ibm-inline-notification", inputs: ["notificationObj"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
5308
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ConfigureBuildingBlockPluginsComponent, deps: [{ token: ProcessLinkStateService }, { token: BuildingBlockStateService }, { token: ProcessLinkButtonService }, { token: ProcessLinkStepService }, { token: i1$1.PluginManagementService }, { token: i1$1.PluginTranslationService }, { token: ProcessLinkService }, { token: i4.TranslateService }, { token: ProcessLinkBuildingBlockApiService }, { token: i1$1.ExternalPluginService }], target: i0.ɵɵFactoryTarget.Component }); }
5309
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ConfigureBuildingBlockPluginsComponent, isStandalone: false, selector: "valtimo-configure-building-block-plugins", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"configure-building-block-plugins\">\n <div\n *ngIf=\"dependenciesNotificationObject$ | async as dependenciesNotificationObject\"\n class=\"configure-building-block-plugins__warning\"\n >\n <cds-notification [notificationObj]=\"dependenciesNotificationObject\"> </cds-notification>\n </div>\n\n @if (versionItems$ | async; as versionItems) {\n @let versionPlaceholder = versionPlaceholder$ | async;\n <div class=\"version-select\">\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"versionItems\"\n [label]=\"'processLinkConfiguration.buildingBlock.versionLabel' | translate\"\n [placeholder]=\"versionPlaceholder || ''\"\n (selected)=\"onVersionChange($event?.id || '')\"\n (clear)=\"onVersionChange('')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </div>\n }\n\n @if (loading$ | async) {\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n } @else {\n <div class=\"plugin-list\">\n @if (definitionVersionTag$ | async) {\n @if (isNestedBuildingBlock$ | async) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.nestedBuildingBlockInfo' | translate }}\n </div>\n } @else {\n @if (pluginConfigurationViewModels$ | async; as pluginConfigurationViewModels) {\n @if (pluginConfigurationViewModels.length === 0) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.noRequirements' | translate }}\n </div>\n } @else {\n @let configurationPlaceholder = configurationPlaceholder$ | async;\n\n <div class=\"plugin-row\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.pluginLabel' | translate\"\n >\n </v-input-label>\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.configurationLabel' | translate\"\n required=\"true\"\n >\n </v-input-label>\n </div>\n\n @for (plugin of pluginConfigurationViewModels; track plugin.key) {\n <div class=\"plugin-row\">\n <div class=\"plugin-label\">\n {{ plugin.label }}\n </div>\n\n <div class=\"plugin-configuration-select\">\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"plugin.dropdownItems\"\n [placeholder]=\"configurationPlaceholder || ''\"\n (selected)=\"onMappingChange(plugin.key, $event?.id || '')\"\n (clear)=\"onMappingChange(plugin.key, '')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n\n @if (plugin.selectedConfigurationVersion) {\n <div class=\"plugin-configuration-select__warning\">\n <cds-inline-notification\n [notificationObj]=\"{\n type: 'warning',\n title: '',\n message:\n ('processLinkConfiguration.buildingBlock.externalPluginVersionMismatchWarning'\n | translate\n : {\n selectedVersion: plugin.selectedConfigurationVersion,\n requiredVersion: plugin.pluginDefinitionVersion,\n }),\n showClose: false,\n lowContrast: true,\n }\"\n ></cds-inline-notification>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n }\n </div>\n }\n</div>\n", styles: [".version-select ::ng-deep .cds--list-box__menu{scrollbar-color:var(--cds-border-strong) var(--cds-layer);scrollbar-width:thin}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar{width:8px}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-track{background:var(--cds-layer)}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-thumb{background:var(--cds-border-strong);border-radius:4px}.loading-container{display:flex;justify-content:center;padding:2rem 0}.empty-state{padding:1rem;border:1px solid #e0e0e0;border-radius:4px;background-color:#f4f4f4;color:#8d8d8d}.plugin-row{display:grid;align-items:center;grid-template-columns:1fr 1fr;margin-bottom:15px}.plugin-row .plugin-label{padding-left:16px;border-block-end:1px solid var(--cds-border-strong);height:100%;margin-right:15px;display:grid;align-items:center}.plugin-list{margin-top:30px}.plugin-configuration-select__warning{display:flex;width:100%;margin-top:var(--cds-spacing-03)}.plugin-configuration-select__warning ::ng-deep cds-inline-notification{width:100%;max-inline-size:unset;margin:0}.configure-building-block-plugins__warning{display:flex;width:100%;margin-bottom:24px}.configure-building-block-plugins__warning ::ng-deep cds-notification{max-inline-size:100%;min-inline-size:100%}\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "labelId", "items", "type", "size", "itemValueKey", "label", "hideLabel", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled", "readonly", "fluid"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "component", type: i6$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i6.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "directive", type: i6.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: i3.InputLabelComponent, selector: "v-input-label", inputs: ["name", "tooltip", "tooltipTranslationKey", "largeMargin", "small", "noMargin", "title", "titleTranslationKey", "required", "disabled", "carbonTheme"] }, { kind: "component", type: i6.Notification, selector: "cds-notification, cds-inline-notification, ibm-notification, ibm-inline-notification", inputs: ["notificationObj"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
4292
5310
  }
4293
5311
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ConfigureBuildingBlockPluginsComponent, decorators: [{
4294
5312
  type: Component,
4295
- args: [{ standalone: false, selector: 'valtimo-configure-building-block-plugins', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"configure-building-block-plugins\">\n <div\n *ngIf=\"dependenciesNotificationObject$ | async as dependenciesNotificationObject\"\n class=\"configure-building-block-plugins__warning\"\n >\n <cds-notification [notificationObj]=\"dependenciesNotificationObject\"> </cds-notification>\n </div>\n\n @if (versionItems$ | async; as versionItems) {\n @let versionPlaceholder = versionPlaceholder$ | async;\n <div class=\"version-select\">\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"versionItems\"\n [label]=\"'processLinkConfiguration.buildingBlock.versionLabel' | translate\"\n [placeholder]=\"versionPlaceholder || ''\"\n (selected)=\"onVersionChange($event?.id || '')\"\n (clear)=\"onVersionChange('')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </div>\n }\n\n @if (loading$ | async) {\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n } @else {\n <div class=\"plugin-list\">\n @if (definitionVersionTag$ | async) {\n @if (isNestedBuildingBlock$ | async) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.nestedBuildingBlockInfo' | translate }}\n </div>\n } @else {\n @if (pluginConfigurationViewModels$ | async; as pluginConfigurationViewModels) {\n @if (pluginConfigurationViewModels.length === 0) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.noRequirements' | translate }}\n </div>\n } @else {\n @let configurationPlaceholder = configurationPlaceholder$ | async;\n\n <div class=\"plugin-row\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.pluginLabel' | translate\"\n >\n </v-input-label>\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.configurationLabel' | translate\"\n required=\"true\"\n >\n </v-input-label>\n </div>\n\n @for (plugin of pluginConfigurationViewModels; track plugin.key) {\n <div class=\"plugin-row\">\n <div class=\"plugin-label\">\n {{ plugin.label }}\n </div>\n\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"plugin.dropdownItems\"\n [placeholder]=\"configurationPlaceholder || ''\"\n (selected)=\"onMappingChange(plugin.key, $event?.id || '')\"\n (clear)=\"onMappingChange(plugin.key, '')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </div>\n }\n }\n }\n }\n }\n </div>\n }\n</div>\n", styles: [".version-select ::ng-deep .cds--list-box__menu{scrollbar-color:var(--cds-border-strong) var(--cds-layer);scrollbar-width:thin}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar{width:8px}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-track{background:var(--cds-layer)}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-thumb{background:var(--cds-border-strong);border-radius:4px}.loading-container{display:flex;justify-content:center;padding:2rem 0}.empty-state{padding:1rem;border:1px solid #e0e0e0;border-radius:4px;background-color:#f4f4f4;color:#8d8d8d}.plugin-row{display:grid;align-items:center;grid-template-columns:1fr 1fr;margin-bottom:15px}.plugin-row .plugin-label{padding-left:16px;border-block-end:1px solid var(--cds-border-strong);height:100%;margin-right:15px;display:grid;align-items:center}.plugin-list{margin-top:30px}.configure-building-block-plugins__warning{display:flex;width:100%;margin-bottom:24px}.configure-building-block-plugins__warning ::ng-deep cds-notification{max-inline-size:100%;min-inline-size:100%}\n"] }]
4296
- }], ctorParameters: () => [{ type: ProcessLinkStateService }, { type: BuildingBlockStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: i1$1.PluginManagementService }, { type: i1$1.PluginTranslationService }, { type: ProcessLinkService }, { type: i3.TranslateService }, { type: ProcessLinkBuildingBlockApiService }] });
5313
+ args: [{ standalone: false, selector: 'valtimo-configure-building-block-plugins', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"configure-building-block-plugins\">\n <div\n *ngIf=\"dependenciesNotificationObject$ | async as dependenciesNotificationObject\"\n class=\"configure-building-block-plugins__warning\"\n >\n <cds-notification [notificationObj]=\"dependenciesNotificationObject\"> </cds-notification>\n </div>\n\n @if (versionItems$ | async; as versionItems) {\n @let versionPlaceholder = versionPlaceholder$ | async;\n <div class=\"version-select\">\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"versionItems\"\n [label]=\"'processLinkConfiguration.buildingBlock.versionLabel' | translate\"\n [placeholder]=\"versionPlaceholder || ''\"\n (selected)=\"onVersionChange($event?.id || '')\"\n (clear)=\"onVersionChange('')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </div>\n }\n\n @if (loading$ | async) {\n <div class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n } @else {\n <div class=\"plugin-list\">\n @if (definitionVersionTag$ | async) {\n @if (isNestedBuildingBlock$ | async) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.nestedBuildingBlockInfo' | translate }}\n </div>\n } @else {\n @if (pluginConfigurationViewModels$ | async; as pluginConfigurationViewModels) {\n @if (pluginConfigurationViewModels.length === 0) {\n <div class=\"empty-state\">\n {{ 'processLinkConfiguration.buildingBlock.noRequirements' | translate }}\n </div>\n } @else {\n @let configurationPlaceholder = configurationPlaceholder$ | async;\n\n <div class=\"plugin-row\">\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.pluginLabel' | translate\"\n >\n </v-input-label>\n <v-input-label\n [title]=\"'processLinkConfiguration.buildingBlock.configurationLabel' | translate\"\n required=\"true\"\n >\n </v-input-label>\n </div>\n\n @for (plugin of pluginConfigurationViewModels; track plugin.key) {\n <div class=\"plugin-row\">\n <div class=\"plugin-label\">\n {{ plugin.label }}\n </div>\n\n <div class=\"plugin-configuration-select\">\n <cds-combo-box\n cdsLayer\n size=\"lg\"\n [appendInline]=\"true\"\n [dropUp]=\"false\"\n [items]=\"plugin.dropdownItems\"\n [placeholder]=\"configurationPlaceholder || ''\"\n (selected)=\"onMappingChange(plugin.key, $event?.id || '')\"\n (clear)=\"onMappingChange(plugin.key, '')\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n\n @if (plugin.selectedConfigurationVersion) {\n <div class=\"plugin-configuration-select__warning\">\n <cds-inline-notification\n [notificationObj]=\"{\n type: 'warning',\n title: '',\n message:\n ('processLinkConfiguration.buildingBlock.externalPluginVersionMismatchWarning'\n | translate\n : {\n selectedVersion: plugin.selectedConfigurationVersion,\n requiredVersion: plugin.pluginDefinitionVersion,\n }),\n showClose: false,\n lowContrast: true,\n }\"\n ></cds-inline-notification>\n </div>\n }\n </div>\n </div>\n }\n }\n }\n }\n }\n </div>\n }\n</div>\n", styles: [".version-select ::ng-deep .cds--list-box__menu{scrollbar-color:var(--cds-border-strong) var(--cds-layer);scrollbar-width:thin}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar{width:8px}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-track{background:var(--cds-layer)}.version-select ::ng-deep .cds--list-box__menu::-webkit-scrollbar-thumb{background:var(--cds-border-strong);border-radius:4px}.loading-container{display:flex;justify-content:center;padding:2rem 0}.empty-state{padding:1rem;border:1px solid #e0e0e0;border-radius:4px;background-color:#f4f4f4;color:#8d8d8d}.plugin-row{display:grid;align-items:center;grid-template-columns:1fr 1fr;margin-bottom:15px}.plugin-row .plugin-label{padding-left:16px;border-block-end:1px solid var(--cds-border-strong);height:100%;margin-right:15px;display:grid;align-items:center}.plugin-list{margin-top:30px}.plugin-configuration-select__warning{display:flex;width:100%;margin-top:var(--cds-spacing-03)}.plugin-configuration-select__warning ::ng-deep cds-inline-notification{width:100%;max-inline-size:unset;margin:0}.configure-building-block-plugins__warning{display:flex;width:100%;margin-bottom:24px}.configure-building-block-plugins__warning ::ng-deep cds-notification{max-inline-size:100%;min-inline-size:100%}\n"] }]
5314
+ }], ctorParameters: () => [{ type: ProcessLinkStateService }, { type: BuildingBlockStateService }, { type: ProcessLinkButtonService }, { type: ProcessLinkStepService }, { type: i1$1.PluginManagementService }, { type: i1$1.PluginTranslationService }, { type: ProcessLinkService }, { type: i4.TranslateService }, { type: ProcessLinkBuildingBlockApiService }, { type: i1$1.ExternalPluginService }] });
4297
5315
 
4298
5316
  /*
4299
- * Copyright 2015-2025 Ritense BV, the Netherlands.
5317
+ * Copyright 2015-2026 Ritense BV, the Netherlands.
4300
5318
  *
4301
5319
  * Licensed under EUPL, Version 1.2 (the "License");
4302
5320
  * you may not use this file except in compliance with the License.
@@ -4362,11 +5380,11 @@ class ProcessLinkModalComponent {
4362
5380
  this.processLinkStateService.setViewModelEnabled(value);
4363
5381
  }
4364
5382
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkModalComponent, deps: [{ token: ProcessLinkStateService }, { token: ProcessLinkStepService }, { token: ProcessLinkButtonService }, { token: PluginStateService }, { token: ProcessLinkStateService }, { token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
4365
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ProcessLinkModalComponent, isStandalone: false, selector: "valtimo-process-link-modal", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"process-link-modal-container\"\n *ngIf=\"{\n showModal: showModal$ | async,\n processStepName: processStepName$ | async,\n steps: steps$ | async,\n selectedPluginConfiguration: selectedPluginConfiguration$ | async,\n currentStepIndex: currentStepIndex$ | async,\n currentStepId: currentStepId$ | async,\n showSaveButton: showSaveButton$ | async,\n enableSaveButton: enableSaveButton$ | async,\n showBackButton: showBackButton$ | async,\n showNextButton: showNextButton$ | async,\n enableNextButton: enableNextButton$ | async,\n saving: saving$ | async,\n hideProgressIndicator: hideProgressIndicator$ | async,\n typeOfSelectedProgressLink: typeOfSelectedProcessLink$ | async,\n isEditing: isEditing$ | async,\n isAdHocBuildingBlock: isAdHocBuildingBlock$ | async,\n readOnly: readOnly$ | async,\n } as obs\"\n>\n <cds-modal valtimoCdsModal [open]=\"obs.showModal\" size=\"lg\" (close)=\"closeModal()\">\n <cds-modal-header (closeSelect)=\"closeModal()\">\n <h2 *ngIf=\"!obs.isAdHocBuildingBlock\" cdsModalHeaderLabel>\n {{ 'processLinkConfiguration.configureStep' | translate }}\n </h2>\n <h3 cdsModalHeaderHeading [attr.data-test-id]=\"testIds.heading\">\n <ng-container *ngIf=\"obs.isAdHocBuildingBlock; else defaultModalTitle\">\n {{\n 'processLinkConfiguration.buildingBlockActionTitle'\n | translate: {buildingBlockName: obs.processStepName || '-'}\n }}\n </ng-container>\n <ng-template #defaultModalTitle>\n {{\n 'processLinkConfiguration.modalTitle'\n | translate: {processStepName: obs.processStepName || '-'}\n }}\n </ng-template>\n </h3>\n <h4\n cdsModalHeaderLabel\n *ngIf=\"obs.typeOfSelectedProgressLink === 'plugin'\"\n [attr.data-test-id]=\"testIds.pluginConfigurationLabel\"\n >\n {{\n 'processLinkConfiguration.pluginConfiguration'\n | translate: {pluginConfigTitle: obs.selectedPluginConfiguration?.title || '-'}\n }}\n </h4>\n <div class=\"process-link-progress\">\n <ng-container *ngTemplateOutlet=\"progressIndicator; context: {obs: obs}\"></ng-container>\n </div>\n </cds-modal-header>\n <section cdsModalContent [cdsLayer]=\"1\" [valtimoReadOnlyContent]=\"obs.readOnly\">\n <ng-container *ngTemplateOutlet=\"stepContent; context: {obs: obs}\"></ng-container>\n </section>\n <ng-template *ngTemplateOutlet=\"footer; context: {obs: obs}\"></ng-template>\n </cds-modal>\n</div>\n\n<ng-template #progressIndicator let-obs=\"obs\">\n <cds-progress-indicator\n *ngIf=\"obs.steps && !obs.hideProgressIndicator\"\n [attr.data-test-id]=\"testIds.progressIndicator\"\n [steps]=\"obs.steps\"\n [current]=\"obs.currentStepIndex\"\n spacing=\"equal\"\n ></cds-progress-indicator>\n</ng-template>\n\n<ng-template #stepContent let-obs=\"obs\">\n <div class=\"cds-loading-container\" *ngIf=\"obs.saving\">\n <cds-loading></cds-loading>\n </div>\n <div [ngClass]=\"{hidden: obs.saving}\">\n <ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'chooseProcessLinkType'\">\n <valtimo-choose-process-link-type></valtimo-choose-process-link-type>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectForm'\">\n <valtimo-select-form></valtimo-select-form>\n <br />\n <cds-toggle\n *ngIf=\"showViewModelToggle$ | async\"\n [label]=\"'processLinkConfiguration.toggleViewModel.title' | translate\"\n [onText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [offText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [checked]=\"viewModelEnabled$ | async\"\n (checkedChange)=\"toggleCheckedChange($event)\"\n ></cds-toggle>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectFormFlow'\">\n <valtimo-select-form-flow></valtimo-select-form-flow>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n obs.currentStepId === 'choosePluginConfiguration' ||\n obs.currentStepId === 'choosePluginDefinition'\n \"\n >\n <valtimo-select-plugin-configuration></valtimo-select-plugin-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'selectBuildingBlock'\">\n <valtimo-select-building-block></valtimo-select-building-block>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'choosePluginAction'\">\n <valtimo-select-plugin-action></valtimo-select-plugin-action>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configurePluginAction'\">\n <valtimo-plugin-action-configuration\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n ></valtimo-plugin-action-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockPlugins'\">\n <valtimo-configure-building-block-plugins></valtimo-configure-building-block-plugins>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockMappings'\">\n <valtimo-configure-building-block-mappings></valtimo-configure-building-block-mappings>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'uiComponent'\">\n <valtimo-select-ui-component></valtimo-select-ui-component>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #footer let-obs=\"obs\">\n <cds-modal-footer *ngIf=\"!obs.saving\">\n <button\n cdsButton=\"ghost\"\n [attr.data-test-id]=\"testIds.cancelButton\"\n (click)=\"closeModal()\"\n [disabled]=\"obs.disabled\"\n >\n {{ (obs.readOnly ? 'interface.close' : 'processLinkConfiguration.cancel') | translate }}\n </button>\n <div class=\"footer-spacer\"></div>\n <button\n cdsButton=\"danger--primary\"\n *ngIf=\"obs.isEditing && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.unlinkButton\"\n (click)=\"unlinkButtonClick()\"\n >\n {{ 'processLinkConfiguration.unlink' | translate }}\n </button>\n <button\n *ngIf=\"obs.showBackButton && !obs.saving && !obs.readOnly\"\n cdsButton=\"secondary\"\n [attr.data-test-id]=\"testIds.backButton\"\n (click)=\"backButtonClick()\"\n >\n {{ 'processLinkConfiguration.back' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showNextButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.nextButton\"\n [disabled]=\"!obs.enableNextButton\"\n (click)=\"nextButtonClick()\"\n >\n {{ 'processLinkConfiguration.next' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showSaveButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.completeButton\"\n [disabled]=\"!obs.enableSaveButton\"\n (click)=\"saveButtonClick()\"\n >\n {{ 'processLinkConfiguration.complete' | translate }}\n </button>\n </cds-modal-footer>\n</ng-template>\n", styles: ["::ng-deep .process-link-modal-container .cds--modal-container{max-width:960px;min-height:70%}::ng-deep .process-link-modal-container .cds--modal-footer .footer-spacer{flex:0 1 50%}.cds-loading-container{position:absolute;top:50px;padding-bottom:50px;left:0;width:100%;height:calc(100% - 50px);display:flex;justify-content:center;align-items:center;background:var(--cds-layer);z-index:99;box-sizing:border-box}.process-link-progress{width:100%;margin-top:32px;margin-bottom:16px}.hidden{visibility:hidden}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: ReadOnlyContentDirective, selector: "[valtimoReadOnlyContent]", inputs: ["valtimoReadOnlyContent"] }, { kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i5.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i5.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i5.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i5.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "directive", type: i5.ModalHeaderLabel, selector: "[cdsModalHeaderLabel], [ibmModalHeaderLabel]" }, { kind: "component", type: i5.ProgressIndicator, selector: "cds-progress-indicator, ibm-progress-indicator", inputs: ["current", "steps", "translations", "orientation", "skeleton", "spacing"], outputs: ["stepSelected"] }, { kind: "directive", type: i5.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i5.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "directive", type: i2$1.ValtimoCdsModalDirective, selector: "[valtimoCdsModal]", inputs: ["minContentHeight"] }, { kind: "component", type: i5.Toggle, selector: "cds-toggle, ibm-toggle", inputs: ["offText", "onText", "label", "size", "hideLabel", "ariaLabel", "skeleton"] }, { kind: "directive", type: i5.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: ConfigureBuildingBlockMappingsComponent, selector: "valtimo-configure-building-block-mappings" }, { kind: "component", type: SelectPluginConfigurationComponent, selector: "valtimo-select-plugin-configuration" }, { kind: "component", type: SelectPluginActionComponent, selector: "valtimo-select-plugin-action" }, { kind: "component", type: PluginActionConfigurationComponent, selector: "valtimo-plugin-action-configuration", inputs: ["selectedPluginConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "component", type: ChooseProcessLinkTypeComponent, selector: "valtimo-choose-process-link-type" }, { kind: "component", type: SelectFormComponent, selector: "valtimo-select-form" }, { kind: "component", type: SelectFormFlowComponent, selector: "valtimo-select-form-flow" }, { kind: "component", type: SelectUIComponentComponent, selector: "valtimo-select-ui-component" }, { kind: "component", type: SelectBuildingBlockComponent, selector: "valtimo-select-building-block" }, { kind: "component", type: ConfigureBuildingBlockPluginsComponent, selector: "valtimo-configure-building-block-plugins" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
5383
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ProcessLinkModalComponent, isStandalone: false, selector: "valtimo-process-link-modal", ngImport: i0, template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"process-link-modal-container\"\n *ngIf=\"{\n showModal: showModal$ | async,\n processStepName: processStepName$ | async,\n steps: steps$ | async,\n selectedPluginConfiguration: selectedPluginConfiguration$ | async,\n currentStepIndex: currentStepIndex$ | async,\n currentStepId: currentStepId$ | async,\n showSaveButton: showSaveButton$ | async,\n enableSaveButton: enableSaveButton$ | async,\n showBackButton: showBackButton$ | async,\n showNextButton: showNextButton$ | async,\n enableNextButton: enableNextButton$ | async,\n saving: saving$ | async,\n hideProgressIndicator: hideProgressIndicator$ | async,\n typeOfSelectedProgressLink: typeOfSelectedProcessLink$ | async,\n isEditing: isEditing$ | async,\n isAdHocBuildingBlock: isAdHocBuildingBlock$ | async,\n readOnly: readOnly$ | async,\n } as obs\"\n>\n <cds-modal valtimoCdsModal [open]=\"obs.showModal\" size=\"lg\" (close)=\"closeModal()\">\n <cds-modal-header (closeSelect)=\"closeModal()\">\n <h2 *ngIf=\"!obs.isAdHocBuildingBlock\" cdsModalHeaderLabel>\n {{ 'processLinkConfiguration.configureStep' | translate }}\n </h2>\n <h3 cdsModalHeaderHeading [attr.data-test-id]=\"testIds.heading\">\n <ng-container *ngIf=\"obs.isAdHocBuildingBlock; else defaultModalTitle\">\n {{\n 'processLinkConfiguration.buildingBlockActionTitle'\n | translate: {buildingBlockName: obs.processStepName || '-'}\n }}\n </ng-container>\n <ng-template #defaultModalTitle>\n {{\n 'processLinkConfiguration.modalTitle'\n | translate: {processStepName: obs.processStepName || '-'}\n }}\n </ng-template>\n </h3>\n <h4\n cdsModalHeaderLabel\n *ngIf=\"obs.typeOfSelectedProgressLink === 'plugin'\"\n [attr.data-test-id]=\"testIds.pluginConfigurationLabel\"\n >\n {{\n 'processLinkConfiguration.pluginConfiguration'\n | translate: {pluginConfigTitle: obs.selectedPluginConfiguration?.title || '-'}\n }}\n </h4>\n <div class=\"process-link-progress\">\n <ng-container *ngTemplateOutlet=\"progressIndicator; context: {obs: obs}\"></ng-container>\n </div>\n </cds-modal-header>\n <section cdsModalContent [cdsLayer]=\"1\" [valtimoReadOnlyContent]=\"obs.readOnly\">\n <ng-container *ngTemplateOutlet=\"stepContent; context: {obs: obs}\"></ng-container>\n </section>\n <ng-template *ngTemplateOutlet=\"footer; context: {obs: obs}\"></ng-template>\n </cds-modal>\n</div>\n\n<ng-template #progressIndicator let-obs=\"obs\">\n <cds-progress-indicator\n *ngIf=\"obs.steps && !obs.hideProgressIndicator\"\n [attr.data-test-id]=\"testIds.progressIndicator\"\n [steps]=\"obs.steps\"\n [current]=\"obs.currentStepIndex\"\n spacing=\"equal\"\n ></cds-progress-indicator>\n</ng-template>\n\n<ng-template #stepContent let-obs=\"obs\">\n <div class=\"cds-loading-container\" *ngIf=\"obs.saving\">\n <cds-loading></cds-loading>\n </div>\n <div [ngClass]=\"{hidden: obs.saving}\" class=\"step-content\">\n <ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'chooseProcessLinkType'\">\n <valtimo-choose-process-link-type></valtimo-choose-process-link-type>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectForm'\">\n <valtimo-select-form></valtimo-select-form>\n <br />\n <cds-toggle\n *ngIf=\"showViewModelToggle$ | async\"\n [label]=\"'processLinkConfiguration.toggleViewModel.title' | translate\"\n [onText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [offText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [checked]=\"viewModelEnabled$ | async\"\n (checkedChange)=\"toggleCheckedChange($event)\"\n ></cds-toggle>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectFormFlow'\">\n <valtimo-select-form-flow></valtimo-select-form-flow>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n obs.currentStepId === 'choosePluginConfiguration' ||\n obs.currentStepId === 'choosePluginDefinition'\n \"\n >\n <valtimo-select-plugin-configuration></valtimo-select-plugin-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'selectBuildingBlock'\">\n <valtimo-select-building-block></valtimo-select-building-block>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'choosePluginAction'\">\n <valtimo-select-plugin-action></valtimo-select-plugin-action>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n obs.currentStepId === 'configurePluginAction' ||\n obs.currentStepId === 'configurePluginActionResultMappings'\n \"\n >\n <valtimo-plugin-action-configuration\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n ></valtimo-plugin-action-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockPlugins'\">\n <valtimo-configure-building-block-plugins></valtimo-configure-building-block-plugins>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockMappings'\">\n <valtimo-configure-building-block-mappings></valtimo-configure-building-block-mappings>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'uiComponent'\">\n <valtimo-select-ui-component></valtimo-select-ui-component>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #footer let-obs=\"obs\">\n <cds-modal-footer *ngIf=\"!obs.saving\">\n <button\n cdsButton=\"ghost\"\n [attr.data-test-id]=\"testIds.cancelButton\"\n (click)=\"closeModal()\"\n [disabled]=\"obs.disabled\"\n >\n {{ (obs.readOnly ? 'interface.close' : 'processLinkConfiguration.cancel') | translate }}\n </button>\n <div class=\"footer-spacer\"></div>\n <button\n cdsButton=\"danger--primary\"\n *ngIf=\"obs.isEditing && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.unlinkButton\"\n (click)=\"unlinkButtonClick()\"\n >\n {{ 'processLinkConfiguration.unlink' | translate }}\n </button>\n <button\n *ngIf=\"obs.showBackButton && !obs.saving && !obs.readOnly\"\n cdsButton=\"secondary\"\n [attr.data-test-id]=\"testIds.backButton\"\n (click)=\"backButtonClick()\"\n >\n {{ 'processLinkConfiguration.back' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showNextButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.nextButton\"\n [disabled]=\"!obs.enableNextButton\"\n (click)=\"nextButtonClick()\"\n >\n {{ 'processLinkConfiguration.next' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showSaveButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.completeButton\"\n [disabled]=\"!obs.enableSaveButton\"\n (click)=\"saveButtonClick()\"\n >\n {{ 'processLinkConfiguration.complete' | translate }}\n </button>\n </cds-modal-footer>\n</ng-template>\n", styles: ["::ng-deep .process-link-modal-container .cds--modal-container{max-width:960px;min-height:70%}::ng-deep .process-link-modal-container .cds--modal-footer .footer-spacer{flex:0 1 50%}.cds-loading-container{position:absolute;top:50px;padding-bottom:50px;left:0;width:100%;height:calc(100% - 50px);display:flex;justify-content:center;align-items:center;background:var(--cds-layer);z-index:99;box-sizing:border-box}.process-link-progress{width:100%;margin-top:32px;margin-bottom:16px}.hidden{visibility:hidden}.step-content{height:100%}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: ReadOnlyContentDirective, selector: "[valtimoReadOnlyContent]", inputs: ["valtimoReadOnlyContent"] }, { kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i6.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i6.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i6.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i6.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "directive", type: i6.ModalHeaderLabel, selector: "[cdsModalHeaderLabel], [ibmModalHeaderLabel]" }, { kind: "component", type: i6.ProgressIndicator, selector: "cds-progress-indicator, ibm-progress-indicator", inputs: ["current", "steps", "translations", "orientation", "skeleton", "spacing"], outputs: ["stepSelected"] }, { kind: "directive", type: i6.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i6.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "directive", type: i3.ValtimoCdsModalDirective, selector: "[valtimoCdsModal]", inputs: ["minContentHeight"] }, { kind: "component", type: i6.Toggle, selector: "cds-toggle, ibm-toggle", inputs: ["offText", "onText", "label", "size", "hideLabel", "ariaLabel", "skeleton"] }, { kind: "directive", type: i6.LayerDirective, selector: "[cdsLayer], [ibmLayer]", inputs: ["ibmLayer", "cdsLayer"], exportAs: ["layer"] }, { kind: "component", type: ConfigureBuildingBlockMappingsComponent, selector: "valtimo-configure-building-block-mappings" }, { kind: "component", type: SelectPluginConfigurationComponent, selector: "valtimo-select-plugin-configuration" }, { kind: "component", type: SelectPluginActionComponent, selector: "valtimo-select-plugin-action" }, { kind: "component", type: PluginActionConfigurationComponent, selector: "valtimo-plugin-action-configuration", inputs: ["selectedPluginConfiguration$"], outputs: ["valid", "configuration"] }, { kind: "component", type: ChooseProcessLinkTypeComponent, selector: "valtimo-choose-process-link-type" }, { kind: "component", type: SelectFormComponent, selector: "valtimo-select-form" }, { kind: "component", type: SelectFormFlowComponent, selector: "valtimo-select-form-flow" }, { kind: "component", type: SelectUIComponentComponent, selector: "valtimo-select-ui-component" }, { kind: "component", type: SelectBuildingBlockComponent, selector: "valtimo-select-building-block" }, { kind: "component", type: ConfigureBuildingBlockPluginsComponent, selector: "valtimo-configure-building-block-plugins" }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
4366
5384
  }
4367
5385
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkModalComponent, decorators: [{
4368
5386
  type: Component,
4369
- args: [{ standalone: false, selector: 'valtimo-process-link-modal', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"process-link-modal-container\"\n *ngIf=\"{\n showModal: showModal$ | async,\n processStepName: processStepName$ | async,\n steps: steps$ | async,\n selectedPluginConfiguration: selectedPluginConfiguration$ | async,\n currentStepIndex: currentStepIndex$ | async,\n currentStepId: currentStepId$ | async,\n showSaveButton: showSaveButton$ | async,\n enableSaveButton: enableSaveButton$ | async,\n showBackButton: showBackButton$ | async,\n showNextButton: showNextButton$ | async,\n enableNextButton: enableNextButton$ | async,\n saving: saving$ | async,\n hideProgressIndicator: hideProgressIndicator$ | async,\n typeOfSelectedProgressLink: typeOfSelectedProcessLink$ | async,\n isEditing: isEditing$ | async,\n isAdHocBuildingBlock: isAdHocBuildingBlock$ | async,\n readOnly: readOnly$ | async,\n } as obs\"\n>\n <cds-modal valtimoCdsModal [open]=\"obs.showModal\" size=\"lg\" (close)=\"closeModal()\">\n <cds-modal-header (closeSelect)=\"closeModal()\">\n <h2 *ngIf=\"!obs.isAdHocBuildingBlock\" cdsModalHeaderLabel>\n {{ 'processLinkConfiguration.configureStep' | translate }}\n </h2>\n <h3 cdsModalHeaderHeading [attr.data-test-id]=\"testIds.heading\">\n <ng-container *ngIf=\"obs.isAdHocBuildingBlock; else defaultModalTitle\">\n {{\n 'processLinkConfiguration.buildingBlockActionTitle'\n | translate: {buildingBlockName: obs.processStepName || '-'}\n }}\n </ng-container>\n <ng-template #defaultModalTitle>\n {{\n 'processLinkConfiguration.modalTitle'\n | translate: {processStepName: obs.processStepName || '-'}\n }}\n </ng-template>\n </h3>\n <h4\n cdsModalHeaderLabel\n *ngIf=\"obs.typeOfSelectedProgressLink === 'plugin'\"\n [attr.data-test-id]=\"testIds.pluginConfigurationLabel\"\n >\n {{\n 'processLinkConfiguration.pluginConfiguration'\n | translate: {pluginConfigTitle: obs.selectedPluginConfiguration?.title || '-'}\n }}\n </h4>\n <div class=\"process-link-progress\">\n <ng-container *ngTemplateOutlet=\"progressIndicator; context: {obs: obs}\"></ng-container>\n </div>\n </cds-modal-header>\n <section cdsModalContent [cdsLayer]=\"1\" [valtimoReadOnlyContent]=\"obs.readOnly\">\n <ng-container *ngTemplateOutlet=\"stepContent; context: {obs: obs}\"></ng-container>\n </section>\n <ng-template *ngTemplateOutlet=\"footer; context: {obs: obs}\"></ng-template>\n </cds-modal>\n</div>\n\n<ng-template #progressIndicator let-obs=\"obs\">\n <cds-progress-indicator\n *ngIf=\"obs.steps && !obs.hideProgressIndicator\"\n [attr.data-test-id]=\"testIds.progressIndicator\"\n [steps]=\"obs.steps\"\n [current]=\"obs.currentStepIndex\"\n spacing=\"equal\"\n ></cds-progress-indicator>\n</ng-template>\n\n<ng-template #stepContent let-obs=\"obs\">\n <div class=\"cds-loading-container\" *ngIf=\"obs.saving\">\n <cds-loading></cds-loading>\n </div>\n <div [ngClass]=\"{hidden: obs.saving}\">\n <ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'chooseProcessLinkType'\">\n <valtimo-choose-process-link-type></valtimo-choose-process-link-type>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectForm'\">\n <valtimo-select-form></valtimo-select-form>\n <br />\n <cds-toggle\n *ngIf=\"showViewModelToggle$ | async\"\n [label]=\"'processLinkConfiguration.toggleViewModel.title' | translate\"\n [onText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [offText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [checked]=\"viewModelEnabled$ | async\"\n (checkedChange)=\"toggleCheckedChange($event)\"\n ></cds-toggle>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectFormFlow'\">\n <valtimo-select-form-flow></valtimo-select-form-flow>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n obs.currentStepId === 'choosePluginConfiguration' ||\n obs.currentStepId === 'choosePluginDefinition'\n \"\n >\n <valtimo-select-plugin-configuration></valtimo-select-plugin-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'selectBuildingBlock'\">\n <valtimo-select-building-block></valtimo-select-building-block>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'choosePluginAction'\">\n <valtimo-select-plugin-action></valtimo-select-plugin-action>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configurePluginAction'\">\n <valtimo-plugin-action-configuration\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n ></valtimo-plugin-action-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockPlugins'\">\n <valtimo-configure-building-block-plugins></valtimo-configure-building-block-plugins>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockMappings'\">\n <valtimo-configure-building-block-mappings></valtimo-configure-building-block-mappings>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'uiComponent'\">\n <valtimo-select-ui-component></valtimo-select-ui-component>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #footer let-obs=\"obs\">\n <cds-modal-footer *ngIf=\"!obs.saving\">\n <button\n cdsButton=\"ghost\"\n [attr.data-test-id]=\"testIds.cancelButton\"\n (click)=\"closeModal()\"\n [disabled]=\"obs.disabled\"\n >\n {{ (obs.readOnly ? 'interface.close' : 'processLinkConfiguration.cancel') | translate }}\n </button>\n <div class=\"footer-spacer\"></div>\n <button\n cdsButton=\"danger--primary\"\n *ngIf=\"obs.isEditing && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.unlinkButton\"\n (click)=\"unlinkButtonClick()\"\n >\n {{ 'processLinkConfiguration.unlink' | translate }}\n </button>\n <button\n *ngIf=\"obs.showBackButton && !obs.saving && !obs.readOnly\"\n cdsButton=\"secondary\"\n [attr.data-test-id]=\"testIds.backButton\"\n (click)=\"backButtonClick()\"\n >\n {{ 'processLinkConfiguration.back' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showNextButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.nextButton\"\n [disabled]=\"!obs.enableNextButton\"\n (click)=\"nextButtonClick()\"\n >\n {{ 'processLinkConfiguration.next' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showSaveButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.completeButton\"\n [disabled]=\"!obs.enableSaveButton\"\n (click)=\"saveButtonClick()\"\n >\n {{ 'processLinkConfiguration.complete' | translate }}\n </button>\n </cds-modal-footer>\n</ng-template>\n", styles: ["::ng-deep .process-link-modal-container .cds--modal-container{max-width:960px;min-height:70%}::ng-deep .process-link-modal-container .cds--modal-footer .footer-spacer{flex:0 1 50%}.cds-loading-container{position:absolute;top:50px;padding-bottom:50px;left:0;width:100%;height:calc(100% - 50px);display:flex;justify-content:center;align-items:center;background:var(--cds-layer);z-index:99;box-sizing:border-box}.process-link-progress{width:100%;margin-top:32px;margin-bottom:16px}.hidden{visibility:hidden}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
5387
+ args: [{ standalone: false, selector: 'valtimo-process-link-modal', template: "<!--\n ~ Copyright 2015-2026 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"process-link-modal-container\"\n *ngIf=\"{\n showModal: showModal$ | async,\n processStepName: processStepName$ | async,\n steps: steps$ | async,\n selectedPluginConfiguration: selectedPluginConfiguration$ | async,\n currentStepIndex: currentStepIndex$ | async,\n currentStepId: currentStepId$ | async,\n showSaveButton: showSaveButton$ | async,\n enableSaveButton: enableSaveButton$ | async,\n showBackButton: showBackButton$ | async,\n showNextButton: showNextButton$ | async,\n enableNextButton: enableNextButton$ | async,\n saving: saving$ | async,\n hideProgressIndicator: hideProgressIndicator$ | async,\n typeOfSelectedProgressLink: typeOfSelectedProcessLink$ | async,\n isEditing: isEditing$ | async,\n isAdHocBuildingBlock: isAdHocBuildingBlock$ | async,\n readOnly: readOnly$ | async,\n } as obs\"\n>\n <cds-modal valtimoCdsModal [open]=\"obs.showModal\" size=\"lg\" (close)=\"closeModal()\">\n <cds-modal-header (closeSelect)=\"closeModal()\">\n <h2 *ngIf=\"!obs.isAdHocBuildingBlock\" cdsModalHeaderLabel>\n {{ 'processLinkConfiguration.configureStep' | translate }}\n </h2>\n <h3 cdsModalHeaderHeading [attr.data-test-id]=\"testIds.heading\">\n <ng-container *ngIf=\"obs.isAdHocBuildingBlock; else defaultModalTitle\">\n {{\n 'processLinkConfiguration.buildingBlockActionTitle'\n | translate: {buildingBlockName: obs.processStepName || '-'}\n }}\n </ng-container>\n <ng-template #defaultModalTitle>\n {{\n 'processLinkConfiguration.modalTitle'\n | translate: {processStepName: obs.processStepName || '-'}\n }}\n </ng-template>\n </h3>\n <h4\n cdsModalHeaderLabel\n *ngIf=\"obs.typeOfSelectedProgressLink === 'plugin'\"\n [attr.data-test-id]=\"testIds.pluginConfigurationLabel\"\n >\n {{\n 'processLinkConfiguration.pluginConfiguration'\n | translate: {pluginConfigTitle: obs.selectedPluginConfiguration?.title || '-'}\n }}\n </h4>\n <div class=\"process-link-progress\">\n <ng-container *ngTemplateOutlet=\"progressIndicator; context: {obs: obs}\"></ng-container>\n </div>\n </cds-modal-header>\n <section cdsModalContent [cdsLayer]=\"1\" [valtimoReadOnlyContent]=\"obs.readOnly\">\n <ng-container *ngTemplateOutlet=\"stepContent; context: {obs: obs}\"></ng-container>\n </section>\n <ng-template *ngTemplateOutlet=\"footer; context: {obs: obs}\"></ng-template>\n </cds-modal>\n</div>\n\n<ng-template #progressIndicator let-obs=\"obs\">\n <cds-progress-indicator\n *ngIf=\"obs.steps && !obs.hideProgressIndicator\"\n [attr.data-test-id]=\"testIds.progressIndicator\"\n [steps]=\"obs.steps\"\n [current]=\"obs.currentStepIndex\"\n spacing=\"equal\"\n ></cds-progress-indicator>\n</ng-template>\n\n<ng-template #stepContent let-obs=\"obs\">\n <div class=\"cds-loading-container\" *ngIf=\"obs.saving\">\n <cds-loading></cds-loading>\n </div>\n <div [ngClass]=\"{hidden: obs.saving}\" class=\"step-content\">\n <ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'chooseProcessLinkType'\">\n <valtimo-choose-process-link-type></valtimo-choose-process-link-type>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectForm'\">\n <valtimo-select-form></valtimo-select-form>\n <br />\n <cds-toggle\n *ngIf=\"showViewModelToggle$ | async\"\n [label]=\"'processLinkConfiguration.toggleViewModel.title' | translate\"\n [onText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [offText]=\"'processLinkConfiguration.toggleViewModel.checkboxDescription' | translate\"\n [checked]=\"viewModelEnabled$ | async\"\n (checkedChange)=\"toggleCheckedChange($event)\"\n ></cds-toggle>\n </ng-container>\n <ng-container *ngIf=\"obs.currentStepId === 'selectFormFlow'\">\n <valtimo-select-form-flow></valtimo-select-form-flow>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n obs.currentStepId === 'choosePluginConfiguration' ||\n obs.currentStepId === 'choosePluginDefinition'\n \"\n >\n <valtimo-select-plugin-configuration></valtimo-select-plugin-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'selectBuildingBlock'\">\n <valtimo-select-building-block></valtimo-select-building-block>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'choosePluginAction'\">\n <valtimo-select-plugin-action></valtimo-select-plugin-action>\n </ng-container>\n\n <ng-container\n *ngIf=\"\n obs.currentStepId === 'configurePluginAction' ||\n obs.currentStepId === 'configurePluginActionResultMappings'\n \"\n >\n <valtimo-plugin-action-configuration\n [selectedPluginConfiguration$]=\"selectedPluginConfiguration$\"\n ></valtimo-plugin-action-configuration>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockPlugins'\">\n <valtimo-configure-building-block-plugins></valtimo-configure-building-block-plugins>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'configureBuildingBlockMappings'\">\n <valtimo-configure-building-block-mappings></valtimo-configure-building-block-mappings>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"obs.currentStepId === 'uiComponent'\">\n <valtimo-select-ui-component></valtimo-select-ui-component>\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #footer let-obs=\"obs\">\n <cds-modal-footer *ngIf=\"!obs.saving\">\n <button\n cdsButton=\"ghost\"\n [attr.data-test-id]=\"testIds.cancelButton\"\n (click)=\"closeModal()\"\n [disabled]=\"obs.disabled\"\n >\n {{ (obs.readOnly ? 'interface.close' : 'processLinkConfiguration.cancel') | translate }}\n </button>\n <div class=\"footer-spacer\"></div>\n <button\n cdsButton=\"danger--primary\"\n *ngIf=\"obs.isEditing && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.unlinkButton\"\n (click)=\"unlinkButtonClick()\"\n >\n {{ 'processLinkConfiguration.unlink' | translate }}\n </button>\n <button\n *ngIf=\"obs.showBackButton && !obs.saving && !obs.readOnly\"\n cdsButton=\"secondary\"\n [attr.data-test-id]=\"testIds.backButton\"\n (click)=\"backButtonClick()\"\n >\n {{ 'processLinkConfiguration.back' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showNextButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.nextButton\"\n [disabled]=\"!obs.enableNextButton\"\n (click)=\"nextButtonClick()\"\n >\n {{ 'processLinkConfiguration.next' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.showSaveButton && !obs.saving && !obs.readOnly\"\n [attr.data-test-id]=\"testIds.completeButton\"\n [disabled]=\"!obs.enableSaveButton\"\n (click)=\"saveButtonClick()\"\n >\n {{ 'processLinkConfiguration.complete' | translate }}\n </button>\n </cds-modal-footer>\n</ng-template>\n", styles: ["::ng-deep .process-link-modal-container .cds--modal-container{max-width:960px;min-height:70%}::ng-deep .process-link-modal-container .cds--modal-footer .footer-spacer{flex:0 1 50%}.cds-loading-container{position:absolute;top:50px;padding-bottom:50px;left:0;width:100%;height:calc(100% - 50px);display:flex;justify-content:center;align-items:center;background:var(--cds-layer);z-index:99;box-sizing:border-box}.process-link-progress{width:100%;margin-top:32px;margin-bottom:16px}.hidden{visibility:hidden}.step-content{height:100%}\n/*!\n * Copyright 2015-2026 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
4370
5388
  }], ctorParameters: () => [{ type: ProcessLinkStateService }, { type: ProcessLinkStepService }, { type: ProcessLinkButtonService }, { type: PluginStateService }, { type: ProcessLinkStateService }, { type: i1.ConfigService }] });
4371
5389
 
4372
5390
  /*
@@ -4422,13 +5440,13 @@ class ProcessLinkComponent {
4422
5440
  .subscribe();
4423
5441
  }
4424
5442
  }
4425
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkComponent, deps: [{ token: ProcessLinkService }, { token: ProcessLinkStateService }, { token: i2$1.ModalService }], target: i0.ɵɵFactoryTarget.Component }); }
5443
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkComponent, deps: [{ token: ProcessLinkService }, { token: ProcessLinkStateService }, { token: i3.ModalService }], target: i0.ɵɵFactoryTarget.Component }); }
4426
5444
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: ProcessLinkComponent, isStandalone: false, selector: "valtimo-process-link", providers: [ProcessLinkStateService, ProcessLinkStepService, ProcessLinkButtonService], ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-form-link-process-diagram\n (bpmnElementModalOpen)=\"openModal($event)\"\n ></valtimo-form-link-process-diagram>\n </div>\n</div>\n\n<valtimo-process-link-modal></valtimo-process-link-modal>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "component", type: FormLinkProcessDiagramComponent, selector: "valtimo-form-link-process-diagram", outputs: ["bpmnElementModalOpen", "bpmnElementModalClose"] }, { kind: "component", type: ProcessLinkModalComponent, selector: "valtimo-process-link-modal" }] }); }
4427
5445
  }
4428
5446
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkComponent, decorators: [{
4429
5447
  type: Component,
4430
5448
  args: [{ standalone: false, selector: 'valtimo-process-link', providers: [ProcessLinkStateService, ProcessLinkStepService, ProcessLinkButtonService], template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-form-link-process-diagram\n (bpmnElementModalOpen)=\"openModal($event)\"\n ></valtimo-form-link-process-diagram>\n </div>\n</div>\n\n<valtimo-process-link-modal></valtimo-process-link-modal>\n", styles: ["/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
4431
- }], ctorParameters: () => [{ type: ProcessLinkService }, { type: ProcessLinkStateService }, { type: i2$1.ModalService }] });
5449
+ }], ctorParameters: () => [{ type: ProcessLinkService }, { type: ProcessLinkStateService }, { type: i3.ModalService }] });
4432
5450
 
4433
5451
  /*
4434
5452
  * Copyright 2015-2025 Ritense BV, the Netherlands.
@@ -4783,13 +5801,13 @@ class FormFlowComponent {
4783
5801
  enable() {
4784
5802
  this.disabled$.next(false);
4785
5803
  }
4786
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormFlowComponent, deps: [{ token: FormFlowService }, { token: i2$1.ValtimoModalService }, { token: i3.TranslateService }, { token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
4787
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormFlowComponent, isStandalone: false, selector: "valtimo-form-flow", inputs: { formIoFormData: "formIoFormData", formFlowInstanceId: "formFlowInstanceId" }, outputs: { formFlowComplete: "formFlowComplete", formFlowChange: "formFlowChange" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n *ngIf=\"{\n breadcrumbs: breadcrumbs$ | async,\n currentStepIndex: currentStepIndex$ | async,\n enableFormFlowBreadcrumbs: enableFormFlowBreadcrumbs$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async,\n } as obs\"\n>\n <div *ngIf=\"formDefinition && (formFlowStepType$ | async) === 'form'\">\n <div *ngIf=\"obs.enableFormFlowBreadcrumbs\" class=\"form-flow__progress-bar-indicator\">\n <cds-progress-indicator\n [spacing]=\"'equal'\"\n [skeleton]=\"obs.breadcrumbs.length === 0\"\n [current]=\"obs.currentStepIndex\"\n [steps]=\"obs.breadcrumbs\"\n (stepSelected)=\"onStepSelected($event)\"\n >\n </cds-progress-indicator>\n </div>\n\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n (change)=\"onChange($event)\"\n (event)=\"onEvent($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n\n <div *ngIf=\"(formFlowStepType$ | async) === 'custom-component'\">\n <valtimo-form-flow-configuration-container\n [componentId]=\"FormFlowCustomComponentId$ | async\"\n [formFlowInstanceId]=\"obs.formFlowInstanceId\"\n [disabled]=\"disabled$ | async\"\n (submitEvent)=\"onSubmit($event)\"\n (changeEvent)=\"onChange($event)\"\n >\n </valtimo-form-flow-configuration-container>\n </div>\n</div>\n", styles: [".form-flow__progress-bar-indicator{height:64px;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none}.form-flow__progress-bar-indicator ::-webkit-scrollbar{display:none}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ProgressIndicator, selector: "cds-progress-indicator, ibm-progress-indicator", inputs: ["current", "steps", "translations", "orientation", "skeleton", "spacing"], outputs: ["stepSelected"] }, { kind: "component", type: i2$1.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "errors", "formRefresh$"], outputs: ["submit", "change", "event"] }, { kind: "component", type: FormFlowConfigurationContainerComponent, selector: "valtimo-form-flow-configuration-container", inputs: ["disabled", "componentId", "formFlowInstanceId"], outputs: ["changeEvent", "submitEvent"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }] }); }
5804
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormFlowComponent, deps: [{ token: FormFlowService }, { token: i3.ValtimoModalService }, { token: i4.TranslateService }, { token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
5805
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormFlowComponent, isStandalone: false, selector: "valtimo-form-flow", inputs: { formIoFormData: "formIoFormData", formFlowInstanceId: "formFlowInstanceId" }, outputs: { formFlowComplete: "formFlowComplete", formFlowChange: "formFlowChange" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n *ngIf=\"{\n breadcrumbs: breadcrumbs$ | async,\n currentStepIndex: currentStepIndex$ | async,\n enableFormFlowBreadcrumbs: enableFormFlowBreadcrumbs$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async,\n } as obs\"\n>\n <div *ngIf=\"formDefinition && (formFlowStepType$ | async) === 'form'\">\n <div *ngIf=\"obs.enableFormFlowBreadcrumbs\" class=\"form-flow__progress-bar-indicator\">\n <cds-progress-indicator\n [spacing]=\"'equal'\"\n [skeleton]=\"obs.breadcrumbs.length === 0\"\n [current]=\"obs.currentStepIndex\"\n [steps]=\"obs.breadcrumbs\"\n (stepSelected)=\"onStepSelected($event)\"\n >\n </cds-progress-indicator>\n </div>\n\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n (change)=\"onChange($event)\"\n (event)=\"onEvent($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n\n <div *ngIf=\"(formFlowStepType$ | async) === 'custom-component'\">\n <valtimo-form-flow-configuration-container\n [componentId]=\"FormFlowCustomComponentId$ | async\"\n [formFlowInstanceId]=\"obs.formFlowInstanceId\"\n [disabled]=\"disabled$ | async\"\n (submitEvent)=\"onSubmit($event)\"\n (changeEvent)=\"onChange($event)\"\n >\n </valtimo-form-flow-configuration-container>\n </div>\n</div>\n", styles: [".form-flow__progress-bar-indicator{height:64px;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none}.form-flow__progress-bar-indicator ::-webkit-scrollbar{display:none}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ProgressIndicator, selector: "cds-progress-indicator, ibm-progress-indicator", inputs: ["current", "steps", "translations", "orientation", "skeleton", "spacing"], outputs: ["stepSelected"] }, { kind: "component", type: i3.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "errors", "formRefresh$"], outputs: ["submit", "change", "event"] }, { kind: "component", type: FormFlowConfigurationContainerComponent, selector: "valtimo-form-flow-configuration-container", inputs: ["disabled", "componentId", "formFlowInstanceId"], outputs: ["changeEvent", "submitEvent"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }] }); }
4788
5806
  }
4789
5807
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormFlowComponent, decorators: [{
4790
5808
  type: Component,
4791
5809
  args: [{ standalone: false, selector: 'valtimo-form-flow', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n *ngIf=\"{\n breadcrumbs: breadcrumbs$ | async,\n currentStepIndex: currentStepIndex$ | async,\n enableFormFlowBreadcrumbs: enableFormFlowBreadcrumbs$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async,\n } as obs\"\n>\n <div *ngIf=\"formDefinition && (formFlowStepType$ | async) === 'form'\">\n <div *ngIf=\"obs.enableFormFlowBreadcrumbs\" class=\"form-flow__progress-bar-indicator\">\n <cds-progress-indicator\n [spacing]=\"'equal'\"\n [skeleton]=\"obs.breadcrumbs.length === 0\"\n [current]=\"obs.currentStepIndex\"\n [steps]=\"obs.breadcrumbs\"\n (stepSelected)=\"onStepSelected($event)\"\n >\n </cds-progress-indicator>\n </div>\n\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n (change)=\"onChange($event)\"\n (event)=\"onEvent($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n\n <div *ngIf=\"(formFlowStepType$ | async) === 'custom-component'\">\n <valtimo-form-flow-configuration-container\n [componentId]=\"FormFlowCustomComponentId$ | async\"\n [formFlowInstanceId]=\"obs.formFlowInstanceId\"\n [disabled]=\"disabled$ | async\"\n (submitEvent)=\"onSubmit($event)\"\n (changeEvent)=\"onChange($event)\"\n >\n </valtimo-form-flow-configuration-container>\n </div>\n</div>\n", styles: [".form-flow__progress-bar-indicator{height:64px;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none}.form-flow__progress-bar-indicator ::-webkit-scrollbar{display:none}\n/*!\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
4792
- }], ctorParameters: () => [{ type: FormFlowService }, { type: i2$1.ValtimoModalService }, { type: i3.TranslateService }, { type: i1.ConfigService }], propDecorators: { form: [{
5810
+ }], ctorParameters: () => [{ type: FormFlowService }, { type: i3.ValtimoModalService }, { type: i4.TranslateService }, { type: i1.ConfigService }], propDecorators: { form: [{
4793
5811
  type: ViewChild,
4794
5812
  args: ['form']
4795
5813
  }], formIoFormData: [{
@@ -4885,7 +5903,6 @@ class ProcessLinkModule {
4885
5903
  ConfigureBuildingBlockPluginsComponent], imports: [ReadOnlyContentDirective,
4886
5904
  CommonModule,
4887
5905
  ProcessLinkRoutingModule,
4888
- FormsModule,
4889
5906
  ReactiveFormsModule,
4890
5907
  ModalModule,
4891
5908
  TranslateModule,
@@ -4923,7 +5940,9 @@ class ProcessLinkModule {
4923
5940
  RadioModule,
4924
5941
  ValuePathSelectorComponent,
4925
5942
  ConfigureBuildingBlockMappingsComponent,
4926
- NotificationModule], exports: [ProcessLinkComponent,
5943
+ PluginActionResultMappingsComponent,
5944
+ NotificationModule,
5945
+ ExternalPluginIframeComponent], exports: [ProcessLinkComponent,
4927
5946
  SelectPluginConfigurationComponent,
4928
5947
  SelectPluginActionComponent,
4929
5948
  PluginActionConfigurationComponent,
@@ -4931,7 +5950,6 @@ class ProcessLinkModule {
4931
5950
  FormFlowComponent] }); }
4932
5951
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkModule, providers: [UrlValidatorService, UrlResolverService], imports: [CommonModule,
4933
5952
  ProcessLinkRoutingModule,
4934
- FormsModule,
4935
5953
  ReactiveFormsModule,
4936
5954
  ModalModule,
4937
5955
  TranslateModule,
@@ -4966,7 +5984,9 @@ class ProcessLinkModule {
4966
5984
  RadioModule,
4967
5985
  ValuePathSelectorComponent,
4968
5986
  ConfigureBuildingBlockMappingsComponent,
4969
- NotificationModule] }); }
5987
+ PluginActionResultMappingsComponent,
5988
+ NotificationModule,
5989
+ ExternalPluginIframeComponent] }); }
4970
5990
  }
4971
5991
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkModule, decorators: [{
4972
5992
  type: NgModule,
@@ -4993,7 +6013,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
4993
6013
  ReadOnlyContentDirective,
4994
6014
  CommonModule,
4995
6015
  ProcessLinkRoutingModule,
4996
- FormsModule,
4997
6016
  ReactiveFormsModule,
4998
6017
  ModalModule,
4999
6018
  TranslateModule,
@@ -5031,7 +6050,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
5031
6050
  RadioModule,
5032
6051
  ValuePathSelectorComponent,
5033
6052
  ConfigureBuildingBlockMappingsComponent,
6053
+ PluginActionResultMappingsComponent,
5034
6054
  NotificationModule,
6055
+ ExternalPluginIframeComponent,
5035
6056
  ],
5036
6057
  exports: [
5037
6058
  ProcessLinkComponent,
@@ -5164,5 +6185,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
5164
6185
  * Generated bundle index. Do not edit.
5165
6186
  */
5166
6187
 
5167
- export { BB_MAPPINGS_TEST_IDS, BuildingBlockStateService, ChooseProcessLinkTypeComponent, FORM_CUSTOM_COMPONENT_TOKEN, FormFlowComponent, FormFlowService, PLUGIN_ACTION_CONFIGURATION_TEST_IDS, PROCESS_LINK_MODAL_TEST_IDS, PROCESS_LINK_TYPE_BUTTON_TEST_ID_PREFIX, PROCESS_LINK_TYPE_CHOOSER_TEST_IDS, PluginActionConfigurationComponent, PluginStateService, ProcessLinkBuildingBlockApiService, ProcessLinkButtonService, ProcessLinkComponent, ProcessLinkModalComponent, ProcessLinkModule, ProcessLinkService, ProcessLinkStateService, ProcessLinkStepService, SELECT_PLUGIN_ACTION_TEST_IDS, SELECT_PLUGIN_ACTION_TILE_TEST_ID_PREFIX, SELECT_PLUGIN_CONFIGURATION_ROW_TEST_ID_PREFIX, SELECT_PLUGIN_CONFIGURATION_TEST_IDS, SelectPluginActionComponent, SelectPluginConfigurationComponent, UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK, UrlResolverService, UrlValidatorService, ensureDocPrefix, formSizeToCarbonModalSizeMap };
6188
+ export { BB_MAPPINGS_TEST_IDS, BuildingBlockStateService, ChooseProcessLinkTypeComponent, FORM_CUSTOM_COMPONENT_TOKEN, FormFlowComponent, FormFlowService, PLUGIN_ACTION_CONFIGURATION_TEST_IDS, PLUGIN_ACTION_RESULT_MAPPINGS_TEST_IDS, PROCESS_LINK_MODAL_TEST_IDS, PROCESS_LINK_TYPE_BUTTON_TEST_ID_PREFIX, PROCESS_LINK_TYPE_CHOOSER_TEST_IDS, PluginActionConfigurationComponent, PluginStateService, ProcessLinkBuildingBlockApiService, ProcessLinkButtonService, ProcessLinkComponent, ProcessLinkModalComponent, ProcessLinkModule, ProcessLinkService, ProcessLinkStateService, ProcessLinkStepService, SELECT_PLUGIN_ACTION_TEST_IDS, SELECT_PLUGIN_ACTION_TILE_TEST_ID_PREFIX, SELECT_PLUGIN_CONFIGURATION_ROW_TEST_ID_PREFIX, SELECT_PLUGIN_CONFIGURATION_TEST_IDS, SelectPluginActionComponent, SelectPluginConfigurationComponent, UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK, USER_TASK_ACTIVITY, UrlResolverService, UrlValidatorService, ensureDocPrefix, formSizeToCarbonModalSizeMap };
5168
6189
  //# sourceMappingURL=valtimo-process-link.mjs.map