verben-workflow-ui 0.5.44 → 0.5.46

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.
Files changed (53) hide show
  1. package/esm2022/public-api.mjs +3 -1
  2. package/esm2022/src/lib/components/flowable-status/flowable-status.columns.mjs +21 -0
  3. package/esm2022/src/lib/components/flowable-status/flowable-status.component.mjs +122 -0
  4. package/esm2022/src/lib/components/flowable-status/flowable-status.facade.mjs +207 -0
  5. package/esm2022/src/lib/components/flowable-status/flowable-status.form.component.mjs +52 -0
  6. package/esm2022/src/lib/components/flowable-status/flowable-status.module.mjs +21 -0
  7. package/esm2022/src/lib/components/flowable-status/flowable-status.service.mjs +55 -0
  8. package/esm2022/src/lib/components/flowable-status/flowable-status.state.mjs +85 -0
  9. package/esm2022/src/lib/components/flowable-status/index.mjs +2 -0
  10. package/esm2022/src/lib/components/flowable-status/public-api.mjs +3 -0
  11. package/esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs +5 -0
  12. package/esm2022/src/lib/components/form-response/form-response.component.mjs +52 -47
  13. package/esm2022/src/lib/components/form-response/form-response.service.mjs +2 -2
  14. package/esm2022/src/lib/components/forms/forms.component.mjs +3 -3
  15. package/esm2022/src/lib/components/workflow-designer/action-dialog/action-dialog.component.mjs +14 -4
  16. package/esm2022/src/lib/components/workflow-designer/designer-canvas/designer-canvas.component.mjs +3 -1
  17. package/esm2022/src/lib/components/workflow-designer/workflow-data.service.mjs +6 -1
  18. package/esm2022/src/lib/components/workflow-designer/workflow-designer.component.mjs +2 -1
  19. package/esm2022/src/lib/components/workflow-designer/workflow-designer.state.mjs +5 -1
  20. package/esm2022/src/lib/components/workflow-designer/workflow-designer.types.mjs +1 -1
  21. package/esm2022/src/lib/models/FlowableStatus.mjs +2 -0
  22. package/esm2022/src/lib/models/WorkflowAction.mjs +1 -1
  23. package/esm2022/src/lib/models/public-api.mjs +2 -1
  24. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs +545 -0
  25. package/fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs.map +1 -0
  26. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs +52 -47
  27. package/fesm2022/verben-workflow-ui-src-lib-components-form-response.mjs.map +1 -1
  28. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs +2 -2
  29. package/fesm2022/verben-workflow-ui-src-lib-components-forms.mjs.map +1 -1
  30. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs +25 -3
  31. package/fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs.map +1 -1
  32. package/fesm2022/verben-workflow-ui.mjs +1 -3
  33. package/fesm2022/verben-workflow-ui.mjs.map +1 -1
  34. package/package.json +31 -25
  35. package/public-api.d.ts +1 -0
  36. package/src/lib/components/flowable-status/flowable-status.columns.d.ts +3 -0
  37. package/src/lib/components/flowable-status/flowable-status.component.d.ts +34 -0
  38. package/src/lib/components/flowable-status/flowable-status.facade.d.ts +32 -0
  39. package/src/lib/components/flowable-status/flowable-status.form.component.d.ts +18 -0
  40. package/src/lib/components/flowable-status/flowable-status.module.d.ts +11 -0
  41. package/src/lib/components/flowable-status/flowable-status.service.d.ts +36 -0
  42. package/src/lib/components/flowable-status/flowable-status.state.d.ts +30 -0
  43. package/src/lib/components/flowable-status/index.d.ts +1 -0
  44. package/src/lib/components/flowable-status/public-api.d.ts +2 -0
  45. package/src/lib/components/form-response/form-response.component.d.ts +25 -24
  46. package/src/lib/components/form-response/form-response.service.d.ts +1 -1
  47. package/src/lib/components/workflow-designer/action-dialog/action-dialog.component.d.ts +3 -1
  48. package/src/lib/components/workflow-designer/workflow-data.service.d.ts +3 -1
  49. package/src/lib/components/workflow-designer/workflow-designer.types.d.ts +2 -2
  50. package/src/lib/models/FlowableStatus.d.ts +5 -0
  51. package/src/lib/models/WorkflowAction.d.ts +1 -0
  52. package/src/lib/models/public-api.d.ts +1 -0
  53. package/styles/styles.css +0 -8
