@fluxhub/fluxhub-lib 19.0.114 → 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.
@@ -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
@@ -32362,19 +32448,55 @@ class win_log_v2 {
32362
32448
  // Extract unique step numbers from logs (operazione field may contain step info)
32363
32449
  // Common step numbers: 10, 20, 30, 40, 50, etc. (900+ are final states)
32364
32450
  const stepNumbers = new Set();
32451
+ const transitions = [];
32365
32452
  // Parse logs to find step transitions
32453
+ let previousStep = null;
32366
32454
  this.logs.forEach((log) => {
32367
- // Try to extract step number from operation text
32368
- // Example: "Step 10 → 20" or "Passaggio a step 30"
32369
- const matches = log.operazione?.match(/\b(\d+)\b/g);
32370
- if (matches) {
32371
- matches.forEach((match) => {
32372
- const stepNum = parseInt(match, 10);
32373
- // Only consider valid workflow steps (10-890, excluding 900+)
32374
- if (stepNum >= 10 && stepNum < 900) {
32375
- stepNumbers.add(stepNum);
32455
+ // Check if this is a workflow transition log
32456
+ // Usually identified by operazione containing step information
32457
+ const operazione = log.operazione || '';
32458
+ // Try to extract "from step X to step Y" pattern
32459
+ // Common patterns: "10 → 20", "Step 10 to 20", "Passaggio da 10 a 20"
32460
+ const transitionMatch = operazione.match(/(\d+)\s*(?:→|->|to|a)\s*(\d+)/i);
32461
+ if (transitionMatch) {
32462
+ const fromStep = parseInt(transitionMatch[1], 10);
32463
+ const toStep = parseInt(transitionMatch[2], 10);
32464
+ if (fromStep >= 10 && fromStep < 900 && toStep >= 10) {
32465
+ stepNumbers.add(fromStep);
32466
+ if (toStep < 900) {
32467
+ stepNumbers.add(toStep);
32376
32468
  }
32377
- });
32469
+ // Add transition data
32470
+ transitions.push({
32471
+ fromStep: fromStep,
32472
+ toStep: toStep,
32473
+ user: log.nc || log.username || 'Sistema',
32474
+ date: this.formatDate(log.data_creazione)
32475
+ });
32476
+ previousStep = toStep;
32477
+ }
32478
+ }
32479
+ else {
32480
+ // Try to extract single step number
32481
+ const matches = operazione.match(/\b(\d+)\b/g);
32482
+ if (matches) {
32483
+ matches.forEach((match) => {
32484
+ const stepNum = parseInt(match, 10);
32485
+ if (stepNum >= 10 && stepNum < 900) {
32486
+ stepNumbers.add(stepNum);
32487
+ // If we have a previous step, create transition
32488
+ if (previousStep !== null && previousStep !== stepNum) {
32489
+ transitions.push({
32490
+ fromStep: previousStep,
32491
+ toStep: stepNum,
32492
+ user: log.nc || log.username || 'Sistema',
32493
+ date: this.formatDate(log.data_creazione)
32494
+ });
32495
+ }
32496
+ previousStep = stepNum;
32497
+ }
32498
+ });
32499
+ }
32378
32500
  }
32379
32501
  });
32380
32502
  // Add all steps less than current step (assumption: sequential workflow)
@@ -32383,6 +32505,36 @@ class win_log_v2 {
32383
32505
  stepNumbers.add(step);
32384
32506
  }
32385
32507
  this.completedSteps = Array.from(stepNumbers).sort((a, b) => a - b);
32508
+ this.transitionData = transitions;
32509
+ }
32510
+ formatDate(dateStr) {
32511
+ if (!dateStr)
32512
+ return '';
32513
+ try {
32514
+ const date = new Date(dateStr);
32515
+ const day = String(date.getDate()).padStart(2, '0');
32516
+ const month = String(date.getMonth() + 1).padStart(2, '0');
32517
+ const year = date.getFullYear();
32518
+ const hours = String(date.getHours()).padStart(2, '0');
32519
+ const minutes = String(date.getMinutes()).padStart(2, '0');
32520
+ return `${day}/${month}/${year} ${hours}:${minutes}`;
32521
+ }
32522
+ catch (e) {
32523
+ return dateStr;
32524
+ }
32525
+ }
32526
+ // Zoom control methods
32527
+ zoomIn() {
32528
+ this.bpmnViewer?.zoomIn();
32529
+ }
32530
+ zoomOut() {
32531
+ this.bpmnViewer?.zoomOut();
32532
+ }
32533
+ zoomFit() {
32534
+ this.bpmnViewer?.zoomFit();
32535
+ }
32536
+ zoomReset() {
32537
+ this.bpmnViewer?.zoomReset();
32386
32538
  }
32387
32539
  logs = new Array();
32388
32540
  notifica_commenti = 1;
@@ -32659,7 +32811,7 @@ class win_log_v2 {
32659
32811
  }
32660
32812
  }
32661
32813
  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: `
32814
+ 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
32815
  <div fxLayout="column">
32664
32816
  <div fxLayout="row" class="dialog_header">
32665
32817
  <div fxLayout="row" fxLayoutAlign="start center" style="width:90%">
@@ -32677,16 +32829,33 @@ class win_log_v2 {
32677
32829
  <div [style.height]="m_appService.getState().body_h - 130 + 'px'">
32678
32830
  <mat-tab-group #zz style="width:100%">
32679
32831
  <mat-tab label="WORKFLOW" *ngIf="b_flussook">
32680
- <div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100%">
32832
+ <div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100%;position:relative">
32681
32833
  <fh-bpmn-editor
32834
+ #bpmnViewer
32682
32835
  *ngIf="diagramma_flusso"
32683
32836
  [initialXml]="diagramma_flusso"
32684
32837
  [completedSteps]="completedSteps"
32685
32838
  [currentStep]="currentStep"
32839
+ [transitionData]="transitionData"
32686
32840
  ></fh-bpmn-editor>
32687
32841
  <div *ngIf="!diagramma_flusso" style="display:flex;align-items:center;justify-content:center;height:100%">
32688
32842
  <p>Nessun diagramma disponibile</p>
32689
32843
  </div>
32844
+ <!-- Zoom controls -->
32845
+ <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)">
32846
+ <button mat-icon-button (click)="zoomIn()" style="color:white" title="Zoom In">
32847
+ <mat-icon>zoom_in</mat-icon>
32848
+ </button>
32849
+ <button mat-icon-button (click)="zoomOut()" style="color:white" title="Zoom Out">
32850
+ <mat-icon>zoom_out</mat-icon>
32851
+ </button>
32852
+ <button mat-icon-button (click)="zoomFit()" style="color:white" title="Adatta alla finestra">
32853
+ <mat-icon>fit_screen</mat-icon>
32854
+ </button>
32855
+ <button mat-icon-button (click)="zoomReset()" style="color:white" title="Reset Zoom">
32856
+ <mat-icon>center_focus_strong</mat-icon>
32857
+ </button>
32858
+ </div>
32690
32859
  </div>
32691
32860
  </mat-tab>
32692
32861
 
@@ -32793,7 +32962,7 @@ class win_log_v2 {
32793
32962
  </mat-tab-group>
32794
32963
  </div>
32795
32964
  </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"] }] });
32965
+ `, 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
32966
  }
