@valtimo/task 12.6.1 → 12.8.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/esm2022/lib/components/task-detail-content/task-detail-content.component.mjs +77 -29
- package/fesm2022/valtimo-task.mjs +77 -29
- package/fesm2022/valtimo-task.mjs.map +1 -1
- package/lib/components/task-detail-content/task-detail-content.component.d.ts +18 -10
- package/lib/components/task-detail-content/task-detail-content.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { FormioForm } from '@formio/angular';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -6,15 +6,15 @@ import { PermissionService } from '@valtimo/access-control';
|
|
|
6
6
|
import { FormioComponent, FormIoStateService, FormioSubmission, ValtimoFormioOptions, ValtimoModalService } from '@valtimo/components';
|
|
7
7
|
import { ConfigService, FormViewModel } from '@valtimo/config';
|
|
8
8
|
import { DocumentService } from '@valtimo/document';
|
|
9
|
-
import { FormFlowComponent, ProcessLinkService, TaskWithProcessLink, UrlResolverService } from '@valtimo/process-link';
|
|
9
|
+
import { FormCustomComponentConfig, FormFlowComponent, ProcessLinkService, TaskWithProcessLink, UrlResolverService } from '@valtimo/process-link';
|
|
10
10
|
import { IconService } from 'carbon-components-angular';
|
|
11
11
|
import { NGXLogger } from 'ngx-logger';
|
|
12
12
|
import { ToastrService } from 'ngx-toastr';
|
|
13
|
-
import { BehaviorSubject } from 'rxjs';
|
|
13
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
14
14
|
import { Task } from '../../models';
|
|
15
15
|
import { TaskIntermediateSaveService, TaskService } from '../../services';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
|
-
export declare class TaskDetailContentComponent implements OnInit, OnDestroy {
|
|
17
|
+
export declare class TaskDetailContentComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
18
18
|
private readonly configService;
|
|
19
19
|
private readonly documentService;
|
|
20
20
|
private readonly iconService;
|
|
@@ -29,10 +29,12 @@ export declare class TaskDetailContentComponent implements OnInit, OnDestroy {
|
|
|
29
29
|
private readonly toastr;
|
|
30
30
|
private readonly translateService;
|
|
31
31
|
private readonly formViewModel;
|
|
32
|
+
private readonly formCustomComponentConfig;
|
|
32
33
|
private readonly urlResolverService;
|
|
33
34
|
form: FormioComponent;
|
|
34
35
|
formViewModelDynamicContainer: ViewContainerRef;
|
|
35
36
|
formFlow: FormFlowComponent;
|
|
37
|
+
formCustomComponentDynamicContainer: ViewContainerRef;
|
|
36
38
|
set task(value: Task | null);
|
|
37
39
|
set taskAndProcessLink(value: TaskWithProcessLink | null);
|
|
38
40
|
set modalClosed(_: boolean);
|
|
@@ -49,19 +51,24 @@ export declare class TaskDetailContentComponent implements OnInit, OnDestroy {
|
|
|
49
51
|
readonly formName$: BehaviorSubject<string>;
|
|
50
52
|
readonly loading$: BehaviorSubject<boolean>;
|
|
51
53
|
readonly page$: BehaviorSubject<any>;
|
|
52
|
-
readonly submission$:
|
|
54
|
+
readonly submission$: Observable<any>;
|
|
53
55
|
readonly task$: BehaviorSubject<Task>;
|
|
54
56
|
readonly taskInstanceId$: BehaviorSubject<string>;
|
|
55
57
|
intermediateSaveEnabled: boolean;
|
|
56
58
|
private readonly _taskProcessLinkType$;
|
|
57
|
-
readonly processLinkIsForm$:
|
|
58
|
-
readonly processLinkIsFormViewModel$:
|
|
59
|
-
readonly processLinkIsFormFlow$:
|
|
59
|
+
readonly processLinkIsForm$: Observable<boolean>;
|
|
60
|
+
readonly processLinkIsFormViewModel$: Observable<boolean>;
|
|
61
|
+
readonly processLinkIsFormFlow$: Observable<boolean>;
|
|
62
|
+
readonly processLinkIsUiComponent$: Observable<boolean>;
|
|
60
63
|
private readonly _processLinkId$;
|
|
61
64
|
private readonly _subscriptions;
|
|
62
|
-
|
|
65
|
+
private readonly _formCustomComponentConfig$;
|
|
66
|
+
private readonly _viewInitialized$;
|
|
67
|
+
get viewInitialized$(): Observable<boolean>;
|
|
68
|
+
constructor(configService: ConfigService, documentService: DocumentService, iconService: IconService, logger: NGXLogger, modalService: ValtimoModalService, permissionService: PermissionService, processLinkService: ProcessLinkService, router: Router, stateService: FormIoStateService, taskIntermediateSaveService: TaskIntermediateSaveService, taskService: TaskService, toastr: ToastrService, translateService: TranslateService, formViewModel: FormViewModel, formCustomComponentConfig: FormCustomComponentConfig, urlResolverService: UrlResolverService);
|
|
63
69
|
ngOnInit(): void;
|
|
64
70
|
ngOnDestroy(): void;
|
|
71
|
+
ngAfterViewInit(): void;
|
|
65
72
|
onSubmit(submission: FormioSubmission): void;
|
|
66
73
|
completeTask(task: Task | null): void;
|
|
67
74
|
onChange(event: any): void;
|
|
@@ -73,10 +80,11 @@ export declare class TaskDetailContentComponent implements OnInit, OnDestroy {
|
|
|
73
80
|
private openPermissionSubscription;
|
|
74
81
|
private setFormDefinition;
|
|
75
82
|
private setFormViewModelComponent;
|
|
83
|
+
private setFormCustomComponent;
|
|
76
84
|
private resetFormDefinition;
|
|
77
85
|
private resetTaskProcessLinkType;
|
|
78
86
|
private setDocumentDefinitionNameInService;
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TaskDetailContentComponent, [null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, null]>;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskDetailContentComponent, [null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
80
88
|
static ɵcmp: i0.ɵɵComponentDeclaration<TaskDetailContentComponent, "valtimo-task-detail-content", never, { "task": { "alias": "task"; "required": false; }; "taskAndProcessLink": { "alias": "taskAndProcessLink"; "required": false; }; "modalClosed": { "alias": "modalClosed"; "required": false; }; }, { "closeModalEvent": "closeModalEvent"; "formSubmit": "formSubmit"; "activeChange": "activeChange"; }, never, never, true, never>;
|
|
81
89
|
}
|
|
82
90
|
//# sourceMappingURL=task-detail-content.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-detail-content.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/task/src/lib/components/task-detail-content/task-detail-content.component.ts"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"task-detail-content.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/task/src/lib/components/task-detail-content/task-detail-content.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAIb,YAAY,EAGZ,SAAS,EACT,MAAM,EAIN,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,eAAe,EAGf,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAyB,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAEL,yBAAyB,EACzB,iBAAiB,EAGjB,kBAAkB,EAGlB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACzC,OAAO,EACL,eAA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