@@ -17,6 +17,7 @@ export * from 'verben-workflow-ui/src/lib/components/expiration';
17
17
  export * from 'verben-workflow-ui/src/lib/components/journal';
18
18
  export * from 'verben-workflow-ui/src/lib/components/task-notification';
19
19
  export * from 'verben-workflow-ui/src/lib/components/actors';
20
+ export * from 'verben-workflow-ui/src/lib/components/flowable-status';
20
21
 
21
22
  /*
22
23
  * Public API Surface of verben-ng-ui
@@ -24,9 +25,6 @@ export * from 'verben-workflow-ui/src/lib/components/actors';
24
25
  // export * from './lib/verben-ng-ui.service';
25
26
  // export * from './lib/verben-ng-ui.component';
26
27
  // Exporting modules
27
- // export * from 'verben-workflow-ui/src/lib/components/actors-v2';
28
- // export * from 'verben-workflow-ui/src/lib/components/actors-v3';
29
- // export * from 'verben-workflow-ui/src/lib/components/actors-readonly';
30
28
 
31
29
  /**
32
30
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"verben-workflow-ui.mjs","sources":["../../../projects/verben-workflow-ui/src/public-api.ts","../../../projects/verben-workflow-ui/src/verben-workflow-ui.ts"],"sourcesContent":["/*\n * Public API Surface of verben-ng-ui\n */\n\n// export * from './lib/verben-ng-ui.service';\n// export * from './lib/verben-ng-ui.component';\n\n// Exporting modules\n\nexport * from 'verben-workflow-ui/src/lib/services';\n\nexport * from 'verben-workflow-ui/src/lib/models';\n\nexport * from 'verben-workflow-ui/src/lib/shared';\n\nexport * from 'verben-workflow-ui/src/lib/components/tasks';\n\nexport * from 'verben-workflow-ui/src/lib/components/my-queue';\n\nexport * from 'verben-workflow-ui/src/lib/components/workflow';\nexport * from 'verben-workflow-ui/src/lib/components/workflows';\n\nexport * from 'verben-workflow-ui/src/lib/components/wf';\n\nexport * from 'verben-workflow-ui/src/lib/components/workflow-designer';\n\nexport * from 'verben-workflow-ui/src/lib/components/designer';\n\n//task history\nexport * from 'verben-workflow-ui/src/lib/components/task-history';\n//forms\nexport * from 'verben-workflow-ui/src/lib/components/forms';\n//form group\nexport * from 'verben-workflow-ui/src/lib/components/form-group';\n//form response\nexport * from 'verben-workflow-ui/src/lib/components/form-response';\n//stage details\nexport * from 'verben-workflow-ui/src/lib/components/stage-details';\n//expiration\nexport * from 'verben-workflow-ui/src/lib/components/expiration';\n\n//journal\nexport * from 'verben-workflow-ui/src/lib/components/journal';\n\nexport * from 'verben-workflow-ui/src/lib/components/task-notification';\n\n//actors\nexport * from 'verben-workflow-ui/src/lib/components/actors';\n// export * from 'verben-workflow-ui/src/lib/components/actors-v2';\n// export * from 'verben-workflow-ui/src/lib/components/actors-v3';\n// export * from 'verben-workflow-ui/src/lib/components/actors-readonly';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;AAEH;AACA;AAEA;AAyCA;AACA;AACA;;AClDA;;AAEG"}
1
+ {"version":3,"file":"verben-workflow-ui.mjs","sources":["../../../projects/verben-workflow-ui/src/public-api.ts","../../../projects/verben-workflow-ui/src/verben-workflow-ui.ts"],"sourcesContent":["/*\n * Public API Surface of verben-ng-ui\n */\n\n// export * from './lib/verben-ng-ui.service';\n// export * from './lib/verben-ng-ui.component';\n\n// Exporting modules\n\nexport * from 'verben-workflow-ui/src/lib/services';\n\nexport * from 'verben-workflow-ui/src/lib/models';\n\nexport * from 'verben-workflow-ui/src/lib/shared';\n\nexport * from 'verben-workflow-ui/src/lib/components/tasks';\n\nexport * from 'verben-workflow-ui/src/lib/components/my-queue';\n\nexport * from 'verben-workflow-ui/src/lib/components/workflow';\nexport * from 'verben-workflow-ui/src/lib/components/workflows';\n\nexport * from 'verben-workflow-ui/src/lib/components/wf';\n\nexport * from 'verben-workflow-ui/src/lib/components/workflow-designer';\n\nexport * from 'verben-workflow-ui/src/lib/components/designer';\n\n//task history\nexport * from 'verben-workflow-ui/src/lib/components/task-history';\n//forms\nexport * from 'verben-workflow-ui/src/lib/components/forms';\n//form group\nexport * from 'verben-workflow-ui/src/lib/components/form-group';\n//form response\nexport * from 'verben-workflow-ui/src/lib/components/form-response';\n//stage details\nexport * from 'verben-workflow-ui/src/lib/components/stage-details';\n//expiration\nexport * from 'verben-workflow-ui/src/lib/components/expiration';\n\n//journal\nexport * from 'verben-workflow-ui/src/lib/components/journal';\n\nexport * from 'verben-workflow-ui/src/lib/components/task-notification';\n\n//actors\nexport * from 'verben-workflow-ui/src/lib/components/actors';\n// export * from 'verben-workflow-ui/src/lib/components/actors-v2';\n// export * from 'verben-workflow-ui/src/lib/components/actors-v3';\n// export * from 'verben-workflow-ui/src/lib/components/actors-readonly';\n\n//flowable-status\nexport * from 'verben-workflow-ui/src/lib/components/flowable-status';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AAEG;AAEH;AACA;AAEA;;ACPA;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verben-workflow-ui",
3
- "version": "0.5.44",
3
+ "version": "0.5.46",
4
4
  "style": "styles/styles.css",
5
5
  "exports": {
6
6
  "./styles": {
@@ -15,18 +15,6 @@
15
15
  "esm": "./esm2022/verben-workflow-ui.mjs",
16
16
  "default": "./fesm2022/verben-workflow-ui.mjs"
17
17
  },
18
- "./src/lib/pipes": {
19
- "types": "./src/lib/pipes/index.d.ts",
20
- "esm2022": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
21
- "esm": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
22
- "default": "./fesm2022/verben-workflow-ui-src-lib-pipes.mjs"
23
- },
24
- "./src/lib/services": {
25
- "types": "./src/lib/services/index.d.ts",
26
- "esm2022": "./esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs",
27
- "esm": "./esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs",
28
- "default": "./fesm2022/verben-workflow-ui-src-lib-services.mjs"
29
- },
30
18
  "./src/lib/models": {
31
19
  "types": "./src/lib/models/index.d.ts",
32
20
  "esm2022": "./esm2022/src/lib/models/verben-workflow-ui-src-lib-models.mjs",
@@ -39,6 +27,18 @@
39
27
  "esm": "./esm2022/src/lib/shared/verben-workflow-ui-src-lib-shared.mjs",
40
28
  "default": "./fesm2022/verben-workflow-ui-src-lib-shared.mjs"
41
29
  },
30
+ "./src/lib/pipes": {
31
+ "types": "./src/lib/pipes/index.d.ts",
32
+ "esm2022": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
33
+ "esm": "./esm2022/src/lib/pipes/verben-workflow-ui-src-lib-pipes.mjs",
34
+ "default": "./fesm2022/verben-workflow-ui-src-lib-pipes.mjs"
35
+ },
36
+ "./src/lib/services": {
37
+ "types": "./src/lib/services/index.d.ts",
38
+ "esm2022": "./esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs",
39
+ "esm": "./esm2022/src/lib/services/verben-workflow-ui-src-lib-services.mjs",
40
+ "default": "./fesm2022/verben-workflow-ui-src-lib-services.mjs"
41
+ },
42
42
  "./src/lib/components/actors": {
43
43
  "types": "./src/lib/components/actors/index.d.ts",
44
44
  "esm2022": "./esm2022/src/lib/components/actors/verben-workflow-ui-src-lib-components-actors.mjs",
@@ -51,24 +51,30 @@
51
51
  "esm": "./esm2022/src/lib/components/designer/verben-workflow-ui-src-lib-components-designer.mjs",
52
52
  "default": "./fesm2022/verben-workflow-ui-src-lib-components-designer.mjs"
53
53
  },
54
+ "./src/lib/components/flowable-status": {
55
+ "types": "./src/lib/components/flowable-status/index.d.ts",
56
+ "esm2022": "./esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs",
57
+ "esm": "./esm2022/src/lib/components/flowable-status/verben-workflow-ui-src-lib-components-flowable-status.mjs",
58
+ "default": "./fesm2022/verben-workflow-ui-src-lib-components-flowable-status.mjs"
59
+ },
54
60
  "./src/lib/components/expiration": {
55
61
  "types": "./src/lib/components/expiration/index.d.ts",
56
62
  "esm2022": "./esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs",
57
63
  "esm": "./esm2022/src/lib/components/expiration/verben-workflow-ui-src-lib-components-expiration.mjs",
58
64
  "default": "./fesm2022/verben-workflow-ui-src-lib-components-expiration.mjs"
59
65
  },
60
- "./src/lib/components/form-control": {
61
- "types": "./src/lib/components/form-control/index.d.ts",
62
- "esm2022": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
63
- "esm": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
64
- "default": "./fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs"
65
- },
66
66
  "./src/lib/components/file-upload": {
67
67
  "types": "./src/lib/components/file-upload/index.d.ts",
68
68
  "esm2022": "./esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs",
69
69
  "esm": "./esm2022/src/lib/components/file-upload/verben-workflow-ui-src-lib-components-file-upload.mjs",
70
70
  "default": "./fesm2022/verben-workflow-ui-src-lib-components-file-upload.mjs"
71
71
  },
72
+ "./src/lib/components/form-control": {
73
+ "types": "./src/lib/components/form-control/index.d.ts",
74
+ "esm2022": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
75
+ "esm": "./esm2022/src/lib/components/form-control/verben-workflow-ui-src-lib-components-form-control.mjs",
76
+ "default": "./fesm2022/verben-workflow-ui-src-lib-components-form-control.mjs"
77
+ },
72
78
  "./src/lib/components/form-group": {
73
79
  "types": "./src/lib/components/form-group/index.d.ts",
74
80
  "esm2022": "./esm2022/src/lib/components/form-group/verben-workflow-ui-src-lib-components-form-group.mjs",
@@ -141,18 +147,18 @@
141
147
  "esm": "./esm2022/src/lib/components/wf/verben-workflow-ui-src-lib-components-wf.mjs",
142
148
  "default": "./fesm2022/verben-workflow-ui-src-lib-components-wf.mjs"
143
149
  },
144
- "./src/lib/components/workflow": {
145
- "types": "./src/lib/components/workflow/index.d.ts",
146
- "esm2022": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
147
- "esm": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
148
- "default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs"
149
- },
150
150
  "./src/lib/components/workflow-designer": {
151
151
  "types": "./src/lib/components/workflow-designer/index.d.ts",
152
152
  "esm2022": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
153
153
  "esm": "./esm2022/src/lib/components/workflow-designer/verben-workflow-ui-src-lib-components-workflow-designer.mjs",
154
154
  "default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow-designer.mjs"
155
155
  },
156
+ "./src/lib/components/workflow": {
157
+ "types": "./src/lib/components/workflow/index.d.ts",
158
+ "esm2022": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
159
+ "esm": "./esm2022/src/lib/components/workflow/verben-workflow-ui-src-lib-components-workflow.mjs",
160
+ "default": "./fesm2022/verben-workflow-ui-src-lib-components-workflow.mjs"
161
+ },
156
162
  "./src/lib/components/workflows": {
157
163
  "types": "./src/lib/components/workflows/index.d.ts",
158
164
  "esm2022": "./esm2022/src/lib/components/workflows/verben-workflow-ui-src-lib-components-workflows.mjs",
package/public-api.d.ts CHANGED
@@ -17,3 +17,4 @@ export * from 'verben-workflow-ui/src/lib/components/expiration';
17
17
  export * from 'verben-workflow-ui/src/lib/components/journal';
18
18
  export * from 'verben-workflow-ui/src/lib/components/task-notification';
19
19
  export * from 'verben-workflow-ui/src/lib/components/actors';
20
+ export * from 'verben-workflow-ui/src/lib/components/flowable-status';
@@ -0,0 +1,3 @@
1
+ import { ColumnDefinition } from "verben-ng-ui";
2
+ import { FlowableStatus } from "verben-workflow-ui/src/lib/models";
3
+ export declare const columns: ColumnDefinition<FlowableStatus>[];
@@ -0,0 +1,34 @@
1
+ import { ChangeDetectorRef, WritableSignal } from '@angular/core';
2
+ import { FormBuilder } from '@angular/forms';
3
+ import { CardData, FormGroupConfig } from 'verben-ng-ui';
4
+ import { FlowableStatus } from 'verben-workflow-ui/src/lib/models';
5
+ import { BaseDataViewComponent, DataViewConfig } from 'verben-workflow-ui/src/lib/shared';
6
+ import { FlowableStatusFacade } from './flowable-status.facade';
7
+ import * as i0 from "@angular/core";
8
+ export declare class FlowableStatusComponent extends BaseDataViewComponent<FlowableStatus> {
9
+ private cdr;
10
+ private facade;
11
+ private fb;
12
+ config: DataViewConfig<FlowableStatus>;
13
+ formGroupConfig: WritableSignal<FormGroupConfig<any>>;
14
+ constructor(cdr: ChangeDetectorRef, facade: FlowableStatusFacade, fb: FormBuilder);
15
+ loadInitialData(): void;
16
+ protected getCardDataByIdentifier(code: string): CardData | undefined;
17
+ loadMore(): Promise<void>;
18
+ onSave(data: Partial<FlowableStatus>): Promise<void>;
19
+ handleSearch(event: {
20
+ key: string;
21
+ value: string;
22
+ }): void;
23
+ handleFetchedExport({ skip, limit }: any): void;
24
+ loadData(range: {
25
+ skip: number;
26
+ limit: number;
27
+ }): Promise<FlowableStatus[]>;
28
+ onStateChange(event: {
29
+ key: string;
30
+ value: boolean;
31
+ }): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowableStatusComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowableStatusComponent, "lib-flowable-status", never, {}, {}, never, never, false, never>;
34
+ }
@@ -0,0 +1,32 @@
1
+ import { Observable } from 'rxjs';
2
+ import { IDataFilter } from 'verben-ng-ui';
3
+ import { FlowableStatus, QueryParams } from 'verben-workflow-ui/src/lib/models';
4
+ import { UtilService } from 'verben-workflow-ui/src/lib/services';
5
+ import { FlowableStatusService } from './flowable-status.service';
6
+ import { FlowableStatusState } from './flowable-status.state';
7
+ import * as i0 from "@angular/core";
8
+ export declare class FlowableStatusFacade {
9
+ private service;
10
+ private state;
11
+ private utilService;
12
+ private searchSubject;
13
+ private destroy$;
14
+ constructor(service: FlowableStatusService, state: FlowableStatusState, utilService: UtilService);
15
+ isUpdating$(): Observable<boolean>;
16
+ getRequests$(): Observable<FlowableStatus[]>;
17
+ getQueryParams$(): Observable<QueryParams<FlowableStatus>>;
18
+ getSearchTerm$(): Observable<string>;
19
+ search(term: string): void;
20
+ private handleSearch;
21
+ filter(filterParams: IDataFilter[]): Promise<void>;
22
+ addNewRequest(task: FlowableStatus): void;
23
+ loadRequests(): Promise<void>;
24
+ loadRequestsWithParam(param: string): Promise<void>;
25
+ updateQueryParams(params: Partial<QueryParams<FlowableStatus>>): void;
26
+ addRequest(request: Partial<FlowableStatus>): Promise<void>;
27
+ updateRequest(request: FlowableStatus): Promise<void>;
28
+ loadMore(queue?: boolean): Promise<void>;
29
+ loadData(skip: number, limit: number): Promise<FlowableStatus[] | void>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowableStatusFacade, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowableStatusFacade>;
32
+ }
@@ -0,0 +1,18 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { CardData } from 'verben-ng-ui';
4
+ import { FlowableStatus } from 'verben-workflow-ui/src/lib/models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FlowableStatusFormComponent {
7
+ private fb;
8
+ onSave: EventEmitter<Partial<FlowableStatus>>;
9
+ switchView: EventEmitter<undefined>;
10
+ get currentData(): CardData | null;
11
+ set currentData(value: CardData | null);
12
+ private _currentData;
13
+ form: FormGroup;
14
+ constructor(fb: FormBuilder);
15
+ handleSubmit(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowableStatusFormComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowableStatusFormComponent, "flowable-status-form", never, { "currentData": { "alias": "currentData"; "required": false; }; }, { "onSave": "onSave"; "switchView": "switchView"; }, never, never, false, never>;
18
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./flowable-status.component";
3
+ import * as i2 from "./flowable-status.form.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "verben-workflow-ui/src/lib/shared";
6
+ import * as i5 from "@angular/router";
7
+ export declare class FlowableStatusModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowableStatusModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowableStatusModule, [typeof i1.FlowableStatusComponent, typeof i2.FlowableStatusFormComponent], [typeof i3.CommonModule, typeof i4.SharedModule, typeof i5.RouterLink], [typeof i1.FlowableStatusComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<FlowableStatusModule>;
11
+ }
@@ -0,0 +1,36 @@
1
+ import { ErrorResponse, FlowableStatus, Paged } from 'verben-workflow-ui/src/lib/models';
2
+ import { EnvironmentService, HttpWebRequestService } from 'verben-workflow-ui/src/lib/services';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FlowableStatusService {
5
+ private httpService;
6
+ private envSvc;
7
+ private readonly BASE_URL;
8
+ constructor(httpService: HttpWebRequestService, envSvc: EnvironmentService);
9
+ /**
10
+ * Get data with pagination and sorting
11
+ * @param skip Number of records to skip
12
+ * @param limit Number of records to take
13
+ * @param sortParam Sort parameter
14
+ * @param sortOrder Sort order ('asc' or 'desc')
15
+ * @returns Promise containing the data
16
+ */
17
+ getData(skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<FlowableStatus> | ErrorResponse>;
18
+ /**
19
+ * Get data with additional parameter, pagination and sorting
20
+ * @param param Search parameter
21
+ * @param skip Number of records to skip
22
+ * @param limit Number of records to take
23
+ * @param sortParam Sort parameter
24
+ * @param sortOrder Sort order ('asc' or 'desc')
25
+ * @returns Promise containing the filtered data
26
+ */
27
+ getFlowableStatusWithParam(param: string, skip: number, limit: number, sortParam: string, sortOrder: string): Promise<Paged<FlowableStatus> | ErrorResponse>;
28
+ /**
29
+ * Save multiple data
30
+ * @param requests Array of data to save
31
+ * @returns Promise containing the save operation result
32
+ */
33
+ saveFlowableStatuses(requests: FlowableStatus[]): Promise<any | ErrorResponse>;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowableStatusService, never>;
35
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowableStatusService>;
36
+ }
@@ -0,0 +1,30 @@
1
+ import { Observable } from 'rxjs';
2
+ import { IDataFilter } from 'verben-ng-ui';
3
+ import { FlowableStatus, QueryParams } from 'verben-workflow-ui/src/lib/models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlowableStatusState {
6
+ private updating$;
7
+ private data$;
8
+ private searchTerm$;
9
+ private queryParams$;
10
+ private filterParams$;
11
+ isUpdating$(): Observable<boolean>;
12
+ setUpdating(isUpdating: boolean): void;
13
+ getRequests$(): Observable<FlowableStatus[]>;
14
+ setRequests(data: FlowableStatus[]): void;
15
+ getSearchTerm$(): Observable<string>;
16
+ getSearchTermValue(): string;
17
+ setSearchTerm(term: string): void;
18
+ getFilterParams$(): Observable<IDataFilter[]>;
19
+ setFilterParams(params: IDataFilter[]): void;
20
+ getQueryParams$(): Observable<QueryParams<FlowableStatus>>;
21
+ getQueryParamsValue(): QueryParams<FlowableStatus>;
22
+ updateQueryParams(params: Partial<QueryParams<FlowableStatus>>): void;
23
+ addRequest(task: FlowableStatus): void;
24
+ resetPagination(): void;
25
+ updateRequest(updatedRequest: FlowableStatus): void;
26
+ removeRequest(code: string): void;
27
+ appendRequests(newRequests: FlowableStatus[]): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowableStatusState, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlowableStatusState>;
30
+ }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './flowable-status.component';
2
+ export * from './flowable-status.module';
@@ -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 as Forms } from 'verben-workflow-ui/src/lib/models';
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 taskUsersSvc;
23
+ private formResponseSvc;
24
24
  private _location;
25
25
  private route;
26
- visibleColumnDef: ColumnDefinition<Forms>[];
26
+ visibleColumnDef: ColumnDefinition<Form>[];
27
27
  styles: any;
28
- data: Forms[];
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<Forms>;
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<Forms> | null;
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: Forms[];
54
+ users: Form[];
54
55
  visibleColumns: IDataFilter[];
55
56
  filterArray: IDataFilter[];
56
- closePopUp(row: Forms): void;
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, taskUsersSvc: FormResponseService, _location: Location, route: ActivatedRoute);
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<Forms[] | undefined>;
65
+ getAllTaskUsers(): Promise<Form[] | undefined>;
65
66
  clearLogs(sortValue?: string, order?: string): void;
66
- getForms(taskCode: string): Promise<Forms[] | undefined>;
67
+ getForms(taskCode: string): Promise<Form[] | undefined>;
67
68
  loadMore(): void;
68
69
  reset(): void;
69
- onUserSelected(event: DropdownChangeEvent, item: Forms): void;
70
- onClear(event: Event, item: Forms): void;
70
+ onUserSelected(event: DropdownChangeEvent, item: Form): void;
71
+ onClear(event: Event, item: Form): void;
71
72
  setUpCardData(): void;
72
- goToCardView(data: Forms): void;
73
- areRequiredPropertiesFilled(data: Forms): boolean;
73
+ goToCardView(data: Form): void;
74
+ areRequiredPropertiesFilled(data: Form): boolean;
74
75
  goToTableView(): void;
75
76
  viewProcesses(code: string): void;
76
- userCardClicked(item: CardData, toggleView?: boolean): void;
77
- saveUser(): Promise<void>;
78
- tableSaveUser(user: Forms, callBack: () => any): Promise<void>;
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: Forms): void;
81
+ navigateToFields(card: Form): void;
81
82
  onClose(): void;
82
- openDropdown(item: Forms): void;
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: Forms[]): void;
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<Forms[] | undefined>;
99
- loadMoreFiltersAndSorts(): Promise<PagedResult<Forms> | undefined>;
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 taskUsersColumns(): ColumnDefinition<Form>[];
6
+ get formColumns(): ColumnDefinition<Form>[];
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FormResponseService, never>;
8
8
  static ɵprov: i0.ɵɵInjectableDeclaration<FormResponseService>;
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnInit, WritableSignal } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
- import { OperationAction } from 'verben-workflow-ui/src/lib/models';
3
+ import { FlowableStatus, OperationAction } from 'verben-workflow-ui/src/lib/models';
4
4
  import { WorkflowDataService } from '../workflow-data.service';
