@valtimo/process-link 13.41.0 → 13.43.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 +24 -14
- package/fesm2022/valtimo-process-link.mjs.map +1 -1
- package/lib/components/form-flow/form-flow.component.d.ts +2 -3
- package/lib/components/form-flow/form-flow.component.d.ts.map +1 -1
- package/lib/services/process-link.service.d.ts +1 -0
- package/lib/services/process-link.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -620,7 +620,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
620
620
|
}], ctorParameters: () => [{ type: i1$1.PluginManagementService }, { type: i1$1.PluginService }] });
|
|
621
621
|
|
|
622
622
|
/*
|
|
623
|
-
* Copyright 2015-
|
|
623
|
+
* Copyright 2015-2026 Ritense BV, the Netherlands.
|
|
624
624
|
*
|
|
625
625
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
626
626
|
* you may not use this file except in compliance with the License.
|
|
@@ -784,6 +784,9 @@ class ProcessLinkService {
|
|
|
784
784
|
}
|
|
785
785
|
return object;
|
|
786
786
|
}
|
|
787
|
+
deleteAutofill(processDefinitionId, activityId) {
|
|
788
|
+
return this.http.delete(`${this.VALTIMO_ENDPOINT_URI}management/v1/process-definition/${processDefinitionId}/autofill/${activityId}`);
|
|
789
|
+
}
|
|
787
790
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
788
791
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProcessLinkService, providedIn: 'root' }); }
|
|
789
792
|
}
|
|
@@ -4330,9 +4333,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
4330
4333
|
*/
|
|
4331
4334
|
class FormFlowComponent {
|
|
4332
4335
|
set formFlowInstanceId(value) {
|
|
4336
|
+
if (this.formFlowInstanceId$.getValue() === value)
|
|
4337
|
+
return;
|
|
4333
4338
|
this.formFlowInstanceId$.next(value);
|
|
4334
|
-
|
|
4335
|
-
|
|
4339
|
+
// Hide the step of the previous instance until the new one has been loaded.
|
|
4340
|
+
this.formFlowStepType$.next(null);
|
|
4341
|
+
if (!value)
|
|
4342
|
+
return;
|
|
4343
|
+
this.getBreadcrumbs();
|
|
4344
|
+
this.getFormFlowStep();
|
|
4336
4345
|
}
|
|
4337
4346
|
constructor(formFlowService, modalService, translateService, configService) {
|
|
4338
4347
|
this.formFlowService = formFlowService;
|
|
@@ -4353,9 +4362,6 @@ class FormFlowComponent {
|
|
|
4353
4362
|
this.formioOptions = new FormioOptionsImpl();
|
|
4354
4363
|
this.formioOptions.disableAlerts = true;
|
|
4355
4364
|
}
|
|
4356
|
-
ngOnInit() {
|
|
4357
|
-
this.getFormFlowStep();
|
|
4358
|
-
}
|
|
4359
4365
|
ngOnDestroy() {
|
|
4360
4366
|
this._breadcrumbsSubscription?.unsubscribe();
|
|
4361
4367
|
}
|
|
@@ -4430,14 +4436,18 @@ class FormFlowComponent {
|
|
|
4430
4436
|
.subscribe(breadcrumbs => {
|
|
4431
4437
|
const classElement = document.getElementsByClassName('cds--progress-step--current');
|
|
4432
4438
|
this.currentStepIndex$.next(breadcrumbs.currentStepIndex);
|
|
4433
|
-
this.breadcrumbs$.next(breadcrumbs.breadcrumbs.map(breadcrumb =>
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4439
|
+
this.breadcrumbs$.next(breadcrumbs.breadcrumbs.map(breadcrumb => {
|
|
4440
|
+
const translationKey = `formFlow.step.${breadcrumb.key}.title`;
|
|
4441
|
+
// instant() returns the key itself when no translation exists
|
|
4442
|
+
const translatedTitle = this.translateService.instant(translationKey);
|
|
4443
|
+
return {
|
|
4444
|
+
label: breadcrumb.title ??
|
|
4445
|
+
(translatedTitle !== translationKey ? translatedTitle : breadcrumb.key),
|
|
4446
|
+
disabled: breadcrumb.stepInstanceId === null,
|
|
4447
|
+
complete: breadcrumb.completed,
|
|
4448
|
+
stepInstanceId: breadcrumb.stepInstanceId,
|
|
4449
|
+
};
|
|
4450
|
+
}));
|
|
4441
4451
|
if (classElement.length > 0) {
|
|
4442
4452
|
classElement[0].scrollIntoView({ behavior: 'smooth', inline: 'center' });
|
|
4443
4453
|
}
|