@fluxhub/fluxhub-lib 19.0.113 → 19.0.114
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,39 @@
|
|
|
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
|
+
diagramChanged: EventEmitter<string>;
|
|
9
|
+
elementSelected: EventEmitter<any>;
|
|
10
|
+
private modeler?;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
private initializeBpmnEditor;
|
|
14
|
+
private createNewDiagram;
|
|
15
|
+
private loadDiagram;
|
|
16
|
+
exportSVG(): Promise<string>;
|
|
17
|
+
exportXML(): Promise<string>;
|
|
18
|
+
zoomIn(): void;
|
|
19
|
+
zoomOut(): void;
|
|
20
|
+
zoomFit(): void;
|
|
21
|
+
zoomReset(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Apply colors to BPMN elements based on workflow step status
|
|
24
|
+
* - Green: completed steps
|
|
25
|
+
* - Orange: current step
|
|
26
|
+
*/
|
|
27
|
+
private applyStepColors;
|
|
28
|
+
/**
|
|
29
|
+
* Extract step number from element ID or name
|
|
30
|
+
* Supports formats like: "Activity_10", "Task_20", "Step_30", "10", "Step 10", etc.
|
|
31
|
+
*/
|
|
32
|
+
private extractStepNumber;
|
|
33
|
+
/**
|
|
34
|
+
* Update step colors dynamically (call this when step status changes)
|
|
35
|
+
*/
|
|
36
|
+
updateStepColors(completedSteps: number[], currentStep?: number): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BpmnEditorComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BpmnEditorComponent, "fh-bpmn-editor", never, { "initialXml": { "alias": "initialXml"; "required": false; }; "completedSteps": { "alias": "completedSteps"; "required": false; }; "currentStep": { "alias": "currentStep"; "required": false; }; }, { "diagramChanged": "diagramChanged"; "elementSelected": "elementSelected"; }, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -22,13 +22,17 @@ 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;
|
|
26
28
|
ric_all(): void;
|
|
27
29
|
close(): void;
|
|
28
30
|
init_v(): void;
|
|
29
31
|
zz?: MatTabGroup;
|
|
30
32
|
b_flussook: boolean;
|
|
31
33
|
load_graph(): void;
|
|
34
|
+
private loadWorkflowStepStatus;
|
|
35
|
+
private calculateCompletedStepsFromLogs;
|
|
32
36
|
logs: Array<any>;
|
|
33
37
|
notifica_commenti: number;
|
|
34
38
|
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';
|