@valtimo/task 10.8.1 → 10.8.3
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/esm2020/lib/task-detail-modal/task-detail-modal.component.mjs +67 -50
- package/fesm2015/valtimo-task.mjs +65 -48
- package/fesm2015/valtimo-task.mjs.map +1 -1
- package/fesm2020/valtimo-task.mjs +65 -48
- package/fesm2020/valtimo-task.mjs.map +1 -1
- package/lib/task-detail-modal/task-detail-modal.component.d.ts +14 -14
- package/lib/task-detail-modal/task-detail-modal.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -288,20 +288,26 @@ class TaskDetailModalComponent {
|
|
|
288
288
|
this.translateService = translateService;
|
|
289
289
|
this.formSubmit = new EventEmitter();
|
|
290
290
|
this.assignmentOfTaskChanged = new EventEmitter();
|
|
291
|
-
this.task = null;
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
291
|
+
this.task$ = new BehaviorSubject(null);
|
|
292
|
+
this.formDefinition$ = new BehaviorSubject(undefined);
|
|
293
|
+
this.formFlowInstanceId$ = new BehaviorSubject(undefined);
|
|
294
|
+
this.page$ = new BehaviorSubject(null);
|
|
295
|
+
this.formioOptions$ = new BehaviorSubject(null);
|
|
296
|
+
this.errorMessage$ = new BehaviorSubject(undefined);
|
|
294
297
|
this.isAdmin$ = this.userProviderService
|
|
295
298
|
.getUserSubject()
|
|
296
299
|
.pipe(map(userIdentity => { var _a; return (_a = userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.roles) === null || _a === void 0 ? void 0 : _a.includes('ROLE_ADMIN'); }));
|
|
300
|
+
this.formIoFormData$ = new BehaviorSubject(null);
|
|
301
|
+
this.loading$ = new BehaviorSubject(true);
|
|
297
302
|
this.taskProcessLinkType$ = new BehaviorSubject(null);
|
|
298
303
|
this.processLinkIsForm$ = this.taskProcessLinkType$.pipe(map(type => type === 'form'));
|
|
299
304
|
this.processLinkIsFormFlow$ = this.taskProcessLinkType$.pipe(map(type => type === 'form-flow'));
|
|
300
|
-
this.
|
|
305
|
+
this.formAssociation$ = new BehaviorSubject(undefined);
|
|
306
|
+
this.processLinkId$ = new BehaviorSubject(undefined);
|
|
301
307
|
this._subscriptions = new Subscription();
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
this.formioOptions
|
|
308
|
+
const options = new FormioOptionsImpl();
|
|
309
|
+
options.disableAlerts = true;
|
|
310
|
+
this.formioOptions$.next(options);
|
|
305
311
|
}
|
|
306
312
|
ngAfterViewInit() {
|
|
307
313
|
this._subscriptions.add(this.modal.modalShowing$
|
|
@@ -324,19 +330,19 @@ class TaskDetailModalComponent {
|
|
|
324
330
|
this.setDocumentDefinitionNameInService(task);
|
|
325
331
|
const documentId = task.businessKey;
|
|
326
332
|
this.stateService.setDocumentId(documentId);
|
|
327
|
-
this.task
|
|
328
|
-
this.page
|
|
333
|
+
this.task$.next(task);
|
|
334
|
+
this.page$.next({
|
|
329
335
|
title: task.name,
|
|
330
336
|
subtitle: `${this.translateService.instant('taskDetail.taskCreated')} ${task.created}`,
|
|
331
|
-
};
|
|
337
|
+
});
|
|
332
338
|
//only load from formlink when process link failed for backwards compatibility
|
|
333
339
|
if (!this.taskProcessLinkType$.getValue()) {
|
|
334
340
|
this.formLinkService
|
|
335
341
|
.getPreFilledFormDefinitionByFormLinkId(task.processDefinitionKey, documentId, task.taskDefinitionKey, task.id // taskInstanceId
|
|
336
342
|
)
|
|
337
343
|
.subscribe(formDefinition => {
|
|
338
|
-
this.formAssociation
|
|
339
|
-
const className =
|
|
344
|
+
this.formAssociation$.next(formDefinition.formAssociation);
|
|
345
|
+
const className = formDefinition.formAssociation.formLink.className.split('.');
|
|
340
346
|
const linkType = className[className.length - 1];
|
|
341
347
|
switch (linkType) {
|
|
342
348
|
case 'BpmnElementFormIdLink':
|
|
@@ -359,7 +365,7 @@ class TaskDetailModalComponent {
|
|
|
359
365
|
}, errors => {
|
|
360
366
|
var _a;
|
|
361
367
|
if ((_a = errors === null || errors === void 0 ? void 0 : errors.error) === null || _a === void 0 ? void 0 : _a.detail) {
|
|
362
|
-
this.errorMessage
|
|
368
|
+
this.errorMessage$.next(errors.error.detail);
|
|
363
369
|
}
|
|
364
370
|
this.modal.show();
|
|
365
371
|
});
|
|
@@ -378,32 +384,49 @@ class TaskDetailModalComponent {
|
|
|
378
384
|
if (submission.data) {
|
|
379
385
|
this.formIoFormData$.next(submission.data);
|
|
380
386
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
+
combineLatest([
|
|
388
|
+
this.processLinkId$,
|
|
389
|
+
this.taskProcessLinkType$,
|
|
390
|
+
this.task$,
|
|
391
|
+
this.formAssociation$,
|
|
392
|
+
])
|
|
393
|
+
.pipe(take(1))
|
|
394
|
+
.subscribe(([processLinkId, taskProcessLinkType, task, formAssociation]) => {
|
|
395
|
+
if (taskProcessLinkType === 'form') {
|
|
396
|
+
if (processLinkId) {
|
|
397
|
+
this.processLinkService
|
|
398
|
+
.submitForm(processLinkId, submission.data, task.businessKey, task.id)
|
|
399
|
+
.subscribe({
|
|
400
|
+
next: (_) => {
|
|
401
|
+
this.completeTask();
|
|
402
|
+
},
|
|
403
|
+
error: errors => {
|
|
404
|
+
this.form.showErrors(errors);
|
|
405
|
+
},
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
this.formLinkService
|
|
410
|
+
.onSubmit(task.processDefinitionKey, formAssociation.formLink.id, submission.data, task.businessKey, task.id)
|
|
411
|
+
.subscribe((_) => {
|
|
387
412
|
this.completeTask();
|
|
388
|
-
},
|
|
389
|
-
error: errors => {
|
|
413
|
+
}, errors => {
|
|
390
414
|
this.form.showErrors(errors);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
this.formLinkService
|
|
396
|
-
.onSubmit(this.task.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.task.businessKey, this.task.id)
|
|
397
|
-
.subscribe((_) => {
|
|
398
|
-
this.completeTask();
|
|
399
|
-
}, errors => {
|
|
400
|
-
this.form.showErrors(errors);
|
|
401
|
-
});
|
|
415
|
+
});
|
|
416
|
+
}
|
|
402
417
|
}
|
|
403
|
-
}
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
completeTask() {
|
|
421
|
+
this.task$.pipe(take(1)).subscribe(task => {
|
|
422
|
+
this.toastr.success(`${task.name} ${this.translateService.instant('taskDetail.taskCompleted')}`);
|
|
423
|
+
this.modal.hide();
|
|
424
|
+
this.task$.next(null);
|
|
425
|
+
this.formSubmit.emit();
|
|
426
|
+
});
|
|
404
427
|
}
|
|
405
428
|
resetFormDefinition() {
|
|
406
|
-
this.formDefinition
|
|
429
|
+
this.formDefinition$.next(null);
|
|
407
430
|
this.loading$.next(true);
|
|
408
431
|
}
|
|
409
432
|
getTaskProcessLink(taskId) {
|
|
@@ -413,12 +436,12 @@ class TaskDetailModalComponent {
|
|
|
413
436
|
switch (res === null || res === void 0 ? void 0 : res.type) {
|
|
414
437
|
case 'form':
|
|
415
438
|
this.taskProcessLinkType$.next('form');
|
|
416
|
-
this.processLinkId
|
|
439
|
+
this.processLinkId$.next(res.processLinkId);
|
|
417
440
|
this.setFormDefinitionAndOpenModal(res.properties.prefilledForm);
|
|
418
441
|
break;
|
|
419
442
|
case 'form-flow':
|
|
420
443
|
this.taskProcessLinkType$.next('form-flow');
|
|
421
|
-
this.formFlowInstanceId
|
|
444
|
+
this.formFlowInstanceId$.next(res.properties.formFlowInstanceId);
|
|
422
445
|
break;
|
|
423
446
|
}
|
|
424
447
|
this.loading$.next(false);
|
|
@@ -432,12 +455,6 @@ class TaskDetailModalComponent {
|
|
|
432
455
|
},
|
|
433
456
|
});
|
|
434
457
|
}
|
|
435
|
-
completeTask() {
|
|
436
|
-
this.toastr.success(`${this.task.name} ${this.translateService.instant('taskDetail.taskCompleted')}`);
|
|
437
|
-
this.modal.hide();
|
|
438
|
-
this.task = null;
|
|
439
|
-
this.formSubmit.emit();
|
|
440
|
-
}
|
|
441
458
|
getLegacyTaskProcessLink(taskId) {
|
|
442
459
|
this.taskService.getTaskProcessLinkV1(taskId).subscribe(resV1 => {
|
|
443
460
|
switch (resV1 === null || resV1 === void 0 ? void 0 : resV1.type) {
|
|
@@ -446,7 +463,7 @@ class TaskDetailModalComponent {
|
|
|
446
463
|
break;
|
|
447
464
|
case 'form-flow':
|
|
448
465
|
this.taskProcessLinkType$.next('form-flow');
|
|
449
|
-
this.formFlowInstanceId
|
|
466
|
+
this.formFlowInstanceId$.next(resV1.properties.formFlowInstanceId);
|
|
450
467
|
break;
|
|
451
468
|
}
|
|
452
469
|
this.loading$.next(false);
|
|
@@ -454,12 +471,12 @@ class TaskDetailModalComponent {
|
|
|
454
471
|
}
|
|
455
472
|
resetTaskProcessLinkType() {
|
|
456
473
|
this.taskProcessLinkType$.next(null);
|
|
457
|
-
this.processLinkId
|
|
458
|
-
this.formAssociation
|
|
474
|
+
this.processLinkId$.next(null);
|
|
475
|
+
this.formAssociation$.next(null);
|
|
459
476
|
}
|
|
460
477
|
setFormDefinitionAndOpenModal(formDefinition) {
|
|
461
478
|
this.taskProcessLinkType$.next('form');
|
|
462
|
-
this.formDefinition
|
|
479
|
+
this.formDefinition$.next(formDefinition);
|
|
463
480
|
this.modal.show();
|
|
464
481
|
}
|
|
465
482
|
openUrlLink(formDefinition) {
|
|
@@ -486,10 +503,10 @@ class TaskDetailModalComponent {
|
|
|
486
503
|
}
|
|
487
504
|
}
|
|
488
505
|
TaskDetailModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TaskDetailModalComponent, deps: [{ token: i1$1.ToastrService }, { token: i2$2.FormLinkService }, { token: i2$2.ProcessLinkService }, { token: i2$2.FormFlowService }, { token: i3.Router }, { token: i4$1.NGXLogger }, { token: i3.ActivatedRoute }, { token: TaskService }, { token: i6.UserProviderService }, { token: i7.ValtimoModalService }, { token: i7.FormIoStateService }, { token: i8.DocumentService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
489
|
-
TaskDetailModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: { formSubmit: "formSubmit", assignmentOfTaskChanged: "assignmentOfTaskChanged" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }, { propertyName: "formFlow", first: true, predicate: ["formFlow"], descendants: true }, { propertyName: "modal", first: true, predicate: ["taskDetailModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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-modal\n #taskDetailModal\n *ngIf=\"{\n loading: loading$ | async\n } as obs\"\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div body *ngIf=\"formDefinition &&
|
|
506
|
+
TaskDetailModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: { formSubmit: "formSubmit", assignmentOfTaskChanged: "assignmentOfTaskChanged" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }, { propertyName: "formFlow", first: true, predicate: ["formFlow"], descendants: true }, { propertyName: "modal", first: true, predicate: ["taskDetailModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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-modal\n #taskDetailModal\n *ngIf=\"{\n loading: loading$ | async,\n page: page$ | async,\n task: task$ | async,\n formDefinition: formDefinition$ | async,\n processLinkIsForm: processLinkIsForm$ | async,\n formioOptions: formioOptions$ | async,\n processLinkIsFormFlow: processLinkIsFormFlow$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async,\n errorMessage: errorMessage$ | async\n } as obs\"\n elementId=\"taskDetailModal\"\n [title]=\"obs.page?.title\"\n [subtitle]=\"obs.page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div body *ngIf=\"obs.formDefinition && obs.processLinkIsForm\">\n <valtimo-form-io\n #form\n [form]=\"obs.formDefinition\"\n (submit)=\"onSubmit($event)\"\n (change)=\"onChange($event)\"\n [options]=\"obs.formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"obs.processLinkIsFormFlow\">\n <valtimo-form-flow\n #formFlow\n [formIoFormData]=\"formIoFormData$\"\n [formFlowInstanceId]=\"obs.formFlowInstanceId\"\n (formFlowComplete)=\"completeTask()\"\n ></valtimo-form-flow>\n </div>\n <div body *ngIf=\"obs.loading\">\n <div class=\"text-black mb-0 p-3 text-center\">\n {{ 'formManagement.loading' | translate }}\n </div>\n </div>\n <div\n body\n *ngIf=\"\n obs.loading === false && !obs.formDefinition && !obs.formFlowInstanceId && !obs.errorMessage\n \"\n >\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n </div>\n <div body *ngIf=\"obs.errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ obs.errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!!obs.formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <ng-container *ngIf=\"task$ | async as task\">\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n </ng-container>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */#taskDetailModal .formio-component-submit{text-align:right}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change"] }, { kind: "component", type: i7.ModalComponent, selector: "valtimo-modal", inputs: ["elementId", "title", "subtitle", "templateBelowSubtitle", "showFooter"] }, { kind: "component", type: i2$2.FormFlowComponent, selector: "valtimo-form-flow", inputs: ["formIoFormData", "formFlowInstanceId"], outputs: ["formFlowComplete"] }, { kind: "component", type: AssignUserToTaskComponent, selector: "valtimo-assign-user-to-task", inputs: ["taskId", "assigneeEmail"], outputs: ["assignmentOfTaskChanged"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
490
507
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TaskDetailModalComponent, decorators: [{
|
|
491
508
|
type: Component,
|
|
492
|
-
args: [{ selector: 'valtimo-task-detail-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2023 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-modal\n #taskDetailModal\n *ngIf=\"{\n loading: loading$ | async\n } as obs\"\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div body *ngIf=\"formDefinition &&
|
|
509
|
+
args: [{ selector: 'valtimo-task-detail-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2023 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-modal\n #taskDetailModal\n *ngIf=\"{\n loading: loading$ | async,\n page: page$ | async,\n task: task$ | async,\n formDefinition: formDefinition$ | async,\n processLinkIsForm: processLinkIsForm$ | async,\n formioOptions: formioOptions$ | async,\n processLinkIsFormFlow: processLinkIsFormFlow$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async,\n errorMessage: errorMessage$ | async\n } as obs\"\n elementId=\"taskDetailModal\"\n [title]=\"obs.page?.title\"\n [subtitle]=\"obs.page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div body *ngIf=\"obs.formDefinition && obs.processLinkIsForm\">\n <valtimo-form-io\n #form\n [form]=\"obs.formDefinition\"\n (submit)=\"onSubmit($event)\"\n (change)=\"onChange($event)\"\n [options]=\"obs.formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"obs.processLinkIsFormFlow\">\n <valtimo-form-flow\n #formFlow\n [formIoFormData]=\"formIoFormData$\"\n [formFlowInstanceId]=\"obs.formFlowInstanceId\"\n (formFlowComplete)=\"completeTask()\"\n ></valtimo-form-flow>\n </div>\n <div body *ngIf=\"obs.loading\">\n <div class=\"text-black mb-0 p-3 text-center\">\n {{ 'formManagement.loading' | translate }}\n </div>\n </div>\n <div\n body\n *ngIf=\"\n obs.loading === false && !obs.formDefinition && !obs.formFlowInstanceId && !obs.errorMessage\n \"\n >\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n </div>\n <div body *ngIf=\"obs.errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ obs.errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!!obs.formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <ng-container *ngIf=\"task$ | async as task\">\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n </ng-container>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */#taskDetailModal .formio-component-submit{text-align:right}\n"] }]
|
|
493
510
|
}], ctorParameters: function () { return [{ type: i1$1.ToastrService }, { type: i2$2.FormLinkService }, { type: i2$2.ProcessLinkService }, { type: i2$2.FormFlowService }, { type: i3.Router }, { type: i4$1.NGXLogger }, { type: i3.ActivatedRoute }, { type: TaskService }, { type: i6.UserProviderService }, { type: i7.ValtimoModalService }, { type: i7.FormIoStateService }, { type: i8.DocumentService }, { type: i4.TranslateService }]; }, propDecorators: { form: [{
|
|
494
511
|
type: ViewChild,
|
|
495
512
|
args: ['form']
|