@fluxhub/fluxhub-lib 19.0.113 → 19.0.115
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.
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ElementRef, AfterViewInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BpmnEditorComponent implements AfterViewInit, OnDestroy {
|
|
4
|
+
canvasRef: ElementRef;
|
|
5
|
+
initialXml?: string;
|
|
6
|
+
completedSteps: number[];
|
|
7
|
+
currentStep?: number;
|
|
8
|
+
transitionData: Array<{
|
|
9
|
+
fromStep: number;
|
|
10
|
+
toStep: number;
|
|
11
|
+
user: string;
|
|
12
|
+
date: string;
|
|
13
|
+
}>;
|
|
14
|
+
diagramChanged: EventEmitter<string>;
|
|
15
|
+
elementSelected: EventEmitter<any>;
|
|
16
|
+
private modeler?;
|
|
17
|
+
private overlays;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
private initializeBpmnEditor;
|
|
21
|
+
private createNewDiagram;
|
|
22
|
+
private loadDiagram;
|
|
23
|
+
exportSVG(): Promise<string>;
|
|
24
|
+
exportXML(): Promise<string>;
|
|
25
|
+
zoomIn(): void;
|
|
26
|
+
zoomOut(): void;
|
|
27
|
+
zoomFit(): void;
|
|
28
|
+
zoomReset(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Apply colors to BPMN elements based on workflow step status
|
|
31
|
+
* - Green: completed steps
|
|
32
|
+
* - Orange: current step
|
|
33
|
+
*/
|
|
34
|
+
private applyStepColors;
|
|
35
|
+
/**
|
|
36
|
+
* Extract step number from element ID or name
|
|
37
|
+
* Supports formats like: "Activity_10", "Task_20", "Step_30", "10", "Step 10", etc.
|
|
38
|
+
*/
|
|
39
|
+
private extractStepNumber;
|
|
40
|
+
/**
|
|
41
|
+
* Update step colors dynamically (call this when step status changes)
|
|
42
|
+
*/
|
|
43
|
+
updateStepColors(completedSteps: number[], currentStep?: number): void;
|
|
44
|
+
/**
|
|
45
|
+
* Apply transition information (user and date) on completed connections
|
|
46
|
+
*/
|
|
47
|
+
private applyTransitionInfo;
|
|
48
|
+
/**
|
|
49
|
+
* Find BPMN connection (sequence flow) that links two steps
|
|
50
|
+
*/
|
|
51
|
+
private findConnectionForTransition;
|
|
52
|
+
/**
|
|
53
|
+
* Escape HTML to prevent XSS
|
|
54
|
+
*/
|
|
55
|
+
private escapeHtml;
|
|
56
|
+
/**
|
|
57
|
+
* Update transition data dynamically
|
|
58
|
+
*/
|
|
59
|
+
updateTransitionData(transitionData: Array<{
|
|
60
|
+
fromStep: number;
|
|
61
|
+
toStep: number;
|
|
62
|
+
user: string;
|
|
63
|
+
date: string;
|
|
64
|
+
}>): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BpmnEditorComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BpmnEditorComponent, "fh-bpmn-editor", never, { "initialXml": { "alias": "initialXml"; "required": false; }; "completedSteps": { "alias": "completedSteps"; "required": false; }; "currentStep": { "alias": "currentStep"; "required": false; }; "transitionData": { "alias": "transitionData"; "required": false; }; }, { "diagramChanged": "diagramChanged"; "elementSelected": "elementSelected"; }, never, never, true, never>;
|
|
67
|
+
}
|
|
@@ -22,13 +22,29 @@ export declare class win_log_v2 implements AfterViewInit {
|
|
|
22
22
|
not_comm: boolean;
|
|
23
23
|
not_comm_disabled: boolean;
|
|
24
24
|
op: string;
|
|
25
|
-
|
|
25
|
+
diagramma_flusso: string;
|
|
26
|
+
completedSteps: number[];
|
|
27
|
+
currentStep: number;
|
|
28
|
+
transitionData: Array<{
|
|
29
|
+
fromStep: number;
|
|
30
|
+
toStep: number;
|
|
31
|
+
user: string;
|
|
32
|
+
date: string;
|
|
33
|
+
}>;
|
|
26
34
|
ric_all(): void;
|
|
27
35
|
close(): void;
|
|
28
36
|
init_v(): void;
|
|
29
37
|
zz?: MatTabGroup;
|
|
38
|
+
bpmnViewer?: any;
|
|
30
39
|
b_flussook: boolean;
|
|
31
40
|
load_graph(): void;
|
|
41
|
+
private loadWorkflowStepStatus;
|
|
42
|
+
private calculateCompletedStepsFromLogs;
|
|
43
|
+
private formatDate;
|
|
44
|
+
zoomIn(): void;
|
|
45
|
+
zoomOut(): void;
|
|
46
|
+
zoomFit(): void;
|
|
47
|
+
zoomReset(): void;
|
|
32
48
|
logs: Array<any>;
|
|
33
49
|
notifica_commenti: number;
|
|
34
50
|
notifica_commenti_obbl: number;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export { UtilityService } from './lib/services/utility.service';
|
|
|
95
95
|
export { FHWorkflowView } from './lib/wkf_engine_v2/wkf-app';
|
|
96
96
|
export { FHWorkflowForm } from './lib/wkf_engine_v2/wkf-form-data';
|
|
97
97
|
export { FHWorkflowHeaderBar } from './lib/wkf_engine_v2/wkf-header-bar';
|
|
98
|
+
export { BpmnEditorComponent } from './lib/wkf_engine_v2/bpmn-editor.component';
|
|
98
99
|
export { FHPickUsersComponent } from './lib/controls/fh-user-picker';
|
|
99
100
|
export { SafePipe } from './lib/controls/utils/save-pipe';
|
|
100
101
|
export { AuthHttpRequestInterceptor } from './lib/services/auth.interceptor';
|