5
5
  import { Connection } from '../workflow-designer.types';
6
6
  import * as i0 from "@angular/core";
@@ -13,10 +13,12 @@ export declare class ActionDialogComponent implements OnInit {
13
13
  saved: EventEmitter<Connection>;
14
14
  actionForm: FormGroup;
15
15
  operationActions: WritableSignal<OperationAction[]>;
16
+ flowableStatuses: WritableSignal<FlowableStatus[]>;
16
17
  constructor(fb: FormBuilder, dataService: WorkflowDataService);
17
18
  ngOnInit(): void;
18
19
  saveAction(): void;
19
20
  private loadOperationActions;
21
+ private loadFlowableStatuses;
20
22
  onDialogClose(eventData: any): void;
21
23
  onDialogOpen(eventData: any): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionDialogComponent, never>;
@@ -1,4 +1,4 @@
1
- import { ActorTag, Escalation, Form, OperationAction, Paged, ReportSchedule, Tag, Workflow, WorkflowStage } from 'verben-workflow-ui/src/lib/models';
1
+ import { ActorTag, Escalation, FlowableStatus, Form, OperationAction, Paged, ReportSchedule, Tag, Workflow, WorkflowStage } 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 WorkflowDataService {
@@ -11,6 +11,7 @@ export declare class WorkflowDataService {
11
11
  private readonly RS_MODEL_BASE_PATH;
12
12
  private readonly UTIL_BASE_PATH;
13
13
  private readonly ACTOR_MODEL_BASE_PATH;
14
+ private readonly FLOWABLE_STATUS_MODEL_BASE_PATH;
14
15
  constructor(httpService: HttpWebRequestService, envSvc: EnvironmentService);
15
16
  getWorkflowWithParam(param: string, skip?: number, limit?: number, sortParam?: string, sortOrder?: string): Promise<Paged<Workflow>>;
16
17
  getWorkflows(skip?: number, limit?: number): Promise<Paged<Workflow>>;
@@ -24,6 +25,7 @@ export declare class WorkflowDataService {
24
25
  getReportSchedules(skip?: number, limit?: number): Promise<Paged<ReportSchedule>>;
25
26
  getOperationActions(skip?: number, limit?: number): Promise<Paged<OperationAction>>;
26
27
  saveActorTags(requests: ActorTag[]): Promise<any>;
28
+ getFlowableStatuses(skip?: number, limit?: number): Promise<Paged<FlowableStatus>>;
27
29
  private createMockWorkflow;
28
30
  static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowDataService, never>;
29
31
  static ɵprov: i0.ɵɵInjectableDeclaration<WorkflowDataService>;
@@ -1,5 +1,4 @@
1
- import { Tag } from 'verben-workflow-ui/src/lib/models';
2
- import { WorkflowStage } from 'verben-workflow-ui/src/lib/models';
1
+ import { Tag, WorkflowStage } from 'verben-workflow-ui/src/lib/models';
3
2
  export type ToolType = 'swimlane' | 'stage' | 'action' | 'form' | 'decision' | 'subflow' | null;
4
3
  export interface SwimlaneItem {
5
4
  order: number;
@@ -46,4 +45,5 @@ export interface Connection {
46
45
  condition?: string;
47
46
  label: string;
48
47
  action: string | null;
48
+ targetStatus?: string;
49
49
  }
@@ -0,0 +1,5 @@
1
+ import { BaseModel } from './base';
2
+ export interface FlowableStatus extends BaseModel {
3
+ Name: string;
4
+ Description: string;
5
+ }
@@ -9,4 +9,5 @@ export interface WorkflowAction extends BaseModel {
9
9
  OperationAction: string | null;
10
10
  SourcePointType?: 'top' | 'right' | 'bottom' | 'left';
11
11
  TargetPointType?: 'top' | 'right' | 'bottom' | 'left';
12
+ TargetStatus?: string;
12
13
  }
@@ -59,3 +59,4 @@ export * from './WorkflowAction';
59
59
  export * from './WorkflowOperation';
60
60
  export * from './WorkflowStage';
61
61
  export * from './File';
62
+ export * from './FlowableStatus';
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
  }