@fluxhub/fluxhub-lib 19.0.114 → 19.0.116
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.
|
@@ -32084,9 +32084,11 @@ class BpmnEditorComponent {
|
|
|
32084
32084
|
initialXml;
|
|
32085
32085
|
completedSteps = []; // Step completati (es. [10, 20])
|
|
32086
32086
|
currentStep; // Step corrente (es. 30)
|
|
32087
|
+
transitionData = [];
|
|
32087
32088
|
diagramChanged = new EventEmitter();
|
|
32088
32089
|
elementSelected = new EventEmitter();
|
|
32089
32090
|
modeler;
|
|
32091
|
+
overlays;
|
|
32090
32092
|
ngAfterViewInit() {
|
|
32091
32093
|
// Small delay to ensure DOM is ready
|
|
32092
32094
|
setTimeout(() => {
|
|
@@ -32104,6 +32106,8 @@ class BpmnEditorComponent {
|
|
|
32104
32106
|
container: this.canvasRef.nativeElement,
|
|
32105
32107
|
keyboard: { bindTo: document }
|
|
32106
32108
|
});
|
|
32109
|
+
// Get overlays service
|
|
32110
|
+
this.overlays = this.modeler.get('overlays');
|
|
32107
32111
|
// Listen for element selection
|
|
32108
32112
|
this.modeler.on('selection.changed', (event) => {
|
|
32109
32113
|
this.elementSelected.emit(event.newSelection);
|
|
@@ -32150,6 +32154,8 @@ class BpmnEditorComponent {
|
|
|
32150
32154
|
canvas.zoom('fit-viewport');
|
|
32151
32155
|
// Apply colors to steps
|
|
32152
32156
|
this.applyStepColors();
|
|
32157
|
+
// Apply transition info on connections
|
|
32158
|
+
this.applyTransitionInfo();
|
|
32153
32159
|
}, 200);
|
|
32154
32160
|
}).catch((err) => {
|
|
32155
32161
|
console.error('Error loading BPMN diagram:', err);
|
|
@@ -32248,12 +32254,88 @@ class BpmnEditorComponent {
|
|
|
32248
32254
|
this.currentStep = currentStep;
|
|
32249
32255
|
this.applyStepColors();
|
|
32250
32256
|
}
|
|
32257
|
+
/**
|
|
32258
|
+
* Apply transition information (user and date) on completed connections
|
|
32259
|
+
*/
|
|
32260
|
+
applyTransitionInfo() {
|
|
32261
|
+
if (!this.modeler || !this.overlays)
|
|
32262
|
+
return;
|
|
32263
|
+
const canvas = this.modeler.get('canvas');
|
|
32264
|
+
const elementRegistry = this.modeler.get('elementRegistry');
|
|
32265
|
+
// Get all connection/sequence flow elements
|
|
32266
|
+
const allElements = elementRegistry.getAll();
|
|
32267
|
+
const connections = allElements.filter((el) => el.type === 'bpmn:SequenceFlow');
|
|
32268
|
+
// For each completed transition, find corresponding connection and add overlay
|
|
32269
|
+
this.transitionData.forEach((transition) => {
|
|
32270
|
+
// Find connection that links fromStep to toStep
|
|
32271
|
+
const connection = this.findConnectionForTransition(connections, transition.fromStep, transition.toStep);
|
|
32272
|
+
if (connection) {
|
|
32273
|
+
// Highlight the connection
|
|
32274
|
+
canvas.addMarker(connection.id, 'highlight-completed-connection');
|
|
32275
|
+
// Create overlay with user and date info
|
|
32276
|
+
const overlayHtml = `
|
|
32277
|
+
<div class="transition-info-overlay">
|
|
32278
|
+
<span class="user">${this.escapeHtml(transition.user)}</span>
|
|
32279
|
+
<span class="date">${this.escapeHtml(transition.date)}</span>
|
|
32280
|
+
</div>
|
|
32281
|
+
`;
|
|
32282
|
+
try {
|
|
32283
|
+
this.overlays.add(connection.id, {
|
|
32284
|
+
position: {
|
|
32285
|
+
top: -10,
|
|
32286
|
+
left: 0
|
|
32287
|
+
},
|
|
32288
|
+
html: overlayHtml
|
|
32289
|
+
});
|
|
32290
|
+
}
|
|
32291
|
+
catch (err) {
|
|
32292
|
+
console.warn('Could not add overlay to connection:', connection.id, err);
|
|
32293
|
+
}
|
|
32294
|
+
}
|
|
32295
|
+
});
|
|
32296
|
+
}
|
|
32297
|
+
/**
|
|
32298
|
+
* Find BPMN connection (sequence flow) that links two steps
|
|
32299
|
+
*/
|
|
32300
|
+
findConnectionForTransition(connections, fromStep, toStep) {
|
|
32301
|
+
for (const conn of connections) {
|
|
32302
|
+
if (!conn.source || !conn.target)
|
|
32303
|
+
continue;
|
|
32304
|
+
// Extract step numbers from source and target elements
|
|
32305
|
+
const sourceStep = this.extractStepNumber(conn.source.id, conn.source.businessObject?.name || '');
|
|
32306
|
+
const targetStep = this.extractStepNumber(conn.target.id, conn.target.businessObject?.name || '');
|
|
32307
|
+
// Check if this connection matches the transition
|
|
32308
|
+
if (sourceStep === fromStep && targetStep === toStep) {
|
|
32309
|
+
return conn;
|
|
32310
|
+
}
|
|
32311
|
+
}
|
|
32312
|
+
return null;
|
|
32313
|
+
}
|
|
32314
|
+
/**
|
|
32315
|
+
* Escape HTML to prevent XSS
|
|
32316
|
+
*/
|
|
32317
|
+
escapeHtml(text) {
|
|
32318
|
+
const div = document.createElement('div');
|
|
32319
|
+
div.textContent = text;
|
|
32320
|
+
return div.innerHTML;
|
|
32321
|
+
}
|
|
32322
|
+
/**
|
|
32323
|
+
* Update transition data dynamically
|
|
32324
|
+
*/
|
|
32325
|
+
updateTransitionData(transitionData) {
|
|
32326
|
+
this.transitionData = transitionData;
|
|
32327
|
+
// Clear existing overlays
|
|
32328
|
+
if (this.overlays) {
|
|
32329
|
+
this.overlays.clear();
|
|
32330
|
+
}
|
|
32331
|
+
this.applyTransitionInfo();
|
|
32332
|
+
}
|
|
32251
32333
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BpmnEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32252
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: BpmnEditorComponent, isStandalone: true, selector: "fh-bpmn-editor", inputs: { initialXml: "initialXml", completedSteps: "completedSteps", currentStep: "currentStep" }, outputs: { diagramChanged: "diagramChanged", elementSelected: "elementSelected" }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true, static: true }], ngImport: i0, template: `
|
|
32334
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: BpmnEditorComponent, isStandalone: true, selector: "fh-bpmn-editor", inputs: { initialXml: "initialXml", completedSteps: "completedSteps", currentStep: "currentStep", transitionData: "transitionData" }, outputs: { diagramChanged: "diagramChanged", elementSelected: "elementSelected" }, viewQueries: [{ propertyName: "canvasRef", first: true, predicate: ["canvas"], descendants: true, static: true }], ngImport: i0, template: `
|
|
32253
32335
|
<div class="bpmn-container">
|
|
32254
32336
|
<div class="bpmn-canvas" #canvas></div>
|
|
32255
32337
|
</div>
|
|
32256
|
-
`, isInline: true, styles: [".bpmn-container{height:100%;width:100%;position:relative;background:#f8f9fa}.bpmn-canvas{height:100%;width:100%;background:#fff;border:1px solid #e0e0e0}:host ::ng-deep .highlight-completed .djs-visual>:nth-child(1){fill:#4caf50!important;stroke:#2e7d32!important;fill-opacity:.3!important}:host ::ng-deep .highlight-current .djs-visual>:nth-child(1){fill:#ff9800!important;stroke:#e65100!important;fill-opacity:.4!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
32338
|
+
`, isInline: true, styles: [".bpmn-container{height:100%;width:100%;position:relative;background:#f8f9fa}.bpmn-canvas{height:100%;width:100%;background:#fff;border:1px solid #e0e0e0}:host ::ng-deep .highlight-completed .djs-visual>:nth-child(1){fill:#4caf50!important;stroke:#2e7d32!important;fill-opacity:.3!important}:host ::ng-deep .highlight-current .djs-visual>:nth-child(1){fill:#ff9800!important;stroke:#e65100!important;fill-opacity:.4!important}:host ::ng-deep .transition-info-overlay{background:#4caf50f2;color:#fff;padding:4px 8px;border-radius:4px;font-size:11px;white-space:nowrap;box-shadow:0 2px 4px #0003;pointer-events:none;line-height:1.3}:host ::ng-deep .transition-info-overlay .user{font-weight:600;display:block}:host ::ng-deep .transition-info-overlay .date{font-size:10px;opacity:.9;display:block}:host ::ng-deep .highlight-completed-connection .djs-visual>:nth-child(1){stroke:#4caf50!important;stroke-width:2!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
32257
32339
|
}
|
|
32258
32340
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BpmnEditorComponent, decorators: [{
|
|
32259
32341
|
type: Component,
|
|
@@ -32261,7 +32343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
32261
32343
|
<div class="bpmn-container">
|
|
32262
32344
|
<div class="bpmn-canvas" #canvas></div>
|
|
32263
32345
|
</div>
|
|
32264
|
-
`, styles: [".bpmn-container{height:100%;width:100%;position:relative;background:#f8f9fa}.bpmn-canvas{height:100%;width:100%;background:#fff;border:1px solid #e0e0e0}:host ::ng-deep .highlight-completed .djs-visual>:nth-child(1){fill:#4caf50!important;stroke:#2e7d32!important;fill-opacity:.3!important}:host ::ng-deep .highlight-current .djs-visual>:nth-child(1){fill:#ff9800!important;stroke:#e65100!important;fill-opacity:.4!important}\n"] }]
|
|
32346
|
+
`, styles: [".bpmn-container{height:100%;width:100%;position:relative;background:#f8f9fa}.bpmn-canvas{height:100%;width:100%;background:#fff;border:1px solid #e0e0e0}:host ::ng-deep .highlight-completed .djs-visual>:nth-child(1){fill:#4caf50!important;stroke:#2e7d32!important;fill-opacity:.3!important}:host ::ng-deep .highlight-current .djs-visual>:nth-child(1){fill:#ff9800!important;stroke:#e65100!important;fill-opacity:.4!important}:host ::ng-deep .transition-info-overlay{background:#4caf50f2;color:#fff;padding:4px 8px;border-radius:4px;font-size:11px;white-space:nowrap;box-shadow:0 2px 4px #0003;pointer-events:none;line-height:1.3}:host ::ng-deep .transition-info-overlay .user{font-weight:600;display:block}:host ::ng-deep .transition-info-overlay .date{font-size:10px;opacity:.9;display:block}:host ::ng-deep .highlight-completed-connection .djs-visual>:nth-child(1){stroke:#4caf50!important;stroke-width:2!important}\n"] }]
|
|
32265
32347
|
}], propDecorators: { canvasRef: [{
|
|
32266
32348
|
type: ViewChild,
|
|
32267
32349
|
args: ['canvas', { static: true }]
|
|
@@ -32271,6 +32353,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
32271
32353
|
type: Input
|
|
32272
32354
|
}], currentStep: [{
|
|
32273
32355
|
type: Input
|
|
32356
|
+
}], transitionData: [{
|
|
32357
|
+
type: Input
|
|
32274
32358
|
}], diagramChanged: [{
|
|
32275
32359
|
type: Output
|
|
32276
32360
|
}], elementSelected: [{
|
|
@@ -32295,6 +32379,7 @@ class win_log_v2 {
|
|
|
32295
32379
|
diagramma_flusso = '';
|
|
32296
32380
|
completedSteps = [];
|
|
32297
32381
|
currentStep = 0;
|
|
32382
|
+
transitionData = [];
|
|
32298
32383
|
ric_all() {
|
|
32299
32384
|
this.refresh_list();
|
|
32300
32385
|
}
|
|
@@ -32308,6 +32393,7 @@ class win_log_v2 {
|
|
|
32308
32393
|
}
|
|
32309
32394
|
}
|
|
32310
32395
|
zz;
|
|
32396
|
+
bpmnViewer;
|
|
32311
32397
|
b_flussook = true;
|
|
32312
32398
|
load_graph() {
|
|
32313
32399
|
// Load BPMN diagram from database
|
|
@@ -32359,30 +32445,84 @@ class win_log_v2 {
|
|
|
32359
32445
|
});
|
|
32360
32446
|
}
|
|
32361
32447
|
calculateCompletedStepsFromLogs() {
|
|
32362
|
-
// Extract unique step numbers from logs (operazione field may contain step info)
|
|
32363
|
-
// Common step numbers: 10, 20, 30, 40, 50, etc. (900+ are final states)
|
|
32364
32448
|
const stepNumbers = new Set();
|
|
32365
|
-
|
|
32449
|
+
const transitionsMap = new Map();
|
|
32450
|
+
// Process logs to extract transitions from liv_ini → liv_fin
|
|
32366
32451
|
this.logs.forEach((log) => {
|
|
32367
|
-
//
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
if (
|
|
32375
|
-
stepNumbers.add(
|
|
32452
|
+
// Check if this log has transition data
|
|
32453
|
+
if (log.liv_ini != null && log.liv_fin != null) {
|
|
32454
|
+
const fromStep = parseInt(log.liv_ini, 10);
|
|
32455
|
+
const toStep = parseInt(log.liv_fin, 10);
|
|
32456
|
+
// Validate step numbers (10-890 range, exclude final states 900+)
|
|
32457
|
+
if (fromStep >= 10 && fromStep < 900 && toStep >= 10) {
|
|
32458
|
+
stepNumbers.add(fromStep);
|
|
32459
|
+
if (toStep < 900) {
|
|
32460
|
+
stepNumbers.add(toStep);
|
|
32376
32461
|
}
|
|
32377
|
-
|
|
32462
|
+
// Create unique key for this transition
|
|
32463
|
+
const transitionKey = `${fromStep}_${toStep}`;
|
|
32464
|
+
const timestamp = new Date(log.data_evento || log.data_creazione).getTime();
|
|
32465
|
+
// Check if we already have this transition
|
|
32466
|
+
const existing = transitionsMap.get(transitionKey);
|
|
32467
|
+
// Keep only the most recent transition for each fromStep → toStep
|
|
32468
|
+
if (!existing || timestamp > existing.timestamp) {
|
|
32469
|
+
transitionsMap.set(transitionKey, {
|
|
32470
|
+
fromStep: fromStep,
|
|
32471
|
+
toStep: toStep,
|
|
32472
|
+
user: log.idp || log.nc || log.username || 'Sistema',
|
|
32473
|
+
date: this.formatDate(log.data_evento || log.data_creazione),
|
|
32474
|
+
timestamp: timestamp
|
|
32475
|
+
});
|
|
32476
|
+
console.log(`Transition: ${fromStep} → ${toStep} by ${log.idp || log.nc} on ${this.formatDate(log.data_evento || log.data_creazione)}`);
|
|
32477
|
+
}
|
|
32478
|
+
}
|
|
32378
32479
|
}
|
|
32379
32480
|
});
|
|
32380
|
-
// Add all steps less than current step (
|
|
32381
|
-
// Common step increments: 10, 20, 30, 40, 50...
|
|
32481
|
+
// Add all steps less than current step (fallback for sequential workflow)
|
|
32382
32482
|
for (let step = 10; step < this.currentStep && step < 900; step += 10) {
|
|
32383
32483
|
stepNumbers.add(step);
|
|
32384
32484
|
}
|
|
32485
|
+
// Convert map to array (without timestamp)
|
|
32486
|
+
const transitions = Array.from(transitionsMap.values()).map(t => ({
|
|
32487
|
+
fromStep: t.fromStep,
|
|
32488
|
+
toStep: t.toStep,
|
|
32489
|
+
user: t.user,
|
|
32490
|
+
date: t.date
|
|
32491
|
+
}));
|
|
32385
32492
|
this.completedSteps = Array.from(stepNumbers).sort((a, b) => a - b);
|
|
32493
|
+
this.transitionData = transitions;
|
|
32494
|
+
console.log('Completed steps:', this.completedSteps);
|
|
32495
|
+
console.log('Transitions found:', transitions.length);
|
|
32496
|
+
console.log('Transition data:', this.transitionData);
|
|
32497
|
+
}
|
|
32498
|
+
formatDate(dateStr) {
|
|
32499
|
+
if (!dateStr)
|
|
32500
|
+
return '';
|
|
32501
|
+
try {
|
|
32502
|
+
const date = new Date(dateStr);
|
|
32503
|
+
const day = String(date.getDate()).padStart(2, '0');
|
|
32504
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
32505
|
+
const year = date.getFullYear();
|
|
32506
|
+
const hours = String(date.getHours()).padStart(2, '0');
|
|
32507
|
+
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
32508
|
+
return `${day}/${month}/${year} ${hours}:${minutes}`;
|
|
32509
|
+
}
|
|
32510
|
+
catch (e) {
|
|
32511
|
+
return dateStr;
|
|
32512
|
+
}
|
|
32513
|
+
}
|
|
32514
|
+
// Zoom control methods
|
|
32515
|
+
zoomIn() {
|
|
32516
|
+
this.bpmnViewer?.zoomIn();
|
|
32517
|
+
}
|
|
32518
|
+
zoomOut() {
|
|
32519
|
+
this.bpmnViewer?.zoomOut();
|
|
32520
|
+
}
|
|
32521
|
+
zoomFit() {
|
|
32522
|
+
this.bpmnViewer?.zoomFit();
|
|
32523
|
+
}
|
|
32524
|
+
zoomReset() {
|
|
32525
|
+
this.bpmnViewer?.zoomReset();
|
|
32386
32526
|
}
|
|
32387
32527
|
logs = new Array();
|
|
32388
32528
|
notifica_commenti = 1;
|
|
@@ -32659,7 +32799,7 @@ class win_log_v2 {
|
|
|
32659
32799
|
}
|
|
32660
32800
|
}
|
|
32661
32801
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: win_log_v2, deps: [{ token: i1$2.MatDialogRef }, { token: i1$2.MatDialog }, { token: AppService }, { token: i3.ToastrService }, { token: QueryService }, { token: WkfService }, { token: FileService }, { token: i3$2.TranslateService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
32662
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: win_log_v2, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "zz", first: true, predicate: ["zz"], descendants: true }], ngImport: i0, template: `
|
|
32802
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: win_log_v2, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "zz", first: true, predicate: ["zz"], descendants: true }, { propertyName: "bpmnViewer", first: true, predicate: ["bpmnViewer"], descendants: true }], ngImport: i0, template: `
|
|
32663
32803
|
<div fxLayout="column">
|
|
32664
32804
|
<div fxLayout="row" class="dialog_header">
|
|
32665
32805
|
<div fxLayout="row" fxLayoutAlign="start center" style="width:90%">
|
|
@@ -32677,16 +32817,33 @@ class win_log_v2 {
|
|
|
32677
32817
|
<div [style.height]="m_appService.getState().body_h - 130 + 'px'">
|
|
32678
32818
|
<mat-tab-group #zz style="width:100%">
|
|
32679
32819
|
<mat-tab label="WORKFLOW" *ngIf="b_flussook">
|
|
32680
|
-
<div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100
|
|
32820
|
+
<div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100%;position:relative">
|
|
32681
32821
|
<fh-bpmn-editor
|
|
32822
|
+
#bpmnViewer
|
|
32682
32823
|
*ngIf="diagramma_flusso"
|
|
32683
32824
|
[initialXml]="diagramma_flusso"
|
|
32684
32825
|
[completedSteps]="completedSteps"
|
|
32685
32826
|
[currentStep]="currentStep"
|
|
32827
|
+
[transitionData]="transitionData"
|
|
32686
32828
|
></fh-bpmn-editor>
|
|
32687
32829
|
<div *ngIf="!diagramma_flusso" style="display:flex;align-items:center;justify-content:center;height:100%">
|
|
32688
32830
|
<p>Nessun diagramma disponibile</p>
|
|
32689
32831
|
</div>
|
|
32832
|
+
<!-- Zoom controls -->
|
|
32833
|
+
<div *ngIf="diagramma_flusso" style="position:absolute;top:10px;right:10px;background:#5664d2;border-radius:4px;padding:8px;display:flex;gap:8px;box-shadow:0 2px 8px rgba(0,0,0,0.2)">
|
|
32834
|
+
<button mat-icon-button (click)="zoomIn()" style="color:white" title="Zoom In">
|
|
32835
|
+
<mat-icon>zoom_in</mat-icon>
|
|
32836
|
+
</button>
|
|
32837
|
+
<button mat-icon-button (click)="zoomOut()" style="color:white" title="Zoom Out">
|
|
32838
|
+
<mat-icon>zoom_out</mat-icon>
|
|
32839
|
+
</button>
|
|
32840
|
+
<button mat-icon-button (click)="zoomFit()" style="color:white" title="Adatta alla finestra">
|
|
32841
|
+
<mat-icon>fit_screen</mat-icon>
|
|
32842
|
+
</button>
|
|
32843
|
+
<button mat-icon-button (click)="zoomReset()" style="color:white" title="Reset Zoom">
|
|
32844
|
+
<mat-icon>center_focus_strong</mat-icon>
|
|
32845
|
+
</button>
|
|
32846
|
+
</div>
|
|
32690
32847
|
</div>
|
|
32691
32848
|
</mat-tab>
|
|
32692
32849
|
|
|
@@ -32793,7 +32950,7 @@ class win_log_v2 {
|
|
|
32793
32950
|
</mat-tab-group>
|
|
32794
32951
|
</div>
|
|
32795
32952
|
</div>
|
|
32796
|
-
`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.DatePipe, name: "date" }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i5$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i5$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: FHTextAreaComponent, selector: "FHTextArea", inputs: ["hidden", "label", "enabled", "required", "rows", "error"], outputs: ["change", "focusout", "focusin"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: BpmnEditorComponent, selector: "fh-bpmn-editor", inputs: ["initialXml", "completedSteps", "currentStep"], outputs: ["diagramChanged", "elementSelected"] }] });
|
|
32953
|
+
`, isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i8.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i8$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.DatePipe, name: "date" }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i5$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i5$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: FHTextAreaComponent, selector: "FHTextArea", inputs: ["hidden", "label", "enabled", "required", "rows", "error"], outputs: ["change", "focusout", "focusin"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: BpmnEditorComponent, selector: "fh-bpmn-editor", inputs: ["initialXml", "completedSteps", "currentStep", "transitionData"], outputs: ["diagramChanged", "elementSelected"] }] });
|
|
32797
32954
|
}
|
|
32798
32955
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: win_log_v2, decorators: [{
|
|
32799
32956
|
type: Component,
|
|
@@ -32828,16 +32985,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
32828
32985
|
<div [style.height]="m_appService.getState().body_h - 130 + 'px'">
|
|
32829
32986
|
<mat-tab-group #zz style="width:100%">
|
|
32830
32987
|
<mat-tab label="WORKFLOW" *ngIf="b_flussook">
|
|
32831
|
-
<div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100
|
|
32988
|
+
<div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100%;position:relative">
|
|
32832
32989
|
<fh-bpmn-editor
|
|
32990
|
+
#bpmnViewer
|
|
32833
32991
|
*ngIf="diagramma_flusso"
|
|
32834
32992
|
[initialXml]="diagramma_flusso"
|
|
32835
32993
|
[completedSteps]="completedSteps"
|
|
32836
32994
|
[currentStep]="currentStep"
|
|
32995
|
+
[transitionData]="transitionData"
|
|
32837
32996
|
></fh-bpmn-editor>
|
|
32838
32997
|
<div *ngIf="!diagramma_flusso" style="display:flex;align-items:center;justify-content:center;height:100%">
|
|
32839
32998
|
<p>Nessun diagramma disponibile</p>
|
|
32840
32999
|
</div>
|
|
33000
|
+
<!-- Zoom controls -->
|
|
33001
|
+
<div *ngIf="diagramma_flusso" style="position:absolute;top:10px;right:10px;background:#5664d2;border-radius:4px;padding:8px;display:flex;gap:8px;box-shadow:0 2px 8px rgba(0,0,0,0.2)">
|
|
33002
|
+
<button mat-icon-button (click)="zoomIn()" style="color:white" title="Zoom In">
|
|
33003
|
+
<mat-icon>zoom_in</mat-icon>
|
|
33004
|
+
</button>
|
|
33005
|
+
<button mat-icon-button (click)="zoomOut()" style="color:white" title="Zoom Out">
|
|
33006
|
+
<mat-icon>zoom_out</mat-icon>
|
|
33007
|
+
</button>
|
|
33008
|
+
<button mat-icon-button (click)="zoomFit()" style="color:white" title="Adatta alla finestra">
|
|
33009
|
+
<mat-icon>fit_screen</mat-icon>
|
|
33010
|
+
</button>
|
|
33011
|
+
<button mat-icon-button (click)="zoomReset()" style="color:white" title="Reset Zoom">
|
|
33012
|
+
<mat-icon>center_focus_strong</mat-icon>
|
|
33013
|
+
</button>
|
|
33014
|
+
</div>
|
|
32841
33015
|
</div>
|
|
32842
33016
|
</mat-tab>
|
|
32843
33017
|
|
|
@@ -32951,6 +33125,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
32951
33125
|
}] }], propDecorators: { zz: [{
|
|
32952
33126
|
type: ViewChild,
|
|
32953
33127
|
args: ['zz']
|
|
33128
|
+
}], bpmnViewer: [{
|
|
33129
|
+
type: ViewChild,
|
|
33130
|
+
args: ['bpmnViewer']
|
|
32954
33131
|
}] } });
|
|
32955
33132
|
|
|
32956
33133
|
class FHWinSalvaAnnulla {
|