@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.
- package/fesm2022/valtimo-process-link.mjs +1273 -252
- package/fesm2022/valtimo-process-link.mjs.map +1 -1
- package/lib/components/configure-building-block-plugins/configure-building-block-plugins.component.d.ts +17 -7
- package/lib/components/configure-building-block-plugins/configure-building-block-plugins.component.d.ts.map +1 -1
- package/lib/components/plugin-action-configuration/plugin-action-configuration.component.d.ts +89 -9
- package/lib/components/plugin-action-configuration/plugin-action-configuration.component.d.ts.map +1 -1
- package/lib/components/plugin-action-result-mappings/plugin-action-result-mappings.component.d.ts +73 -0
- package/lib/components/plugin-action-result-mappings/plugin-action-result-mappings.component.d.ts.map +1 -0
- package/lib/components/select-plugin-action/select-plugin-action.component.d.ts +24 -13
- package/lib/components/select-plugin-action/select-plugin-action.component.d.ts.map +1 -1
- package/lib/components/select-plugin-configuration/select-plugin-configuration.component.d.ts +18 -15
- package/lib/components/select-plugin-configuration/select-plugin-configuration.component.d.ts.map +1 -1
- package/lib/constants/process-link.test-ids.d.ts +9 -0
- package/lib/constants/process-link.test-ids.d.ts.map +1 -1
- package/lib/constants/process.link.d.ts +3 -1
- package/lib/constants/process.link.d.ts.map +1 -1
- package/lib/models/building-block-field.model.d.ts +8 -1
- package/lib/models/building-block-field.model.d.ts.map +1 -1
- package/lib/models/plugin.model.d.ts +16 -1
- package/lib/models/plugin.model.d.ts.map +1 -1
- package/lib/models/process-link.model.d.ts +91 -5
- package/lib/models/process-link.model.d.ts.map +1 -1
- package/lib/process-link.module.d.ts +2 -1
- package/lib/process-link.module.d.ts.map +1 -1
- package/lib/services/building-block-state.service.d.ts +4 -1
- package/lib/services/building-block-state.service.d.ts.map +1 -1
- package/lib/services/plugin-state.service.d.ts +6 -2
- package/lib/services/plugin-state.service.d.ts.map +1 -1
- package/lib/services/process-link-state.service.d.ts.map +1 -1
- package/lib/services/process-link-step.service.d.ts +14 -0
- package/lib/services/process-link-step.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ProcessLinkBuildingBlockApiService, ProcessLinkButtonService, ProcessLinkService, ProcessLinkStateService, ProcessLinkStepService } from '../../services';
|
|
3
3
|
import { BuildingBlockStateService } from '../../services/building-block-state.service';
|
|
4
|
-
import { PluginManagementService, PluginTranslationService } from '@valtimo/plugin';
|
|
5
|
-
import { PluginConfigurationViewModel } from '../../models';
|
|
4
|
+
import { ExternalPluginService, PluginManagementService, PluginTranslationService } from '@valtimo/plugin';
|
|
5
|
+
import { PluginConfigurationViewModel, RequiredPlugin } from '../../models';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { ListItem } from 'carbon-components-angular/dropdown';
|
|
8
8
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -18,7 +18,8 @@ export declare class ConfigureBuildingBlockPluginsComponent implements OnInit, O
|
|
|
18
18
|
private readonly processLinkService;
|
|
19
19
|
private readonly translateService;
|
|
20
20
|
private readonly processLinkBuildingBlockApiService;
|
|
21
|
-
readonly
|
|
21
|
+
private readonly externalPluginService;
|
|
22
|
+
readonly requiredPlugins$: Observable<RequiredPlugin[]>;
|
|
22
23
|
readonly isNestedBuildingBlock$: Observable<boolean>;
|
|
23
24
|
private readonly _pluginDependenciesWarningTranslationKey$;
|
|
24
25
|
readonly dependenciesNotificationObject$: Observable<NotificationContent>;
|
|
@@ -31,12 +32,21 @@ export declare class ConfigureBuildingBlockPluginsComponent implements OnInit, O
|
|
|
31
32
|
readonly pluginConfigurationViewModels$: Observable<Array<PluginConfigurationViewModel>>;
|
|
32
33
|
private readonly _subscriptions;
|
|
33
34
|
private readonly _configurationOptionsCache;
|
|
34
|
-
|
|
35
|
+
private readonly _externalConfigurationOptionsCache;
|
|
36
|
+
constructor(stateService: ProcessLinkStateService, buildingBlockStateService: BuildingBlockStateService, buttonService: ProcessLinkButtonService, stepService: ProcessLinkStepService, pluginManagementService: PluginManagementService, pluginTranslationService: PluginTranslationService, processLinkService: ProcessLinkService, translateService: TranslateService, processLinkBuildingBlockApiService: ProcessLinkBuildingBlockApiService, externalPluginService: ExternalPluginService);
|
|
35
37
|
ngOnInit(): void;
|
|
36
38
|
ngOnDestroy(): void;
|
|
37
|
-
private
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
private getEmbeddedConfigurationOptions;
|
|
40
|
+
/**
|
|
41
|
+
* Activated external configurations for the required plugin's `pluginId`. Configurations
|
|
42
|
+
* matching `pluginId@version` exactly are offered as normal options; configurations of the same
|
|
43
|
+
* `pluginId` at a different version are still offered (selectable), with their actual definition
|
|
44
|
+
* version recorded in `mismatchedVersionsById` so the template can render the D3 non-blocking
|
|
45
|
+
* warning when such a configuration is selected.
|
|
46
|
+
*/
|
|
47
|
+
private getExternalConfigurationOptions;
|
|
48
|
+
onMappingChange(mappingKey: string, configurationId: string): void;
|
|
49
|
+
pluginLabel(requiredPlugin: RequiredPlugin): string;
|
|
40
50
|
private buildDropdownItems;
|
|
41
51
|
private checkSingleBuildingBlockType;
|
|
42
52
|
onVersionChange(versionTag: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-building-block-plugins.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/configure-building-block-plugins/configure-building-block-plugins.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EACL,kCAAkC,EAClC,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,yBAAyB,EAAC,MAAM,6CAA6C,CAAC;AACtF,OAAO,
|
|
1
|
+
{"version":3,"file":"configure-building-block-plugins.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link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D"}
|
package/lib/components/plugin-action-configuration/plugin-action-configuration.component.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { PluginStateService, ProcessLinkButtonService, ProcessLinkService, ProcessLinkStateService, ProcessLinkStepService } from '../../services';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { PluginConfiguration, PluginConfigurationData } from '@valtimo/plugin';
|
|
5
|
-
import { ProcessLink } from '../../models';
|
|
4
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
|
+
import { ExternalPluginService, PluginConfiguration, PluginConfigurationData, PluginFunction } from '@valtimo/plugin';
|
|
6
|
+
import { PluginActionResultMapping, ProcessLink } from '../../models';
|
|
7
|
+
import { ActivatedRoute } from '@angular/router';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export declare class PluginActionConfigurationComponent implements OnInit, OnDestroy {
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
10
|
+
private readonly _stateService;
|
|
11
|
+
private readonly _pluginStateService;
|
|
12
|
+
private readonly _buttonService;
|
|
13
|
+
private readonly _stepService;
|
|
14
|
+
private readonly _processLinkService;
|
|
15
|
+
private readonly _externalPluginService;
|
|
16
|
+
private readonly _route;
|
|
13
17
|
protected readonly testIds: {
|
|
14
18
|
readonly container: "pluginActionConfiguration";
|
|
15
19
|
};
|
|
@@ -20,22 +24,98 @@ export declare class PluginActionConfigurationComponent implements OnInit, OnDes
|
|
|
20
24
|
readonly functionKey$: Observable<string>;
|
|
21
25
|
readonly save$: Observable<any>;
|
|
22
26
|
readonly saving$: Observable<boolean>;
|
|
27
|
+
readonly isExternalPlugin$: Observable<boolean>;
|
|
28
|
+
readonly currentStepId$: Observable<"" | import("@valtimo/process-link").ProcessLinkConfigurationStep>;
|
|
29
|
+
readonly selectedFunction$: Observable<PluginFunction>;
|
|
30
|
+
/**
|
|
31
|
+
* The selected external action's declared `outputs`, resolved from the selected function when
|
|
32
|
+
* available and falling back to a manifest lookup (edit mode: `loadExternalPluginStateForProcessLink`
|
|
33
|
+
* only sets the selected function's `key`, not its `outputs`). Passed to the mappings editor as
|
|
34
|
+
* `sourceKeys` — a dropdown of these keys replaces the free-text pointer input.
|
|
35
|
+
*/
|
|
36
|
+
readonly selectedFunctionOutputs$: Observable<Array<string>>;
|
|
37
|
+
/**
|
|
38
|
+
* True when the selected external action declares `outputs` in its manifest — the only case the
|
|
39
|
+
* dedicated output-mapping step (and its Next/Save button swap) applies. Embedded actions have
|
|
40
|
+
* no declaration mechanism and never carry this.
|
|
41
|
+
*/
|
|
42
|
+
readonly hasResultMappingsStep$: Observable<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* True when the external plugin is being linked to a user task: the plugin contributes a
|
|
45
|
+
* `task-form` (rendered + completed by the plugin), not a service-task action. In that case this
|
|
46
|
+
* step has nothing to configure — the selected form is saved as an `external_plugin_task_form`
|
|
47
|
+
* link. Derived from the edited link's type (edit) or the activity being configured (create).
|
|
48
|
+
*/
|
|
49
|
+
readonly isTaskForm$: Observable<boolean>;
|
|
50
|
+
externalActionProperties: Record<string, unknown>;
|
|
51
|
+
externalActionPropertiesValid: boolean;
|
|
52
|
+
/** Reactive control backing the raw-JSON textarea fallback (no iframe bundle available). */
|
|
53
|
+
readonly externalActionPropertiesControl: FormControl<string>;
|
|
54
|
+
/**
|
|
55
|
+
* `actionResultMappings` (#771): row-based JSON-pointer -> value-resolver-target write-back
|
|
56
|
+
* rules for the action's return value, kept by `PluginActionResultMappingsComponent` and read
|
|
57
|
+
* here purely as a plain value (that component owns its own form state).
|
|
58
|
+
*/
|
|
59
|
+
actionResultMappings: Array<PluginActionResultMapping>;
|
|
60
|
+
private readonly _resultMappingsValid$;
|
|
61
|
+
/** URL for the process-link-action iframe bundle: undefined = loading, null = no bundle, string = bundle URL */
|
|
62
|
+
readonly externalActionBundleUrl$: BehaviorSubject<string>;
|
|
63
|
+
/** Emits true once the bundle URL lookup has completed */
|
|
64
|
+
readonly externalBundleResolved$: Observable<boolean>;
|
|
65
|
+
/** Prefill data for the iframe when editing an existing process link */
|
|
66
|
+
readonly externalActionPrefill$: BehaviorSubject<{
|
|
67
|
+
title: string;
|
|
68
|
+
configuration: Record<string, unknown>;
|
|
69
|
+
}>;
|
|
23
70
|
private readonly _prefillConfigurationSubject$;
|
|
24
71
|
private readonly _prefillConfiguration$;
|
|
25
72
|
readonly prefillConfiguration$: Observable<{
|
|
26
73
|
[key: string]: any;
|
|
27
74
|
}>;
|
|
75
|
+
/** Case/building-block route context, forwarded to the result-mapping target's value-path selector. */
|
|
76
|
+
readonly caseParams$: Observable<import("@valtimo/shared").CaseManagementParams>;
|
|
77
|
+
readonly buildingBlockParams$: Observable<import("@valtimo/shared").BuildingBlockManagementParams>;
|
|
28
78
|
private _subscriptions;
|
|
29
|
-
constructor(
|
|
79
|
+
constructor(_stateService: ProcessLinkStateService, _pluginStateService: PluginStateService, _buttonService: ProcessLinkButtonService, _stepService: ProcessLinkStepService, _processLinkService: ProcessLinkService, _externalPluginService: ExternalPluginService, _route: ActivatedRoute);
|
|
30
80
|
ngOnInit(): void;
|
|
31
81
|
ngOnDestroy(): void;
|
|
32
82
|
onValid(valid: boolean): void;
|
|
33
83
|
onConfiguration(configuration: PluginConfigurationData): void;
|
|
34
84
|
onImportConfiguration(configuration: ProcessLink['actionProperties']): void;
|
|
85
|
+
private handleExternalActionPropertiesChange;
|
|
86
|
+
onIframeConfigurationChanged(event: {
|
|
87
|
+
valid: boolean;
|
|
88
|
+
title: string;
|
|
89
|
+
data: Record<string, unknown>;
|
|
90
|
+
}): void;
|
|
91
|
+
/**
|
|
92
|
+
* The action-properties step's validity gates whichever button is visible on it: `Save` when the
|
|
93
|
+
* action has no pending output-mapping step, `Next` when it does (Save only appears on the
|
|
94
|
+
* mappings step in that case — see {@link openNextButtonSubscription}).
|
|
95
|
+
*/
|
|
96
|
+
private applyActionPropertiesValidity;
|
|
97
|
+
onActionResultMappingsChange(mappings: Array<PluginActionResultMapping>): void;
|
|
98
|
+
onActionResultMappingsValidityChange(valid: boolean): void;
|
|
99
|
+
/**
|
|
100
|
+
* Edit mode opens directly on the last step, bypassing `setConfigurePluginActionSteps()` (which
|
|
101
|
+
* normally decides whether the mappings step exists). `loadExternalPluginStateForProcessLink`
|
|
102
|
+
* only sets the selected function's `key` (no `outputs`), so this relies on
|
|
103
|
+
* {@link selectedFunctionOutputs$}'s manifest-lookup fallback to find the declared `outputs`.
|
|
104
|
+
*/
|
|
105
|
+
private openEditModeResultMappingsSubscription;
|
|
106
|
+
private resolveExternalActionBundleUrl;
|
|
35
107
|
private updateProcessLink;
|
|
36
108
|
private saveNewProcessLink;
|
|
37
109
|
private openBackButtonSubscription;
|
|
110
|
+
/**
|
|
111
|
+
* Distinct from {@link openBackButtonSubscription}: back from the output-mapping step returns to
|
|
112
|
+
* the (still-alive) properties step instead of `choosePluginAction`, guarded on this component's
|
|
113
|
+
* own step relevance the same way the other back-handlers guard on `!isEditing`.
|
|
114
|
+
*/
|
|
115
|
+
private openMappingsBackButtonSubscription;
|
|
116
|
+
private openNextButtonSubscription;
|
|
38
117
|
private openSaveButtonSubscription;
|
|
118
|
+
private saveExternalPluginProcessLink;
|
|
39
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<PluginActionConfigurationComponent, never>;
|
|
40
120
|
static ɵcmp: i0.ɵɵComponentDeclaration<PluginActionConfigurationComponent, "valtimo-plugin-action-configuration", never, { "selectedPluginConfiguration$": { "alias": "selectedPluginConfiguration$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
|
|
41
121
|
}
|
package/lib/components/plugin-action-configuration/plugin-action-configuration.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-action-configuration.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/plugin-action-configuration/plugin-action-configuration.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,YAAY,EAAS,SAAS,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;AACxF,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"plugin-action-configuration.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/plugin-action-configuration/plugin-action-configuration.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,YAAY,EAAS,SAAS,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;AACxF,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,eAAe,EAAiB,UAAU,EAAmB,MAAM,MAAM,CAAC;AAUlF,OAAO,EAEL,qBAAqB,EAGrB,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAKL,yBAAyB,EAIzB,WAAW,EACZ,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;;AAG/C,qBAMa,kCAAmC,YAAW,MAAM,EAAE,SAAS;IAsJxE,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAA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,CAAC,6BAA6B;yCAjhB1B,kCAAkC;2CAAlC,kCAAkC;CA+pB9C"}
|
package/lib/components/plugin-action-result-mappings/plugin-action-result-mappings.component.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormArray } from '@angular/forms';
|
|
3
|
+
import { SelectItem, ValuePathSelectorPrefix } from '@valtimo/components';
|
|
4
|
+
import { PluginActionResultMapping } from '../../models';
|
|
5
|
+
import { ResultMappingRowFormGroup, ResultMappingsFormGroup } from '../../models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PluginActionResultMappingsComponent implements OnInit, OnDestroy {
|
|
8
|
+
protected readonly testIds: {
|
|
9
|
+
readonly section: "pluginActionResultMappingsSection";
|
|
10
|
+
readonly row: "pluginActionResultMappingsRow";
|
|
11
|
+
readonly sourceInput: "pluginActionResultMappingsSourceInput";
|
|
12
|
+
readonly sourceSelectWrapper: "pluginActionResultMappingsSourceSelectWrapper";
|
|
13
|
+
readonly targetSelectWrapper: "pluginActionResultMappingsTargetSelectWrapper";
|
|
14
|
+
readonly addButton: "pluginActionResultMappingsAddButton";
|
|
15
|
+
readonly deleteButton: "pluginActionResultMappingsDeleteButton";
|
|
16
|
+
};
|
|
17
|
+
protected readonly ValuePathSelectorPrefix: typeof ValuePathSelectorPrefix;
|
|
18
|
+
private readonly formBuilder;
|
|
19
|
+
private readonly changeDetectorRef;
|
|
20
|
+
set mappings(value: Array<PluginActionResultMapping> | null | undefined);
|
|
21
|
+
caseDefinitionKey: string | null | undefined;
|
|
22
|
+
caseDefinitionVersionTag: string | null | undefined;
|
|
23
|
+
buildingBlockDefinitionKey: string | null | undefined;
|
|
24
|
+
buildingBlockDefinitionVersionTag: string | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Keys the selected external action declares in its manifest `outputs`. When non-empty, the
|
|
27
|
+
* source column renders as a dropdown restricted to these keys instead of a free-text JSON
|
|
28
|
+
* pointer — the persisted value is still an RFC 6901 pointer (`/` + key) so the backend handler
|
|
29
|
+
* stays untouched.
|
|
30
|
+
*/
|
|
31
|
+
set sourceKeys(value: Array<string> | null | undefined);
|
|
32
|
+
get sourceKeys(): Array<string>;
|
|
33
|
+
get hasDeclaredSourceKeys(): boolean;
|
|
34
|
+
get sourceKeyItems(): Array<SelectItem>;
|
|
35
|
+
private _sourceKeys;
|
|
36
|
+
private _sourceKeyItems;
|
|
37
|
+
mappingsChangeEvent: EventEmitter<PluginActionResultMapping[]>;
|
|
38
|
+
/**
|
|
39
|
+
* Emits whether the current rows are saveable: no rows at all is valid, but every present row
|
|
40
|
+
* must have both a source and a target.
|
|
41
|
+
*/
|
|
42
|
+
validityChangeEvent: EventEmitter<boolean>;
|
|
43
|
+
readonly mappingsForm: ResultMappingsFormGroup;
|
|
44
|
+
get mappingRows(): FormArray<ResultMappingRowFormGroup>;
|
|
45
|
+
/**
|
|
46
|
+
* Without a case or building-block context there is no document schema to browse, so the
|
|
47
|
+
* target falls back to a free-text value-resolver key (typically `pv:`) — the same degradation
|
|
48
|
+
* the building-block mapping step applies for independent processes.
|
|
49
|
+
*/
|
|
50
|
+
get hasDocumentContext(): boolean;
|
|
51
|
+
private _subscriptions;
|
|
52
|
+
private _refreshHandle;
|
|
53
|
+
private _destroyed;
|
|
54
|
+
ngOnInit(): void;
|
|
55
|
+
ngOnDestroy(): void;
|
|
56
|
+
addRow(): void;
|
|
57
|
+
deleteRow(index: number): void;
|
|
58
|
+
/**
|
|
59
|
+
* Deferred re-sync after rows or dropdown items change outside a user event (prefill, late
|
|
60
|
+
* manifest lookup): re-setting each control value once the current change-detection pass has
|
|
61
|
+
* finished makes the select components pick up selections they missed while initializing, and
|
|
62
|
+
* the explicit detectChanges renders it under OnPush. Mirrors the refresh
|
|
63
|
+
* `ConfigureBuildingBlockMappingsComponent` applies to its own rows.
|
|
64
|
+
*/
|
|
65
|
+
private scheduleControlRefresh;
|
|
66
|
+
private createRow;
|
|
67
|
+
private rebuildForm;
|
|
68
|
+
private currentMappings;
|
|
69
|
+
private isValid;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PluginActionResultMappingsComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PluginActionResultMappingsComponent, "valtimo-plugin-action-result-mappings", never, { "mappings": { "alias": "mappings"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "caseDefinitionVersionTag": { "alias": "caseDefinitionVersionTag"; "required": false; }; "buildingBlockDefinitionKey": { "alias": "buildingBlockDefinitionKey"; "required": false; }; "buildingBlockDefinitionVersionTag": { "alias": "buildingBlockDefinitionVersionTag"; "required": false; }; "sourceKeys": { "alias": "sourceKeys"; "required": false; }; }, { "mappingsChangeEvent": "mappingsChangeEvent"; "validityChangeEvent": "validityChangeEvent"; }, never, never, true, never>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=plugin-action-result-mappings.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-action-result-mappings.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/plugin-action-result-mappings/plugin-action-result-mappings.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAIL,YAAY,EAGZ,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,SAAS,EAIV,MAAM,gBAAgB,CAAC;AAUxB,OAAO,EAEL,UAAU,EAGV,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,yBAAyB,EAAC,MAAM,cAAc,CAAC;AACvD,OAAO,EAAC,yBAAyB,EAAE,uBAAuB,EAAC,MAAM,cAAc,CAAC;;AAGhF,qBAmBa,mCAAoC,YAAW,MAAM,EAAE,SAAS;IAC3E,SAAS,CAAC,QAAQ,CAAC,OAAO;;;;;;;;MAA0C;IACpE,SAAS,CAAC,QAAQ,CAAC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B,OAAO,CAAC,SAAS;IAWjB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,OAAO;yCAhLJ,mCAAmC;2CAAnC,mCAAmC;CAmL/C"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { PluginDefinition, PluginFunction, PluginManagementService, PluginService, PluginTranslationService } from '@valtimo/plugin';
|
|
2
|
+
import { ExternalPluginService, PluginDefinition, PluginFunction, PluginManagementService, PluginService, PluginTranslationService } from '@valtimo/plugin';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { PluginStateService, ProcessLinkButtonService, ProcessLinkStateService, ProcessLinkStepService } from '../../services';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SelectPluginActionComponent implements OnInit, OnDestroy {
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
8
|
+
private readonly _buttonService;
|
|
9
|
+
private readonly _injector;
|
|
10
|
+
private readonly _pluginManagementService;
|
|
11
|
+
private readonly _pluginService;
|
|
12
|
+
private readonly _pluginTranslationService;
|
|
13
|
+
private readonly _stateService;
|
|
14
|
+
private readonly _stepService;
|
|
15
|
+
private readonly _processLinkStateService;
|
|
16
|
+
private readonly _externalPluginService;
|
|
17
|
+
private readonly _translateService;
|
|
15
18
|
protected readonly testIds: {
|
|
16
19
|
readonly container: "selectPluginAction";
|
|
17
20
|
readonly tileGroup: "selectPluginActionTileGroup";
|
|
@@ -21,18 +24,26 @@ export declare class SelectPluginActionComponent implements OnInit, OnDestroy {
|
|
|
21
24
|
readonly pluginFunctions$: Observable<Array<PluginFunction> | undefined>;
|
|
22
25
|
readonly selectedPluginDefinition$: Observable<PluginDefinition>;
|
|
23
26
|
readonly selectedPluginFunction$: Observable<PluginFunction>;
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
readonly isExternalPlugin$: Observable<boolean>;
|
|
28
|
+
private readonly _subscriptions;
|
|
29
|
+
constructor(_buttonService: ProcessLinkButtonService, _injector: Injector, _pluginManagementService: PluginManagementService, _pluginService: PluginService, _pluginTranslationService: PluginTranslationService, _stateService: PluginStateService, _stepService: ProcessLinkStepService, _processLinkStateService: ProcessLinkStateService, _externalPluginService: ExternalPluginService, _translateService: TranslateService);
|
|
26
30
|
ngOnInit(): void;
|
|
27
31
|
ngOnDestroy(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Whether an external plugin action may be linked to the activity currently being configured. An
|
|
34
|
+
* action with no declared `activityTypes` is always shown. Otherwise it is shown when the current
|
|
35
|
+
* activity matches one of its declared types, or when none of its declared types are recognised
|
|
36
|
+
* (so an incomplete {@link ACTIVITY_TYPE_NAME_TO_VALUE} never hides a valid action).
|
|
37
|
+
*/
|
|
38
|
+
private _actionSupportsActivity;
|
|
28
39
|
selectFunction(pluginFunction: PluginFunction): void;
|
|
29
40
|
selected(event: {
|
|
30
41
|
value: string;
|
|
31
42
|
}): void;
|
|
32
43
|
stringify(object: object): string;
|
|
33
44
|
private sortByTranslatedTitle;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
45
|
+
private _openBackButtonSubscription;
|
|
46
|
+
private _openNextButtonSubscription;
|
|
36
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectPluginActionComponent, never>;
|
|
37
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectPluginActionComponent, "valtimo-select-plugin-action", never, {}, {}, never, never, false, never>;
|
|
38
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-plugin-action.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/select-plugin-action/select-plugin-action.component.ts"],"names":[],"mappings":"AAeA,OAAO,EAAY,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"select-plugin-action.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/select-plugin-action/select-plugin-action.component.ts"],"names":[],"mappings":"AAeA,OAAO,EAAY,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACrE,OAAO,EAEL,qBAAqB,EAGrB,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAA0B,UAAU,EAAmB,MAAM,MAAM,CAAC;AAI3E,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;;AAqBxB,qBAMa,2BAA4B,YAAW,MAAM,EAAE,SAAS;IAwFjE,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,yBAAyB;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IACzC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAhGpC,SAAS,CAAC,QAAQ,CAAC,OAAO;;;;MAAiC;IAC3D,SAAS,CAAC,QAAQ,CAAC,gBAAgB,6BAA4C;IAE/E,SAAgB,gBAAgB,EAAE,UAAU,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,CAuE7E;IAEF,SAAgB,yBAAyB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CACxB;IAC/C,SAAgB,uBAAuB,EAAE,UAAU,CAAC,cAAc,CAAC,CACtB;IAC7C,SAAgB,iBAAiB,EAAE,UAAU,CAAC,OAAO,CAAC,CAEpD;IAEF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsB;gBAGlC,cAAc,EAAE,wBAAwB,EACxC,SAAS,EAAE,QAAQ,EACnB,wBAAwB,EAAE,uBAAuB,EACjD,cAAc,EAAE,aAAa,EAC7B,yBAAyB,EAAE,wBAAwB,EACnD,aAAa,EAAE,kBAAkB,EACjC,YAAY,EAAE,sBAAsB,EACpC,wBAAwB,EAAE,uBAAuB,EACjD,sBAAsB,EAAE,qBAAqB,EAC7C,iBAAiB,EAAE,gBAAgB;IAG/C,QAAQ,IAAI,IAAI;IAKhB,WAAW,IAAI,IAAI;IAI1B;;;;;OAKG;IACH,OAAO,CAAC,uBAAuB;IAWxB,cAAc,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IAIpD,QAAQ,CAAC,KAAK,EAAE;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,IAAI;IAKtC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAIxC,OAAO,CAAC,qBAAqB;IAqB7B,OAAO,CAAC,2BAA2B;IAkBnC,OAAO,CAAC,2BAA2B;yCAlLxB,2BAA2B;2CAA3B,2BAA2B;CA8LvC"}
|
package/lib/components/select-plugin-configuration/select-plugin-configuration.component.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
3
|
import { PluginStateService } from '../../services/plugin-state.service';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { PluginConfiguration, PluginDefinition, PluginManagementService, PluginService, PluginTranslationService } from '@valtimo/plugin';
|
|
5
|
+
import { ExternalPluginService, PluginConfiguration, PluginDefinition, PluginManagementService, PluginService, PluginTranslationService } from '@valtimo/plugin';
|
|
5
6
|
import { ProcessLinkButtonService, ProcessLinkStateService, ProcessLinkStepService } from '../../services';
|
|
6
7
|
import { PluginListItem } from '../../models';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class SelectPluginConfigurationComponent implements OnInit, OnDestroy {
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly
|
|
14
|
-
private readonly
|
|
15
|
-
private readonly
|
|
10
|
+
private readonly _pluginManagementService;
|
|
11
|
+
private readonly _pluginStateService;
|
|
12
|
+
private readonly _pluginService;
|
|
13
|
+
private readonly _stateService;
|
|
14
|
+
private readonly _buttonService;
|
|
15
|
+
private readonly _stepService;
|
|
16
|
+
private readonly _pluginTranslationService;
|
|
17
|
+
private readonly _externalPluginService;
|
|
18
|
+
private readonly _translateService;
|
|
16
19
|
protected readonly testIds: {
|
|
17
20
|
readonly container: "selectPluginConfiguration";
|
|
18
21
|
readonly list: "selectPluginConfigurationList";
|
|
@@ -24,18 +27,18 @@ export declare class SelectPluginConfigurationComponent implements OnInit, OnDes
|
|
|
24
27
|
readonly columnHeaderText$: Observable<"pluginManagement.labels.pluginName" | "pluginManagement.labels.configurationName">;
|
|
25
28
|
readonly selectedPluginConfiguration$: Observable<PluginConfiguration>;
|
|
26
29
|
readonly selectedPluginDefinition$: Observable<PluginDefinition>;
|
|
27
|
-
private _subscriptions;
|
|
28
|
-
private
|
|
29
|
-
constructor(
|
|
30
|
+
private readonly _subscriptions;
|
|
31
|
+
private _pluginDefinitionsCache;
|
|
32
|
+
constructor(_pluginManagementService: PluginManagementService, _pluginStateService: PluginStateService, _pluginService: PluginService, _stateService: ProcessLinkStateService, _buttonService: ProcessLinkButtonService, _stepService: ProcessLinkStepService, _pluginTranslationService: PluginTranslationService, _externalPluginService: ExternalPluginService, _translateService: TranslateService);
|
|
30
33
|
ngOnInit(): void;
|
|
31
34
|
ngOnDestroy(): void;
|
|
32
35
|
selected(event: {
|
|
33
36
|
value: PluginConfiguration | string;
|
|
34
37
|
}): void;
|
|
35
|
-
private
|
|
36
|
-
private
|
|
37
|
-
private
|
|
38
|
-
private
|
|
38
|
+
private _selectConfiguration;
|
|
39
|
+
private _selectDefinition;
|
|
40
|
+
private _openBackButtonSubscription;
|
|
41
|
+
private _openNextButtonSubscription;
|
|
39
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectPluginConfigurationComponent, never>;
|
|
40
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectPluginConfigurationComponent, "valtimo-select-plugin-configuration", never, {}, {}, never, never, false, never>;
|
|
41
44
|
}
|
package/lib/components/select-plugin-configuration/select-plugin-configuration.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-plugin-configuration.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/select-plugin-configuration/select-plugin-configuration.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"select-plugin-configuration.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/select-plugin-configuration/select-plugin-configuration.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAC,kBAAkB,EAAC,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAgB,UAAU,EAAmB,MAAM,MAAM,CAAC;AACjE,OAAO,EAGL,qBAAqB,EAIrB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,wBAAwB,EAEzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,wBAA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AAK,EAAE;QAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAAA;KAAC,GAAG,IAAI;IAanE,OAAO,CAAC,oBAAoB;IAQ5B,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,2BAA2B;IAanC,OAAO,CAAC,2BAA2B;yCAjOxB,kCAAkC;2CAAlC,kCAAkC;CA6O9C"}
|
|
@@ -55,4 +55,13 @@ export declare const BB_MAPPINGS_TEST_IDS: {
|
|
|
55
55
|
readonly inputTargetSelectWrapper: "bbMappingsInputTargetSelectWrapper";
|
|
56
56
|
readonly outputSourceSelectWrapper: "bbMappingsOutputSourceSelectWrapper";
|
|
57
57
|
};
|
|
58
|
+
export declare const PLUGIN_ACTION_RESULT_MAPPINGS_TEST_IDS: {
|
|
59
|
+
readonly section: "pluginActionResultMappingsSection";
|
|
60
|
+
readonly row: "pluginActionResultMappingsRow";
|
|
61
|
+
readonly sourceInput: "pluginActionResultMappingsSourceInput";
|
|
62
|
+
readonly sourceSelectWrapper: "pluginActionResultMappingsSourceSelectWrapper";
|
|
63
|
+
readonly targetSelectWrapper: "pluginActionResultMappingsTargetSelectWrapper";
|
|
64
|
+
readonly addButton: "pluginActionResultMappingsAddButton";
|
|
65
|
+
readonly deleteButton: "pluginActionResultMappingsDeleteButton";
|
|
66
|
+
};
|
|
58
67
|
//# sourceMappingURL=process-link.test-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-link.test-ids.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/constants/process-link.test-ids.ts"],"names":[],"mappings":"AAgBA,mEAAmE;AACnE,eAAO,MAAM,2BAA2B;;;;;;;;;CAS9B,CAAC;AAEX,eAAO,MAAM,kCAAkC;;CAErC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,uCAAuC,2BAA2B,CAAC;AAEhF,eAAO,MAAM,oCAAoC;;;CAGvC,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,8CAA8C,kCAAkC,CAAC;AAE9F,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wCAAwC,4BAA4B,CAAC;AAElF,eAAO,MAAM,oCAAoC;;CAEvC,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAavB,CAAC"}
|
|
1
|
+
{"version":3,"file":"process-link.test-ids.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/constants/process-link.test-ids.ts"],"names":[],"mappings":"AAgBA,mEAAmE;AACnE,eAAO,MAAM,2BAA2B;;;;;;;;;CAS9B,CAAC;AAEX,eAAO,MAAM,kCAAkC;;CAErC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,uCAAuC,2BAA2B,CAAC;AAEhF,eAAO,MAAM,oCAAoC;;;CAGvC,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,8CAA8C,kCAAkC,CAAC;AAE9F,eAAO,MAAM,6BAA6B;;;;CAIhC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wCAAwC,4BAA4B,CAAC;AAElF,eAAO,MAAM,oCAAoC;;CAEvC,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAavB,CAAC;AAEX,eAAO,MAAM,sCAAsC;;;;;;;;CAQzC,CAAC"}
|
|
@@ -2,5 +2,7 @@ import { FormSize } from '../models';
|
|
|
2
2
|
import { CarbonModalSize } from '@valtimo/components';
|
|
3
3
|
declare const formSizeToCarbonModalSizeMap: Record<FormSize, CarbonModalSize>;
|
|
4
4
|
declare const UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK: string[];
|
|
5
|
-
|
|
5
|
+
/** The `activityListenerType` the BPMN editor reports for a user task. */
|
|
6
|
+
declare const USER_TASK_ACTIVITY = "bpmn:UserTask:create";
|
|
7
|
+
export { formSizeToCarbonModalSizeMap, UNSUPPORTED_PROCESS_LINK_TYPES_IN_BUILDING_BLOCK, USER_TASK_ACTIVITY, };
|
|
6
8
|
//# sourceMappingURL=process.link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.link.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/constants/process.link.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,QAAA,MAAM,4BAA4B,EAAE,MAAM,CAAC,QAAQ,EAAE,eAAe,CAKnE,CAAC;AAEF,QAAA,MAAM,gDAAgD,UAAmB,CAAC;AAE1E,OAAO,
|
|
1
|
+
{"version":3,"file":"process.link.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/constants/process.link.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,QAAA,MAAM,4BAA4B,EAAE,MAAM,CAAC,QAAQ,EAAE,eAAe,CAKnE,CAAC;AAEF,QAAA,MAAM,gDAAgD,UAAmB,CAAC;AAE1E,0EAA0E;AAC1E,QAAA,MAAM,kBAAkB,yBAAyB,CAAC;AAElD,OAAO,EACL,4BAA4B,EAC5B,gDAAgD,EAChD,kBAAkB,GACnB,CAAC"}
|
|
@@ -19,5 +19,12 @@ type InputsFormGroup = FormGroup<{
|
|
|
19
19
|
type OutputsFormGroup = FormGroup<{
|
|
20
20
|
outputs: FormArray<OutputRowFormGroup>;
|
|
21
21
|
}>;
|
|
22
|
-
|
|
22
|
+
type ResultMappingRowFormGroup = FormGroup<{
|
|
23
|
+
source: FormControl<string>;
|
|
24
|
+
target: FormControl<string>;
|
|
25
|
+
}>;
|
|
26
|
+
type ResultMappingsFormGroup = FormGroup<{
|
|
27
|
+
mappings: FormArray<ResultMappingRowFormGroup>;
|
|
28
|
+
}>;
|
|
29
|
+
export { BuildingBlockField, InputsFormGroup, OutputsFormGroup, InputRowFormGroup, OutputRowFormGroup, ResultMappingRowFormGroup, ResultMappingsFormGroup, };
|
|
23
30
|
//# sourceMappingURL=building-block-field.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"building-block-field.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/models/building-block-field.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,iBAAiB,GAAG,SAAS,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC,CAAC;AAEH,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAClC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,uBAAuB,CAAC,CAAC;CAClD,CAAC,CAAC;AAEH,KAAK,eAAe,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;CACtC,CAAC,CAAC;AAEH,KAAK,gBAAgB,GAAG,SAAS,CAAC;IAChC,OAAO,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;CACxC,CAAC,CAAC;AAEH,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"building-block-field.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/models/building-block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1
|
+
type PluginRequirementSource = 'EMBEDDED' | 'EXTERNAL';
|
|
1
2
|
interface PluginsWithDependencies {
|
|
2
3
|
plugins: {
|
|
3
4
|
pluginDefinitionKey: string;
|
|
4
5
|
dependencies: {
|
|
5
6
|
key: string;
|
|
6
7
|
}[];
|
|
8
|
+
source?: PluginRequirementSource;
|
|
9
|
+
pluginDefinitionVersion?: string | null;
|
|
7
10
|
}[];
|
|
8
11
|
}
|
|
9
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A single plugin requirement resolved for a building block, keyed by the
|
|
14
|
+
* `pluginConfigurationMappings` entry it maps to. `mappingKey` is the plain `pluginDefinitionKey`
|
|
15
|
+
* for embedded requirements, or the namespaced `external-plugin:<pluginId>@<version>` key (D2) for
|
|
16
|
+
* external requirements — see `BuildingBlockStateService`.
|
|
17
|
+
*/
|
|
18
|
+
interface RequiredPlugin {
|
|
19
|
+
mappingKey: string;
|
|
20
|
+
pluginDefinitionKey: string;
|
|
21
|
+
pluginDefinitionVersion: string | null;
|
|
22
|
+
source: PluginRequirementSource;
|
|
23
|
+
}
|
|
24
|
+
export { PluginRequirementSource, PluginsWithDependencies, RequiredPlugin };
|
|
10
25
|
//# sourceMappingURL=plugin.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/models/plugin.model.ts"],"names":[],"mappings":"AAgBA,UAAU,uBAAuB;IAC/B,OAAO,EAAE;QACP,mBAAmB,EAAE,MAAM,CAAC;QAC5B,YAAY,EAAE;YACZ,GAAG,EAAE,MAAM,CAAC;SACb,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/models/plugin.model.ts"],"names":[],"mappings":"AAgBA,KAAK,uBAAuB,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvD,UAAU,uBAAuB;IAC/B,OAAO,EAAE;QACP,mBAAmB,EAAE,MAAM,CAAC;QAC5B,YAAY,EAAE;YACZ,GAAG,EAAE,MAAM,CAAC;SACb,EAAE,CAAC;QACJ,MAAM,CAAC,EAAE,uBAAuB,CAAC;QACjC,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC,EAAE,CAAC;CACL;AAED;;;;;GAKG;AACH,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,uBAAuB,CAAC;CACjC;AAED,OAAO,EAAC,uBAAuB,EAAE,uBAAuB,EAAE,cAAc,EAAC,CAAC"}
|