verben-workflow-ui 0.5.42 → 0.5.45
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/actors/actors.facade.mjs +36 -4
- package/esm2022/src/lib/components/actors/actors.service.mjs +1 -1
- package/esm2022/src/lib/components/designer/services/wf-persistence.service.mjs +22 -3
- package/esm2022/src/lib/components/form-response/form-response.component.mjs +52 -47
- package/esm2022/src/lib/components/form-response/form-response.service.mjs +2 -2
- package/esm2022/src/lib/components/forms/forms.component.mjs +3 -3
- package/esm2022/src/lib/components/my-queue/my-queue.facade.mjs +74 -4
- package/esm2022/src/lib/components/my-queue/my-queue.service.mjs +1 -1
- package/esm2022/src/lib/components/tasks/tasks.facade.mjs +48 -3
- package/esm2022/src/lib/components/tasks/tasks.service.mjs +1 -1
- package/esm2022/src/lib/components/workflows/workflows.facade.mjs +40 -4
- package/esm2022/src/lib/components/workflows/workflows.service.mjs +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs +35 -3
- package/fesm2022/verben-workflow-ui-src-lib-components-actors.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs +19 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-designer.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +52 -47
- package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +2 -2
- package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs +73 -4
- package/fesm2022/verben-workflow-ui-src-lib-components-my-queue.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs +47 -3
- package/fesm2022/verben-workflow-ui-src-lib-components-tasks.mjs.map +1 -1
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs +39 -3
- package/fesm2022/verben-workflow-ui-src-lib-components-workflows.mjs.map +1 -1
- package/package.json +13 -13
- package/src/lib/components/actors/actors.service.d.ts +6 -6
- package/src/lib/components/designer/services/wf-persistence.service.d.ts +2 -3
- package/src/lib/components/form-response/form-response.component.d.ts +25 -24
- package/src/lib/components/form-response/form-response.service.d.ts +1 -1
- package/src/lib/components/my-queue/my-queue.service.d.ts +23 -23
- package/src/lib/components/tasks/tasks.service.d.ts +15 -15
- package/src/lib/components/workflows/workflows.service.d.ts +11 -16
- package/styles/styles.css +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Actor, Paged, Tag } from 'verben-workflow-ui/src/lib/models';
|
|
1
|
+
import { Actor, ErrorResponse, Paged, Tag } from 'verben-workflow-ui/src/lib/models';
|
|
2
2
|
import { EnvironmentService, HttpWebRequestService } from 'verben-workflow-ui/src/lib/services';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ActorService {
|
|
@@ -14,7 +14,7 @@ export declare class ActorService {
|
|
|
14
14
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
15
15
|
* @returns Promise containing the data
|
|
16
16
|
*/
|
|
17
|
-
getData(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Actor
|
|
17
|
+
getData(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Actor> | ErrorResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Get data with additional parameter, pagination and sorting
|
|
20
20
|
* @param param Search parameter
|
|
@@ -24,13 +24,13 @@ export declare class ActorService {
|
|
|
24
24
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
25
25
|
* @returns Promise containing the filtered data
|
|
26
26
|
*/
|
|
27
|
-
getActorWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Actor
|
|
27
|
+
getActorWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Actor> | ErrorResponse>;
|
|
28
28
|
/**
|
|
29
29
|
* Save multiple data
|
|
30
30
|
* @param requests Array of data to save
|
|
31
31
|
* @returns Promise containing the save operation result
|
|
32
32
|
*/
|
|
33
|
-
saveActors(requests: Actor[]): Promise<any>;
|
|
33
|
+
saveActors(requests: Actor[]): Promise<any | ErrorResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Get user access requests with pagination and sorting
|
|
36
36
|
* @param skip Number of records to skip
|
|
@@ -39,7 +39,7 @@ export declare class ActorService {
|
|
|
39
39
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
40
40
|
* @returns Promise containing the user access requests
|
|
41
41
|
*/
|
|
42
|
-
getTags(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag
|
|
42
|
+
getTags(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag> | ErrorResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* Get actor tags with pagination and sorting
|
|
45
45
|
* @param skip Number of records to skip
|
|
@@ -48,7 +48,7 @@ export declare class ActorService {
|
|
|
48
48
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
49
49
|
* @returns Promise containing the actor tags
|
|
50
50
|
*/
|
|
51
|
-
getActorTags(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag
|
|
51
|
+
getActorTags(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag> | ErrorResponse>;
|
|
52
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActorService, never>;
|
|
53
53
|
static ɵprov: i0.ɵɵInjectableDeclaration<ActorService>;
|
|
54
54
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
2
|
-
import { FormEntity } from 'verben-workflow-ui/src/lib/models';
|
|
3
|
-
import { Tag } from 'verben-workflow-ui/src/lib/models';
|
|
1
|
+
import { FormEntity, Tag, Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
4
2
|
import { WorkflowMetadata } from '../models/types';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class WorkflowPersistenceService {
|
|
7
5
|
private workflowState;
|
|
8
6
|
private mapper;
|
|
9
7
|
private service;
|
|
8
|
+
private utilSvc;
|
|
10
9
|
private currentWorkflowMetadata;
|
|
11
10
|
get workflowMetadata(): WorkflowMetadata;
|
|
12
11
|
saveWorkflow(): Promise<Workflow[]>;
|
|
@@ -10,7 +10,7 @@ import { Subject } from 'rxjs';
|
|
|
10
10
|
import { Status } from 'verben-workflow-ui/src/lib/models';
|
|
11
11
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
12
12
|
import { Location } from '@angular/common';
|
|
13
|
-
import { Form
|
|
13
|
+
import { Form } from 'verben-workflow-ui/src/lib/models';
|
|
14
14
|
import { DataType } from 'verben-workflow-ui/src/lib/models';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
export declare class FormResponseComponent implements OnInit {
|
|
@@ -20,12 +20,12 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
20
20
|
private fb;
|
|
21
21
|
private envSvc;
|
|
22
22
|
private router;
|
|
23
|
-
private
|
|
23
|
+
private formResponseSvc;
|
|
24
24
|
private _location;
|
|
25
25
|
private route;
|
|
26
|
-
visibleColumnDef: ColumnDefinition<
|
|
26
|
+
visibleColumnDef: ColumnDefinition<Form>[];
|
|
27
27
|
styles: any;
|
|
28
|
-
data:
|
|
28
|
+
data: Form[];
|
|
29
29
|
path: string;
|
|
30
30
|
cardData: CardData[];
|
|
31
31
|
selectedFilterTableCount: number;
|
|
@@ -33,14 +33,15 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
33
33
|
currentData: CardData | null;
|
|
34
34
|
cardDataView: CardDataViewComponent;
|
|
35
35
|
dataView: DataViewComponent;
|
|
36
|
-
tableView: DataTableComponent<
|
|
36
|
+
tableView: DataTableComponent<Form>;
|
|
37
37
|
application: string | null;
|
|
38
38
|
pageSize: number;
|
|
39
|
+
taskCodeKey: string;
|
|
39
40
|
skip: number;
|
|
40
41
|
hasMore: boolean;
|
|
41
42
|
onViewProcessClicked: EventEmitter<string>;
|
|
42
43
|
searchTerm: string;
|
|
43
|
-
pageState: PagedResult<
|
|
44
|
+
pageState: PagedResult<Form> | null;
|
|
44
45
|
isOpen: boolean;
|
|
45
46
|
openDropdownId: string | null;
|
|
46
47
|
currentFilters: IDataFilter[];
|
|
@@ -50,36 +51,36 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
50
51
|
statusOptions: Status[];
|
|
51
52
|
active: number;
|
|
52
53
|
taskCode: string;
|
|
53
|
-
users:
|
|
54
|
+
users: Form[];
|
|
54
55
|
visibleColumns: IDataFilter[];
|
|
55
56
|
filterArray: IDataFilter[];
|
|
56
|
-
closePopUp(row:
|
|
57
|
+
closePopUp(row: Form): void;
|
|
57
58
|
toggleTable(rowId: any): void;
|
|
58
59
|
sortOptions: IDataFilter[];
|
|
59
60
|
private currentSearchTerm;
|
|
60
|
-
constructor(utilService: UtilService, server: HttpWebRequestService, cdr: ChangeDetectorRef, fb: FormBuilder, envSvc: EnvironmentService, router: Router,
|
|
61
|
+
constructor(utilService: UtilService, server: HttpWebRequestService, cdr: ChangeDetectorRef, fb: FormBuilder, envSvc: EnvironmentService, router: Router, formResponseSvc: FormResponseService, _location: Location, route: ActivatedRoute);
|
|
61
62
|
goBack(): void;
|
|
62
63
|
ngOnInit(): Promise<void>;
|
|
63
64
|
setActive(i?: number): void;
|
|
64
|
-
getAllTaskUsers(): Promise<
|
|
65
|
+
getAllTaskUsers(): Promise<Form[] | undefined>;
|
|
65
66
|
clearLogs(sortValue?: string, order?: string): void;
|
|
66
|
-
getForms(taskCode: string): Promise<
|
|
67
|
+
getForms(taskCode: string): Promise<Form[] | undefined>;
|
|
67
68
|
loadMore(): void;
|
|
68
69
|
reset(): void;
|
|
69
|
-
onUserSelected(event: DropdownChangeEvent, item:
|
|
70
|
-
onClear(event: Event, item:
|
|
70
|
+
onUserSelected(event: DropdownChangeEvent, item: Form): void;
|
|
71
|
+
onClear(event: Event, item: Form): void;
|
|
71
72
|
setUpCardData(): void;
|
|
72
|
-
goToCardView(data:
|
|
73
|
-
areRequiredPropertiesFilled(data:
|
|
73
|
+
goToCardView(data: Form): void;
|
|
74
|
+
areRequiredPropertiesFilled(data: Form): boolean;
|
|
74
75
|
goToTableView(): void;
|
|
75
76
|
viewProcesses(code: string): void;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
cardClicked(item: CardData, toggleView?: boolean): void;
|
|
78
|
+
saveItem(): Promise<void>;
|
|
79
|
+
tableSaveItem(form: Form, callBack: () => any): Promise<void>;
|
|
79
80
|
updateTable(): void;
|
|
80
|
-
navigateToFields(card:
|
|
81
|
+
navigateToFields(card: Form): void;
|
|
81
82
|
onClose(): void;
|
|
82
|
-
openDropdown(item:
|
|
83
|
+
openDropdown(item: Form): void;
|
|
83
84
|
onSearch(event: {
|
|
84
85
|
key: string;
|
|
85
86
|
value: string;
|
|
@@ -91,12 +92,12 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
91
92
|
value: boolean;
|
|
92
93
|
}): void;
|
|
93
94
|
showTableView: boolean;
|
|
94
|
-
onSelectionChange(selectedRows:
|
|
95
|
+
onSelectionChange(selectedRows: Form[]): void;
|
|
95
96
|
retryMessage(): void;
|
|
96
97
|
onColumnsUpdated(updatedColumns: IDataFilter[]): void;
|
|
97
98
|
updateFiltersAndSorts(isSearch?: boolean): Promise<undefined>;
|
|
98
|
-
postSearch(payload: any): Promise<
|
|
99
|
-
loadMoreFiltersAndSorts(): Promise<PagedResult<
|
|
99
|
+
postSearch(payload: any): Promise<Form[] | undefined>;
|
|
100
|
+
loadMoreFiltersAndSorts(): Promise<PagedResult<Form> | undefined>;
|
|
100
101
|
onFilterApplied(appliedFilter: IDataFilter[]): void;
|
|
101
102
|
getCondition(value: any): any;
|
|
102
103
|
onSortUpdated(updatedSorts: IDataFilter[]): void;
|
|
@@ -107,5 +108,5 @@ export declare class FormResponseComponent implements OnInit {
|
|
|
107
108
|
handleExport(exportedData: Partial<any>[]): void;
|
|
108
109
|
private downloadCSV;
|
|
109
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormResponseComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormResponseComponent, "lib-form-response", never, { "path": { "alias": "path"; "required": false; }; "application": { "alias": "application"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; }, { "onViewProcessClicked": "onViewProcessClicked"; }, never, never, false, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormResponseComponent, "lib-form-response", never, { "path": { "alias": "path"; "required": false; }; "application": { "alias": "application"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "taskCodeKey": { "alias": "taskCodeKey"; "required": false; }; }, { "onViewProcessClicked": "onViewProcessClicked"; }, never, never, false, never>;
|
|
111
112
|
}
|
|
@@ -3,7 +3,7 @@ import { Form } from 'verben-workflow-ui/src/lib/models';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormResponseService {
|
|
5
5
|
constructor();
|
|
6
|
-
get
|
|
6
|
+
get formColumns(): ColumnDefinition<Form>[];
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormResponseService, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormResponseService>;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { Actor, Form, Paged, Task, WorkflowAction } from 'verben-workflow-ui/src/lib/models';
|
|
2
|
+
import { Actor, ErrorResponse, Form, Paged, Task, WorkflowAction } from 'verben-workflow-ui/src/lib/models';
|
|
3
3
|
import { HttpWebRequestService } from 'verben-workflow-ui/src/lib/services';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class MyQueueService {
|
|
@@ -14,7 +14,7 @@ export declare class MyQueueService {
|
|
|
14
14
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
15
15
|
* @returns Promise containing the tasks
|
|
16
16
|
*/
|
|
17
|
-
getTasks(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
17
|
+
getTasks(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Get tasks with additional parameter, pagination and sorting
|
|
20
20
|
* @param param Search parameter
|
|
@@ -24,43 +24,43 @@ export declare class MyQueueService {
|
|
|
24
24
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
25
25
|
* @returns Promise containing the filtered tasks
|
|
26
26
|
*/
|
|
27
|
-
getTaskWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
27
|
+
getTaskWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
28
28
|
/**
|
|
29
29
|
* Save multiple tasks
|
|
30
30
|
* @param requests Array of tasks to save
|
|
31
31
|
* @returns Promise containing the save operation result
|
|
32
32
|
*/
|
|
33
|
-
saveTasks(requests: Task[]): Promise<any>;
|
|
33
|
+
saveTasks(requests: Task[]): Promise<any | ErrorResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Approve or reject multiple tasks
|
|
36
36
|
* @param requests Array of tasks to save
|
|
37
37
|
* @param isApproval True for approval, false for decline
|
|
38
38
|
* @returns Promise containing the save operation result
|
|
39
39
|
*/
|
|
40
|
-
processTasks(requests: Task[], isApproval: boolean): Promise<any>;
|
|
40
|
+
processTasks(requests: Task[], isApproval: boolean): Promise<any | ErrorResponse>;
|
|
41
41
|
/**
|
|
42
42
|
* Delete multiple tasks
|
|
43
43
|
* @param requestIds Array of request IDs to delete
|
|
44
44
|
* @returns Observable containing the delete operation result
|
|
45
45
|
*/
|
|
46
|
-
deleteTasks(requestIds: string[]): Observable<any>;
|
|
47
|
-
getTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
48
|
-
getQueueTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
49
|
-
getPossibleTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
50
|
-
getNextActions(taskCode: string): Promise<WorkflowAction[]>;
|
|
51
|
-
getPreviousActions(taskCode: string): Promise<WorkflowAction[]>;
|
|
52
|
-
getAllPreviousActions(taskCode: string): Promise<WorkflowAction[]>;
|
|
53
|
-
getNextActors(taskCode: string, forCurrentStage: boolean, stageCode?: string): Promise<Actor[]>;
|
|
54
|
-
passOn(fromStage: string, toStage: string, task: Task, comment: string, recipient?: string): Promise<Task>;
|
|
55
|
-
passBack(fromStage: string, toStage: string, task: Task, comment: string, recipient?: string): Promise<Task>;
|
|
56
|
-
pickTask(targetStage: string, task: Task, comment: string, recipient?: string): Promise<Task>;
|
|
57
|
-
unPickTask(targetStage: string, task: Task, comment: string, recipient?: string): Promise<Task>;
|
|
58
|
-
followTask(actorId: string, task: Task): Promise<Task>;
|
|
59
|
-
unFollowTask(taskId: string, actorId: string): Promise<void>;
|
|
60
|
-
reAssign(task: Task, comment: string, fromUser?: string, toUser?: string): Promise<Task>;
|
|
61
|
-
skipTo(fromStage: string, toStage: string, task: Task, comment: string, recipient?: string, isBackward?: boolean): Promise<Task>;
|
|
62
|
-
getCurrentFormsForTask(taskCode: string): Promise<Form[]>;
|
|
63
|
-
fillForm(form: Form, taskCode: string): Promise<Form>;
|
|
46
|
+
deleteTasks(requestIds: string[]): Observable<any | ErrorResponse>;
|
|
47
|
+
getTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
48
|
+
getQueueTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
49
|
+
getPossibleTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
50
|
+
getNextActions(taskCode: string): Promise<WorkflowAction[] | ErrorResponse>;
|
|
51
|
+
getPreviousActions(taskCode: string): Promise<WorkflowAction[] | ErrorResponse>;
|
|
52
|
+
getAllPreviousActions(taskCode: string): Promise<WorkflowAction[] | ErrorResponse>;
|
|
53
|
+
getNextActors(taskCode: string, forCurrentStage: boolean, stageCode?: string): Promise<Actor[] | ErrorResponse>;
|
|
54
|
+
passOn(fromStage: string, toStage: string, task: Task, comment: string, recipient?: string): Promise<Task | ErrorResponse>;
|
|
55
|
+
passBack(fromStage: string, toStage: string, task: Task, comment: string, recipient?: string): Promise<Task | ErrorResponse>;
|
|
56
|
+
pickTask(targetStage: string, task: Task, comment: string, recipient?: string): Promise<Task | ErrorResponse>;
|
|
57
|
+
unPickTask(targetStage: string, task: Task, comment: string, recipient?: string): Promise<Task | ErrorResponse>;
|
|
58
|
+
followTask(actorId: string, task: Task): Promise<Task | ErrorResponse>;
|
|
59
|
+
unFollowTask(taskId: string, actorId: string): Promise<void | ErrorResponse>;
|
|
60
|
+
reAssign(task: Task, comment: string, fromUser?: string, toUser?: string): Promise<Task | ErrorResponse>;
|
|
61
|
+
skipTo(fromStage: string, toStage: string, task: Task, comment: string, recipient?: string, isBackward?: boolean): Promise<Task | ErrorResponse>;
|
|
62
|
+
getCurrentFormsForTask(taskCode: string): Promise<Form[] | ErrorResponse>;
|
|
63
|
+
fillForm(form: Form, taskCode: string): Promise<Form | ErrorResponse>;
|
|
64
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<MyQueueService, never>;
|
|
65
65
|
static ɵprov: i0.ɵɵInjectableDeclaration<MyQueueService>;
|
|
66
66
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { Actor, Form, Paged, Task, Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
2
|
+
import { Actor, ErrorResponse, Form, Paged, Task, Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
3
3
|
import { HttpWebRequestService } from 'verben-workflow-ui/src/lib/services';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TasksService {
|
|
@@ -16,7 +16,7 @@ export declare class TasksService {
|
|
|
16
16
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
17
17
|
* @returns Promise containing the tasks
|
|
18
18
|
*/
|
|
19
|
-
getTasks(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
19
|
+
getTasks(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get tasks with additional parameter, pagination and sorting
|
|
22
22
|
* @param param Search parameter
|
|
@@ -26,35 +26,35 @@ export declare class TasksService {
|
|
|
26
26
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
27
27
|
* @returns Promise containing the filtered tasks
|
|
28
28
|
*/
|
|
29
|
-
getTaskWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
29
|
+
getTaskWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* Save multiple tasks
|
|
32
32
|
* @param requests Array of tasks to save
|
|
33
33
|
* @returns Promise containing the save operation result
|
|
34
34
|
*/
|
|
35
|
-
saveTasks(requests: Task[]): Promise<any>;
|
|
35
|
+
saveTasks(requests: Task[]): Promise<any | ErrorResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Approve or reject multiple tasks
|
|
38
38
|
* @param requests Array of tasks to save
|
|
39
39
|
* @param isApproval True for approval, false for decline
|
|
40
40
|
* @returns Promise containing the save operation result
|
|
41
41
|
*/
|
|
42
|
-
processTasks(requests: Task[], isApproval: boolean): Promise<any>;
|
|
42
|
+
processTasks(requests: Task[], isApproval: boolean): Promise<any | ErrorResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* Delete multiple tasks
|
|
45
45
|
* @param requestIds Array of request IDs to delete
|
|
46
46
|
* @returns Observable containing the delete operation result
|
|
47
47
|
*/
|
|
48
|
-
deleteTasks(requestIds: string[]): Observable<any>;
|
|
49
|
-
getWorkflows(): Promise<Paged<Workflow
|
|
50
|
-
getFormWithParam(param: string): Promise<Paged<Form
|
|
51
|
-
followTask(actorId: string, task: Task): Promise<Task>;
|
|
52
|
-
unFollowTask(taskId: string, actorId: string): Promise<void>;
|
|
53
|
-
reAssign(task: Task, comment: string, toUser?: string, fromUser?: string): Promise<Task>;
|
|
54
|
-
getNextActors(taskCode: string, stageCode?: string, forCurrentStage?: boolean): Promise<Actor[]>;
|
|
55
|
-
pickTask(task: Task, comment: string, recipient?: string, targetStage?: string): Promise<Task>;
|
|
56
|
-
unPickTask(targetStage: string, task: Task, comment: string, recipient?: string): Promise<Task>;
|
|
57
|
-
getPossibleTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task
|
|
48
|
+
deleteTasks(requestIds: string[]): Observable<any | ErrorResponse>;
|
|
49
|
+
getWorkflows(): Promise<Paged<Workflow> | ErrorResponse>;
|
|
50
|
+
getFormWithParam(param: string): Promise<Paged<Form> | ErrorResponse>;
|
|
51
|
+
followTask(actorId: string, task: Task): Promise<Task | ErrorResponse>;
|
|
52
|
+
unFollowTask(taskId: string, actorId: string): Promise<void | ErrorResponse>;
|
|
53
|
+
reAssign(task: Task, comment: string, toUser?: string, fromUser?: string): Promise<Task | ErrorResponse>;
|
|
54
|
+
getNextActors(taskCode: string, stageCode?: string, forCurrentStage?: boolean): Promise<Actor[] | ErrorResponse>;
|
|
55
|
+
pickTask(task: Task, comment: string, recipient?: string, targetStage?: string): Promise<Task | ErrorResponse>;
|
|
56
|
+
unPickTask(targetStage: string, task: Task, comment: string, recipient?: string): Promise<Task | ErrorResponse>;
|
|
57
|
+
getPossibleTasksForUser(user: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Task> | ErrorResponse>;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<TasksService, never>;
|
|
59
59
|
static ɵprov: i0.ɵɵInjectableDeclaration<TasksService>;
|
|
60
60
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
2
|
-
import { Paged } from 'verben-workflow-ui/src/lib/models';
|
|
3
|
-
import { HttpWebRequestService } from 'verben-workflow-ui/src/lib/services';
|
|
4
1
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { SearchPropertyValue } from 'verben-workflow-ui/src/lib/models';
|
|
6
|
-
import {
|
|
7
|
-
import { Tag } from 'verben-workflow-ui/src/lib/models';
|
|
8
|
-
import { EnvironmentService } from 'verben-workflow-ui/src/lib/services';
|
|
2
|
+
import { ErrorResponse, FormEntity, Paged, SearchPropertyValue, Tag, Workflow } from 'verben-workflow-ui/src/lib/models';
|
|
3
|
+
import { EnvironmentService, HttpWebRequestService } from 'verben-workflow-ui/src/lib/services';
|
|
9
4
|
import * as i0 from "@angular/core";
|
|
10
5
|
export declare class WorkflowsService {
|
|
11
6
|
private httpService;
|
|
@@ -20,7 +15,7 @@ export declare class WorkflowsService {
|
|
|
20
15
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
21
16
|
* @returns Promise containing the user access requests
|
|
22
17
|
*/
|
|
23
|
-
getWorkflows(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Workflow
|
|
18
|
+
getWorkflows(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Workflow> | ErrorResponse>;
|
|
24
19
|
/**
|
|
25
20
|
* Get user access requests with additional parameter, pagination and sorting
|
|
26
21
|
* @param param Search parameter
|
|
@@ -30,7 +25,7 @@ export declare class WorkflowsService {
|
|
|
30
25
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
31
26
|
* @returns Promise containing the filtered user access requests
|
|
32
27
|
*/
|
|
33
|
-
getWorkflowWithParam(param: string, skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise<Paged<Workflow
|
|
28
|
+
getWorkflowWithParam(param: string, skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise<Paged<Workflow> | ErrorResponse>;
|
|
34
29
|
/**
|
|
35
30
|
* Get user access requests with additional parameter, pagination and sorting
|
|
36
31
|
* @param params Filter parameters
|
|
@@ -40,26 +35,26 @@ export declare class WorkflowsService {
|
|
|
40
35
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
41
36
|
* @returns Promise containing the filtered user access requests
|
|
42
37
|
*/
|
|
43
|
-
getWorkflowByFilterParams(params: SearchPropertyValue[], skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Workflow
|
|
38
|
+
getWorkflowByFilterParams(params: SearchPropertyValue[], skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Workflow> | ErrorResponse>;
|
|
44
39
|
/**
|
|
45
40
|
* Save multiple user access requests
|
|
46
41
|
* @param requests Array of user access requests to save
|
|
47
42
|
* @returns Promise containing the save operation result
|
|
48
43
|
*/
|
|
49
|
-
saveWorkflows(requests: Partial<Workflow>[]): Promise<any>;
|
|
44
|
+
saveWorkflows(requests: Partial<Workflow>[]): Promise<any | ErrorResponse>;
|
|
50
45
|
/**
|
|
51
46
|
* Approve or reject multiple user access requests
|
|
52
47
|
* @param requests Array of user access requests to save
|
|
53
48
|
* @param isApproval True for approval, false for decline
|
|
54
49
|
* @returns Promise containing the save operation result
|
|
55
50
|
*/
|
|
56
|
-
processWorkflows(requests: Workflow[], isApproval: boolean): Promise<any>;
|
|
51
|
+
processWorkflows(requests: Workflow[], isApproval: boolean): Promise<any | ErrorResponse>;
|
|
57
52
|
/**
|
|
58
53
|
* Delete multiple user access requests
|
|
59
54
|
* @param requestIds Array of request IDs to delete
|
|
60
55
|
* @returns Observable containing the delete operation result
|
|
61
56
|
*/
|
|
62
|
-
deleteWorkflows(requestIds: string[]): Observable<any>;
|
|
57
|
+
deleteWorkflows(requestIds: string[]): Observable<any | ErrorResponse>;
|
|
63
58
|
/**
|
|
64
59
|
* Get user access requests with pagination and sorting
|
|
65
60
|
* @param skip Number of records to skip
|
|
@@ -68,7 +63,7 @@ export declare class WorkflowsService {
|
|
|
68
63
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
69
64
|
* @returns Promise containing the user access requests
|
|
70
65
|
*/
|
|
71
|
-
getForms(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<FormEntity
|
|
66
|
+
getForms(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<FormEntity> | ErrorResponse>;
|
|
72
67
|
/**
|
|
73
68
|
* Get user access requests with pagination and sorting
|
|
74
69
|
* @param skip Number of records to skip
|
|
@@ -77,8 +72,8 @@ export declare class WorkflowsService {
|
|
|
77
72
|
* @param sortOrder Sort order ('asc' or 'desc')
|
|
78
73
|
* @returns Promise containing the user access requests
|
|
79
74
|
*/
|
|
80
|
-
getTags(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag
|
|
81
|
-
getWorkflowOperations(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag
|
|
75
|
+
getTags(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag> | ErrorResponse>;
|
|
76
|
+
getWorkflowOperations(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<Tag> | ErrorResponse>;
|
|
82
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowsService, never>;
|
|
83
78
|
static ɵprov: i0.ɵɵInjectableDeclaration<WorkflowsService>;
|
|
84
79
|
}
|
package/styles/styles.css
CHANGED
|
@@ -1037,20 +1037,12 @@ video {
|
|
|
1037
1037
|
.bg-\[\#1A237E33\] {
|
|
1038
1038
|
background-color: #1A237E33;
|
|
1039
1039
|
}
|
|
1040
|
-
.bg-\[\#4ABB54\] {
|
|
1041
|
-
--tw-bg-opacity: 1;
|
|
1042
|
-
background-color: rgb(74 187 84 / var(--tw-bg-opacity, 1));
|
|
1043
|
-
}
|
|
1044
1040
|
.bg-\[\#9A9FBF80\] {
|
|
1045
1041
|
background-color: #9A9FBF80;
|
|
1046
1042
|
}
|
|
1047
1043
|
.bg-\[\#9a9fbf27\] {
|
|
1048
1044
|
background-color: #9a9fbf27;
|
|
1049
1045
|
}
|
|
1050
|
-
.bg-\[\#BEB8FF\] {
|
|
1051
|
-
--tw-bg-opacity: 1;
|
|
1052
|
-
background-color: rgb(190 184 255 / var(--tw-bg-opacity, 1));
|
|
1053
|
-
}
|
|
1054
1046
|
.bg-\[\#D4A00773\] {
|
|
1055
1047
|
background-color: #D4A00773;
|
|
1056
1048
|
}
|