verben-workflow-ui 0.6.8 → 0.6.9
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/src/lib/components/designer/models/types.mjs +1 -1
- package/esm2022/src/lib/components/designer/services/connection.service.mjs +2 -1
- package/esm2022/src/lib/components/designer/services/wf-mapper.service.mjs +4 -1
- package/esm2022/src/lib/components/my-queue/my-queue.component.mjs +8 -3
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +17 -1
- package/esm2022/src/lib/components/my-queue/tasks.form.component.mjs +5 -1
- package/esm2022/src/lib/components/operation-popup/operation-popup.component.mjs +3 -3
- package/esm2022/src/lib/components/operation-popup/operation-popup.facade.mjs +33 -1
- package/esm2022/src/lib/components/task-history/task-history.component.mjs +161 -11
- package/esm2022/src/lib/components/tasks/tasks.component.mjs +9 -6
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +9 -1
- package/esm2022/src/lib/components/tasks/tasks.form.component.mjs +54 -7
- package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +6 -3
- package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +5 -1
- package/esm2022/src/lib/components/workflow-designer/services/connection.service.mjs +2 -1
- package/esm2022/src/lib/components/workflow-designer/services/transformer.service.mjs +3 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +2 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +4 -1
- package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +1 -1
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.component.mjs +368 -33
- package/esm2022/src/lib/components/workflow-stage/workflow-stage.module.mjs +9 -2
- package/esm2022/src/lib/models/Task.mjs +1 -1
- package/esm2022/src/lib/models/WorkflowAction.mjs +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +4 -0
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +27 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs +34 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-operation-popup.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs +160 -10
- package/fesm2022/verben-workflow-ui-src-lib-components-task-history.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +68 -11
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +16 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs +373 -32
- package/fesm2022/verben-workflow-ui-src-lib-components-workflow-stage.mjs.map +1 -1
- package/package.json +61 -61
- package/src/lib/components/designer/models/types.d.ts +1 -0
- package/src/lib/components/task-history/task-history.component.d.ts +21 -1
- package/src/lib/components/tasks/tasks.component.d.ts +3 -2
- package/src/lib/components/tasks/tasks.form.component.d.ts +12 -4
- package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +1 -0
- package/src/lib/components/workflow-stage/workflow-stage.component.d.ts +37 -6
- package/src/lib/components/workflow-stage/workflow-stage.module.d.ts +4 -3
- package/src/lib/models/Task.d.ts +1 -0
- package/src/lib/models/WorkflowAction.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { CardData } from 'verben-ng-ui';
|
|
2
|
+
import { CardData, DropdownLoadEvent } from 'verben-ng-ui';
|
|
3
3
|
import { Task } from 'verben-workflow-ui/src/lib/models';
|
|
4
4
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
5
5
|
import { Status } from 'verben-workflow-ui/src/lib/models';
|
|
@@ -7,12 +7,15 @@ import { Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
|
7
7
|
import { TaskFacade } from './tasks.facade';
|
|
8
8
|
import { Form } from 'verben-workflow-ui/src/lib/models';
|
|
9
9
|
import { DataType } from 'verben-workflow-ui/src/lib/models';
|
|
10
|
-
import { UtilService } from 'verben-workflow-ui/src/lib/services';
|
|
10
|
+
import { HttpWebRequestService, UtilService } from 'verben-workflow-ui/src/lib/services';
|
|
11
|
+
import { Actor } from 'verben-workflow-ui/src/lib/models';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare class TasksFormComponent {
|
|
13
14
|
private fb;
|
|
14
15
|
private taskFacade;
|
|
15
16
|
private utilService;
|
|
17
|
+
private server;
|
|
18
|
+
pageSize: import("@angular/core").InputSignal<number>;
|
|
16
19
|
get currentData(): CardData | null;
|
|
17
20
|
set currentData(value: CardData | null);
|
|
18
21
|
private _currentData;
|
|
@@ -24,9 +27,10 @@ export declare class TasksFormComponent {
|
|
|
24
27
|
form: FormGroup;
|
|
25
28
|
statuses: Status[];
|
|
26
29
|
workflows: Workflow[];
|
|
30
|
+
actors: Actor[];
|
|
27
31
|
loadingTaskForm: boolean;
|
|
28
32
|
taskFormView: boolean;
|
|
29
|
-
constructor(fb: FormBuilder, taskFacade: TaskFacade, utilService: UtilService);
|
|
33
|
+
constructor(fb: FormBuilder, taskFacade: TaskFacade, utilService: UtilService, server: HttpWebRequestService);
|
|
30
34
|
ngOnInit(): void;
|
|
31
35
|
handleSubmit(): void;
|
|
32
36
|
onDelete(): void;
|
|
@@ -35,6 +39,10 @@ export declare class TasksFormComponent {
|
|
|
35
39
|
disableProcessing(): boolean;
|
|
36
40
|
getRoute(item: Task): string | null;
|
|
37
41
|
viewSource(item: Task, route: string): void;
|
|
42
|
+
getActors(): Promise<Actor[] | undefined>;
|
|
43
|
+
loadMoreActors(event: DropdownLoadEvent): Promise<Actor[]>;
|
|
44
|
+
searchActors(data: string, event: DropdownLoadEvent): Promise<Actor[]>;
|
|
45
|
+
getAsyncLabel(value: any): Promise<string>;
|
|
38
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<TasksFormComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TasksFormComponent, "tasks-form", never, { "currentData": { "alias": "currentData"; "required": false; }; }, { "onTaskFormSave": "onTaskFormSave"; "onSave": "onSave"; }, never, never, false, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TasksFormComponent, "tasks-form", never, { "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentData": { "alias": "currentData"; "required": false; }; }, { "onTaskFormSave": "onTaskFormSave"; "onSave": "onSave"; }, never, never, false, never>;
|
|
40
48
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { DataType, VerbenPopUpComponent } from 'verben-ng-ui';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, IterableDiffers, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DataType, DropdownChangeEvent, DropdownLoadEvent, VerbenPopUpComponent } from 'verben-ng-ui';
|
|
3
|
+
import { EditorConfig, EditorMode } from 'verben-reporting-ui';
|
|
3
4
|
import { ActionHistory, Actor, Form, Task } from 'verben-workflow-ui/src/lib/models';
|
|
4
5
|
import { HttpWebRequestService, UtilService } from 'verben-workflow-ui/src/lib/services';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class WorkflowStageComponent {
|
|
7
8
|
private utilService;
|
|
8
9
|
private server;
|
|
10
|
+
private cdr;
|
|
11
|
+
private differs;
|
|
12
|
+
pageSize: number;
|
|
9
13
|
historyToDate: any[];
|
|
10
14
|
taskCode: string | null;
|
|
11
15
|
forms: any;
|
|
@@ -14,6 +18,9 @@ export declare class WorkflowStageComponent {
|
|
|
14
18
|
active: number;
|
|
15
19
|
dataType: DataType;
|
|
16
20
|
commentText: string;
|
|
21
|
+
isRichEditor: boolean;
|
|
22
|
+
editorMode: EditorMode;
|
|
23
|
+
editorConfig: EditorConfig;
|
|
17
24
|
isFormViewerVisible: boolean;
|
|
18
25
|
activeForm: Form | null;
|
|
19
26
|
currentActors: any[];
|
|
@@ -36,20 +43,37 @@ export declare class WorkflowStageComponent {
|
|
|
36
43
|
taskForms: any;
|
|
37
44
|
selectedAction: any;
|
|
38
45
|
nextActors: Actor[];
|
|
46
|
+
actors: Actor[];
|
|
39
47
|
selectedRecipient: string | null;
|
|
48
|
+
copy: Actor[];
|
|
40
49
|
selectedStageCode: string | null;
|
|
41
50
|
pickComment: string;
|
|
51
|
+
isPickRichEditor: boolean;
|
|
42
52
|
pickRecipient: string | null;
|
|
43
53
|
pickActors: {
|
|
44
54
|
Name: string;
|
|
45
55
|
Identifier: string;
|
|
46
56
|
}[];
|
|
47
|
-
|
|
57
|
+
popupPositions: any[];
|
|
58
|
+
passOnPositions: any[];
|
|
59
|
+
reassignPositions: any[];
|
|
60
|
+
private historyDiffer;
|
|
61
|
+
private actionsDiffer;
|
|
62
|
+
private lastTaskCode;
|
|
63
|
+
constructor(utilService: UtilService, server: HttpWebRequestService, cdr: ChangeDetectorRef, differs: IterableDiffers);
|
|
48
64
|
ngOnInit(): void;
|
|
49
65
|
ngOnChanges(changes: SimpleChanges): void;
|
|
66
|
+
resetTransientState(): void;
|
|
67
|
+
private syncStagesAndActions;
|
|
68
|
+
getActionCaption(action: any): string;
|
|
69
|
+
getStageName(stage: any): string;
|
|
70
|
+
trackByStage(index: number, stage: any): any;
|
|
71
|
+
trackByAction(index: number, action: any): any;
|
|
50
72
|
submitForm(groupIndex: number): void;
|
|
51
73
|
areRequiredPropertiesFilled(properties?: any[]): boolean;
|
|
52
|
-
openCommentFor(action: any): void;
|
|
74
|
+
openCommentFor(action: any, event?: Event): void;
|
|
75
|
+
setEditorMode(rich: boolean): void;
|
|
76
|
+
isCommentValid(): boolean;
|
|
53
77
|
loadNextActors(stageCode: string | undefined): Promise<void>;
|
|
54
78
|
handleDataChanges(): void;
|
|
55
79
|
closePopUp(): void;
|
|
@@ -64,7 +88,9 @@ export declare class WorkflowStageComponent {
|
|
|
64
88
|
* one with no current actors is unclaimed and gets picked.
|
|
65
89
|
*/
|
|
66
90
|
isReassign(): boolean;
|
|
67
|
-
openPickPopup(): void;
|
|
91
|
+
openPickPopup(event?: Event): void;
|
|
92
|
+
setPickEditorMode(rich: boolean): void;
|
|
93
|
+
isPickCommentValid(): boolean;
|
|
68
94
|
submitPick(): Promise<void>;
|
|
69
95
|
private pickTask;
|
|
70
96
|
private reassignTask;
|
|
@@ -73,6 +99,11 @@ export declare class WorkflowStageComponent {
|
|
|
73
99
|
onFormViewerOpen(): void;
|
|
74
100
|
onFormViewerClose(): void;
|
|
75
101
|
closePopUp3(): void;
|
|
102
|
+
getActors(): Promise<Actor[] | undefined>;
|
|
103
|
+
loadMoreActors(event: DropdownLoadEvent): Promise<Actor[]>;
|
|
104
|
+
searchActors(data: string, event: DropdownLoadEvent): Promise<Actor[]>;
|
|
105
|
+
getAsyncLabel(value: any): Promise<string>;
|
|
106
|
+
onCopyChanged(event: DropdownChangeEvent): void;
|
|
76
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowStageComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowStageComponent, "app-workflow-stage", never, { "historyToDate": { "alias": "historyToDate"; "required": false; }; "taskCode": { "alias": "taskCode"; "required": false; }; "forms": { "alias": "forms"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "currentActors": { "alias": "currentActors"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "nextActions": { "alias": "nextActions"; "required": false; }; "task": { "alias": "task"; "required": false; }; }, { "onActionCompleted": "onActionCompleted"; "onPickCompleted": "onPickCompleted"; "onCommentCompleted": "onCommentCompleted"; "onFormCompleted": "onFormCompleted"; "onOpen": "onOpen"; "onClose": "onClose"; }, never, never, false, never>;
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowStageComponent, "app-workflow-stage", never, { "pageSize": { "alias": "pageSize"; "required": false; }; "historyToDate": { "alias": "historyToDate"; "required": false; }; "taskCode": { "alias": "taskCode"; "required": false; }; "forms": { "alias": "forms"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "currentActors": { "alias": "currentActors"; "required": false; }; "user": { "alias": "user"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "nextActions": { "alias": "nextActions"; "required": false; }; "task": { "alias": "task"; "required": false; }; }, { "onActionCompleted": "onActionCompleted"; "onPickCompleted": "onPickCompleted"; "onCommentCompleted": "onCommentCompleted"; "onFormCompleted": "onFormCompleted"; "onOpen": "onOpen"; "onClose": "onClose"; }, never, never, false, never>;
|
|
78
109
|
}
|
|
@@ -3,10 +3,11 @@ import * as i1 from "./workflow-stage.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "verben-ng-ui";
|
|
6
|
-
import * as i5 from "verben-
|
|
7
|
-
import * as i6 from "verben-workflow-ui/src/lib/components/form-
|
|
6
|
+
import * as i5 from "verben-reporting-ui";
|
|
7
|
+
import * as i6 from "verben-workflow-ui/src/lib/components/form-control";
|
|
8
|
+
import * as i7 from "verben-workflow-ui/src/lib/components/form-viewer";
|
|
8
9
|
export declare class WorkFlowStageLibModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkFlowStageLibModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WorkFlowStageLibModule, [typeof i1.WorkflowStageComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DataTableModule, typeof i4.SvgModule, typeof i4.VerbenPopUpModule, typeof i4.DataViewModule, typeof i4.VerbenaButtonModule, typeof i4.CardDataViewModule, typeof i4.DropDownModule, typeof i4.VerbenaSwitchModule, typeof i4.TableFilterModule, typeof i4.VisibleColumnModule, typeof i4.SortTableModule, typeof i4.DataExportModule, typeof i4.TooltipModule, typeof i4.VerbenDialogueModule, typeof i4.VerbenaInputModule, typeof i5.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WorkFlowStageLibModule, [typeof i1.WorkflowStageComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DataTableModule, typeof i4.SvgModule, typeof i4.VerbenPopUpModule, typeof i4.DataViewModule, typeof i4.VerbenaButtonModule, typeof i4.CardDataViewModule, typeof i4.DropDownModule, typeof i4.VerbenaSwitchModule, typeof i4.TableFilterModule, typeof i4.VisibleColumnModule, typeof i4.SortTableModule, typeof i4.DataExportModule, typeof i4.TooltipModule, typeof i4.VerbenDialogueModule, typeof i4.VerbenaInputModule, typeof i4.VerbenaTextareaModule, typeof i5.EditorModule, typeof i6.FormControlerModule, typeof i7.FormViewerLibModule], [typeof i1.WorkflowStageComponent]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<WorkFlowStageLibModule>;
|
|
12
13
|
}
|
package/src/lib/models/Task.d.ts
CHANGED