32798
32967
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: win_log_v2, decorators: [{
32799
32968
  type: Component,
@@ -32828,16 +32997,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
32828
32997
  <div [style.height]="m_appService.getState().body_h - 130 + 'px'">
32829
32998
  <mat-tab-group #zz style="width:100%">
32830
32999
  <mat-tab label="WORKFLOW" *ngIf="b_flussook">
32831
- <div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100%">
33000
+ <div [style.height]="m_appService.getState().body_h - 170 + 'px'" style="width:100%;position:relative">
32832
33001
  <fh-bpmn-editor
33002
+ #bpmnViewer
32833
33003
  *ngIf="diagramma_flusso"
32834
33004
  [initialXml]="diagramma_flusso"
32835
33005
  [completedSteps]="completedSteps"
32836
33006
  [currentStep]="currentStep"
33007
+ [transitionData]="transitionData"
32837
33008
  ></fh-bpmn-editor>
32838
33009
  <div *ngIf="!diagramma_flusso" style="display:flex;align-items:center;justify-content:center;height:100%">
32839
33010
  <p>Nessun diagramma disponibile</p>
32840
33011
  </div>
33012
+ <!-- Zoom controls -->
33013
+ <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)">
33014
+ <button mat-icon-button (click)="zoomIn()" style="color:white" title="Zoom In">
33015
+ <mat-icon>zoom_in</mat-icon>
33016
+ </button>
33017
+ <button mat-icon-button (click)="zoomOut()" style="color:white" title="Zoom Out">
33018
+ <mat-icon>zoom_out</mat-icon>
33019
+ </button>
33020
+ <button mat-icon-button (click)="zoomFit()" style="color:white" title="Adatta alla finestra">
33021
+ <mat-icon>fit_screen</mat-icon>
33022
+ </button>
33023
+ <button mat-icon-button (click)="zoomReset()" style="color:white" title="Reset Zoom">
33024
+ <mat-icon>center_focus_strong</mat-icon>
33025
+ </button>
33026
+ </div>
32841
33027
  </div>
32842
33028
  </mat-tab>
32843
33029
 
@@ -32951,6 +33137,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
32951
33137
  }] }], propDecorators: { zz: [{
32952
33138
  type: ViewChild,
32953
33139
  args: ['zz']
33140
+ }], bpmnViewer: [{
33141
+ type: ViewChild,
33142
+ args: ['bpmnViewer']
32954
33143
  }] } });
32955
33144
 
32956
33145
  class FHWinSalvaAnnulla {