@valtimo/process-link 13.36.0 → 13.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/valtimo-process-link.mjs +19 -5
- package/fesm2022/valtimo-process-link.mjs.map +1 -1
- package/lib/components/select-form-flow/select-form-flow.component.d.ts +2 -0
- package/lib/components/select-form-flow/select-form-flow.component.d.ts.map +1 -1
- package/lib/models/process-link.model.d.ts +2 -0
- package/lib/models/process-link.model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3431,7 +3431,9 @@ class SelectFormFlowComponent {
|
|
|
3431
3431
|
}));
|
|
3432
3432
|
this._subscriptions = new Subscription();
|
|
3433
3433
|
this.isUserTask$ = new BehaviorSubject(false);
|
|
3434
|
+
this.isStartEvent$ = new BehaviorSubject(false);
|
|
3434
3435
|
this._DEFAULT_FORM_DISPLAY_TYPE = 'panel';
|
|
3436
|
+
this._DEFAULT_START_EVENT_FORM_DISPLAY_TYPE = 'modal';
|
|
3435
3437
|
this._DEFAULT_FORM_DISPLAY_SIZE = 'medium';
|
|
3436
3438
|
}
|
|
3437
3439
|
ngOnInit() {
|
|
@@ -3446,6 +3448,7 @@ class SelectFormFlowComponent {
|
|
|
3446
3448
|
this.formSizeValue = selectedProcessLink.formSize;
|
|
3447
3449
|
}
|
|
3448
3450
|
this.isUserTask$.next(modalParams?.element?.type === 'bpmn:UserTask');
|
|
3451
|
+
this.isStartEvent$.next(modalParams?.element?.type === 'bpmn:StartEvent');
|
|
3449
3452
|
}));
|
|
3450
3453
|
}
|
|
3451
3454
|
ngOnDestroy() {
|
|
@@ -3491,9 +3494,9 @@ class SelectFormFlowComponent {
|
|
|
3491
3494
|
});
|
|
3492
3495
|
}
|
|
3493
3496
|
updateProcessLink() {
|
|
3494
|
-
combineLatest([this.stateService.selectedProcessLink$, this.isUserTask$])
|
|
3497
|
+
combineLatest([this.stateService.selectedProcessLink$, this.isUserTask$, this.isStartEvent$])
|
|
3495
3498
|
.pipe(take(1))
|
|
3496
|
-
.subscribe(([selectedProcessLink, isUserTask]) => {
|
|
3499
|
+
.subscribe(([selectedProcessLink, isUserTask, isStartEvent]) => {
|
|
3497
3500
|
const updateProcessLinkRequest = {
|
|
3498
3501
|
id: selectedProcessLink.id,
|
|
3499
3502
|
formFlowDefinitionId: this.selectedFormFlowDefinitionId,
|
|
@@ -3501,7 +3504,12 @@ class SelectFormFlowComponent {
|
|
|
3501
3504
|
...(isUserTask && {
|
|
3502
3505
|
formDisplayType: this.formDisplayValue || this._DEFAULT_FORM_DISPLAY_TYPE,
|
|
3503
3506
|
}),
|
|
3504
|
-
...(
|
|
3507
|
+
...(isStartEvent && {
|
|
3508
|
+
formDisplayType: this.formDisplayValue || this._DEFAULT_START_EVENT_FORM_DISPLAY_TYPE,
|
|
3509
|
+
}),
|
|
3510
|
+
...((isUserTask || isStartEvent) && {
|
|
3511
|
+
formSize: this.formSizeValue || this._DEFAULT_FORM_DISPLAY_SIZE,
|
|
3512
|
+
}),
|
|
3505
3513
|
...(isUserTask && { subtitles: this.subtitlesValue }),
|
|
3506
3514
|
};
|
|
3507
3515
|
this.stateService.sendProcessLinkUpdateEvent(updateProcessLinkRequest);
|
|
@@ -3512,9 +3520,10 @@ class SelectFormFlowComponent {
|
|
|
3512
3520
|
this.stateService.modalParams$,
|
|
3513
3521
|
this.stateService.selectedProcessLinkTypeId$,
|
|
3514
3522
|
this.isUserTask$,
|
|
3523
|
+
this.isStartEvent$,
|
|
3515
3524
|
])
|
|
3516
3525
|
.pipe(take(1))
|
|
3517
|
-
.subscribe(([modalParams, processLinkTypeId, isUserTask]) => {
|
|
3526
|
+
.subscribe(([modalParams, processLinkTypeId, isUserTask, isStartEvent]) => {
|
|
3518
3527
|
const createRequest = {
|
|
3519
3528
|
formFlowDefinitionKey: this.selectedFormFlowDefinitionId,
|
|
3520
3529
|
activityType: modalParams.element.activityListenerType,
|
|
@@ -3524,7 +3533,12 @@ class SelectFormFlowComponent {
|
|
|
3524
3533
|
...(isUserTask && {
|
|
3525
3534
|
formDisplayType: this.formDisplayValue || this._DEFAULT_FORM_DISPLAY_TYPE,
|
|
3526
3535
|
}),
|
|
3527
|
-
...(
|
|
3536
|
+
...(isStartEvent && {
|
|
3537
|
+
formDisplayType: this.formDisplayValue || this._DEFAULT_START_EVENT_FORM_DISPLAY_TYPE,
|
|
3538
|
+
}),
|
|
3539
|
+
...((isUserTask || isStartEvent) && {
|
|
3540
|
+
formSize: this.formSizeValue || this._DEFAULT_FORM_DISPLAY_SIZE,
|
|
3541
|
+
}),
|
|
3528
3542
|
...(isUserTask && { subtitles: this.subtitlesValue }),
|
|
3529
3543
|
};
|
|
3530
3544
|
this.stateService.sendProcessLinkCreateEvent(createRequest);
|