@valtimo/process-link 13.13.0 → 13.15.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 +85 -10
- package/fesm2022/valtimo-process-link.mjs.map +1 -1
- package/lib/components/configure-building-block-mappings/configure-building-block-mappings.component.d.ts +10 -2
- package/lib/components/configure-building-block-mappings/configure-building-block-mappings.component.d.ts.map +1 -1
- package/lib/services/process-link.service.d.ts +1 -1
- package/lib/services/process-link.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormArray, FormBuilder } from '@angular/forms';
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { BuildingBlockSyncTiming, InputRowFormGroup, InputsFormGroup, OutputRowFormGroup, OutputsFormGroup } from '../../models';
|
|
@@ -7,7 +7,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
7
7
|
import { SelectItem, ValuePathSelectorPrefix } from '@valtimo/components';
|
|
8
8
|
import { ActivatedRoute } from '@angular/router';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ConfigureBuildingBlockMappingsComponent implements OnInit, OnDestroy {
|
|
10
|
+
export declare class ConfigureBuildingBlockMappingsComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
11
11
|
private readonly fb;
|
|
12
12
|
private readonly buildingBlockStateService;
|
|
13
13
|
private readonly buttonService;
|
|
@@ -35,10 +35,12 @@ export declare class ConfigureBuildingBlockMappingsComponent implements OnInit,
|
|
|
35
35
|
readonly buildingBlockParams$: Observable<import("@valtimo/shared").BuildingBlockManagementParams>;
|
|
36
36
|
readonly ValuePathSelectorPrefix: typeof ValuePathSelectorPrefix;
|
|
37
37
|
readonly sourceIsCase$: BehaviorSubject<boolean>;
|
|
38
|
+
readonly sourceIsIndependent$: BehaviorSubject<boolean>;
|
|
38
39
|
/**
|
|
39
40
|
* Returns the name of the source/target context in mappings.
|
|
40
41
|
* When in a building block context, shows the parent building block name.
|
|
41
42
|
* When in a case context, shows the case name.
|
|
43
|
+
* When in an independent process context, shows the process label.
|
|
42
44
|
*/
|
|
43
45
|
readonly sourceContextName$: Observable<string>;
|
|
44
46
|
/**
|
|
@@ -48,11 +50,14 @@ export declare class ConfigureBuildingBlockMappingsComponent implements OnInit,
|
|
|
48
50
|
private readonly _subscriptions;
|
|
49
51
|
private _syncingFromState;
|
|
50
52
|
private _suppressValidation;
|
|
53
|
+
private _inputRefreshHandle;
|
|
54
|
+
private _destroyed;
|
|
51
55
|
get inputs(): FormArray<InputRowFormGroup>;
|
|
52
56
|
get outputs(): FormArray<OutputRowFormGroup>;
|
|
53
57
|
readonly allInputsMapped$: Observable<boolean>;
|
|
54
58
|
constructor(fb: FormBuilder, buildingBlockStateService: BuildingBlockStateService, buttonService: ProcessLinkButtonService, stepService: ProcessLinkStepService, processLinkService: ProcessLinkService, processLinkStateService: ProcessLinkStateService, translateService: TranslateService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, buildingBlockApiService: ProcessLinkBuildingBlockApiService, stateService: ProcessLinkStateService);
|
|
55
59
|
ngOnInit(): void;
|
|
60
|
+
ngAfterViewInit(): void;
|
|
56
61
|
ngOnDestroy(): void;
|
|
57
62
|
private createInputGroup;
|
|
58
63
|
private createOutputGroup;
|
|
@@ -61,6 +66,9 @@ export declare class ConfigureBuildingBlockMappingsComponent implements OnInit,
|
|
|
61
66
|
addOutput(source?: string): void;
|
|
62
67
|
deleteOutput(index: number): void;
|
|
63
68
|
private syncInputsFromState;
|
|
69
|
+
private syncInputsIfNeeded;
|
|
70
|
+
private applyMappingSources;
|
|
71
|
+
private queueInputSourceRefresh;
|
|
64
72
|
isSyncTimingSelected(group: OutputRowFormGroup, value: BuildingBlockSyncTiming): boolean;
|
|
65
73
|
private syncOutputsFromState;
|
|
66
74
|
private persistInputFormState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-building-block-mappings.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/configure-building-block-mappings/configure-building-block-mappings.component.ts"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"configure-building-block-mappings.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/process-link/src/lib/components/configure-building-block-mappings/configure-building-block-mappings.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,SAAS,EACT,MAAM,EACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,SAAS,EACT,WAAW,EAKZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,eAAe,EAAiB,UAAU,EAA8B,MAAM,MAAM,CAAC;AAE7F,OAAO,EAKL,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,yBAAyB,EACzB,kCAAkC,EAClC,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AASxB,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAEL,UAAU,EAGV,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;;AAE/C,qBAqBa,uCAAwC,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa;IAoL5F,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,yBAAyB;IAC1C,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC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AYzB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,kBAAkB;IAkB1B,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,iBAAiB;IA6BlB,gBAAgB,CACrB,MAAM,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAC,CAAC,GAAG,IAAI,EACvD,MAAM,EAAE,MAAM,GACb,OAAO;yCA3nBC,uCAAuC;2CAAvC,uCAAuC;CA+nBnD"}
|
|
@@ -14,7 +14,7 @@ export declare class ProcessLinkService {
|
|
|
14
14
|
getProcessLinkCandidates(activityType: string): Observable<Array<ProcessLinkType>>;
|
|
15
15
|
deployProcessWithProcessLinks(processLinks: ProcessLinkCreateEvent[], processDefinitionId: string | null, processXml: string | null): Observable<Object>;
|
|
16
16
|
deployProcessWithProcessLinksForCase(processLinks: ProcessLinkCreateEvent[], processDefinitionId: string | null, processXml: string | null, caseDefinitionKey: string, caseDefinitionVersionTag: string, canInitializeDocument?: boolean, startableByUser?: boolean): Observable<Object>;
|
|
17
|
-
deployProcessWithProcessLinksForBuildingBlock(processLinks: ProcessLinkCreateEvent[], processDefinitionId: string | null, processXml: string | null, buildingBlockKey: string, buildingBlockVersionTag: string): Observable<Object>;
|
|
17
|
+
deployProcessWithProcessLinksForBuildingBlock(processLinks: ProcessLinkCreateEvent[], processDefinitionId: string | null, processXml: string | null, buildingBlockKey: string, buildingBlockVersionTag: string, replace?: boolean): Observable<Object>;
|
|
18
18
|
submitForm(processLinkId: string, formData: object, documentId?: string, taskInstanceId?: string, documentDefinitionName?: string): Observable<FormSubmissionResult>;
|
|
19
19
|
submitURLProcessLink(processLinkId: string, documentId?: string, taskInstanceId?: string, documentDefinitionName?: string): Observable<FormSubmissionResult>;
|
|
20
20
|
getVariables(): Observable<URLVariables>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-link.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/services/process-link.service.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,UAAU,EAA0B,MAAM,sBAAsB,CAAC;AAEzE,OAAO,EAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"process-link.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/process-link/src/lib/services/process-link.service.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,UAAU,EAA0B,MAAM,sBAAsB,CAAC;AAEzE,OAAO,EAAC,aAAa,EAAkB,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAM,UAAU,EAAC,MAAM,MAAM,CAAC;AAErC,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;;AAE9D,qBAGa,kBAAkB;IAI3B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAJvB,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAU;gBAG5B,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,UAAU;IAK5B,wBAAwB,CAAC,iBAAiB,EAAE,MAAM,GAAG,UAAU,CAAC,mBAAmB,EAAE,CAAC;IAQtF,cAAc,CACnB,qBAAqB,EAAE,qBAAqB,GAC3C,UAAU,CAAC,sBAAsB,CAAC;IAa9B,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAMlF,6BAA6B,CAClC,YAAY,EAAE,sBAAsB,EAAO,EAC3C,mBAAmB,EAAE,MAAM,GAAG,IAAI,EAClC,UAAU,EAAE,MAAM,GAAG,IAAI;IAepB,oCAAoC,CACzC,YAAY,EAAE,sBAAsB,EAAO,EAC3C,mBAAmB,EAAE,MAAM,GAAG,IAAI,EAClC,UAAU,EA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