@fluxhub/fluxhub-lib 21.0.0 → 22.0.1
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.
- package/fesm2022/fluxhub-fluxhub-lib.mjs +25662 -18960
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/package.json +34 -4
- package/types/fluxhub-fluxhub-lib.d.ts +2148 -158
|
@@ -2,25 +2,25 @@ import { HttpHeaders, HttpClient, HttpInterceptor, HttpRequest, HttpHandler, Htt
|
|
|
2
2
|
import { Router, ActivatedRouteSnapshot, RouterStateSnapshot, ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { ToastrService } from 'ngx-toastr';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, OnDestroy, ChangeDetectorRef, OnInit, QueryList, DoCheck } from '@angular/core';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { Title, DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
9
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
9
10
|
import { ControlValueAccessor } from '@angular/forms';
|
|
10
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
11
11
|
import { MatAutocompleteTrigger, MatAutocomplete } from '@angular/material/autocomplete';
|
|
12
|
-
import { DateAdapter } from '@angular/material/core';
|
|
12
|
+
import { DateAdapter, ThemePalette } from '@angular/material/core';
|
|
13
13
|
import { MatDatepicker } from '@angular/material/datepicker';
|
|
14
14
|
import { Moment } from 'moment';
|
|
15
15
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
16
16
|
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
|
17
17
|
import { GridOptions, ColDef, CheckboxSelectionCallbackParams, HeaderCheckboxSelectionCallbackParams } from 'ag-grid-community';
|
|
18
|
-
import { Color, ColorPickerControl } from '@iplab/ngx-color-picker';
|
|
19
18
|
import { QuillEditorComponent, QuillModules } from 'ngx-quill';
|
|
20
19
|
import { FileItem } from 'ng2-file-upload';
|
|
21
20
|
import { ICellEditorAngularComp, ICellRendererAngularComp } from 'ag-grid-angular';
|
|
22
21
|
import { MapMarker, MapInfoWindow } from '@angular/google-maps';
|
|
23
22
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
23
|
+
import { ChartDataset, ChartConfiguration } from 'chart.js';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Internal State
|
|
@@ -133,7 +133,17 @@ declare class QResult {
|
|
|
133
133
|
declare class UtilityService {
|
|
134
134
|
private app_s;
|
|
135
135
|
private titleService;
|
|
136
|
-
|
|
136
|
+
private translateService;
|
|
137
|
+
constructor(app_s: AppService, titleService: Title, translateService: TranslateService);
|
|
138
|
+
/**
|
|
139
|
+
* Log di debug attivo SOLO sul dev server ng-serve (localhost:4200):
|
|
140
|
+
* in produzione non stampa nulla. È STATICO di proposito: così è
|
|
141
|
+
* richiamabile ovunque senza iniettare UtilityService — anche dentro gli
|
|
142
|
+
* HTTP interceptor, dove iniettare un service che usa HttpClient darebbe
|
|
143
|
+
* un cyclic dependency ("Cannot instantiate cyclic dependency! HttpClient").
|
|
144
|
+
* Uso: UtilityService.dlog('[TAG]', valore, ...);
|
|
145
|
+
*/
|
|
146
|
+
static dlog(...args: any[]): void;
|
|
137
147
|
set_home_title(s: string): void;
|
|
138
148
|
get_home_title(): string;
|
|
139
149
|
disabilitaConsole(): void;
|
|
@@ -272,6 +282,7 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
272
282
|
private _dataService;
|
|
273
283
|
private _dataService_odbc;
|
|
274
284
|
private _tsr;
|
|
285
|
+
private _dialog;
|
|
275
286
|
error: string;
|
|
276
287
|
init_fill: boolean;
|
|
277
288
|
sql: string;
|
|
@@ -287,6 +298,23 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
287
298
|
sel_label: string;
|
|
288
299
|
tooltip: string;
|
|
289
300
|
option_values: string;
|
|
301
|
+
/**
|
|
302
|
+
* Modo "lista grande": invece del pannello della `mat-select`, il campo apre una
|
|
303
|
+
* **dialog con la ricerca**. Serve quando le voci sono molte o le descrizioni sono
|
|
304
|
+
* frasi lunghe (es. i tipi di contratto): nel pannello vanno a capo una sull'altra e
|
|
305
|
+
* scorrerle a mano e' l'unica strada.
|
|
306
|
+
*
|
|
307
|
+
* `null` (default) = **automatico**: si accende da solo se al primo caricamento le
|
|
308
|
+
* voci superano `big_list_threshold`. `true`/`false` forzano il modo, ignorando il
|
|
309
|
+
* conteggio.
|
|
310
|
+
*/
|
|
311
|
+
bigList: boolean | null;
|
|
312
|
+
/** oltre quante voci il modo automatico passa alla dialog di ricerca */
|
|
313
|
+
big_list_threshold: number;
|
|
314
|
+
/** quanto e' larga la dialog di ricerca */
|
|
315
|
+
big_list_width: string;
|
|
316
|
+
/** true quando il campo lavora in modo "lista grande" (forzato o deciso dal conteggio) */
|
|
317
|
+
use_big_list: boolean;
|
|
290
318
|
smtr?: ElementRef;
|
|
291
319
|
fillend: EventEmitter<any>;
|
|
292
320
|
selchange: EventEmitter<any>;
|
|
@@ -298,7 +326,18 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
298
326
|
db_type: string;
|
|
299
327
|
dis_value: string | null;
|
|
300
328
|
is_loaded: boolean;
|
|
301
|
-
|
|
329
|
+
/** cosa si legge nel campo in modo lista grande (campo, non getter: sta nel template) */
|
|
330
|
+
big_list_text: string;
|
|
331
|
+
constructor(_dataService: QueryService, _dataService_odbc: OdbcService, _tsr: TranslateService, _dialog: MatDialog);
|
|
332
|
+
/**
|
|
333
|
+
* Decide se lavorare col pannello della `mat-select` o con la dialog di ricerca.
|
|
334
|
+
* `bigList` a `null` (default) = automatico sul numero di voci: si valuta ad ogni
|
|
335
|
+
* caricamento, cosi' una lista che cresce passa da sola alla dialog.
|
|
336
|
+
*/
|
|
337
|
+
private update_big_list_mode;
|
|
338
|
+
private update_big_list_text;
|
|
339
|
+
/** apre la dialog di ricerca; la scelta la chiude, come il click su una voce del pannello */
|
|
340
|
+
open_big_list(): void;
|
|
302
341
|
setValue(desc_val: string): void;
|
|
303
342
|
private update_dis;
|
|
304
343
|
resetValue(): void;
|
|
@@ -327,7 +366,7 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
327
366
|
registerOnChange(fn: (_: any) => void): void;
|
|
328
367
|
registerOnTouched(fn: () => void): void;
|
|
329
368
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHComboboxComponent, never>;
|
|
330
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHComboboxComponent, "FHComboBox", never, { "error": { "alias": "error"; "required": false; }; "init_fill": { "alias": "init_fill"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "disableTranslation": { "alias": "disableTranslation"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "load_delay": { "alias": "load_delay"; "required": false; }; "show_empty": { "alias": "show_empty"; "required": false; }; "sel_label": { "alias": "sel_label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "option_values": { "alias": "option_values"; "required": false; }; "valDef": { "alias": "valDef"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; }, { "fillend": "fillend"; "selchange": "selchange"; "initend": "initend"; }, never, never, true, never>;
|
|
369
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHComboboxComponent, "FHComboBox", never, { "error": { "alias": "error"; "required": false; }; "init_fill": { "alias": "init_fill"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "disableTranslation": { "alias": "disableTranslation"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "load_delay": { "alias": "load_delay"; "required": false; }; "show_empty": { "alias": "show_empty"; "required": false; }; "sel_label": { "alias": "sel_label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "option_values": { "alias": "option_values"; "required": false; }; "bigList": { "alias": "bigList"; "required": false; }; "big_list_threshold": { "alias": "big_list_threshold"; "required": false; }; "big_list_width": { "alias": "big_list_width"; "required": false; }; "valDef": { "alias": "valDef"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; }, { "fillend": "fillend"; "selchange": "selchange"; "initend": "initend"; }, never, never, true, never>;
|
|
331
370
|
}
|
|
332
371
|
|
|
333
372
|
declare class FHRoleManagerComponent implements AfterViewInit {
|
|
@@ -455,13 +494,144 @@ declare class FHCheckBoxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
455
494
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHCheckBoxComponent, "FHCheckBox", never, { "hidden": { "alias": "hidden"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; "click": "click"; }, never, never, true, never>;
|
|
456
495
|
}
|
|
457
496
|
|
|
497
|
+
/**
|
|
498
|
+
* Interfaccia per la configurazione dei pulsanti della dialog
|
|
499
|
+
*/
|
|
500
|
+
interface DialogButton {
|
|
501
|
+
/** Testo del pulsante */
|
|
502
|
+
text: string;
|
|
503
|
+
/** Icona Material (opzionale) */
|
|
504
|
+
icon?: string;
|
|
505
|
+
/** Colore del pulsante: 'primary' | 'accent' | 'warn' | undefined */
|
|
506
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
507
|
+
/** Tipo di pulsante: 'raised' | 'stroked' | 'flat' | 'icon' */
|
|
508
|
+
type?: 'raised' | 'stroked' | 'flat' | 'icon';
|
|
509
|
+
/** Valore da restituire quando il pulsante viene cliccato */
|
|
510
|
+
returnValue?: any;
|
|
511
|
+
/** CSS class personalizzata per il pulsante */
|
|
512
|
+
cssClass?: string;
|
|
513
|
+
/** Se true, il pulsante viene allineato a sinistra (es. pulsante Elimina) */
|
|
514
|
+
alignLeft?: boolean;
|
|
515
|
+
/** Se true, il pulsante è disabilitato */
|
|
516
|
+
disabled?: boolean;
|
|
517
|
+
/** Larghezza minima del pulsante in pixel (se 0 o non specificato, non viene applicata) */
|
|
518
|
+
minWidth?: number;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Evento emesso prima della chiusura della dialog
|
|
522
|
+
*/
|
|
523
|
+
interface DialogBeforeCloseEvent {
|
|
524
|
+
/** Valore di ritorno dal pulsante cliccato */
|
|
525
|
+
returnValue: any;
|
|
526
|
+
/** Funzione per impedire la chiusura della dialog */
|
|
527
|
+
preventDefault: () => void;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Componente base riutilizzabile per le dialog
|
|
531
|
+
*
|
|
532
|
+
* Esempio di utilizzo:
|
|
533
|
+
* ```typescript
|
|
534
|
+
* const dialogRef = this.dialog.open(MyDialogComponent, {
|
|
535
|
+
* width: '900px',
|
|
536
|
+
* maxWidth: '95vw',
|
|
537
|
+
* maxHeight: '85vh',
|
|
538
|
+
* data: { ... }
|
|
539
|
+
* });
|
|
540
|
+
* ```
|
|
541
|
+
*
|
|
542
|
+
* Nel template del componente:
|
|
543
|
+
* ```html
|
|
544
|
+
* <fh-dialog-base
|
|
545
|
+
* [title]="'Titolo Dialog'"
|
|
546
|
+
* [buttons]="buttons"
|
|
547
|
+
* [canValidate]="canSave"
|
|
548
|
+
* (beforeClose)="onBeforeClose($event)"
|
|
549
|
+
* (buttonClick)="onButtonClick($event)">
|
|
550
|
+
*
|
|
551
|
+
* <!-- Contenuto proiettato -->
|
|
552
|
+
* <div dialog-content>
|
|
553
|
+
* <p>Contenuto della dialog</p>
|
|
554
|
+
* </div>
|
|
555
|
+
* </fh-dialog-base>
|
|
556
|
+
* ```
|
|
557
|
+
*/
|
|
558
|
+
declare class DialogBaseComponent {
|
|
559
|
+
dialogRef: MatDialogRef<DialogBaseComponent>;
|
|
560
|
+
/**
|
|
561
|
+
* Titolo della dialog
|
|
562
|
+
*/
|
|
563
|
+
title: string;
|
|
564
|
+
/**
|
|
565
|
+
* Configurazione dei pulsanti
|
|
566
|
+
*/
|
|
567
|
+
buttons: DialogButton[];
|
|
568
|
+
/**
|
|
569
|
+
* Mostra il pulsante X di chiusura nell'header
|
|
570
|
+
*/
|
|
571
|
+
showCloseButton: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Funzione di validazione personalizzata
|
|
574
|
+
* Restituisce true se la validazione è OK, false altrimenti
|
|
575
|
+
* Usato per disabilitare i pulsanti che hanno requireValidation = true
|
|
576
|
+
*/
|
|
577
|
+
canValidate: (() => boolean) | boolean;
|
|
578
|
+
/**
|
|
579
|
+
* Allineamento dei pulsanti nel footer
|
|
580
|
+
* 'space-between': pulsanti distribuiti tra sinistra e destra (default)
|
|
581
|
+
* 'center': pulsanti centrati
|
|
582
|
+
* 'flex-end': pulsanti allineati a destra
|
|
583
|
+
* 'flex-start': pulsanti allineati a sinistra
|
|
584
|
+
*/
|
|
585
|
+
buttonsAlignment: 'space-between' | 'center' | 'flex-end' | 'flex-start';
|
|
586
|
+
/**
|
|
587
|
+
* Evento emesso quando viene cliccato un pulsante
|
|
588
|
+
* Payload: returnValue del pulsante
|
|
589
|
+
*/
|
|
590
|
+
buttonClick: EventEmitter<any>;
|
|
591
|
+
/**
|
|
592
|
+
* Evento emesso prima della chiusura della dialog
|
|
593
|
+
* Permette di validare e impedire la chiusura chiamando preventDefault()
|
|
594
|
+
*/
|
|
595
|
+
beforeClose: EventEmitter<DialogBeforeCloseEvent>;
|
|
596
|
+
constructor(dialogRef: MatDialogRef<DialogBaseComponent>);
|
|
597
|
+
/**
|
|
598
|
+
* Gestisce il click sul pulsante X di chiusura
|
|
599
|
+
*/
|
|
600
|
+
onCloseClick(): void;
|
|
601
|
+
/**
|
|
602
|
+
* Gestisce il click su un pulsante della dialog
|
|
603
|
+
*/
|
|
604
|
+
onButtonClick(button: DialogButton): void;
|
|
605
|
+
/**
|
|
606
|
+
* Chiude la dialog dopo aver validato
|
|
607
|
+
*/
|
|
608
|
+
private closeDialog;
|
|
609
|
+
/**
|
|
610
|
+
* Verifica se la validazione è OK
|
|
611
|
+
*/
|
|
612
|
+
isValid(): boolean;
|
|
613
|
+
/**
|
|
614
|
+
* Ottiene i pulsanti allineati a sinistra
|
|
615
|
+
*/
|
|
616
|
+
getLeftButtons(): DialogButton[];
|
|
617
|
+
/**
|
|
618
|
+
* Ottiene i pulsanti allineati a destra
|
|
619
|
+
*/
|
|
620
|
+
getRightButtons(): DialogButton[];
|
|
621
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogBaseComponent, never>;
|
|
622
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogBaseComponent, "fh-dialog-base", never, { "title": { "alias": "title"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "canValidate": { "alias": "canValidate"; "required": false; }; "buttonsAlignment": { "alias": "buttonsAlignment"; "required": false; }; }, { "buttonClick": "buttonClick"; "beforeClose": "beforeClose"; }, never, ["[dialog-content]"], true, never>;
|
|
623
|
+
}
|
|
624
|
+
|
|
458
625
|
declare class FHWinWaitComponent implements AfterViewInit {
|
|
459
626
|
dialogRef: MatDialogRef<FHWinWaitComponent>;
|
|
460
627
|
data: any;
|
|
461
628
|
title: string;
|
|
462
629
|
label: string;
|
|
463
630
|
progress_p: number;
|
|
631
|
+
buttons: DialogButton[];
|
|
464
632
|
constructor(dialogRef: MatDialogRef<FHWinWaitComponent>, data: any);
|
|
633
|
+
private updateButtons;
|
|
634
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
465
635
|
close(): void;
|
|
466
636
|
update_progess(p: any): void;
|
|
467
637
|
ngAfterViewInit(): void;
|
|
@@ -494,6 +664,7 @@ declare class FHUploadComponent {
|
|
|
494
664
|
selezionare_tipologia: string;
|
|
495
665
|
show_error: boolean;
|
|
496
666
|
download_by_api: boolean;
|
|
667
|
+
allowed_extensions: string;
|
|
497
668
|
lista_allegati: Array<any>;
|
|
498
669
|
change: EventEmitter<any>;
|
|
499
670
|
upload_ended: EventEmitter<any>;
|
|
@@ -541,7 +712,7 @@ declare class FHUploadComponent {
|
|
|
541
712
|
show_upload: boolean;
|
|
542
713
|
ref_allegato(): void;
|
|
543
714
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHUploadComponent, never>;
|
|
544
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHUploadComponent, "FHUpload", never, { "lascia_il_file": { "alias": "lascia_il_file"; "required": false; }; "trascina_il_file": { "alias": "trascina_il_file"; "required": false; }; "show_download_button": { "alias": "show_download_button"; "required": false; }; "show_descri": { "alias": "show_descri"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "single": { "alias": "single"; "required": false; }; "descri_obb": { "alias": "descri_obb"; "required": false; }; "programma_da_eseguire": { "alias": "programma_da_eseguire"; "required": false; }; "label_attendere": { "alias": "label_attendere"; "required": false; }; "sovrascrivi_path": { "alias": "sovrascrivi_path"; "required": false; }; "fixed_label": { "alias": "fixed_label"; "required": false; }; "limit_string": { "alias": "limit_string"; "required": false; }; "allegato_inserito": { "alias": "allegato_inserito"; "required": false; }; "inserire_descrizione": { "alias": "inserire_descrizione"; "required": false; }; "selezionare_tipologia": { "alias": "selezionare_tipologia"; "required": false; }; "show_error": { "alias": "show_error"; "required": false; }; "download_by_api": { "alias": "download_by_api"; "required": false; }; "lista_allegati": { "alias": "lista_allegati"; "required": false; }; }, { "change": "change"; "upload_ended": "upload_ended"; "call_upload": "call_upload"; "fill_end": "fill_end"; "init_end": "init_end"; }, never, never, true, never>;
|
|
715
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHUploadComponent, "FHUpload", never, { "lascia_il_file": { "alias": "lascia_il_file"; "required": false; }; "trascina_il_file": { "alias": "trascina_il_file"; "required": false; }; "show_download_button": { "alias": "show_download_button"; "required": false; }; "show_descri": { "alias": "show_descri"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "single": { "alias": "single"; "required": false; }; "descri_obb": { "alias": "descri_obb"; "required": false; }; "programma_da_eseguire": { "alias": "programma_da_eseguire"; "required": false; }; "label_attendere": { "alias": "label_attendere"; "required": false; }; "sovrascrivi_path": { "alias": "sovrascrivi_path"; "required": false; }; "fixed_label": { "alias": "fixed_label"; "required": false; }; "limit_string": { "alias": "limit_string"; "required": false; }; "allegato_inserito": { "alias": "allegato_inserito"; "required": false; }; "inserire_descrizione": { "alias": "inserire_descrizione"; "required": false; }; "selezionare_tipologia": { "alias": "selezionare_tipologia"; "required": false; }; "show_error": { "alias": "show_error"; "required": false; }; "download_by_api": { "alias": "download_by_api"; "required": false; }; "allowed_extensions": { "alias": "allowed_extensions"; "required": false; }; "lista_allegati": { "alias": "lista_allegati"; "required": false; }; }, { "change": "change"; "upload_ended": "upload_ended"; "call_upload": "call_upload"; "fill_end": "fill_end"; "init_end": "init_end"; }, never, never, true, never>;
|
|
545
716
|
}
|
|
546
717
|
|
|
547
718
|
declare class FHWinUploadComponent implements AfterViewInit {
|
|
@@ -561,9 +732,13 @@ declare class FHWinUploadComponent implements AfterViewInit {
|
|
|
561
732
|
title: string;
|
|
562
733
|
admin_role: string;
|
|
563
734
|
sovrascrivi_path: string;
|
|
735
|
+
allowed_extensions: string;
|
|
736
|
+
buttons: DialogButton[];
|
|
737
|
+
constructor(data: any, dialogRef: MatDialogRef<FHWinUploadComponent>, app_s: AppService);
|
|
738
|
+
private updateButtons;
|
|
739
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
564
740
|
close(): void;
|
|
565
741
|
upload_ended(): void;
|
|
566
|
-
constructor(data: any, dialogRef: MatDialogRef<FHWinUploadComponent>, app_s: AppService);
|
|
567
742
|
ngAfterViewInit(): void;
|
|
568
743
|
init(p_app: string, p_k: string): void;
|
|
569
744
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinUploadComponent, never>;
|
|
@@ -595,14 +770,15 @@ declare class FHWinConfirmComponent implements AfterViewInit {
|
|
|
595
770
|
annulla_mgs: string;
|
|
596
771
|
commento_mgs: string;
|
|
597
772
|
insert_comment_msg: string;
|
|
598
|
-
|
|
599
|
-
constructor(dialogRef: MatDialogRef<FHWinConfirmComponent>, app_s: AppService, conf: FHConfirmValues, toast: ToastrService);
|
|
773
|
+
buttons: DialogButton[];
|
|
774
|
+
constructor(dialogRef: MatDialogRef<FHWinConfirmComponent>, app_s: AppService, conf: FHConfirmValues, toast: ToastrService | null);
|
|
775
|
+
private updateButtons;
|
|
776
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
600
777
|
close(): void;
|
|
601
778
|
setTitle(texto: string): void;
|
|
602
779
|
setMsg(texto: string): void;
|
|
603
|
-
btn_annulla?: ElementRef | null;
|
|
604
780
|
ngAfterViewInit(): void;
|
|
605
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinConfirmComponent,
|
|
781
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinConfirmComponent, [null, null, null, { optional: true; }]>;
|
|
606
782
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinConfirmComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
607
783
|
}
|
|
608
784
|
|
|
@@ -622,8 +798,8 @@ declare class FHCurrencyFormatterDirective implements AfterViewInit {
|
|
|
622
798
|
private el;
|
|
623
799
|
constructor(elementRef: ElementRef, currencyPipe: FHCurrencyPipe);
|
|
624
800
|
ngAfterViewInit(): void;
|
|
625
|
-
onFocus(
|
|
626
|
-
onBlur(
|
|
801
|
+
onFocus(): void;
|
|
802
|
+
onBlur(): void;
|
|
627
803
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHCurrencyFormatterDirective, never>;
|
|
628
804
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FHCurrencyFormatterDirective, "[FHCurrencyFormatter]", never, {}, {}, never, never, true, never>;
|
|
629
805
|
}
|
|
@@ -732,20 +908,28 @@ declare class YearPickerComponent {
|
|
|
732
908
|
declare class FHFieldPickListComponent implements ControlValueAccessor {
|
|
733
909
|
private readonly m_dialog;
|
|
734
910
|
private readonly _trs;
|
|
911
|
+
private readonly _qs;
|
|
735
912
|
sql: string;
|
|
736
913
|
types: any[];
|
|
737
914
|
values: string[];
|
|
738
915
|
hidden: boolean;
|
|
739
916
|
only_in_list: boolean;
|
|
740
917
|
single_sel: boolean;
|
|
918
|
+
/** Abilita la ricerca in memoria (filtro client-side) nel dialog di scelta. */
|
|
919
|
+
enableSearch: boolean;
|
|
741
920
|
label: string;
|
|
742
921
|
enabled: boolean;
|
|
743
922
|
required: boolean;
|
|
744
923
|
db_type: string;
|
|
745
924
|
separator: string;
|
|
925
|
+
/** Valore mostrato nel campo = concatenazione delle descrizioni (descrizione_valore). */
|
|
746
926
|
value: string;
|
|
927
|
+
/** Concatenazione dei codici (valore) selezionati, separati da `separator`. Uso per il salvataggio. */
|
|
928
|
+
valore: string;
|
|
929
|
+
/** Ultimi oggetti selezionati {valore, descrizione_valore}. */
|
|
930
|
+
selectedObjects: any[];
|
|
747
931
|
selchange: EventEmitter<any>;
|
|
748
|
-
constructor(m_dialog: MatDialog, _trs: TranslateService);
|
|
932
|
+
constructor(m_dialog: MatDialog, _trs: TranslateService, _qs: QueryService);
|
|
749
933
|
setv(): void;
|
|
750
934
|
resetValue(): void;
|
|
751
935
|
writeValue(value: any): void;
|
|
@@ -755,8 +939,43 @@ declare class FHFieldPickListComponent implements ControlValueAccessor {
|
|
|
755
939
|
registerOnTouched(fn: () => void): void;
|
|
756
940
|
getFormattedValues(): string;
|
|
757
941
|
open_pick_list(): void;
|
|
942
|
+
/**
|
|
943
|
+
* Imposta la selezione dagli oggetti {valore, descrizione_valore}.
|
|
944
|
+
* Ricostruisce sia il display (descrizioni) sia i codici (valore).
|
|
945
|
+
*/
|
|
946
|
+
setObjects(objects: any[]): void;
|
|
947
|
+
/** Ritorna i codici (valore) selezionati, concatenati da `separator`. */
|
|
948
|
+
getValues(): string;
|
|
949
|
+
/** Ritorna le descrizioni (descrizione_valore) selezionate, concatenate da `separator`. */
|
|
950
|
+
getDescriptions(): string;
|
|
951
|
+
/** Ritorna gli oggetti selezionati {valore, descrizione_valore}. */
|
|
952
|
+
getObjects(): any[];
|
|
953
|
+
/**
|
|
954
|
+
* Ripristina la selezione a partire dai codici (valore), es. in fase di load.
|
|
955
|
+
* Esegue la `sql` del componente per risolvere codici -> descrizioni, quindi
|
|
956
|
+
* popola display e codici. Se `valoreStr` è vuoto, azzera la selezione.
|
|
957
|
+
*/
|
|
958
|
+
setByValues(valoreStr: string): void;
|
|
758
959
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHFieldPickListComponent, never>;
|
|
759
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHFieldPickListComponent, "FHFieldPickList", never, { "sql": { "alias": "sql"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "only_in_list": { "alias": "only_in_list"; "required": false; }; "single_sel": { "alias": "single_sel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selchange": "selchange"; }, never, never, true, never>;
|
|
960
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHFieldPickListComponent, "FHFieldPickList", never, { "sql": { "alias": "sql"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "only_in_list": { "alias": "only_in_list"; "required": false; }; "single_sel": { "alias": "single_sel"; "required": false; }; "enableSearch": { "alias": "enableSearch"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selchange": "selchange"; }, never, never, true, never>;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Posizione del pulsante custom nella header bar workflow:
|
|
965
|
+
* - 'left' : all'inizio, prima di "Salva" (equivale a primary = true)
|
|
966
|
+
* - 'actions' : nel gruppo delle azioni di flusso, tra "Respingi" e "Procedi"
|
|
967
|
+
* (utile per mettere un pulsante subito prima del tasto di avanzamento)
|
|
968
|
+
* - 'right' : in fondo a destra, dopo Info/Commenti/Allegati/Workflow (default)
|
|
969
|
+
*/
|
|
970
|
+
type FHToolBarCustomActionPosition = 'left' | 'actions' | 'right';
|
|
971
|
+
declare class FHToolBarCustomAction {
|
|
972
|
+
command: any;
|
|
973
|
+
label: string;
|
|
974
|
+
color?: 'primary' | 'accent' | 'warn' | string;
|
|
975
|
+
icon?: string;
|
|
976
|
+
hidden?: boolean;
|
|
977
|
+
primary?: boolean;
|
|
978
|
+
position?: FHToolBarCustomActionPosition;
|
|
760
979
|
}
|
|
761
980
|
|
|
762
981
|
declare class FHFormToolBarComponent {
|
|
@@ -776,7 +995,7 @@ declare class FHFormToolBarComponent {
|
|
|
776
995
|
logShowDescription: boolean;
|
|
777
996
|
logShowDiff: boolean;
|
|
778
997
|
log_enabled: boolean;
|
|
779
|
-
custom_commands:
|
|
998
|
+
custom_commands: FHToolBarCustomAction[];
|
|
780
999
|
command: EventEmitter<any>;
|
|
781
1000
|
constructor(_dialog: MatDialog);
|
|
782
1001
|
logs(): void;
|
|
@@ -849,7 +1068,101 @@ declare class GridService {
|
|
|
849
1068
|
static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
|
|
850
1069
|
}
|
|
851
1070
|
|
|
852
|
-
|
|
1071
|
+
/**
|
|
1072
|
+
* Modelli tipizzati per FHGridToolBar
|
|
1073
|
+
*
|
|
1074
|
+
* Questo file contiene le interfacce e gli enum per definire
|
|
1075
|
+
* i custom commands della toolbar in modo type-safe
|
|
1076
|
+
*/
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Tipi di comando disponibili per la toolbar
|
|
1080
|
+
*/
|
|
1081
|
+
declare enum FHToolbarCommandType {
|
|
1082
|
+
/** Pulsante standard */
|
|
1083
|
+
BUTTON = "button",
|
|
1084
|
+
/** Checkbox */
|
|
1085
|
+
CHECKBOX = "checkbox",
|
|
1086
|
+
/** Spaziatore vuoto */
|
|
1087
|
+
SPACER = "spacer",
|
|
1088
|
+
/** Table manager per gestione valori */
|
|
1089
|
+
TABLE_MANAGER = "table_manager"
|
|
1090
|
+
}
|
|
1091
|
+
/**
|
|
1092
|
+
* Interfaccia base per tutti i comandi della toolbar
|
|
1093
|
+
*/
|
|
1094
|
+
interface FHToolbarCommandBase {
|
|
1095
|
+
/** Tipo di comando */
|
|
1096
|
+
type?: FHToolbarCommandType | null;
|
|
1097
|
+
/** Comando da emettere quando l'elemento viene attivato */
|
|
1098
|
+
command: string;
|
|
1099
|
+
/** Nasconde l'elemento se true */
|
|
1100
|
+
hidden?: boolean;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Configurazione per un pulsante della toolbar
|
|
1104
|
+
*/
|
|
1105
|
+
interface FHToolbarButtonCommand extends FHToolbarCommandBase {
|
|
1106
|
+
type?: FHToolbarCommandType.BUTTON | null;
|
|
1107
|
+
/** Etichetta del pulsante (verrà tradotta) */
|
|
1108
|
+
label?: string;
|
|
1109
|
+
/** Icona Material da visualizzare */
|
|
1110
|
+
icon?: string;
|
|
1111
|
+
/** Colore del pulsante (Material palette) */
|
|
1112
|
+
color?: ThemePalette;
|
|
1113
|
+
/** Se true, mostra solo l'icona con tooltip invece dell'etichetta */
|
|
1114
|
+
tooltipMode?: boolean;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Configurazione per una checkbox della toolbar
|
|
1118
|
+
*/
|
|
1119
|
+
interface FHToolbarCheckboxCommand extends FHToolbarCommandBase {
|
|
1120
|
+
type: FHToolbarCommandType.CHECKBOX;
|
|
1121
|
+
/** Etichetta della checkbox (verrà tradotta) */
|
|
1122
|
+
label: string;
|
|
1123
|
+
/** Valore iniziale della checkbox */
|
|
1124
|
+
default_value: boolean;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Configurazione per uno spaziatore vuoto
|
|
1128
|
+
*/
|
|
1129
|
+
interface FHToolbarSpacerCommand extends FHToolbarCommandBase {
|
|
1130
|
+
type: FHToolbarCommandType.SPACER;
|
|
1131
|
+
/** Lo spaziatore non necessita di un command, ma è richiesto dall'interfaccia base */
|
|
1132
|
+
command: '';
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* Configurazione per un table manager
|
|
1136
|
+
*/
|
|
1137
|
+
interface FHToolbarTableManagerCommand extends FHToolbarCommandBase {
|
|
1138
|
+
type: FHToolbarCommandType.TABLE_MANAGER;
|
|
1139
|
+
/** Nome dell'applicazione per il table manager */
|
|
1140
|
+
default_value: string;
|
|
1141
|
+
/** Il table manager non emette un command diretto */
|
|
1142
|
+
command: '';
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Union type per tutti i tipi di comando possibili
|
|
1146
|
+
*/
|
|
1147
|
+
type FHToolbarCommand = FHToolbarButtonCommand | FHToolbarCheckboxCommand | FHToolbarSpacerCommand | FHToolbarTableManagerCommand;
|
|
1148
|
+
/**
|
|
1149
|
+
* Helper per creare un comando button in modo type-safe
|
|
1150
|
+
*/
|
|
1151
|
+
declare function createButtonCommand(config: Omit<FHToolbarButtonCommand, 'type'>): FHToolbarButtonCommand;
|
|
1152
|
+
/**
|
|
1153
|
+
* Helper per creare un comando checkbox in modo type-safe
|
|
1154
|
+
*/
|
|
1155
|
+
declare function createCheckboxCommand(config: Omit<FHToolbarCheckboxCommand, 'type'>): FHToolbarCheckboxCommand;
|
|
1156
|
+
/**
|
|
1157
|
+
* Helper per creare uno spaziatore in modo type-safe
|
|
1158
|
+
*/
|
|
1159
|
+
declare function createSpacerCommand(): FHToolbarSpacerCommand;
|
|
1160
|
+
/**
|
|
1161
|
+
* Helper per creare un comando table manager in modo type-safe
|
|
1162
|
+
*/
|
|
1163
|
+
declare function createTableManagerCommand(application: string): FHToolbarTableManagerCommand;
|
|
1164
|
+
|
|
1165
|
+
declare class FHGridComponent implements AfterViewInit, OnDestroy {
|
|
853
1166
|
private _gridservice;
|
|
854
1167
|
private _toast;
|
|
855
1168
|
private _dataService;
|
|
@@ -861,24 +1174,35 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
861
1174
|
private _trs;
|
|
862
1175
|
private http;
|
|
863
1176
|
private cdr;
|
|
1177
|
+
private el;
|
|
864
1178
|
width_max: string;
|
|
865
1179
|
browser: string;
|
|
866
1180
|
getBrowserName(): "edge" | "opera" | "chrome" | "ie" | "firefox" | "safari" | "other";
|
|
867
1181
|
theme: any;
|
|
1182
|
+
get effectiveTheme(): any;
|
|
868
1183
|
gridCursorPointer: boolean;
|
|
869
1184
|
pagination: boolean;
|
|
870
1185
|
paginationPageSize: number;
|
|
871
1186
|
paginationAutoPageSize: boolean;
|
|
872
1187
|
subtitle: string | null;
|
|
873
1188
|
forceFitSize: boolean;
|
|
1189
|
+
exportLanguage: boolean;
|
|
874
1190
|
tooltipShowDelay: number;
|
|
875
1191
|
elimina_label: string;
|
|
876
1192
|
export_field_aggiuntivi: string;
|
|
877
1193
|
end_point: string;
|
|
878
|
-
|
|
1194
|
+
/**
|
|
1195
|
+
* Grid configuration key used to retrieve settings from grids_customer.ini
|
|
1196
|
+
* @since Angular 19+ (renamed from tbl_name)
|
|
1197
|
+
*/
|
|
1198
|
+
grid_config_key: string;
|
|
879
1199
|
columnDefs: any[];
|
|
880
1200
|
num_per_pag: number;
|
|
881
|
-
|
|
1201
|
+
/**
|
|
1202
|
+
* Grid customer preference key used to save/load user preferences (column order, filters, etc.)
|
|
1203
|
+
* @since Angular 19+ (renamed from grid_key)
|
|
1204
|
+
*/
|
|
1205
|
+
grid_customer_preference_key: string;
|
|
882
1206
|
service: string;
|
|
883
1207
|
enabled: boolean;
|
|
884
1208
|
show_link: boolean;
|
|
@@ -897,6 +1221,7 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
897
1221
|
system_dest: number;
|
|
898
1222
|
header_h: number;
|
|
899
1223
|
selection_mode: any;
|
|
1224
|
+
set_srow_on_single_select: boolean;
|
|
900
1225
|
init_fill: boolean;
|
|
901
1226
|
no_pref: boolean;
|
|
902
1227
|
pref_hidden: boolean;
|
|
@@ -909,6 +1234,16 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
909
1234
|
label_elementi: string;
|
|
910
1235
|
trova_label: string;
|
|
911
1236
|
mantieni_impostazioni: string;
|
|
1237
|
+
tooltip_remove_filter: string;
|
|
1238
|
+
tooltip_auto_size: string;
|
|
1239
|
+
tooltip_fit_size: string;
|
|
1240
|
+
tooltip_refresh: string;
|
|
1241
|
+
tooltip_modifica_preferenza: string;
|
|
1242
|
+
tooltip_elimina_preferenza: string;
|
|
1243
|
+
tooltip_crea_preferenza: string;
|
|
1244
|
+
tooltip_help: string;
|
|
1245
|
+
tooltip_export_pdf: string;
|
|
1246
|
+
tooltip_export_excel: string;
|
|
912
1247
|
rowHeight: number;
|
|
913
1248
|
master_detail: boolean;
|
|
914
1249
|
detail_cell_renderer: any;
|
|
@@ -920,11 +1255,26 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
920
1255
|
dclicked: EventEmitter<any>;
|
|
921
1256
|
columndclicked: EventEmitter<any>;
|
|
922
1257
|
cell_clicked: EventEmitter<any>;
|
|
1258
|
+
selection_change: EventEmitter<any[]>;
|
|
923
1259
|
cellValueChanged: EventEmitter<any>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Apertura della riga "in una nuova scheda": Ctrl+Click (Cmd+Click su Mac) oppure
|
|
1262
|
+
* click col tasto centrale del mouse. Emette i DATI DI RIGA, come `dclicked`, cosi'
|
|
1263
|
+
* il consumer puo' riusare la stessa logica del doppio click cambiando solo la
|
|
1264
|
+
* destinazione:
|
|
1265
|
+
*
|
|
1266
|
+
* (dclicked)="edit($event)" -> naviga nella stessa scheda
|
|
1267
|
+
* (ctrl_click)="editNewTab($event)" -> window.open(...) su una scheda nuova
|
|
1268
|
+
*
|
|
1269
|
+
* OPT-IN: se nessuno e' in ascolto la grid non fa NULLA di diverso dal solito — in
|
|
1270
|
+
* particolare non tocca il Ctrl+Click, che in AG Grid serve alla selezione multipla.
|
|
1271
|
+
* Vedi `setupCtrlClick`.
|
|
1272
|
+
*/
|
|
1273
|
+
ctrl_click: EventEmitter<any>;
|
|
924
1274
|
custom_export: boolean;
|
|
925
1275
|
toolbar_type: string;
|
|
926
1276
|
toolbar_wkfapp: any;
|
|
927
|
-
toolbar_custom_commands:
|
|
1277
|
+
toolbar_custom_commands: FHToolbarCommand[];
|
|
928
1278
|
exec_params: any[];
|
|
929
1279
|
command: EventEmitter<any>;
|
|
930
1280
|
check_width(): void;
|
|
@@ -951,6 +1301,11 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
951
1301
|
private b_restored;
|
|
952
1302
|
str_curr_q_p: string;
|
|
953
1303
|
p_fi: any;
|
|
1304
|
+
/**
|
|
1305
|
+
* Converts numeric filter values to strings for backend compatibility
|
|
1306
|
+
* AG Grid sends numbers for numeric filters, but .NET backend expects strings
|
|
1307
|
+
*/
|
|
1308
|
+
private normalizeFilterModel;
|
|
954
1309
|
dataSource: {
|
|
955
1310
|
getRows: (params: any) => void;
|
|
956
1311
|
};
|
|
@@ -972,19 +1327,60 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
972
1327
|
b_init1: boolean;
|
|
973
1328
|
private errorMsg;
|
|
974
1329
|
init_opt: boolean;
|
|
1330
|
+
private first_load_completed;
|
|
975
1331
|
ngAfterViewInit(): void;
|
|
976
1332
|
okr(event: any): void;
|
|
977
1333
|
help_window(): void;
|
|
978
1334
|
onResize(): void;
|
|
979
1335
|
show_pulisci_filtri: boolean;
|
|
980
|
-
|
|
1336
|
+
private pendingAutoSize;
|
|
1337
|
+
private _visRO?;
|
|
1338
|
+
/** Elemento su cui misurare/osservare le dimensioni reali della grid.
|
|
1339
|
+
* ATTENZIONE: NON usare l'host <FHGrid>. Il componente non dichiara alcun display,
|
|
1340
|
+
* quindi il suo box e' inline: clientWidth su un box inline vale sempre 0 e
|
|
1341
|
+
* ResizeObserver non notifica gli inline non rimpiazzati. Misuriamo quindi il
|
|
1342
|
+
* wrapper interno di ag-grid (block) e, finche' non esiste, il div contenitore. */
|
|
1343
|
+
private visibilityTarget;
|
|
1344
|
+
/** True se la grid è effettivamente renderizzata con una larghezza reale
|
|
1345
|
+
* (non dentro un tab nascosto / display:none). */
|
|
1346
|
+
private isGridVisible;
|
|
1347
|
+
/** Osserva il contenitore della grid: appena passa da nascosta a visibile (es.
|
|
1348
|
+
* attivazione del tab), se c'era un auto-fit rimandato lo esegue una sola volta.
|
|
1349
|
+
* Idempotente: si può richiamare finché non riesce ad agganciare un target. */
|
|
1350
|
+
private setupVisibilityAutoSize;
|
|
1351
|
+
ngOnDestroy(): void;
|
|
1352
|
+
/** Sgancio dei listener di `setupCtrlClick`. */
|
|
1353
|
+
private _ctrlClickOff?;
|
|
1354
|
+
/**
|
|
1355
|
+
* true se qualcuno ha agganciato `(ctrl_click)`. La funzione e' opt-in per progetto:
|
|
1356
|
+
* senza ascoltatori NON si intercetta nulla, perche' in AG Grid il Ctrl+Click e' il
|
|
1357
|
+
* gesto della selezione multipla e rubarlo a tutte le grid dei portali sarebbe una
|
|
1358
|
+
* regressione.
|
|
1359
|
+
*/
|
|
1360
|
+
private hasCtrlClickListener;
|
|
1361
|
+
/**
|
|
1362
|
+
* Perche' un listener DOM e non l'evento AG Grid `cellClicked`: quello passa per
|
|
1363
|
+
* `onCellClicked`, che esce se `b_init` e' false, e arriva DOPO che AG Grid ha gia'
|
|
1364
|
+
* trattato il click come selezione. In CAPTURE sull'host si intercetta prima di
|
|
1365
|
+
* chiunque altro, quindi il Ctrl non sposta la selezione e il tasto centrale non
|
|
1366
|
+
* apre l'auto-scroll del browser.
|
|
1367
|
+
*
|
|
1368
|
+
* Dalla riga del DOM si risale al record via `row-index` + `getDisplayedRowAtIndex`:
|
|
1369
|
+
* se la riga non e' risolvibile il click viene lasciato passare intatto.
|
|
1370
|
+
*/
|
|
1371
|
+
private setupCtrlClick;
|
|
1372
|
+
private teardownCtrlClick;
|
|
1373
|
+
/** @param force true quando l'auto-fit è richiesto esplicitamente dall'utente
|
|
1374
|
+
* (pulsante in toolbar): in quel caso la grid è per definizione a video, quindi
|
|
1375
|
+
* si salta l'euristica di visibilità e non si rimanda mai. */
|
|
1376
|
+
autoSizeAll(force?: boolean): void;
|
|
981
1377
|
fitSizeAll(): void;
|
|
982
1378
|
selectCount(): number;
|
|
983
1379
|
getquerySelected(f: any, t: any): string;
|
|
984
1380
|
selectAllFiltered(): void;
|
|
985
1381
|
deselectAllFiltered(): void;
|
|
986
1382
|
pulisci_filtri(resetr?: boolean): void;
|
|
987
|
-
constructor(_gridservice: GridService, _toast: ToastrService, _dataService: QueryService, m_appService: AppService, m_dialog: MatDialog, uti_s: UtilityService, _fileService: FileService, clipboard: Clipboard, _trs: TranslateService, http: HttpClient, cdr: ChangeDetectorRef);
|
|
1383
|
+
constructor(_gridservice: GridService, _toast: ToastrService, _dataService: QueryService, m_appService: AppService, m_dialog: MatDialog, uti_s: UtilityService, _fileService: FileService, clipboard: Clipboard, _trs: TranslateService, http: HttpClient, cdr: ChangeDetectorRef, el: ElementRef);
|
|
988
1384
|
uiid_stampa: string;
|
|
989
1385
|
xxopx: number;
|
|
990
1386
|
dialogRef_W: any;
|
|
@@ -994,6 +1390,7 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
994
1390
|
ckk_ed: boolean;
|
|
995
1391
|
myData: Array<any>;
|
|
996
1392
|
private ckk;
|
|
1393
|
+
inittedSize: boolean;
|
|
997
1394
|
set_init_size(): void;
|
|
998
1395
|
res_columns(forza?: boolean): void;
|
|
999
1396
|
sortAndFilter(): void;
|
|
@@ -1011,7 +1408,9 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
1011
1408
|
keyDownFunctioncl(event: any): void;
|
|
1012
1409
|
private free_search;
|
|
1013
1410
|
onCellClicked(event: any): void;
|
|
1014
|
-
|
|
1411
|
+
selectedRows: any[];
|
|
1412
|
+
onSelectionChanged(event: any): void;
|
|
1413
|
+
getSelectedRows(): any[];
|
|
1015
1414
|
oncolumnEverythingChanged(): void;
|
|
1016
1415
|
onFilterModified(): void;
|
|
1017
1416
|
onBeforeSortChanged(): void;
|
|
@@ -1028,7 +1427,7 @@ declare class FHGridComponent implements AfterViewInit {
|
|
|
1028
1427
|
Refresh(): void;
|
|
1029
1428
|
RefreshOnlyMemory(): void;
|
|
1030
1429
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHGridComponent, never>;
|
|
1031
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHGridComponent, "FHGrid", never, { "theme": { "alias": "theme"; "required": false; }; "gridCursorPointer": { "alias": "gridCursorPointer"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "paginationPageSize": { "alias": "paginationPageSize"; "required": false; }; "paginationAutoPageSize": { "alias": "paginationAutoPageSize"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "forceFitSize": { "alias": "forceFitSize"; "required": false; }; "tooltipShowDelay": { "alias": "tooltipShowDelay"; "required": false; }; "elimina_label": { "alias": "elimina_label"; "required": false; }; "export_field_aggiuntivi": { "alias": "export_field_aggiuntivi"; "required": false; }; "end_point": { "alias": "end_point"; "required": false; }; "
|
|
1430
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHGridComponent, "FHGrid", never, { "theme": { "alias": "theme"; "required": false; }; "gridCursorPointer": { "alias": "gridCursorPointer"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "paginationPageSize": { "alias": "paginationPageSize"; "required": false; }; "paginationAutoPageSize": { "alias": "paginationAutoPageSize"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "forceFitSize": { "alias": "forceFitSize"; "required": false; }; "exportLanguage": { "alias": "exportLanguage"; "required": false; }; "tooltipShowDelay": { "alias": "tooltipShowDelay"; "required": false; }; "elimina_label": { "alias": "elimina_label"; "required": false; }; "export_field_aggiuntivi": { "alias": "export_field_aggiuntivi"; "required": false; }; "end_point": { "alias": "end_point"; "required": false; }; "grid_config_key": { "alias": "grid_config_key"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "num_per_pag": { "alias": "num_per_pag"; "required": false; }; "grid_customer_preference_key": { "alias": "grid_customer_preference_key"; "required": false; }; "service": { "alias": "service"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "show_link": { "alias": "show_link"; "required": false; }; "show_help_bar": { "alias": "show_help_bar"; "required": false; }; "help_label_bar": { "alias": "help_label_bar"; "required": false; }; "auto_load": { "alias": "auto_load"; "required": false; }; "auto_height": { "alias": "auto_height"; "required": false; }; "enable_export": { "alias": "enable_export"; "required": false; }; "enabled_pag": { "alias": "enabled_pag"; "required": false; }; "show_help": { "alias": "show_help"; "required": false; }; "show_num_elem": { "alias": "show_num_elem"; "required": false; }; "private_pref": { "alias": "private_pref"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "system_dest": { "alias": "system_dest"; "required": false; }; "header_h": { "alias": "header_h"; "required": false; }; "selection_mode": { "alias": "selection_mode"; "required": false; }; "set_srow_on_single_select": { "alias": "set_srow_on_single_select"; "required": false; }; "init_fill": { "alias": "init_fill"; "required": false; }; "no_pref": { "alias": "no_pref"; "required": false; }; "pref_hidden": { "alias": "pref_hidden"; "required": false; }; "enable_export_pdf": { "alias": "enable_export_pdf"; "required": false; }; "enable_export_xls": { "alias": "enable_export_xls"; "required": false; }; "enable_copy": { "alias": "enable_copy"; "required": false; }; "full_text_added_columns": { "alias": "full_text_added_columns"; "required": false; }; "autosize_at_ini": { "alias": "autosize_at_ini"; "required": false; }; "label_elementi": { "alias": "label_elementi"; "required": false; }; "trova_label": { "alias": "trova_label"; "required": false; }; "mantieni_impostazioni": { "alias": "mantieni_impostazioni"; "required": false; }; "tooltip_remove_filter": { "alias": "tooltip_remove_filter"; "required": false; }; "tooltip_auto_size": { "alias": "tooltip_auto_size"; "required": false; }; "tooltip_fit_size": { "alias": "tooltip_fit_size"; "required": false; }; "tooltip_refresh": { "alias": "tooltip_refresh"; "required": false; }; "tooltip_modifica_preferenza": { "alias": "tooltip_modifica_preferenza"; "required": false; }; "tooltip_elimina_preferenza": { "alias": "tooltip_elimina_preferenza"; "required": false; }; "tooltip_crea_preferenza": { "alias": "tooltip_crea_preferenza"; "required": false; }; "tooltip_help": { "alias": "tooltip_help"; "required": false; }; "tooltip_export_pdf": { "alias": "tooltip_export_pdf"; "required": false; }; "tooltip_export_excel": { "alias": "tooltip_export_excel"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "master_detail": { "alias": "master_detail"; "required": false; }; "detail_cell_renderer": { "alias": "detail_cell_renderer"; "required": false; }; "show_buttons": { "alias": "show_buttons"; "required": false; }; "custom_export": { "alias": "custom_export"; "required": false; }; "toolbar_type": { "alias": "toolbar_type"; "required": false; }; "toolbar_wkfapp": { "alias": "toolbar_wkfapp"; "required": false; }; "toolbar_custom_commands": { "alias": "toolbar_custom_commands"; "required": false; }; "exec_params": { "alias": "exec_params"; "required": false; }; "off_set": { "alias": "off_set"; "required": false; }; }, { "fill_end": "fill_end"; "cell_edited": "cell_edited"; "clicked": "clicked"; "dclicked": "dclicked"; "columndclicked": "columndclicked"; "cell_clicked": "cell_clicked"; "selection_change": "selection_change"; "cellValueChanged": "cellValueChanged"; "ctrl_click": "ctrl_click"; "command": "command"; "init_end": "init_end"; }, never, never, true, never>;
|
|
1032
1431
|
}
|
|
1033
1432
|
|
|
1034
1433
|
interface FHGridColumn {
|
|
@@ -1069,11 +1468,11 @@ declare class FHGridJSONComponent {
|
|
|
1069
1468
|
m_appService: AppService;
|
|
1070
1469
|
private m_dialog;
|
|
1071
1470
|
private _trs;
|
|
1072
|
-
|
|
1471
|
+
grid_config_key: string;
|
|
1073
1472
|
columnDefs: any[];
|
|
1074
1473
|
count_tbl_name: string;
|
|
1075
1474
|
num_per_pag: number;
|
|
1076
|
-
|
|
1475
|
+
grid_customer_preference_key: string;
|
|
1077
1476
|
sort_field: string;
|
|
1078
1477
|
fields: string;
|
|
1079
1478
|
filters: string;
|
|
@@ -1192,7 +1591,7 @@ declare class FHGridJSONComponent {
|
|
|
1192
1591
|
Refresh(): void;
|
|
1193
1592
|
RefreshOnlyMemory(): void;
|
|
1194
1593
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHGridJSONComponent, never>;
|
|
1195
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHGridJSONComponent, "FHGridJSON", never, { "
|
|
1594
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHGridJSONComponent, "FHGridJSON", never, { "grid_config_key": { "alias": "grid_config_key"; "required": false; }; "columnDefs": { "alias": "columnDefs"; "required": false; }; "count_tbl_name": { "alias": "count_tbl_name"; "required": false; }; "num_per_pag": { "alias": "num_per_pag"; "required": false; }; "grid_customer_preference_key": { "alias": "grid_customer_preference_key"; "required": false; }; "sort_field": { "alias": "sort_field"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "auto_height": { "alias": "auto_height"; "required": false; }; "enable_export": { "alias": "enable_export"; "required": false; }; "enabled_pag": { "alias": "enabled_pag"; "required": false; }; "show_help": { "alias": "show_help"; "required": false; }; "show_num_elem": { "alias": "show_num_elem"; "required": false; }; "system_dest": { "alias": "system_dest"; "required": false; }; "header_h": { "alias": "header_h"; "required": false; }; "g_width": { "alias": "g_width"; "required": false; }; "g_height": { "alias": "g_height"; "required": false; }; "init_fill": { "alias": "init_fill"; "required": false; }; "label_elementi": { "alias": "label_elementi"; "required": false; }; "trova_label": { "alias": "trova_label"; "required": false; }; "mantieni_impostazioni": { "alias": "mantieni_impostazioni"; "required": false; }; "show_buttons": { "alias": "show_buttons"; "required": false; }; "off_set": { "alias": "off_set"; "required": false; }; }, { "fill_end": "fill_end"; "cell_edited": "cell_edited"; "clicked": "clicked"; "dclicked": "dclicked"; "columndclicked": "columndclicked"; "cell_clicked": "cell_clicked"; "init_end": "init_end"; }, never, never, true, never>;
|
|
1196
1595
|
}
|
|
1197
1596
|
|
|
1198
1597
|
declare class FHHelpButtonComponent {
|
|
@@ -1600,16 +1999,15 @@ declare class FHPickFieldComponent implements AfterViewInit {
|
|
|
1600
1999
|
declare class FHColorPickerComponent implements AfterViewInit, ControlValueAccessor {
|
|
1601
2000
|
hidden: boolean;
|
|
1602
2001
|
enabled: boolean;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
2002
|
+
/** Larghezza della dialog del color picker (ngx-color-picker cpWidth). */
|
|
2003
|
+
cpWidth: string;
|
|
2004
|
+
change: EventEmitter<string>;
|
|
2005
|
+
_color: string;
|
|
2006
|
+
presetColors: string[];
|
|
1607
2007
|
set color(color: string);
|
|
1608
2008
|
colorChange: EventEmitter<string>;
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
showColorPicker(event: MouseEvent): void;
|
|
1612
|
-
applyClick(event: MouseEvent): void;
|
|
2009
|
+
onColorChange(color: string): void;
|
|
2010
|
+
onColorSelect(color: string): void;
|
|
1613
2011
|
constructor();
|
|
1614
2012
|
ngAfterViewInit(): void;
|
|
1615
2013
|
writeValue(value: any): void;
|
|
@@ -1617,21 +2015,147 @@ declare class FHColorPickerComponent implements AfterViewInit, ControlValueAcces
|
|
|
1617
2015
|
onTouched: () => void;
|
|
1618
2016
|
registerOnChange(fn: (_: any) => void): void;
|
|
1619
2017
|
registerOnTouched(fn: () => void): void;
|
|
2018
|
+
/**
|
|
2019
|
+
* Ritorna il colore selezionato in formato stringa esadecimale
|
|
2020
|
+
* @returns Stringa esadecimale nel formato #RRGGBB o #RRGGBBAA
|
|
2021
|
+
*/
|
|
2022
|
+
toHexString(): string;
|
|
1620
2023
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHColorPickerComponent, never>;
|
|
1621
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHColorPickerComponent, "FHColorPicker", never, { "hidden": { "alias": "hidden"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "change": "change"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
2024
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHColorPickerComponent, "FHColorPicker", never, { "hidden": { "alias": "hidden"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "cpWidth": { "alias": "cpWidth"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "change": "change"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
1622
2025
|
}
|
|
1623
2026
|
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
2027
|
+
type IconStyle = 'all' | 'solid' | 'brands';
|
|
2028
|
+
/** Formato del valore emesso (ngModel / change). */
|
|
2029
|
+
type ValueFormat = 'name' | 'plain' | 'class';
|
|
2030
|
+
interface IconEntry {
|
|
2031
|
+
name: string;
|
|
2032
|
+
cls: string;
|
|
2033
|
+
style: 'solid' | 'brands';
|
|
2034
|
+
}
|
|
2035
|
+
/**
|
|
2036
|
+
* FHIconPicker — selettore di icone FontAwesome (solo set FREE).
|
|
2037
|
+
*
|
|
2038
|
+
* Ispirato a https://github.com/tech-advantage/ngx-icon-picker ma:
|
|
2039
|
+
* - standalone, ControlValueAccessor (usabile con [(ngModel)])
|
|
2040
|
+
* - nessuna dipendenza npm aggiuntiva: rende le icone via classi CSS,
|
|
2041
|
+
* quindi richiede che l'app abbia caricato il CSS di FontAwesome 6.
|
|
2042
|
+
* - popup di selezione via CDK Overlay con ricerca, tab Tutte/Solid/Brands,
|
|
2043
|
+
* navigazione da tastiera (frecce / Invio / Esc) e icone recenti.
|
|
2044
|
+
*
|
|
2045
|
+
* VALORE EMESSO (ngModel / change): per default è il **nome testuale** dell'icona,
|
|
2046
|
+
* es. "fa-bookmark" (formato 'name'). Configurabile con [valueFormat]:
|
|
2047
|
+
* - 'name' -> "fa-bookmark" (default)
|
|
2048
|
+
* - 'plain' -> "bookmark"
|
|
2049
|
+
* - 'class' -> "fa-solid fa-bookmark" (classe CSS completa)
|
|
2050
|
+
*
|
|
2051
|
+
* In input accetta tutti i formati (nome, nome con prefisso, sintassi FA5
|
|
2052
|
+
* "fas fa-x"/"fa fa-x", classe completa) e li normalizza internamente.
|
|
2053
|
+
*
|
|
2054
|
+
* Esempio:
|
|
2055
|
+
* <FHIconPicker [(ngModel)]="obj.icona" [label]="'Icona'" [enabled]="canEdit"
|
|
2056
|
+
* (change)="onIconChange($event)"></FHIconPicker>
|
|
2057
|
+
*/
|
|
2058
|
+
declare class FHIconPickerComponent implements OnInit, ControlValueAccessor {
|
|
2059
|
+
private cdr;
|
|
2060
|
+
label: string;
|
|
2061
|
+
placeholder: string;
|
|
2062
|
+
enabled: boolean;
|
|
2063
|
+
hidden: boolean;
|
|
2064
|
+
required: boolean;
|
|
2065
|
+
error: string;
|
|
2066
|
+
/** Mostra il pulsante per azzerare la selezione. */
|
|
2067
|
+
allowClear: boolean;
|
|
2068
|
+
/** Tab attiva all'apertura: 'all' | 'solid' | 'brands'. */
|
|
2069
|
+
defaultStyle: IconStyle;
|
|
2070
|
+
/** Vista iniziale del popup: 'grid' | 'list'. */
|
|
2071
|
+
defaultView: 'grid' | 'list';
|
|
2072
|
+
/** Formato del valore emesso: 'name' (fa-bookmark) | 'plain' (bookmark) | 'class'. */
|
|
2073
|
+
valueFormat: ValueFormat;
|
|
2074
|
+
/** Quante icone recenti memorizzare (0 = disattiva). */
|
|
2075
|
+
recentCount: number;
|
|
2076
|
+
/** Emette il nome dell'icona nel formato configurato (valueFormat). */
|
|
2077
|
+
change: EventEmitter<string>;
|
|
2078
|
+
/** Banana-in-a-box: supporto a [(icon)] oltre a [(ngModel)]. */
|
|
2079
|
+
iconChange: EventEmitter<string>;
|
|
2080
|
+
searchBox?: ElementRef<HTMLInputElement>;
|
|
2081
|
+
triggerRef?: ElementRef<HTMLElement>;
|
|
2082
|
+
gridRef?: ElementRef<HTMLElement>;
|
|
2083
|
+
cells?: QueryList<ElementRef<HTMLElement>>;
|
|
2084
|
+
private static readonly RECENT_KEY;
|
|
2085
|
+
/** Classe CSS completa dell'icona selezionata (uso interno per il rendering). */
|
|
2086
|
+
_value: string;
|
|
2087
|
+
/** Valore "di output" (nel formato configurato) mostrato nel trigger. */
|
|
2088
|
+
outValue: string;
|
|
2089
|
+
panelOpen: boolean;
|
|
2090
|
+
panelWidth: number;
|
|
2091
|
+
search: string;
|
|
2092
|
+
activeStyle: IconStyle;
|
|
2093
|
+
view: 'grid' | 'list';
|
|
2094
|
+
highlightIndex: number;
|
|
2095
|
+
private allSolid;
|
|
2096
|
+
private allBrands;
|
|
2097
|
+
private allIcons;
|
|
2098
|
+
private styleByName;
|
|
2099
|
+
filtered: IconEntry[];
|
|
2100
|
+
recent: string[];
|
|
2101
|
+
overlayPositions: ({
|
|
2102
|
+
readonly originX: "start";
|
|
2103
|
+
readonly originY: "bottom";
|
|
2104
|
+
readonly overlayX: "start";
|
|
2105
|
+
readonly overlayY: "top";
|
|
2106
|
+
readonly offsetY: 6;
|
|
2107
|
+
} | {
|
|
2108
|
+
readonly originX: "start";
|
|
2109
|
+
readonly originY: "top";
|
|
2110
|
+
readonly overlayX: "start";
|
|
2111
|
+
readonly overlayY: "bottom";
|
|
2112
|
+
readonly offsetY: -6;
|
|
2113
|
+
})[];
|
|
2114
|
+
constructor(cdr: ChangeDetectorRef);
|
|
2115
|
+
ngOnInit(): void;
|
|
2116
|
+
private get currentSet();
|
|
2117
|
+
togglePanel(): void;
|
|
2118
|
+
openPanel(): void;
|
|
2119
|
+
closePanel(): void;
|
|
2120
|
+
setStyle(style: IconStyle): void;
|
|
2121
|
+
setView(v: 'grid' | 'list'): void;
|
|
2122
|
+
applyFilter(): void;
|
|
2123
|
+
selectIcon(cls: string): void;
|
|
2124
|
+
clear(ev?: Event): void;
|
|
2125
|
+
private setVal;
|
|
2126
|
+
/** Nome di output per una classe completa (usato per i tooltip dei recenti). */
|
|
2127
|
+
outOf(cls: string): string;
|
|
2128
|
+
trackByIcon(_: number, item: IconEntry): string;
|
|
2129
|
+
onPanelKeydown(ev: KeyboardEvent): void;
|
|
2130
|
+
private computeColumns;
|
|
2131
|
+
private scrollHighlightIntoView;
|
|
2132
|
+
private loadRecent;
|
|
2133
|
+
private pushRecent;
|
|
2134
|
+
/** Ritorna il valore nel formato configurato (es. "fa-bookmark"). */
|
|
2135
|
+
getValue(): string;
|
|
2136
|
+
/** Ritorna SEMPRE la classe CSS completa (es. "fa-solid fa-bookmark"). */
|
|
2137
|
+
getCssClass(): string;
|
|
2138
|
+
/** Imposta l'icona da qualsiasi formato (nome, fa-name, fas fa-name, classe completa). */
|
|
2139
|
+
setValue(value: string): void;
|
|
2140
|
+
/** Azzera la selezione. */
|
|
2141
|
+
reset(): void;
|
|
2142
|
+
writeValue(value: any): void;
|
|
2143
|
+
/**
|
|
2144
|
+
* Estrae nome + stile da una stringa in qualsiasi formato:
|
|
2145
|
+
* "fa-solid fa-house", "fas fa-house", "fa fa-house", "fa-house", "house".
|
|
2146
|
+
*/
|
|
2147
|
+
private parse;
|
|
2148
|
+
/** Normalizza un valore in classe CSS completa per il rendering. */
|
|
2149
|
+
private toFullClass;
|
|
2150
|
+
/** Converte una classe completa nel formato di output configurato. */
|
|
2151
|
+
private toOutput;
|
|
2152
|
+
onChange: (_: any) => void;
|
|
2153
|
+
onTouched: () => void;
|
|
2154
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
2155
|
+
registerOnTouched(fn: () => void): void;
|
|
2156
|
+
setDisabledState(isDisabled: boolean): void;
|
|
2157
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHIconPickerComponent, never>;
|
|
2158
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHIconPickerComponent, "FHIconPicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "required": { "alias": "required"; "required": false; }; "error": { "alias": "error"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "defaultStyle": { "alias": "defaultStyle"; "required": false; }; "defaultView": { "alias": "defaultView"; "required": false; }; "valueFormat": { "alias": "valueFormat"; "required": false; }; "recentCount": { "alias": "recentCount"; "required": false; }; }, { "change": "change"; "iconChange": "iconChange"; }, never, never, true, never>;
|
|
1635
2159
|
}
|
|
1636
2160
|
|
|
1637
2161
|
declare class FHNotesPanelComponent {
|
|
@@ -1640,7 +2164,6 @@ declare class FHNotesPanelComponent {
|
|
|
1640
2164
|
m_appService: AppService;
|
|
1641
2165
|
private readonly toastr;
|
|
1642
2166
|
private readonly _dataService;
|
|
1643
|
-
private readonly m_wkf;
|
|
1644
2167
|
private readonly m_file;
|
|
1645
2168
|
private readonly _tsr;
|
|
1646
2169
|
commenti_list: Array<any>;
|
|
@@ -1655,7 +2178,7 @@ declare class FHNotesPanelComponent {
|
|
|
1655
2178
|
set App(value: string | null);
|
|
1656
2179
|
get K(): string | null;
|
|
1657
2180
|
set K(value: string | null);
|
|
1658
|
-
constructor(dialogRef: MatDialogRef<FHNotesPanelComponent>, m_dialogRef: MatDialog, m_appService: AppService, toastr: ToastrService, _dataService: QueryService,
|
|
2181
|
+
constructor(dialogRef: MatDialogRef<FHNotesPanelComponent>, m_dialogRef: MatDialog, m_appService: AppService, toastr: ToastrService, _dataService: QueryService, m_file: FileService, _tsr: TranslateService);
|
|
1659
2182
|
edit_comm(event: any): void;
|
|
1660
2183
|
delete_comm(event: any): void;
|
|
1661
2184
|
refresh_list(): void;
|
|
@@ -1720,8 +2243,8 @@ declare class FHGridToolBarComponent implements AfterViewInit {
|
|
|
1720
2243
|
b_wait: boolean;
|
|
1721
2244
|
type: string;
|
|
1722
2245
|
toolbar_wkfapp: any;
|
|
1723
|
-
custom_commands:
|
|
1724
|
-
custom_commands_primary:
|
|
2246
|
+
custom_commands: FHToolbarCommand[];
|
|
2247
|
+
custom_commands_primary: FHToolbarCommand[];
|
|
1725
2248
|
sRow: any;
|
|
1726
2249
|
command: EventEmitter<any>;
|
|
1727
2250
|
ngAfterViewInit(): void;
|
|
@@ -1747,29 +2270,27 @@ declare class FHGridToolBarComponent implements AfterViewInit {
|
|
|
1747
2270
|
declare class FHWinErrorComponent {
|
|
1748
2271
|
dialogRef: MatDialogRef<FHWinErrorComponent>;
|
|
1749
2272
|
data: any;
|
|
1750
|
-
b_edit: boolean;
|
|
1751
2273
|
msg_dialog: string;
|
|
1752
2274
|
title: string;
|
|
1753
|
-
|
|
1754
|
-
ta: ElementRef | undefined;
|
|
2275
|
+
buttons: DialogButton[];
|
|
1755
2276
|
constructor(dialogRef: MatDialogRef<FHWinErrorComponent>, data: any);
|
|
1756
|
-
|
|
2277
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2278
|
+
close(): void;
|
|
1757
2279
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinErrorComponent, never>;
|
|
1758
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinErrorComponent, "
|
|
2280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinErrorComponent, "fh-win-error", never, {}, {}, never, never, true, never>;
|
|
1759
2281
|
}
|
|
1760
2282
|
|
|
1761
2283
|
declare class FHWinInfoComponent {
|
|
1762
2284
|
dialogRef: MatDialogRef<FHWinInfoComponent>;
|
|
1763
2285
|
data: any;
|
|
1764
|
-
b_edit: boolean;
|
|
1765
2286
|
msg_dialog: string;
|
|
1766
2287
|
title: string;
|
|
1767
|
-
|
|
1768
|
-
ta: ElementRef | undefined;
|
|
2288
|
+
buttons: DialogButton[];
|
|
1769
2289
|
constructor(dialogRef: MatDialogRef<FHWinInfoComponent>, data: any);
|
|
1770
|
-
|
|
2290
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2291
|
+
close(): void;
|
|
1771
2292
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinInfoComponent, never>;
|
|
1772
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinInfoComponent, "
|
|
2293
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinInfoComponent, "fh-win-info", never, {}, {}, never, never, true, never>;
|
|
1773
2294
|
}
|
|
1774
2295
|
|
|
1775
2296
|
declare class FHDateRangePickerComponent {
|
|
@@ -2033,6 +2554,16 @@ declare class FHUploadPanelComponent implements AfterViewInit {
|
|
|
2033
2554
|
init(p_app: string, p_k: string, p_tipo?: string, programma_da_eseguire?: string): void;
|
|
2034
2555
|
do_upload(App: string, K: string, descri_all: string, m_p_tipo: string, m_programma_da_eseguire: string): void;
|
|
2035
2556
|
ref_allegato(): void;
|
|
2557
|
+
/**
|
|
2558
|
+
* Verifica se ci sono file caricati nel pannello upload
|
|
2559
|
+
* @returns true se ci sono file caricati, false altrimenti
|
|
2560
|
+
*/
|
|
2561
|
+
hasFiles(): boolean;
|
|
2562
|
+
/**
|
|
2563
|
+
* Ottiene la lista dei file caricati
|
|
2564
|
+
* @returns Array dei file caricati o array vuoto se non ci sono file
|
|
2565
|
+
*/
|
|
2566
|
+
getFilesList(): any[];
|
|
2036
2567
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHUploadPanelComponent, never>;
|
|
2037
2568
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHUploadPanelComponent, "FHUploadPanel", never, { "enabled": { "alias": "enabled"; "required": false; }; "show_dim": { "alias": "show_dim"; "required": false; }; "show_descri": { "alias": "show_descri"; "required": false; }; "show_preview": { "alias": "show_preview"; "required": false; }; "forceDownload": { "alias": "forceDownload"; "required": false; }; "label": { "alias": "label"; "required": false; }; "sovrascrivi_path": { "alias": "sovrascrivi_path"; "required": false; }; "ruolo_supervisore": { "alias": "ruolo_supervisore"; "required": false; }; "access_control": { "alias": "access_control"; "required": false; }; "show_images": { "alias": "show_images"; "required": false; }; "can_delete_owner": { "alias": "can_delete_owner"; "required": false; }; "show_upload": { "alias": "show_upload"; "required": false; }; "show_download": { "alias": "show_download"; "required": false; }; "download_by_api": { "alias": "download_by_api"; "required": false; }; "description_required": { "alias": "description_required"; "required": false; }; "selezionare_tipologia": { "alias": "selezionare_tipologia"; "required": false; }; "show_delete": { "alias": "show_delete"; "required": false; }; }, { "upload_ended": "upload_ended"; "expand": "expand"; "file_copy": "file_copy"; "change": "change"; "call_upload": "call_upload"; "init_end": "init_end"; "after_init": "after_init"; }, never, never, true, never>;
|
|
2038
2569
|
}
|
|
@@ -2296,12 +2827,14 @@ declare class FHWinAppLogsComponent implements AfterViewInit {
|
|
|
2296
2827
|
title: string;
|
|
2297
2828
|
data: any;
|
|
2298
2829
|
b_commento: boolean;
|
|
2299
|
-
|
|
2830
|
+
buttons: DialogButton[];
|
|
2831
|
+
columnDefs: any[];
|
|
2832
|
+
commento_label: string;
|
|
2300
2833
|
ngAfterViewInit(): void;
|
|
2301
2834
|
cce(event: any): void;
|
|
2302
|
-
commento_label: string;
|
|
2303
2835
|
constructor(dialogRef: MatDialogRef<FHWinAppLogsComponent>, m_dialogRef: MatDialog, m_appService: AppService, m_translateService: TranslateService, uti: UtilityService, datax: any);
|
|
2304
|
-
|
|
2836
|
+
private updateButtons;
|
|
2837
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2305
2838
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAppLogsComponent, never>;
|
|
2306
2839
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAppLogsComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2307
2840
|
}
|
|
@@ -2313,7 +2846,10 @@ declare class FHWinAskButtonsComponent implements AfterViewInit {
|
|
|
2313
2846
|
title: string;
|
|
2314
2847
|
button_config: Array<any>;
|
|
2315
2848
|
show_close: boolean;
|
|
2849
|
+
buttons: DialogButton[];
|
|
2316
2850
|
constructor(dialogRef: MatDialogRef<FHWinAskButtonsComponent>, data: any);
|
|
2851
|
+
private updateButtons;
|
|
2852
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2317
2853
|
open(o: any): void;
|
|
2318
2854
|
close(): void;
|
|
2319
2855
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskButtonsComponent, never>;
|
|
@@ -2331,45 +2867,22 @@ declare class FHWinAskNumberComponent implements AfterViewInit {
|
|
|
2331
2867
|
value_min: number;
|
|
2332
2868
|
value_max: number;
|
|
2333
2869
|
decimal_n: number;
|
|
2334
|
-
|
|
2870
|
+
buttons: DialogButton[];
|
|
2871
|
+
constructor(dialogRef: MatDialogRef<FHWinAskNumberComponent>, toastr: ToastrService | null, data: any);
|
|
2872
|
+
private updateButtons;
|
|
2873
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2335
2874
|
show(): void;
|
|
2336
2875
|
close(): void;
|
|
2337
2876
|
hide(): void;
|
|
2338
|
-
do_check(): void;
|
|
2339
2877
|
chiudi(): void;
|
|
2340
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskNumberComponent,
|
|
2341
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAskNumberComponent, "app-
|
|
2878
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskNumberComponent, [null, { optional: true; }, null]>;
|
|
2879
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAskNumberComponent, "app-win_ask_number", never, {}, {}, never, never, true, never>;
|
|
2342
2880
|
}
|
|
2343
2881
|
|
|
2344
2882
|
declare class FHWinAskRichTextComponent implements AfterViewInit {
|
|
2345
2883
|
private dialogRef;
|
|
2346
2884
|
private toastr;
|
|
2347
2885
|
data: any;
|
|
2348
|
-
config: {
|
|
2349
|
-
modules: {
|
|
2350
|
-
toolbar: ({
|
|
2351
|
-
size: (string | boolean)[];
|
|
2352
|
-
}[] | {
|
|
2353
|
-
header: (number | boolean)[];
|
|
2354
|
-
}[] | ({
|
|
2355
|
-
color: never[];
|
|
2356
|
-
background?: undefined;
|
|
2357
|
-
} | {
|
|
2358
|
-
background: never[];
|
|
2359
|
-
color?: undefined;
|
|
2360
|
-
})[] | {
|
|
2361
|
-
font: never[];
|
|
2362
|
-
}[] | {
|
|
2363
|
-
align: never[];
|
|
2364
|
-
}[] | (string | {
|
|
2365
|
-
list: string;
|
|
2366
|
-
indent?: undefined;
|
|
2367
|
-
} | {
|
|
2368
|
-
indent: string;
|
|
2369
|
-
list?: undefined;
|
|
2370
|
-
})[])[];
|
|
2371
|
-
};
|
|
2372
|
-
};
|
|
2373
2886
|
ngAfterViewInit(): void;
|
|
2374
2887
|
title: string;
|
|
2375
2888
|
label: string;
|
|
@@ -2378,13 +2891,15 @@ declare class FHWinAskRichTextComponent implements AfterViewInit {
|
|
|
2378
2891
|
show_annulla: boolean;
|
|
2379
2892
|
show_ok: boolean;
|
|
2380
2893
|
min_chars: number;
|
|
2381
|
-
|
|
2382
|
-
constructor(dialogRef: MatDialogRef<FHWinAskRichTextComponent>, toastr: ToastrService, data: any);
|
|
2894
|
+
buttons: DialogButton[];
|
|
2895
|
+
constructor(dialogRef: MatDialogRef<FHWinAskRichTextComponent>, toastr: ToastrService | null, data: any);
|
|
2896
|
+
private updateButtons;
|
|
2897
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2383
2898
|
show(): void;
|
|
2384
2899
|
hide(): void;
|
|
2385
|
-
|
|
2900
|
+
close(): void;
|
|
2386
2901
|
chiudi(): void;
|
|
2387
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskRichTextComponent,
|
|
2902
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskRichTextComponent, [null, { optional: true; }, null]>;
|
|
2388
2903
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAskRichTextComponent, "app-win_ask_richtext", never, {}, {}, never, never, true, never>;
|
|
2389
2904
|
}
|
|
2390
2905
|
|
|
@@ -2400,13 +2915,18 @@ declare class FHWinAskTextComponent implements AfterViewInit {
|
|
|
2400
2915
|
min_chars: number;
|
|
2401
2916
|
max_chars: number;
|
|
2402
2917
|
readonly: boolean;
|
|
2403
|
-
|
|
2404
|
-
|
|
2918
|
+
show_annulla: boolean;
|
|
2919
|
+
show_ok: boolean;
|
|
2920
|
+
buttons: DialogButton[];
|
|
2921
|
+
constructor(dialogRef: MatDialogRef<FHWinAskTextComponent>, toastr: ToastrService | null, data: any);
|
|
2922
|
+
private updateButtons;
|
|
2923
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2924
|
+
triggerOk(): void;
|
|
2405
2925
|
show(): void;
|
|
2406
2926
|
hide(): void;
|
|
2407
|
-
|
|
2927
|
+
close(): void;
|
|
2408
2928
|
chiudi(): void;
|
|
2409
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskTextComponent,
|
|
2929
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskTextComponent, [null, { optional: true; }, null]>;
|
|
2410
2930
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAskTextComponent, "app-win_ask_text", never, {}, {}, never, never, true, never>;
|
|
2411
2931
|
}
|
|
2412
2932
|
|
|
@@ -2423,16 +2943,71 @@ declare class FHWinAskBigTextComponent implements AfterViewInit {
|
|
|
2423
2943
|
show_ok: boolean;
|
|
2424
2944
|
min_chars: number;
|
|
2425
2945
|
error_msg: string | null;
|
|
2426
|
-
|
|
2427
|
-
constructor(dialogRef: MatDialogRef<FHWinAskBigTextComponent>, toastr: ToastrService, data: any);
|
|
2946
|
+
buttons: DialogButton[];
|
|
2947
|
+
constructor(dialogRef: MatDialogRef<FHWinAskBigTextComponent>, toastr: ToastrService | null, data: any);
|
|
2948
|
+
private updateButtons;
|
|
2949
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2428
2950
|
show(): void;
|
|
2429
2951
|
hide(): void;
|
|
2430
|
-
do_check(): void;
|
|
2431
2952
|
chiudi(): void;
|
|
2432
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskBigTextComponent,
|
|
2953
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAskBigTextComponent, [null, { optional: true; }, null]>;
|
|
2433
2954
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAskBigTextComponent, "app-win_ask_text", never, {}, {}, never, never, true, never>;
|
|
2434
2955
|
}
|
|
2435
2956
|
|
|
2957
|
+
/**
|
|
2958
|
+
* fh_win_translate
|
|
2959
|
+
* --------------------------------------------------------------------------
|
|
2960
|
+
* Dialog FluxHub (basata su fh-dialog-base) per richiamare il Translation Server LLM.
|
|
2961
|
+
*
|
|
2962
|
+
* Il servizio espone:
|
|
2963
|
+
* POST {endpoint}/translate body: { "text": "...", "dest_lang": "it" }
|
|
2964
|
+
* -> { "success": true, "translation": "...", "source_lang": "en", "dest_lang": "it" }
|
|
2965
|
+
*
|
|
2966
|
+
* L'URL dell'endpoint NON è cablato: si passa dall'esterno tramite MAT_DIALOG_DATA.endpoint
|
|
2967
|
+
* (può cambiare a seconda del deploy). Se non passato, usa DEFAULT_ENDPOINT come fallback.
|
|
2968
|
+
*
|
|
2969
|
+
* Parametri (MAT_DIALOG_DATA):
|
|
2970
|
+
* endpoint string URL base del Translation Server (es. https://translate.fluxhub.com)
|
|
2971
|
+
* text string testo iniziale da tradurre (opzionale)
|
|
2972
|
+
* dest_lang string lingua destinazione iniziale: it|es|pt|el (default 'it')
|
|
2973
|
+
* title string titolo del dialog (opzionale)
|
|
2974
|
+
*
|
|
2975
|
+
* Apertura:
|
|
2976
|
+
* this.dialog.open(fh_win_translate, {
|
|
2977
|
+
* width: '680px', maxWidth: '95vw', maxHeight: '90vh',
|
|
2978
|
+
* data: { endpoint: 'https://translate.fluxhub.com', text: '...', dest_lang: 'it' }
|
|
2979
|
+
* });
|
|
2980
|
+
*
|
|
2981
|
+
* Ritorno (alla chiusura): { text, dest_lang, translation } se una traduzione è stata
|
|
2982
|
+
* eseguita, altrimenti null.
|
|
2983
|
+
*/
|
|
2984
|
+
declare class fh_win_translate {
|
|
2985
|
+
dialogRef: MatDialogRef<fh_win_translate>;
|
|
2986
|
+
private http;
|
|
2987
|
+
private toastr;
|
|
2988
|
+
data: any;
|
|
2989
|
+
static DEFAULT_ENDPOINT: string;
|
|
2990
|
+
langCombo?: FHComboboxComponent;
|
|
2991
|
+
title: string;
|
|
2992
|
+
endpoint: string;
|
|
2993
|
+
text: string;
|
|
2994
|
+
dest_lang: string;
|
|
2995
|
+
translation: string;
|
|
2996
|
+
loading: boolean;
|
|
2997
|
+
lang_values: string;
|
|
2998
|
+
buttons: DialogButton[];
|
|
2999
|
+
constructor(dialogRef: MatDialogRef<fh_win_translate>, http: HttpClient, toastr: ToastrService, data: any);
|
|
3000
|
+
private updateButtons;
|
|
3001
|
+
/** Costruisce l'URL completo dell'endpoint /translate gestendo lo slash finale */
|
|
3002
|
+
private get translate_url();
|
|
3003
|
+
onLangChange(): void;
|
|
3004
|
+
do_translate(): void;
|
|
3005
|
+
copy(): void;
|
|
3006
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3007
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<fh_win_translate, never>;
|
|
3008
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<fh_win_translate, "fh-win-translate", never, {}, {}, never, never, true, never>;
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2436
3011
|
declare class FHWinAutoComplete implements AfterViewInit {
|
|
2437
3012
|
dialogRef: MatDialogRef<FHWinAutoComplete>;
|
|
2438
3013
|
private toastr;
|
|
@@ -2442,13 +3017,15 @@ declare class FHWinAutoComplete implements AfterViewInit {
|
|
|
2442
3017
|
width: string;
|
|
2443
3018
|
nota: boolean;
|
|
2444
3019
|
nota_val: string;
|
|
3020
|
+
buttons: DialogButton[];
|
|
2445
3021
|
cmb_sel?: FHComboboxComponent;
|
|
2446
|
-
constructor(dialogRef: MatDialogRef<FHWinAutoComplete>, toastr: ToastrService, data: any);
|
|
3022
|
+
constructor(dialogRef: MatDialogRef<FHWinAutoComplete>, toastr: ToastrService | null, data: any);
|
|
3023
|
+
private updateButtons;
|
|
3024
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2447
3025
|
close(): void;
|
|
2448
3026
|
set_selection(lab: string, myD: Array<any>, nota?: boolean): void;
|
|
2449
|
-
ok(): void;
|
|
2450
3027
|
ngAfterViewInit(): void;
|
|
2451
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAutoComplete,
|
|
3028
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinAutoComplete, [null, { optional: true; }, null]>;
|
|
2452
3029
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinAutoComplete, "FHWinAutoComplete", never, {}, {}, never, never, true, never>;
|
|
2453
3030
|
}
|
|
2454
3031
|
|
|
@@ -2460,13 +3037,15 @@ declare class FHWinComboComponent implements AfterViewInit {
|
|
|
2460
3037
|
width: string;
|
|
2461
3038
|
nota: boolean;
|
|
2462
3039
|
nota_val: string;
|
|
3040
|
+
buttons: DialogButton[];
|
|
2463
3041
|
cmb_sel?: FHComboboxComponent;
|
|
2464
|
-
constructor(dialogRef: MatDialogRef<FHWinComboComponent>, toastr: ToastrService, data: any);
|
|
3042
|
+
constructor(dialogRef: MatDialogRef<FHWinComboComponent>, toastr: ToastrService | null, data: any);
|
|
3043
|
+
private updateButtons;
|
|
3044
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2465
3045
|
close(): void;
|
|
2466
3046
|
set_selection(lab: string, myD: Array<any>, nota?: boolean): void;
|
|
2467
|
-
ok(): void;
|
|
2468
3047
|
ngAfterViewInit(): void;
|
|
2469
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinComboComponent,
|
|
3048
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinComboComponent, [null, { optional: true; }, null]>;
|
|
2470
3049
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinComboComponent, "FHWinComboComponent", never, {}, {}, never, never, true, never>;
|
|
2471
3050
|
}
|
|
2472
3051
|
|
|
@@ -2484,19 +3063,68 @@ declare class FHWinListComponent implements AfterViewInit {
|
|
|
2484
3063
|
single_sel: boolean;
|
|
2485
3064
|
enableSearch: boolean;
|
|
2486
3065
|
sel_values: string;
|
|
3066
|
+
sel_valori: string;
|
|
2487
3067
|
required: boolean;
|
|
2488
3068
|
options: null;
|
|
3069
|
+
buttons: DialogButton[];
|
|
2489
3070
|
cmb_sel: FHListComponent | null;
|
|
2490
|
-
constructor(appService: AppService, dialogRef: MatDialogRef<FHWinListComponent>, toastr: ToastrService, data: any);
|
|
3071
|
+
constructor(appService: AppService, dialogRef: MatDialogRef<FHWinListComponent>, toastr: ToastrService | null, data: any);
|
|
3072
|
+
private updateButtons;
|
|
3073
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2491
3074
|
close(): void;
|
|
2492
3075
|
doFill(): void;
|
|
2493
|
-
ok(): void;
|
|
2494
3076
|
ok_single(): void;
|
|
2495
3077
|
ngAfterViewInit(): void;
|
|
2496
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinListComponent,
|
|
3078
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinListComponent, [null, null, { optional: true; }, null]>;
|
|
2497
3079
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinListComponent, "FHWinListComponent", never, {}, {}, never, never, true, never>;
|
|
2498
3080
|
}
|
|
2499
3081
|
|
|
3082
|
+
/** una voce della lista: `valore` e' cio' che si salva, `descrizione_valore` cio' che si legge */
|
|
3083
|
+
interface FHSearchListItem {
|
|
3084
|
+
valore: string;
|
|
3085
|
+
descrizione_valore: string;
|
|
3086
|
+
}
|
|
3087
|
+
/** dati attesi in `MAT_DIALOG_DATA` */
|
|
3088
|
+
interface FHSearchListData {
|
|
3089
|
+
/** titolo della dialog (di norma la label del campo) */
|
|
3090
|
+
title?: string;
|
|
3091
|
+
/** le voci gia' pronte: la dialog non fa query */
|
|
3092
|
+
items: FHSearchListItem[];
|
|
3093
|
+
/** valore attualmente selezionato, per evidenziarlo all'apertura */
|
|
3094
|
+
selected?: string | null;
|
|
3095
|
+
/** con true la lista offre anche la voce "(nessuno)" */
|
|
3096
|
+
allowEmpty?: boolean;
|
|
3097
|
+
/** etichetta della voce vuota */
|
|
3098
|
+
emptyLabel?: string;
|
|
3099
|
+
/** placeholder della casella di ricerca */
|
|
3100
|
+
searchLabel?: string;
|
|
3101
|
+
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Dialog di scelta da lista **con ricerca** — il "modo grande" di `FHComboBox`.
|
|
3104
|
+
*
|
|
3105
|
+
* Serve quando le voci sono tante o le descrizioni sono lunghe: nel pannello di una
|
|
3106
|
+
* `mat-select` le frasi vanno a capo una sull'altra e l'elenco diventa illeggibile,
|
|
3107
|
+
* e senza una casella di ricerca l'utente deve scorrere a mano decine di righe.
|
|
3108
|
+
*
|
|
3109
|
+
* Non fa query: riceve le voci gia' caricate da `FHComboBox` (che le prende dal suo
|
|
3110
|
+
* `sql`/`option_values` come sempre). Ritorna il `valore` scelto, `''` per la voce
|
|
3111
|
+
* vuota, `undefined` se si chiude senza scegliere.
|
|
3112
|
+
*/
|
|
3113
|
+
declare class FHWinSearchListComponent {
|
|
3114
|
+
private ref;
|
|
3115
|
+
data: FHSearchListData;
|
|
3116
|
+
filter: string;
|
|
3117
|
+
visible: FHSearchListItem[];
|
|
3118
|
+
/** un solo pulsante: la scelta chiude la dialog, come nel pannello di una combo */
|
|
3119
|
+
buttons: DialogButton[];
|
|
3120
|
+
constructor(ref: MatDialogRef<FHWinSearchListComponent>, data: FHSearchListData);
|
|
3121
|
+
applyFilter(): void;
|
|
3122
|
+
clearFilter(): void;
|
|
3123
|
+
choose(valore: string): void;
|
|
3124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinSearchListComponent, never>;
|
|
3125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinSearchListComponent, "FHWinSearchList", never, {}, {}, never, never, true, never>;
|
|
3126
|
+
}
|
|
3127
|
+
|
|
2500
3128
|
declare class FHWinMappaComponent implements AfterViewInit {
|
|
2501
3129
|
dialogRef: MatDialogRef<FHWinMappaComponent>;
|
|
2502
3130
|
private toastr;
|
|
@@ -2504,7 +3132,6 @@ declare class FHWinMappaComponent implements AfterViewInit {
|
|
|
2504
3132
|
data: any;
|
|
2505
3133
|
title: string;
|
|
2506
3134
|
sql_dett: string;
|
|
2507
|
-
close(): void;
|
|
2508
3135
|
open_only_one: boolean;
|
|
2509
3136
|
descri: string;
|
|
2510
3137
|
zoom: number;
|
|
@@ -2514,9 +3141,13 @@ declare class FHWinMappaComponent implements AfterViewInit {
|
|
|
2514
3141
|
infoWindowOpened: null;
|
|
2515
3142
|
markers: any[];
|
|
2516
3143
|
height: number;
|
|
3144
|
+
buttons: DialogButton[];
|
|
2517
3145
|
apri_Scheda(s_id: string): void;
|
|
2518
3146
|
clickedMarker(label: any, marker: MapMarker, ind: MapInfoWindow): void;
|
|
2519
3147
|
constructor(dialogRef: MatDialogRef<FHWinMappaComponent>, toastr: ToastrService, m_appService: AppService, data: any);
|
|
3148
|
+
private updateButtons;
|
|
3149
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3150
|
+
close(): void;
|
|
2520
3151
|
ngAfterViewInit(): void;
|
|
2521
3152
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinMappaComponent, never>;
|
|
2522
3153
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinMappaComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
@@ -2530,13 +3161,16 @@ declare class FHWinOutputComponent implements AfterViewInit {
|
|
|
2530
3161
|
private _tsr;
|
|
2531
3162
|
data: any;
|
|
2532
3163
|
ngAfterViewInit(): void;
|
|
2533
|
-
close(): void;
|
|
2534
|
-
copia(): void;
|
|
2535
3164
|
title: string;
|
|
2536
3165
|
label: string;
|
|
2537
3166
|
value: string;
|
|
2538
3167
|
showCopy: boolean;
|
|
3168
|
+
buttons: DialogButton[];
|
|
2539
3169
|
constructor(dialogRef: MatDialogRef<FHWinOutputComponent>, appService: AppService, clipboard: Clipboard, toastr: ToastrService, _tsr: TranslateService, data: any);
|
|
3170
|
+
private updateButtons;
|
|
3171
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3172
|
+
copia(): void;
|
|
3173
|
+
close(): void;
|
|
2540
3174
|
show(): void;
|
|
2541
3175
|
hide(): void;
|
|
2542
3176
|
chiudi(): void;
|
|
@@ -2602,6 +3236,7 @@ declare class FHWinSelectByGridComponent implements AfterViewInit {
|
|
|
2602
3236
|
private _trs;
|
|
2603
3237
|
rowData: any;
|
|
2604
3238
|
gridApi: any;
|
|
3239
|
+
buttons: DialogButton[];
|
|
2605
3240
|
onReady(event: any): void;
|
|
2606
3241
|
selection_mode: any;
|
|
2607
3242
|
cmd_wkf_prog(o: any): void;
|
|
@@ -2625,9 +3260,11 @@ declare class FHWinSelectByGridComponent implements AfterViewInit {
|
|
|
2625
3260
|
columnDefs: never[];
|
|
2626
3261
|
system_dest: number;
|
|
2627
3262
|
title: string;
|
|
2628
|
-
|
|
3263
|
+
grid_config_key: string;
|
|
2629
3264
|
tbl_flt: string;
|
|
2630
3265
|
constructor(dialogRef: MatDialogRef<FHWinSelectByGridComponent>, _dataService: QueryService, toastr: ToastrService, apps: AppService, data: any, _trs: TranslateService);
|
|
3266
|
+
private updateButtons;
|
|
3267
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2631
3268
|
option: number;
|
|
2632
3269
|
init: boolean;
|
|
2633
3270
|
fe(): void;
|
|
@@ -2645,15 +3282,18 @@ declare class FHWinShowEmail {
|
|
|
2645
3282
|
m_appService: AppService;
|
|
2646
3283
|
data: any;
|
|
2647
3284
|
allegati: never[];
|
|
2648
|
-
init_w(): void;
|
|
2649
3285
|
App: string;
|
|
2650
3286
|
K: string;
|
|
2651
3287
|
Filename: string;
|
|
2652
|
-
open_eml(): void;
|
|
2653
|
-
open_all(u: any): void;
|
|
2654
3288
|
email_obj: any;
|
|
2655
3289
|
title: string;
|
|
3290
|
+
buttons: DialogButton[];
|
|
2656
3291
|
constructor(dialogRef: MatDialogRef<FHWinShowEmail>, _fileservice: FileService, m_appService: AppService, data: any);
|
|
3292
|
+
private updateButtons;
|
|
3293
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3294
|
+
init_w(): void;
|
|
3295
|
+
open_eml(): void;
|
|
3296
|
+
open_all(u: any): void;
|
|
2657
3297
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinShowEmail, never>;
|
|
2658
3298
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinShowEmail, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2659
3299
|
}
|
|
@@ -2664,16 +3304,19 @@ declare class FHWinShowEmailS3 {
|
|
|
2664
3304
|
m_appService: AppService;
|
|
2665
3305
|
data: any;
|
|
2666
3306
|
allegati: never[];
|
|
2667
|
-
init_w(): void;
|
|
2668
3307
|
App: string;
|
|
2669
3308
|
K: string;
|
|
2670
|
-
open_all(u: any): void;
|
|
2671
3309
|
email_obj: any;
|
|
2672
3310
|
title: string;
|
|
2673
3311
|
web_url: string;
|
|
2674
3312
|
local_dir: string;
|
|
2675
3313
|
ant_preview: string;
|
|
3314
|
+
buttons: DialogButton[];
|
|
2676
3315
|
constructor(dialogRef: MatDialogRef<FHWinShowEmailS3>, _fileservice: FileService, m_appService: AppService, data: any);
|
|
3316
|
+
private updateButtons;
|
|
3317
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3318
|
+
init_w(): void;
|
|
3319
|
+
open_all(u: any): void;
|
|
2677
3320
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinShowEmailS3, never>;
|
|
2678
3321
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinShowEmailS3, "ng-component", never, {}, {}, never, never, true, never>;
|
|
2679
3322
|
}
|
|
@@ -2682,7 +3325,10 @@ declare class FHWinShowImage implements AfterViewInit {
|
|
|
2682
3325
|
dialogRef: MatDialogRef<FHWinShowImage>;
|
|
2683
3326
|
imageIndex: number;
|
|
2684
3327
|
images: never[];
|
|
3328
|
+
buttons: DialogButton[];
|
|
2685
3329
|
constructor(dialogRef: MatDialogRef<FHWinShowImage>);
|
|
3330
|
+
private updateButtons;
|
|
3331
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2686
3332
|
ngAfterViewInit(): void;
|
|
2687
3333
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinShowImage, never>;
|
|
2688
3334
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinShowImage, "ng-component", never, {}, {}, never, never, true, never>;
|
|
@@ -2703,6 +3349,7 @@ declare class FHWinGridSelection implements AfterViewInit {
|
|
|
2703
3349
|
groupColumnSize: number;
|
|
2704
3350
|
rowData: any[];
|
|
2705
3351
|
singleRowSel: any[];
|
|
3352
|
+
buttons: DialogButton[];
|
|
2706
3353
|
dtm: FHGridComponent | undefined;
|
|
2707
3354
|
cellClick($event: any): void;
|
|
2708
3355
|
dblClick($event: any): void;
|
|
@@ -2714,6 +3361,8 @@ declare class FHWinGridSelection implements AfterViewInit {
|
|
|
2714
3361
|
autoSizeAll(): void;
|
|
2715
3362
|
fitSizeAll(): void;
|
|
2716
3363
|
constructor(dialogRef: MatDialogRef<FHWinGridSelection>, m_AppService: AppService, data: any);
|
|
3364
|
+
private updateButtons;
|
|
3365
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2717
3366
|
ie(): void;
|
|
2718
3367
|
ok(): void;
|
|
2719
3368
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinGridSelection, never>;
|
|
@@ -2721,8 +3370,6 @@ declare class FHWinGridSelection implements AfterViewInit {
|
|
|
2721
3370
|
}
|
|
2722
3371
|
|
|
2723
3372
|
declare class FHWinShowLog implements AfterViewInit {
|
|
2724
|
-
private router;
|
|
2725
|
-
private route;
|
|
2726
3373
|
private _dataService;
|
|
2727
3374
|
private toastr;
|
|
2728
3375
|
private dialog;
|
|
@@ -2731,13 +3378,17 @@ declare class FHWinShowLog implements AfterViewInit {
|
|
|
2731
3378
|
dialogRef: MatDialogRef<FHWinShowLog>;
|
|
2732
3379
|
data: any;
|
|
2733
3380
|
title: string;
|
|
2734
|
-
|
|
3381
|
+
buttons: DialogButton[];
|
|
2735
3382
|
datagrid?: FHGridComponent;
|
|
2736
3383
|
cce(event: any): void;
|
|
2737
3384
|
columnDefs: any[];
|
|
3385
|
+
private initColumnDefs;
|
|
2738
3386
|
ie(): void;
|
|
2739
3387
|
show_descri(): void;
|
|
2740
|
-
constructor(
|
|
3388
|
+
constructor(_dataService: QueryService, toastr: ToastrService, dialog: MatDialog, appService: AppService, uti: UtilityService, dialogRef: MatDialogRef<FHWinShowLog>, data: any);
|
|
3389
|
+
private updateButtons;
|
|
3390
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3391
|
+
close(): void;
|
|
2741
3392
|
flt_log: string;
|
|
2742
3393
|
ngAfterViewInit(): void;
|
|
2743
3394
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinShowLog, never>;
|
|
@@ -2749,8 +3400,11 @@ declare class FHWinShowLogDett implements AfterViewInit {
|
|
|
2749
3400
|
data: any;
|
|
2750
3401
|
modifiche: any[];
|
|
2751
3402
|
title: string;
|
|
2752
|
-
|
|
3403
|
+
buttons: DialogButton[];
|
|
2753
3404
|
constructor(dialogRef: MatDialogRef<FHWinShowLogDett>, data: any);
|
|
3405
|
+
private updateButtons;
|
|
3406
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3407
|
+
close(): void;
|
|
2754
3408
|
ngAfterViewInit(): void;
|
|
2755
3409
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinShowLogDett, never>;
|
|
2756
3410
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinShowLogDett, "ng-component", never, {}, {}, never, never, true, never>;
|
|
@@ -2765,12 +3419,15 @@ declare class FHWinTimeSlider implements AfterViewInit {
|
|
|
2765
3419
|
res: string;
|
|
2766
3420
|
h: number;
|
|
2767
3421
|
m: number;
|
|
3422
|
+
buttons: DialogButton[];
|
|
3423
|
+
constructor(dialogRef: MatDialogRef<FHWinTimeSlider>, toastr: ToastrService | null, m_appService: AppService, uti_s: UtilityService);
|
|
3424
|
+
private updateButtons;
|
|
3425
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
2768
3426
|
close(): void;
|
|
2769
|
-
constructor(dialogRef: MatDialogRef<FHWinTimeSlider>, toastr: ToastrService, m_appService: AppService, uti_s: UtilityService);
|
|
2770
3427
|
change(): void;
|
|
2771
3428
|
ok(): void;
|
|
2772
3429
|
ngAfterViewInit(): void;
|
|
2773
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinTimeSlider,
|
|
3430
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinTimeSlider, [null, { optional: true; }, null, null]>;
|
|
2774
3431
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinTimeSlider, "fhtimeslider", never, {}, {}, never, never, true, never>;
|
|
2775
3432
|
}
|
|
2776
3433
|
|
|
@@ -2778,8 +3435,6 @@ declare class FHWinUserInfo implements AfterViewInit {
|
|
|
2778
3435
|
dialogRef: MatDialogRef<FHWinUserInfo>;
|
|
2779
3436
|
appService: AppService;
|
|
2780
3437
|
private _dataService;
|
|
2781
|
-
close(): void;
|
|
2782
|
-
constructor(dialogRef: MatDialogRef<FHWinUserInfo>, appService: AppService, _dataService: QueryService);
|
|
2783
3438
|
title: string;
|
|
2784
3439
|
user: string | null;
|
|
2785
3440
|
user_name: string | null;
|
|
@@ -2791,6 +3446,11 @@ declare class FHWinUserInfo implements AfterViewInit {
|
|
|
2791
3446
|
foto_ut: string;
|
|
2792
3447
|
dev_mode: boolean;
|
|
2793
3448
|
b_filef: boolean;
|
|
3449
|
+
buttons: DialogButton[];
|
|
3450
|
+
constructor(dialogRef: MatDialogRef<FHWinUserInfo>, appService: AppService, _dataService: QueryService);
|
|
3451
|
+
private updateButtons;
|
|
3452
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3453
|
+
close(): void;
|
|
2794
3454
|
ngAfterViewInit(): void;
|
|
2795
3455
|
upd_dev(dv: boolean): void;
|
|
2796
3456
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinUserInfo, never>;
|
|
@@ -2844,10 +3504,13 @@ declare class FHWinUserPickerComponent {
|
|
|
2844
3504
|
user_sel: Array<any>;
|
|
2845
3505
|
users_list_sel: Array<any>;
|
|
2846
3506
|
title: string;
|
|
2847
|
-
|
|
3507
|
+
buttons: DialogButton[];
|
|
2848
3508
|
user_picker: FHPickUsersComponent | undefined;
|
|
2849
|
-
filtra(): void;
|
|
2850
3509
|
constructor(dialogRef: MatDialogRef<FHWinUserPickerComponent>, data: any);
|
|
3510
|
+
private updateButtons;
|
|
3511
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
3512
|
+
selchange(o: any): void;
|
|
3513
|
+
filtra(): void;
|
|
2851
3514
|
getSelArr(): Array<any>;
|
|
2852
3515
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinUserPickerComponent, never>;
|
|
2853
3516
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinUserPickerComponent, "ng-component", never, { "height": { "alias": "height"; "required": false; }; "users_list": { "alias": "users_list"; "required": false; }; "single_sel": { "alias": "single_sel"; "required": false; }; "vis_buttons": { "alias": "vis_buttons"; "required": false; }; "all_users": { "alias": "all_users"; "required": false; }; "user_sel": { "alias": "user_sel"; "required": false; }; "users_list_sel": { "alias": "users_list_sel"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -2950,19 +3613,293 @@ declare class OfficeAutomatorService {
|
|
|
2950
3613
|
static ɵprov: i0.ɵɵInjectableDeclaration<OfficeAutomatorService>;
|
|
2951
3614
|
}
|
|
2952
3615
|
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3616
|
+
/**
|
|
3617
|
+
* Tipo di dato di un campo passato a `FHWorkflowForm.getfieldvalues()`.
|
|
3618
|
+
*
|
|
3619
|
+
* Stesso set di `QParam.types` (vedi QParam.ts): i due contratti descrivono
|
|
3620
|
+
* la stessa cosa a due passi diversi della stessa pipeline (getfieldvalues()
|
|
3621
|
+
* costruisce i campi, save_agg() li travasa dentro un QParam per la insert_aggiuntivi).
|
|
3622
|
+
* 'cblob' non viene stringificato da save_agg() (nessun ramo per lui nell'if-chain):
|
|
3623
|
+
* il valore passa cosi' com'e', quindi qui e' vincolato a string come gli altri
|
|
3624
|
+
* campi testuali.
|
|
3625
|
+
*/
|
|
3626
|
+
type WkfFieldType = 'string' | 'int' | 'decimal' | 'date' | 'datetime' | 'boolean' | 'cblob';
|
|
3627
|
+
/**
|
|
3628
|
+
* Un campo da salvare tramite `FHWorkflowForm.getfieldvalues()`.
|
|
3629
|
+
*
|
|
3630
|
+
* `values` accetta il valore nativo (Date per date/datetime, number per
|
|
3631
|
+
* int/decimal, boolean per boolean) OPPURE una stringa gia' pronta: entrambe
|
|
3632
|
+
* le forme sono legittime perche' e' esattamente cio' che `save_agg()` gestisce
|
|
3633
|
+
* gia' oggi (vedi wkf-form-data.ts, il ramo `if (arr[i].types == '...')` per
|
|
3634
|
+
* ciascun tipo chiama uti_s.sql_date/sql_date_time o fa un cast a stringa, e
|
|
3635
|
+
* se il valore era gia' una stringa nel formato giusto la passa cosi' com'e').
|
|
3636
|
+
* `| null | undefined` copre i campi non valorizzati (save_agg() li manda
|
|
3637
|
+
* come 'dbnull' con `== null`, che in JS e' vero per entrambi): `undefined`
|
|
3638
|
+
* non e' un caso raro, e' cio' che produce `this.qualcheControllo?.getValue()`
|
|
3639
|
+
* su un campo non ancora renderizzato, pattern usatissimo nei form concreti.
|
|
3640
|
+
*
|
|
3641
|
+
* Discriminato su `types`: assegnare `values: true` a un campo `types: 'datetime'`
|
|
3642
|
+
* e' un errore di compilazione. Non e' un vincolo nuovo, e' quello che
|
|
3643
|
+
* save_agg() richiede gia' silenziosamente a runtime.
|
|
3644
|
+
*/
|
|
3645
|
+
type WkfFieldValue = {
|
|
3646
|
+
types: 'string' | 'cblob';
|
|
3647
|
+
names: string;
|
|
3648
|
+
values: string | null | undefined;
|
|
3649
|
+
} | {
|
|
3650
|
+
types: 'int' | 'decimal';
|
|
3651
|
+
names: string;
|
|
3652
|
+
values: number | string | null | undefined;
|
|
3653
|
+
} | {
|
|
3654
|
+
types: 'boolean';
|
|
3655
|
+
names: string;
|
|
3656
|
+
values: boolean | string | null | undefined;
|
|
3657
|
+
} | {
|
|
3658
|
+
types: 'date' | 'datetime';
|
|
3659
|
+
names: string;
|
|
3660
|
+
values: Date | string | null | undefined;
|
|
3661
|
+
};
|
|
3662
|
+
/**
|
|
3663
|
+
* Costruisce un WkfFieldValue, con `values` vincolato al ramo giusto in base
|
|
3664
|
+
* al `types` passato (overload esplicito, non un generico con `Extract<...>`:
|
|
3665
|
+
* quella via distribuisce male su un discriminated union quando il generico
|
|
3666
|
+
* non e' ancora risolto a un literal, e collassa il parametro a `never` --
|
|
3667
|
+
* provato e scartato).
|
|
3668
|
+
*
|
|
3669
|
+
* Pensato per rimpiazzare il pattern storico
|
|
3670
|
+
*
|
|
3671
|
+
* o = new Object();
|
|
3672
|
+
* o.types = 'boolean';
|
|
3673
|
+
* o.names = 'verifica_tecnico';
|
|
3674
|
+
* o.values = this.m_obj.verifica_tecnico;
|
|
3675
|
+
* p.push(o);
|
|
3676
|
+
*
|
|
3677
|
+
* con una riga sola, tipizzata:
|
|
3678
|
+
*
|
|
3679
|
+
* p.push(wkfField('boolean', 'verifica_tecnico', this.m_obj.verifica_tecnico));
|
|
3680
|
+
*/
|
|
3681
|
+
declare function wkfField(types: 'string' | 'cblob', names: string, values: string | null | undefined): WkfFieldValue;
|
|
3682
|
+
declare function wkfField(types: 'int' | 'decimal', names: string, values: number | string | null | undefined): WkfFieldValue;
|
|
3683
|
+
declare function wkfField(types: 'boolean', names: string, values: boolean | string | null | undefined): WkfFieldValue;
|
|
3684
|
+
declare function wkfField(types: 'date' | 'datetime', names: string, values: Date | string | null | undefined): WkfFieldValue;
|
|
3685
|
+
|
|
3686
|
+
declare class AppMakerService {
|
|
3687
|
+
private http;
|
|
3688
|
+
private app_s;
|
|
3689
|
+
private toastr;
|
|
3690
|
+
headers?: HttpHeaders | null;
|
|
3691
|
+
constructor(http: HttpClient, app_s: AppService, toastr: ToastrService);
|
|
3692
|
+
url: string | null;
|
|
3693
|
+
doQuery(queryp: QParam, displayError?: boolean): Observable<QResult>;
|
|
3694
|
+
private extractData;
|
|
3695
|
+
private handleError;
|
|
3696
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppMakerService, never>;
|
|
3697
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppMakerService>;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
/** Motivo per cui un avanzamento headless non e' andato a buon fine. */
|
|
3701
|
+
type WkfProceedReason = 'OK' | 'NO_DOC' | 'CLOSED' | 'TASKS_OPEN' | 'NO_LEVELS' | 'NO_CURRENT_LEVEL' | 'NO_TRANSITION' | 'MULTIPLE_TRANSITIONS' | 'NO_RECIPIENTS' | 'MANUAL_ASSIGNMENT';
|
|
3702
|
+
interface WkfProceedResult {
|
|
3703
|
+
ok: boolean;
|
|
3704
|
+
reason: WkfProceedReason;
|
|
3705
|
+
/** Step di partenza (stato del documento al momento della chiamata). */
|
|
3706
|
+
step_o?: number;
|
|
3707
|
+
/** Step di arrivo, valorizzato solo quando l'avanzamento e' partito. */
|
|
3708
|
+
step_d?: number;
|
|
3709
|
+
/** Transizioni candidate, per far scegliere al chiamante su MULTIPLE_TRANSITIONS. */
|
|
3710
|
+
transizioni?: any[];
|
|
3711
|
+
/** Destinatari (livelli) calcolati per lo step di arrivo. */
|
|
3712
|
+
destinatari?: any[];
|
|
3713
|
+
msg?: string;
|
|
3714
|
+
}
|
|
3715
|
+
interface WkfProceedOptions {
|
|
3716
|
+
/**
|
|
3717
|
+
* Step di arrivo. Obbligatorio quando dallo step corrente escono piu' transizioni
|
|
3718
|
+
* e non si vuole delegare la scelta ad `auto_forward`.
|
|
3719
|
+
*/
|
|
3720
|
+
step_d?: number;
|
|
3721
|
+
/**
|
|
3722
|
+
* Con piu' transizioni disponibili e nessuno `step_d`: prende la prima transizione
|
|
3723
|
+
* IN AVANTI (step_d > step corrente) in ordine di `ord`. Senza questo flag il
|
|
3724
|
+
* metodo si ferma con MULTIPLE_TRANSITIONS e restituisce le candidate.
|
|
3725
|
+
*/
|
|
3726
|
+
auto_forward?: boolean;
|
|
3727
|
+
/** Commento di avanzamento registrato sul workflow. */
|
|
3728
|
+
nota?: string;
|
|
3729
|
+
/** Titolo/descrizione usati nelle notifiche (default: codice/oggetto del documento). */
|
|
3730
|
+
title?: string;
|
|
3731
|
+
descri?: string;
|
|
3732
|
+
/** Username che compare come autore dell'operazione (default: utente collegato). */
|
|
3733
|
+
username?: string;
|
|
3734
|
+
/**
|
|
3735
|
+
* Salta il controllo sui task obbligatori ancora aperti. Da usare solo quando il
|
|
3736
|
+
* chiamante ha gia' verificato lui lo stato dei task.
|
|
3737
|
+
*/
|
|
3738
|
+
skip_tasks_check?: boolean;
|
|
3739
|
+
}
|
|
3740
|
+
interface WkfTaskResult {
|
|
3741
|
+
ok: boolean;
|
|
3742
|
+
/** Chi detiene la presa in carico: valorizzato quando `ok` e' false per corsa persa. */
|
|
3743
|
+
owner?: string;
|
|
3744
|
+
/** Task risolto (riga di SELECT_WKF_STEP_TASKS). */
|
|
3745
|
+
task?: any;
|
|
3746
|
+
/** Esito dell'eventuale avanzamento innescato dalla chiusura. */
|
|
3747
|
+
proceed?: WkfProceedResult;
|
|
3748
|
+
msg?: string;
|
|
3749
|
+
}
|
|
3750
|
+
interface WkfCompleteTaskOptions extends WkfProceedOptions {
|
|
3751
|
+
/** Nota di chiusura del task. */
|
|
3752
|
+
nota_task?: string;
|
|
3753
|
+
/**
|
|
3754
|
+
* Chiude l'attivita' anche se l'utente non ha un ruolo abilitato su di essa
|
|
3755
|
+
* (`can_close`). Da usare solo per processi automatici che agiscono per conto
|
|
3756
|
+
* del sistema: per un'azione fatta da una persona il controllo va lasciato.
|
|
3757
|
+
*/
|
|
3758
|
+
force?: boolean;
|
|
3759
|
+
/**
|
|
3760
|
+
* A task tutti chiusi tenta l'avanzamento dello step (default true). A false il
|
|
3761
|
+
* task viene solo chiuso e lo step resta dov'e'.
|
|
3762
|
+
*/
|
|
3763
|
+
proceed?: boolean;
|
|
3764
|
+
}
|
|
3765
|
+
declare class WkfService {
|
|
3766
|
+
private http;
|
|
3767
|
+
private app_s;
|
|
3768
|
+
private toastr;
|
|
3769
|
+
private uti_s;
|
|
3770
|
+
private q_s;
|
|
3771
|
+
private f_s;
|
|
3772
|
+
headers?: HttpHeaders | null;
|
|
3773
|
+
constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, uti_s: UtilityService, q_s: QueryService, f_s: FileService);
|
|
3774
|
+
url: string | null;
|
|
3775
|
+
doQuery(queryp: QParam, displayError?: boolean): Observable<QResult>;
|
|
3776
|
+
/** doQuery sul canale query standard (NON l'endpoint wkf di questo service). */
|
|
3777
|
+
private q;
|
|
3778
|
+
private rows;
|
|
3779
|
+
/**
|
|
3780
|
+
* I bit(1) di MySQL possono arrivare come true/false, 1/0 oppure come i byte
|
|
3781
|
+
* grezzi 0x01 / 0x00 a seconda del driver: qui vengono normalizzati tutti.
|
|
3782
|
+
*/
|
|
3783
|
+
private is_true;
|
|
3784
|
+
private cur_user;
|
|
3785
|
+
/**
|
|
3786
|
+
* Riga di log sul documento (`wkf_workflow`), la stessa tabella del log del form:
|
|
3787
|
+
* le operazioni sulle attivita' devono comparire nel dialog LOGS come quelle del
|
|
3788
|
+
* motore, altrimenti una pratica avanzata da un'applicazione esterna risulta
|
|
3789
|
+
* mossa "da sola".
|
|
3790
|
+
*
|
|
3791
|
+
* Il dialog rende `operazione (stato_attuale)`: qui il titolo dell'attivita' va
|
|
3792
|
+
* nel secondo campo, cosi' la riga si legge come le altre ("... (ATTESA SCHEDA
|
|
3793
|
+
* TECNICA)"). Il log e' accessorio: un suo errore non deve far fallire
|
|
3794
|
+
* l'operazione, quindi l'errore viene assorbito.
|
|
3795
|
+
*/
|
|
3796
|
+
log_task_op(id_applicativo: string, id_documento: string, operazione: string, task: any, username?: string): Observable<any>;
|
|
3797
|
+
private dev_mode;
|
|
3798
|
+
/**
|
|
3799
|
+
* Testata del documento di workflow (stato, canale, creatore, codice, oggetto).
|
|
3800
|
+
* Headless non abbiamo la vista applicativa del form: leggiamo `wkf_documents`.
|
|
3801
|
+
*/
|
|
3802
|
+
load_wkf_document(id_applicativo: string, id_documento: string): Observable<any>;
|
|
3803
|
+
/**
|
|
3804
|
+
* Livelli del workflow con le variabili speciali gia' risolte sul documento.
|
|
3805
|
+
*
|
|
3806
|
+
* Replica di quello che il form fa al load: `SELECT_WLIVELLIV2_2` da' i livelli
|
|
3807
|
+
* di configurazione (dove `value` puo' essere un ruolo o una variabile `*XXX`),
|
|
3808
|
+
* `SELECT_WKF_VARIABILES_V2` da' i valori delle variabili sul documento. I
|
|
3809
|
+
* livelli con una variabile non risolvibile vengono scartati, esattamente come
|
|
3810
|
+
* nel form: un livello senza utente non e' un destinatario valido.
|
|
3811
|
+
*/
|
|
3812
|
+
load_wkf_levels(id_applicativo: string, id_documento: string, doc: any): Observable<any[]>;
|
|
3813
|
+
/**
|
|
3814
|
+
* Risoluzione delle variabili speciali sui livelli.
|
|
3815
|
+
*
|
|
3816
|
+
* NB: a differenza del form NON persiste la variabile REQUESTER mancante — un
|
|
3817
|
+
* avanzamento headless non deve scrivere configurazione di nascosto. La sintetizza
|
|
3818
|
+
* solo in memoria, dal creatore del documento.
|
|
3819
|
+
*/
|
|
3820
|
+
private resolve_levels;
|
|
3821
|
+
/** Transizioni in uscita da uno step, in ordine di configurazione (`ord`). */
|
|
3822
|
+
load_wkf_transitions(id_applicativo: string, step_o: number): Observable<any[]>;
|
|
3823
|
+
/** Attivita' (task) di uno step con lo stato sul documento. */
|
|
3824
|
+
load_step_tasks(id_applicativo: string, id_documento: string, step: number, username?: string): Observable<any[]>;
|
|
3825
|
+
/** Task obbligatori dello step ancora aperti. */
|
|
3826
|
+
required_tasks_open(tasks: any[]): any[];
|
|
3827
|
+
/**
|
|
3828
|
+
* Presa in carico atomica: materializza la riga, tenta l'UPDATE condizionato su
|
|
3829
|
+
* `preso_da IS NULL`, poi rilegge il proprietario. Chi ha vinto la corsa lo
|
|
3830
|
+
* decide il DB, non il frontend.
|
|
3831
|
+
*/
|
|
3832
|
+
claim_task(id_applicativo: string, id_documento: string, task: any, step: number, username?: string): Observable<WkfTaskResult>;
|
|
3833
|
+
/**
|
|
3834
|
+
* Chiude un task gia' preso in carico. L'UPDATE porta `preso_da` nella WHERE:
|
|
3835
|
+
* se nel frattempo la presa in carico e' stata forzata via, la chiusura non passa.
|
|
3836
|
+
*/
|
|
3837
|
+
close_task(id_applicativo: string, id_documento: string, task: any, nota?: string | null, username?: string): Observable<boolean>;
|
|
3838
|
+
/** Riapre un task chiuso, azzerando anche la presa in carico. */
|
|
3839
|
+
reopen_task(id_applicativo: string, id_documento: string, task: any, username?: string): Observable<boolean>;
|
|
3840
|
+
/**
|
|
3841
|
+
* Segnala a exec_wkf la chiusura di un task: sblocco dei task dipendenti,
|
|
3842
|
+
* lettori e notifiche. La chiusura resta un UPDATE del frontend (serve l'esito
|
|
3843
|
+
* sincrono della corsa), qui passa solo l'evento.
|
|
3844
|
+
*/
|
|
3845
|
+
notify_task_closed(id_applicativo: string, id_documento: string, uiid_task: string, username?: string): Observable<any>;
|
|
3846
|
+
/**
|
|
3847
|
+
* Avanzamento di step innescato dalla chiusura dei task: e' l'avanza classico
|
|
3848
|
+
* SENZA il vincolo che chi lo esegue sia agganciato allo step corrente.
|
|
3849
|
+
*
|
|
3850
|
+
* Nel form l'avanzamento richiede che l'utente compaia tra i livelli dello step
|
|
3851
|
+
* corrente (`doApprova` cerca il `clevel` che combacia con lui) e che sia autore
|
|
3852
|
+
* del documento (`b_edit`). Su uno step in modalita' task le due cose spesso non
|
|
3853
|
+
* coincidono: gli esecutori dei task sono LETTORI del documento, non autori, e i
|
|
3854
|
+
* ruoli dei task sono diversi da quelli dello step. Qui il livello corrente si
|
|
3855
|
+
* prende per solo step: chi ha chiuso l'ultimo task obbligatorio fa avanzare la
|
|
3856
|
+
* pratica, chiunque sia.
|
|
3857
|
+
*
|
|
3858
|
+
* Cosa NON fa (e va tenuto presente):
|
|
3859
|
+
* - non esegue `ck_after()` del form: le validazioni applicative legate
|
|
3860
|
+
* all'avanzamento vanno spostate su `ck_task()` del task che chiude lo step;
|
|
3861
|
+
* - non gestisce l'assegnazione manuale (`manual_assignment`/`pre_assegna_man`),
|
|
3862
|
+
* che richiede un dialog: in quel caso si ferma con MANUAL_ASSIGNMENT;
|
|
3863
|
+
* - con piu' transizioni in uscita non sceglie da solo se non glielo si dice
|
|
3864
|
+
* (`step_d` o `auto_forward`).
|
|
3865
|
+
*/
|
|
3866
|
+
proceed_from_task(id_applicativo: string, id_documento: string, opts?: WkfProceedOptions): Observable<WkfProceedResult>;
|
|
3867
|
+
private do_proceed;
|
|
3868
|
+
/**
|
|
3869
|
+
* Scelta della transizione: esplicita (`step_d`), unica, oppure — con
|
|
3870
|
+
* `auto_forward` — la prima IN AVANTI in ordine di configurazione. Gli step
|
|
3871
|
+
* terminali/laterali (annullamento, sospensione...) non vengono mai scelti da
|
|
3872
|
+
* soli: sono decisioni di un operatore, non conseguenze di un task chiuso.
|
|
3873
|
+
*/
|
|
3874
|
+
private pick_transition;
|
|
3875
|
+
/**
|
|
3876
|
+
* Destinatari dello step di arrivo. Stessa logica del form (`calcola_destinari`):
|
|
3877
|
+
* livelli dello step di destinazione filtrati per canale, poi le restrizioni su
|
|
3878
|
+
* creatore (step iniziali), `default_value` e `pre_assegna_req`.
|
|
3879
|
+
*/
|
|
3880
|
+
private build_recipients;
|
|
3881
|
+
/** Accoda l'operazione di avanzamento e lancia exec_wkf (o create_ver). */
|
|
3882
|
+
private exec_wkf_op;
|
|
3883
|
+
private run_exec_app;
|
|
3884
|
+
/**
|
|
3885
|
+
* Chiude un task dello step corrente identificato dalla sua `check_key` e, se
|
|
3886
|
+
* era l'ultimo obbligatorio, fa avanzare lo step. E' il metodo pensato per gli
|
|
3887
|
+
* applicativi esterni al flusso: una sola chiamata, esito parlante.
|
|
3888
|
+
*
|
|
3889
|
+
* La presa in carico viene fatta qui: fuori dal pannello non ha senso chiedere
|
|
3890
|
+
* all'utente di prendere in carico un'attivita' che sta gia' eseguendo.
|
|
3891
|
+
*/
|
|
3892
|
+
complete_task(id_applicativo: string, id_documento: string, check_key: string, opts?: WkfCompleteTaskOptions): Observable<WkfTaskResult>;
|
|
3893
|
+
/**
|
|
3894
|
+
* Dopo la chiusura: se restano task obbligatori aperti si notifica soltanto lo
|
|
3895
|
+
* sblocco dei dipendenti; se non ne restano si avanza (l'avanzamento ricalcola
|
|
3896
|
+
* da se' lettori e notifiche dello step di arrivo, quindi TASK_CLOSED sarebbe
|
|
3897
|
+
* rumore su uno step che stiamo lasciando).
|
|
3898
|
+
*/
|
|
3899
|
+
private after_close;
|
|
3900
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WkfService, never>;
|
|
3901
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WkfService>;
|
|
3902
|
+
}
|
|
2966
3903
|
|
|
2967
3904
|
declare abstract class FHWorkflowView {
|
|
2968
3905
|
private app_s;
|
|
@@ -2986,9 +3923,9 @@ declare abstract class FHWorkflowView {
|
|
|
2986
3923
|
att_panelcat: string;
|
|
2987
3924
|
documento_pubblico: boolean;
|
|
2988
3925
|
titolo_email: string;
|
|
2989
|
-
|
|
3926
|
+
grid_config_key: string;
|
|
2990
3927
|
app_root: string;
|
|
2991
|
-
|
|
3928
|
+
grid_customer_preference_key: string;
|
|
2992
3929
|
m_id_Doc: string;
|
|
2993
3930
|
livs: Array<any>;
|
|
2994
3931
|
user_idp: string | null;
|
|
@@ -3014,6 +3951,7 @@ declare abstract class FHWorkflowView {
|
|
|
3014
3951
|
set_canale_step1(): void;
|
|
3015
3952
|
riassegna_richiesta_step1(): void;
|
|
3016
3953
|
riassegna_richiesta_step2(): void;
|
|
3954
|
+
private riassegna_richiesta_step2_exec;
|
|
3017
3955
|
sendEMail_ex(mit: string | null, to: string, ogg: string, descri: string, idapp: string, iddoc: string, link: string, cc: string, nota: string, notif_av?: boolean, ical?: string, b_exit?: boolean, commento?: string): void;
|
|
3018
3956
|
imp: string;
|
|
3019
3957
|
annulla_imp(): void;
|
|
@@ -3055,8 +3993,111 @@ declare abstract class FHWorkflowForm {
|
|
|
3055
3993
|
next_label: string;
|
|
3056
3994
|
next_label_color: string;
|
|
3057
3995
|
next_back_ground_color: string;
|
|
3996
|
+
reject_label: string;
|
|
3997
|
+
reject_label_color: string;
|
|
3998
|
+
reject_back_ground_color: string;
|
|
3058
3999
|
b_init_next: boolean;
|
|
3059
4000
|
sort_field: string;
|
|
4001
|
+
/**
|
|
4002
|
+
* Riga "Assegnata a: <nomi>" nel dialog "Conferma Avanzamento".
|
|
4003
|
+
*
|
|
4004
|
+
* Default acceso: chi avanza vede a chi sta passando la pratica (comportamento
|
|
4005
|
+
* storico, i portali gia' in produzione non cambiano da soli). Va spento nel form
|
|
4006
|
+
* della pratica (`this.show_assegnatari = false;`) quando i destinatari dello step
|
|
4007
|
+
* successivo non devono essere visibili a chi avanza.
|
|
4008
|
+
*
|
|
4009
|
+
* Non tocca il dialog di "Conferma Assegnazione" (assegnazione manuale), dove i
|
|
4010
|
+
* nomi sono l'oggetto stesso della scelta, ne' il testo di stato scritto sul
|
|
4011
|
+
* documento e nei log.
|
|
4012
|
+
*/
|
|
4013
|
+
show_assegnatari: boolean;
|
|
4014
|
+
step_mode: string;
|
|
4015
|
+
step_tasks: Array<any>;
|
|
4016
|
+
tasks_all_done: boolean;
|
|
4017
|
+
b_tasks_loading: boolean;
|
|
4018
|
+
/**
|
|
4019
|
+
* Editabilita' dei campi legati a un task, indicizzata per `check_key`.
|
|
4020
|
+
*
|
|
4021
|
+
* <FHTextInput [enabled]="task_edit['100_ATTESA_ACCONTO']" ...>
|
|
4022
|
+
*
|
|
4023
|
+
* E' una MAPPA e non un metodo perche' i template la interrogano a ogni change
|
|
4024
|
+
* detection: un metodo verrebbe rieseguito ogni volta (vedi la regola sui getter
|
|
4025
|
+
* dinamici). Viene ricalcolata da `load_step_tasks()`, cioe' all'apertura del documento
|
|
4026
|
+
* e dopo ogni presa in carico, chiusura o riapertura: esattamente gli eventi che possono
|
|
4027
|
+
* cambiare la risposta.
|
|
4028
|
+
*
|
|
4029
|
+
* Chiave assente = false (nessun task con quella `check_key` nello step corrente).
|
|
4030
|
+
*/
|
|
4031
|
+
task_edit: {
|
|
4032
|
+
[check_key: string]: boolean;
|
|
4033
|
+
};
|
|
4034
|
+
/**
|
|
4035
|
+
* Avanzamento innescato dalla chiusura dell'ultimo task, non da un click su Procedi.
|
|
4036
|
+
*
|
|
4037
|
+
* L'utente ha gia' confermato nel pannello delle attivita' ("questa e' l'ultima
|
|
4038
|
+
* attivita' obbligatoria: vuoi procedere?"), quindi il dialog "Conferma Avanzamento"
|
|
4039
|
+
* del motore sarebbe una seconda domanda sulla stessa cosa: lo saltiamo, come se
|
|
4040
|
+
* l'utente avesse premuto OK. Consumato (rimesso a false) al primo uso.
|
|
4041
|
+
*/
|
|
4042
|
+
private auto_advance;
|
|
4043
|
+
/**
|
|
4044
|
+
* L'utente ha appena chiuso un task dal pannello (dove ha gia' confermato). Distingue
|
|
4045
|
+
* l'avanzamento "appena confermato" da quello di RECUPERO che scatta riaprendo un
|
|
4046
|
+
* documento rimasto fermo con tutti i task chiusi: li' nessuno ha confermato nulla, e
|
|
4047
|
+
* il dialog del motore va mostrato.
|
|
4048
|
+
*/
|
|
4049
|
+
private advance_confirmed;
|
|
4050
|
+
/**
|
|
4051
|
+
* Deroga attiva sull'avanzamento in corso: il livello dello step corrente si
|
|
4052
|
+
* risolve per solo step, senza pretendere che l'utente collegato sia uno dei
|
|
4053
|
+
* suoi attori. Acceso da `proceed_from_task()`, consumato a fine avanzamento.
|
|
4054
|
+
*/
|
|
4055
|
+
protected proceed_ignore_actors: boolean;
|
|
4056
|
+
/**
|
|
4057
|
+
* Consente l'avanzamento automatico dello step a task tutti chiusi anche a chi
|
|
4058
|
+
* NON e' autore del documento (b_edit=false).
|
|
4059
|
+
*
|
|
4060
|
+
* Di default resta spento: il comportamento storico e' che avanzi solo un autore
|
|
4061
|
+
* dello step, e i portali gia' in produzione non devono cambiare da soli. Va
|
|
4062
|
+
* acceso nel form della pratica quando gli esecutori dei task NON coincidono con
|
|
4063
|
+
* gli attori dello step (caso tipico: task assegnati a variabili di flusso mentre
|
|
4064
|
+
* lo step e' di un altro ruolo), altrimenti la pratica resta ferma con tutte le
|
|
4065
|
+
* attivita' concluse in attesa che passi di li' un autore.
|
|
4066
|
+
*/
|
|
4067
|
+
allow_proceed_from_task: boolean;
|
|
4068
|
+
/**
|
|
4069
|
+
* Avanzamento di step innescato dalla conclusione delle attivita': e' il procedi
|
|
4070
|
+
* classico (stesse transizioni, destinatari, notifiche e log) senza il vincolo
|
|
4071
|
+
* che chi lo esegue sia agganciato allo step corrente.
|
|
4072
|
+
*
|
|
4073
|
+
* @param salva_prima false (default) NON salva il form prima di avanzare. Chi
|
|
4074
|
+
* arriva qui non e' autore del documento: i suoi campi sono in sola lettura e
|
|
4075
|
+
* alcuni potrebbero non essere nemmeno renderizzati, quindi un salvataggio
|
|
4076
|
+
* scriverebbe valori che non ha mai visto. Si va dritti al ricarico del
|
|
4077
|
+
* documento, che e' cio' che innesca l'avanzamento (`doApprova`).
|
|
4078
|
+
*
|
|
4079
|
+
* Fuori dal form della pratica l'equivalente e' `WkfService.proceed_from_task()`.
|
|
4080
|
+
*/
|
|
4081
|
+
proceed_from_task(salva_prima?: boolean): void;
|
|
4082
|
+
/**
|
|
4083
|
+
* Validazione applicativa alla chiusura di un task.
|
|
4084
|
+
* La libreria non conosce i campi della pratica: il componente concreto fa
|
|
4085
|
+
* l'override e decide, in base a `check_key` (stringa concordata in
|
|
4086
|
+
* configurazione), se ci sono dati obbligatori mancanti.
|
|
4087
|
+
* @returns [] se si puo' chiudere; array di messaggi per bloccare la chiusura.
|
|
4088
|
+
*/
|
|
4089
|
+
ck_task(check_key: string): string[];
|
|
4090
|
+
/**
|
|
4091
|
+
* Chiamato ogni volta che lo stato dei task e' stato (ri)letto dal DB: all'apertura
|
|
4092
|
+
* del documento e dopo ogni presa in carico / chiusura / riapertura.
|
|
4093
|
+
*
|
|
4094
|
+
* Serve ai portali che denormalizzano lo stato dei task in colonne della propria
|
|
4095
|
+
* tabella dati, per mostrarlo come colonna filtrabile in griglia. La libreria non
|
|
4096
|
+
* sa nulla di quelle colonne: qui passa solo l'evento.
|
|
4097
|
+
*
|
|
4098
|
+
* `wkf_document_tasks` resta la verita'; le colonne del portale sono una cache.
|
|
4099
|
+
*/
|
|
4100
|
+
after_task_change(): void;
|
|
3060
4101
|
ripristina_imp(): void;
|
|
3061
4102
|
in_carico: boolean;
|
|
3062
4103
|
protected constructor(app_s: AppService, m_dataService: QueryService, m_router: Router, m_dialog: MatDialog, m_route: ActivatedRoute, m_wkf: WkfService, uti_s: UtilityService, m_fileservice: FileService, tsr: TranslateService);
|
|
@@ -3068,6 +4109,7 @@ declare abstract class FHWorkflowForm {
|
|
|
3068
4109
|
evt_salv(rip_pulsanti?: boolean, check_on_save?: boolean): void;
|
|
3069
4110
|
prendi_in_carico(): void;
|
|
3070
4111
|
save_alreadypressed: boolean;
|
|
4112
|
+
b_saving: boolean;
|
|
3071
4113
|
salva(): void;
|
|
3072
4114
|
b_respingi: boolean;
|
|
3073
4115
|
limite_salto_after: number;
|
|
@@ -3179,10 +4221,41 @@ declare abstract class FHWorkflowForm {
|
|
|
3179
4221
|
insert_doc(): void;
|
|
3180
4222
|
ok_livw2(r: Array<any>): void;
|
|
3181
4223
|
b_edit: boolean;
|
|
4224
|
+
/**
|
|
4225
|
+
* Modalità di caricamento (edit vs nuovo documento), congelata all'init.
|
|
4226
|
+
* Serve a NON far dipendere il routing del load (ok_livelli_doc) dal valore di
|
|
4227
|
+
* `b_edit`, che i componenti possono sovrascrivere nei loro update_status: il
|
|
4228
|
+
* routing deve restare deterministico a prescindere da cosa fa il componente.
|
|
4229
|
+
*/
|
|
4230
|
+
private _edit_load_mode;
|
|
4231
|
+
/**
|
|
4232
|
+
* L'utente corrente è tra gli `autori` (= ha in carico) del documento.
|
|
4233
|
+
* Logica di autorizzazione CENTRALIZZATA nella lib: i componenti non devono
|
|
4234
|
+
* leggere `m_obj.autori`/`lettori` per conto loro.
|
|
4235
|
+
*/
|
|
4236
|
+
protected isCurrentUserAuthor(): boolean;
|
|
4237
|
+
/**
|
|
4238
|
+
* Editabilità "ufficiale" del documento decisa dalla lib: in carico (autore) e
|
|
4239
|
+
* documento non in uno stato finale (>=900). I componenti possono leggere questo
|
|
4240
|
+
* getter invece di ricalcolare l'autorizzazione.
|
|
4241
|
+
*/
|
|
4242
|
+
get canEdit(): boolean;
|
|
3182
4243
|
b_valid: boolean;
|
|
3183
4244
|
abstract reset_form(v_t: string): void;
|
|
3184
4245
|
abstract alert(v_t: string, t: number): void;
|
|
3185
|
-
|
|
4246
|
+
/**
|
|
4247
|
+
* Campi da persistere sul documento al salvataggio (usati sia da save_agg()
|
|
4248
|
+
* che da back() per il diff "modifiche non salvate"). Override obbligatorio
|
|
4249
|
+
* nel form concreto: la libreria non conosce lo schema della tabella dati
|
|
4250
|
+
* del portale.
|
|
4251
|
+
*
|
|
4252
|
+
* Il tipo di ritorno e' Array<WkfFieldValue> (vedi models/WkfFieldValue.ts)
|
|
4253
|
+
* ma un override che dichiara ancora `Array<any>` compila lo stesso: `any`
|
|
4254
|
+
* e' compatibile in entrambe le direzioni, quindi questo irrigidimento non
|
|
4255
|
+
* rompe nessun form gia' scritto. E' un tipo a cui i form esistenti possono
|
|
4256
|
+
* migrare gradualmente, campo per campo, non un vincolo imposto subito.
|
|
4257
|
+
*/
|
|
4258
|
+
abstract getfieldvalues(): Array<WkfFieldValue>;
|
|
3186
4259
|
abstract ck_field(op?: string): boolean;
|
|
3187
4260
|
abstract update_status(b_edit: boolean | null, b_respingi_button: boolean | null, b_incarico: boolean | null, b_assengna_a: boolean | null, n_avv: number): any;
|
|
3188
4261
|
abstract wkf_rule(l: number): number;
|
|
@@ -3200,6 +4273,99 @@ declare abstract class FHWorkflowForm {
|
|
|
3200
4273
|
protected can_save(): boolean;
|
|
3201
4274
|
app_info: any;
|
|
3202
4275
|
edit_doc(): void;
|
|
4276
|
+
/**
|
|
4277
|
+
* Carica i task dello step corrente con il loro stato sul documento.
|
|
4278
|
+
* `can_close` e `locked` sono calcolati lato SQL: il primo dai ruoli/variabili
|
|
4279
|
+
* speciali dell'utente, il secondo dal task da cui questo dipende (`depends_on`)
|
|
4280
|
+
* quando non e' ancora chiuso. Le catene si propagano da sole: un padre bloccato
|
|
4281
|
+
* non e' chiuso, quindi il figlio resta bloccato.
|
|
4282
|
+
*/
|
|
4283
|
+
load_step_tasks(after?: () => void): void;
|
|
4284
|
+
/**
|
|
4285
|
+
* Un campo legato a questo task e' editabile adesso, da questo utente?
|
|
4286
|
+
*
|
|
4287
|
+
* Vero solo se TUTTE queste condizioni reggono:
|
|
4288
|
+
* - lo step corrente e' in modalita' task;
|
|
4289
|
+
* - esiste un task con quella `check_key` E APPARTIENE ALLO STEP CORRENTE: due step
|
|
4290
|
+
* diversi possono avere task con la stessa chiave, e la lista in memoria potrebbe
|
|
4291
|
+
* essere di uno step gia' lasciato (l'avanzamento e' asincrono);
|
|
4292
|
+
* - il task e' ANCORA APERTO (chiuso = dati congelati; per correggere si riapre);
|
|
4293
|
+
* - il task e' PRESO IN CARICO DA TE (`mine`): chi non l'ha preso non tocca i campi,
|
|
4294
|
+
* nemmeno se ha il ruolo giusto -- e' il senso della presa in carico;
|
|
4295
|
+
* - il task non e' BLOCCATO da una dipendenza ancora aperta;
|
|
4296
|
+
* - il documento non e' in uno stato finale (>= 900).
|
|
4297
|
+
*
|
|
4298
|
+
* Non richiede `b_edit`: l'autore dello step e l'esecutore di un task possono essere
|
|
4299
|
+
* persone diverse. E' la presa in carico a dare il diritto di scrittura sui campi
|
|
4300
|
+
* di quel task.
|
|
4301
|
+
*/
|
|
4302
|
+
task_editable(check_key: string): boolean;
|
|
4303
|
+
/** Ricostruisce la mappa `task_edit` (una entry per ogni task con `check_key`). */
|
|
4304
|
+
private recompute_task_edit;
|
|
4305
|
+
/** Tutti i task OBBLIGATORI chiusi? I facoltativi non bloccano l'avanzamento. */
|
|
4306
|
+
private recompute_tasks_done;
|
|
4307
|
+
/**
|
|
4308
|
+
* Presa in carico ATOMICA di un task. E' il lock che risolve la concorrenza:
|
|
4309
|
+
* solo chi ha la presa in carico puo' chiudere il task.
|
|
4310
|
+
*
|
|
4311
|
+
* Tre passi, e la correttezza sta tutta nel secondo:
|
|
4312
|
+
* 1) INSERT IGNORE -> materializza la riga se non c'e' (nessun errore se c'e')
|
|
4313
|
+
* 2) UPDATE ... WHERE preso_da IS NULL -> due utenti simultanei arrivano
|
|
4314
|
+
* entrambi qui, ma UNO SOLO trova la riga libera: l'altro aggiorna 0 righe
|
|
4315
|
+
* 3) SELECT del proprietario -> chi ha perso legge il nome del vincitore
|
|
4316
|
+
*
|
|
4317
|
+
* Il punto di serializzazione e' il DB, non il frontend. Non contiamo le "rows
|
|
4318
|
+
* affected" (dipendono dal driver e da CLIENT_FOUND_ROWS): rileggiamo il
|
|
4319
|
+
* proprietario, che dopo il passo 2 e' univoco e stabile.
|
|
4320
|
+
*
|
|
4321
|
+
* @param done (ok, owner) — ok=false se un altro utente ha vinto la corsa.
|
|
4322
|
+
*/
|
|
4323
|
+
claim_task(task: any, done?: (ok: boolean, owner: string) => void): void;
|
|
4324
|
+
/**
|
|
4325
|
+
* Riga di log sul documento per un'operazione di attività (`wkf_workflow`, la
|
|
4326
|
+
* stessa tabella del log del motore). Il dialog LOGS rende `operazione
|
|
4327
|
+
* (stato_attuale)`: nel secondo campo va il titolo dell'attività, così la riga si
|
|
4328
|
+
* distingue dalla presa in carico del documento, che lì mette lo stato.
|
|
4329
|
+
*/
|
|
4330
|
+
private log_task_op;
|
|
4331
|
+
/**
|
|
4332
|
+
* Rilascia la presa in carico. `force` (supervisori) sblocca anche i task presi
|
|
4333
|
+
* in carico da altri: serve per i lock rimasti appesi.
|
|
4334
|
+
*/
|
|
4335
|
+
release_task(task: any, force?: boolean): void;
|
|
4336
|
+
/**
|
|
4337
|
+
* Chiude un task. Richiede la presa in carico (`task.mine`): la UPDATE porta
|
|
4338
|
+
* `preso_da=<me>` nella WHERE, quindi se nel frattempo un supervisore ha forzato
|
|
4339
|
+
* il rilascio la chiusura non passa e il reload lo rende evidente.
|
|
4340
|
+
*
|
|
4341
|
+
* Se dopo la chiusura tutti i task obbligatori sono chiusi, innesca l'avanzamento
|
|
4342
|
+
* riusando `procedi()`: transizioni, destinatari, notifiche e log restano quelli
|
|
4343
|
+
* standard del motore.
|
|
4344
|
+
*
|
|
4345
|
+
* NOTA: l'avanzamento automatico richiede che chi chiude l'ultimo task sia anche
|
|
4346
|
+
* autore dello step (`b_edit`). Configurare i ruoli del task come sottoinsieme
|
|
4347
|
+
* dei ruoli dello step. Se non lo e', il documento resta fermo con
|
|
4348
|
+
* `tasks_all_done=true` e avanza il primo autore che apre la pratica.
|
|
4349
|
+
*/
|
|
4350
|
+
close_task(task: any, nota: string | null): boolean;
|
|
4351
|
+
/**
|
|
4352
|
+
* Segnala a exec_wkf che un task e' stato chiuso, cosi' che possa gestire gli
|
|
4353
|
+
* effetti collaterali: i task che dipendevano da questo sono ora sbloccati, i loro
|
|
4354
|
+
* esecutori vanno messi tra i `lettori` del documento e vanno inviate le notifiche
|
|
4355
|
+
* configurate su quei task.
|
|
4356
|
+
*
|
|
4357
|
+
* La CHIUSURA resta nel frontend (UPDATE atomico con `preso_da`): serve un esito
|
|
4358
|
+
* sincrono per sapere chi ha vinto la corsa. Qui passiamo solo l'evento.
|
|
4359
|
+
* exec_wkf ricava i figli dal DB (`depends_on = uiid_task`): non gli mandiamo una
|
|
4360
|
+
* lista, cosi' non possiamo sbagliarla.
|
|
4361
|
+
*/
|
|
4362
|
+
notify_task_closed(uiid_task: string): void;
|
|
4363
|
+
/**
|
|
4364
|
+
* Riapre un task chiuso, azzerando anche la presa in carico. Ammesso a chiunque
|
|
4365
|
+
* abbia i ruoli del task, finche' il documento e' ancora in quello step (dopo
|
|
4366
|
+
* l'avanzamento i task non sono piu' raggiungibili: la finestra si chiude da sola).
|
|
4367
|
+
*/
|
|
4368
|
+
reopen_task(task: any): boolean;
|
|
3203
4369
|
private s_uto;
|
|
3204
4370
|
b_respingi_button: boolean;
|
|
3205
4371
|
return_edit(): void;
|
|
@@ -3224,7 +4390,9 @@ declare abstract class FHWorkflowForm {
|
|
|
3224
4390
|
declare class FHWorkflowHeaderBar implements AfterViewInit {
|
|
3225
4391
|
m_appService: AppService;
|
|
3226
4392
|
private _trs;
|
|
3227
|
-
|
|
4393
|
+
private _custom_commands;
|
|
4394
|
+
set custom_commands(value: FHToolBarCustomAction[]);
|
|
4395
|
+
get custom_commands(): FHToolBarCustomAction[];
|
|
3228
4396
|
dt_agg: FHWorkflowForm | null;
|
|
3229
4397
|
edit_button: boolean;
|
|
3230
4398
|
in_carico: boolean;
|
|
@@ -3243,8 +4411,9 @@ declare class FHWorkflowHeaderBar implements AfterViewInit {
|
|
|
3243
4411
|
next_label: boolean;
|
|
3244
4412
|
next_label_color: boolean;
|
|
3245
4413
|
tipologiaAllegati: string;
|
|
3246
|
-
custom_commands_pri:
|
|
3247
|
-
|
|
4414
|
+
custom_commands_pri: FHToolBarCustomAction[];
|
|
4415
|
+
custom_commands_mid: FHToolBarCustomAction[];
|
|
4416
|
+
custom_commands_sec: FHToolBarCustomAction[];
|
|
3248
4417
|
back_lbl: string;
|
|
3249
4418
|
save_lbl: string;
|
|
3250
4419
|
procedi_lbl: string;
|
|
@@ -3255,6 +4424,7 @@ declare class FHWorkflowHeaderBar implements AfterViewInit {
|
|
|
3255
4424
|
allegati_lbl: string;
|
|
3256
4425
|
workflow_lbl: string;
|
|
3257
4426
|
prendi_in_carico_lbl: string;
|
|
4427
|
+
saving_lbl: string;
|
|
3258
4428
|
b_revisione: boolean;
|
|
3259
4429
|
admin_role: string;
|
|
3260
4430
|
sovra_path: string;
|
|
@@ -3280,6 +4450,164 @@ declare class FHWorkflowHeaderBar implements AfterViewInit {
|
|
|
3280
4450
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWorkflowHeaderBar, "FHWorkflowHeaderBar", never, { "custom_commands": { "alias": "custom_commands"; "required": false; }; "dt_agg": { "alias": "dt_agg"; "required": false; }; "edit_button": { "alias": "edit_button"; "required": false; }; "in_carico": { "alias": "in_carico"; "required": false; }; "respingi_button": { "alias": "respingi_button"; "required": false; }; "procedi_button": { "alias": "procedi_button"; "required": false; }; "utility_button": { "alias": "utility_button"; "required": false; }; "show_logs": { "alias": "show_logs"; "required": false; }; "show_commenti": { "alias": "show_commenti"; "required": false; }; "show_allegati": { "alias": "show_allegati"; "required": false; }; "force_save": { "alias": "force_save"; "required": false; }; "check_on_save": { "alias": "check_on_save"; "required": false; }; "download_button": { "alias": "download_button"; "required": false; }; "edit_comments_in_logs": { "alias": "edit_comments_in_logs"; "required": false; }; "showWkfGraph": { "alias": "showWkfGraph"; "required": false; }; "assegna_a": { "alias": "assegna_a"; "required": false; }; "next_label": { "alias": "next_label"; "required": false; }; "next_label_color": { "alias": "next_label_color"; "required": false; }; "tipologiaAllegati": { "alias": "tipologiaAllegati"; "required": false; }; "b_revisione": { "alias": "b_revisione"; "required": false; }; "admin_role": { "alias": "admin_role"; "required": false; }; "sovra_path": { "alias": "sovra_path"; "required": false; }; }, { "command": "command"; "comment_inserted": "comment_inserted"; "button_clicked": "button_clicked"; }, never, never, true, never>;
|
|
3281
4451
|
}
|
|
3282
4452
|
|
|
4453
|
+
/**
|
|
4454
|
+
* Attivita' che si conclude fuori dal flusso: `check_key` del task e testo da
|
|
4455
|
+
* mostrare al posto dei pulsanti (es. "Step avanzabile da scheda tecnica").
|
|
4456
|
+
* `icon` e' un material symbol, default `open_in_new`.
|
|
4457
|
+
*/
|
|
4458
|
+
interface FHTaskExternalHint {
|
|
4459
|
+
check_key: string;
|
|
4460
|
+
label: string;
|
|
4461
|
+
icon?: string;
|
|
4462
|
+
}
|
|
4463
|
+
/**
|
|
4464
|
+
* Pannello dei task dello step corrente (step_mode='T').
|
|
4465
|
+
*
|
|
4466
|
+
* Si usa nel form della pratica, accanto/sotto la FHWorkflowHeaderBar:
|
|
4467
|
+
*
|
|
4468
|
+
* <FHWorkflowTasksPanel [dt_agg]="this"></FHWorkflowTasksPanel>
|
|
4469
|
+
*
|
|
4470
|
+
* Un task senza `depends_on` e' eseguibile subito. Un task che dipende da un altro
|
|
4471
|
+
* resta bloccato (lucchetto) finche' quello non e' chiuso; le catene si propagano
|
|
4472
|
+
* da sole, perche' un padre bloccato non e' chiuso.
|
|
4473
|
+
*
|
|
4474
|
+
* Non e' una FHGrid: sono pochi record, servono pulsanti per riga e nessuna
|
|
4475
|
+
* paginazione.
|
|
4476
|
+
*/
|
|
4477
|
+
declare class FHWorkflowTasksPanel implements DoCheck {
|
|
4478
|
+
private dialog;
|
|
4479
|
+
private toastr;
|
|
4480
|
+
/** La form del documento: `<FHWorkflowTasksPanel [dt_agg]="this">`. */
|
|
4481
|
+
dt_agg: FHWorkflowForm;
|
|
4482
|
+
/** Abilita il rilascio forzato dei lock altrui (passare `is_Supervisor`). */
|
|
4483
|
+
is_supervisor: boolean;
|
|
4484
|
+
/**
|
|
4485
|
+
* Attivita' che NON si chiudono da qui perche' le gestisce un altro applicativo
|
|
4486
|
+
* (es. il task "ATTESA SCHEDA TECNICA" chiuso dalla scheda tecnica). Su queste
|
|
4487
|
+
* righe non compaiono i pulsanti di presa in carico e chiusura: al loro posto
|
|
4488
|
+
* viene mostrata l'indicazione configurata.
|
|
4489
|
+
*
|
|
4490
|
+
* [ext_tasks]="[{check_key:'50_ATTESA_SCHEDA_TEC', label:'Step avanzabile da scheda tecnica'}]"
|
|
4491
|
+
*
|
|
4492
|
+
* `check_key` e' la chiave di validazione del task (wkf2_config_step_tasks).
|
|
4493
|
+
* Il pulsante RIAPRI resta disponibile a task chiuso: e' la valvola di sicurezza
|
|
4494
|
+
* se l'applicativo esterno lo ha concluso per errore.
|
|
4495
|
+
*/
|
|
4496
|
+
ext_tasks: FHTaskExternalHint[];
|
|
4497
|
+
title: string;
|
|
4498
|
+
claim_label: string;
|
|
4499
|
+
release_label: string;
|
|
4500
|
+
force_release_label: string;
|
|
4501
|
+
in_charge_label: string;
|
|
4502
|
+
in_charge_you_label: string;
|
|
4503
|
+
claim_lost_label: string;
|
|
4504
|
+
close_label: string;
|
|
4505
|
+
reopen_label: string;
|
|
4506
|
+
optional_label: string;
|
|
4507
|
+
closed_by_label: string;
|
|
4508
|
+
empty_label: string;
|
|
4509
|
+
no_role_label: string;
|
|
4510
|
+
after_label: string;
|
|
4511
|
+
locked_label: string;
|
|
4512
|
+
reopen_confirm: string;
|
|
4513
|
+
note_label: string;
|
|
4514
|
+
last_task_title: string;
|
|
4515
|
+
last_task_confirm: string;
|
|
4516
|
+
tasks: any[];
|
|
4517
|
+
totalRequired: number;
|
|
4518
|
+
doneRequired: number;
|
|
4519
|
+
progressPct: number;
|
|
4520
|
+
/** Riferimento all'array task dell'ultimo ricalcolo. `load_step_tasks()` lo rimpiazza. */
|
|
4521
|
+
private _lastTasksRef;
|
|
4522
|
+
/** Idem per `ext_tasks`: se cambia l'input vanno ricalcolate le indicazioni. */
|
|
4523
|
+
private _lastExtRef;
|
|
4524
|
+
constructor(dialog: MatDialog, toastr: ToastrService | null);
|
|
4525
|
+
ngDoCheck(): void;
|
|
4526
|
+
private rebuild;
|
|
4527
|
+
private fmtDate;
|
|
4528
|
+
/**
|
|
4529
|
+
* Prende in carico il task. L'esito lo decide il DB (UPDATE condizionato su
|
|
4530
|
+
* `preso_da IS NULL`): se un altro utente ha vinto la corsa, `ok=false` e gli
|
|
4531
|
+
* mostriamo chi ha vinto. La lista e' gia' stata ricaricata dal motore, quindi
|
|
4532
|
+
* la riga si aggiorna da sola.
|
|
4533
|
+
*/
|
|
4534
|
+
onClaim(t: any): void;
|
|
4535
|
+
onRelease(t: any, force: boolean): void;
|
|
4536
|
+
onClose(t: any): void;
|
|
4537
|
+
/** L'unico task obbligatorio ancora aperto e' proprio questo? */
|
|
4538
|
+
private isLastRequiredOpen;
|
|
4539
|
+
private doClose;
|
|
4540
|
+
onReopen(t: any): void;
|
|
4541
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWorkflowTasksPanel, [null, { optional: true; }]>;
|
|
4542
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWorkflowTasksPanel, "FHWorkflowTasksPanel", never, { "dt_agg": { "alias": "dt_agg"; "required": false; }; "is_supervisor": { "alias": "is_supervisor"; "required": false; }; "ext_tasks": { "alias": "ext_tasks"; "required": false; }; "title": { "alias": "title"; "required": false; }; "claim_label": { "alias": "claim_label"; "required": false; }; "release_label": { "alias": "release_label"; "required": false; }; "force_release_label": { "alias": "force_release_label"; "required": false; }; "in_charge_label": { "alias": "in_charge_label"; "required": false; }; "in_charge_you_label": { "alias": "in_charge_you_label"; "required": false; }; "claim_lost_label": { "alias": "claim_lost_label"; "required": false; }; "close_label": { "alias": "close_label"; "required": false; }; "reopen_label": { "alias": "reopen_label"; "required": false; }; "optional_label": { "alias": "optional_label"; "required": false; }; "closed_by_label": { "alias": "closed_by_label"; "required": false; }; "empty_label": { "alias": "empty_label"; "required": false; }; "no_role_label": { "alias": "no_role_label"; "required": false; }; "after_label": { "alias": "after_label"; "required": false; }; "locked_label": { "alias": "locked_label"; "required": false; }; "reopen_confirm": { "alias": "reopen_confirm"; "required": false; }; "note_label": { "alias": "note_label"; "required": false; }; "last_task_title": { "alias": "last_task_title"; "required": false; }; "last_task_confirm": { "alias": "last_task_confirm"; "required": false; }; }, {}, never, never, true, never>;
|
|
4543
|
+
}
|
|
4544
|
+
|
|
4545
|
+
declare class BpmnEditorComponent implements AfterViewInit, OnDestroy {
|
|
4546
|
+
canvasRef: ElementRef;
|
|
4547
|
+
initialXml?: string;
|
|
4548
|
+
completedSteps: number[];
|
|
4549
|
+
currentStep?: number;
|
|
4550
|
+
transitionData: Array<{
|
|
4551
|
+
fromStep: number;
|
|
4552
|
+
toStep: number;
|
|
4553
|
+
user: string;
|
|
4554
|
+
date: string;
|
|
4555
|
+
}>;
|
|
4556
|
+
diagramChanged: EventEmitter<string>;
|
|
4557
|
+
elementSelected: EventEmitter<any>;
|
|
4558
|
+
private modeler?;
|
|
4559
|
+
private overlays;
|
|
4560
|
+
ngAfterViewInit(): void;
|
|
4561
|
+
ngOnDestroy(): void;
|
|
4562
|
+
private initializeBpmnEditor;
|
|
4563
|
+
private createNewDiagram;
|
|
4564
|
+
private loadDiagram;
|
|
4565
|
+
exportSVG(): Promise<string>;
|
|
4566
|
+
exportXML(): Promise<string>;
|
|
4567
|
+
zoomIn(): void;
|
|
4568
|
+
zoomOut(): void;
|
|
4569
|
+
zoomFit(): void;
|
|
4570
|
+
zoomReset(): void;
|
|
4571
|
+
/**
|
|
4572
|
+
* Apply colors to BPMN elements based on workflow step status
|
|
4573
|
+
* - Green: completed steps
|
|
4574
|
+
* - Orange: current step
|
|
4575
|
+
*/
|
|
4576
|
+
private applyStepColors;
|
|
4577
|
+
/**
|
|
4578
|
+
* Extract step number from element ID or name
|
|
4579
|
+
* Supports formats like: "Activity_10", "Task_20", "Step_30", "10", "Step 10", etc.
|
|
4580
|
+
*/
|
|
4581
|
+
private extractStepNumber;
|
|
4582
|
+
/**
|
|
4583
|
+
* Update step colors dynamically (call this when step status changes)
|
|
4584
|
+
*/
|
|
4585
|
+
updateStepColors(completedSteps: number[], currentStep?: number): void;
|
|
4586
|
+
/**
|
|
4587
|
+
* Apply transition information (user and date) on completed connections
|
|
4588
|
+
*/
|
|
4589
|
+
private applyTransitionInfo;
|
|
4590
|
+
/**
|
|
4591
|
+
* Find BPMN connection (sequence flow) that links two steps
|
|
4592
|
+
*/
|
|
4593
|
+
private findConnectionForTransition;
|
|
4594
|
+
/**
|
|
4595
|
+
* Escape HTML to prevent XSS
|
|
4596
|
+
*/
|
|
4597
|
+
private escapeHtml;
|
|
4598
|
+
/**
|
|
4599
|
+
* Update transition data dynamically
|
|
4600
|
+
*/
|
|
4601
|
+
updateTransitionData(transitionData: Array<{
|
|
4602
|
+
fromStep: number;
|
|
4603
|
+
toStep: number;
|
|
4604
|
+
user: string;
|
|
4605
|
+
date: string;
|
|
4606
|
+
}>): void;
|
|
4607
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BpmnEditorComponent, never>;
|
|
4608
|
+
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>;
|
|
4609
|
+
}
|
|
4610
|
+
|
|
3283
4611
|
declare class SafePipe implements PipeTransform {
|
|
3284
4612
|
protected sanitizer: DomSanitizer;
|
|
3285
4613
|
constructor(sanitizer: DomSanitizer);
|
|
@@ -3294,9 +4622,11 @@ declare class AuthHttpRequestInterceptor implements HttpInterceptor {
|
|
|
3294
4622
|
private http;
|
|
3295
4623
|
private isRefreshing;
|
|
3296
4624
|
constructor(loginservice: AuthenticationService, appService: AppService, http: HttpClient);
|
|
4625
|
+
private dlog;
|
|
3297
4626
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
3298
4627
|
getJwtToken(): string;
|
|
3299
4628
|
private refreshTokenSubject;
|
|
4629
|
+
private static readonly REFRESH_FAILED;
|
|
3300
4630
|
private handle401Error;
|
|
3301
4631
|
refreshToken(token: string, refreshToken: string): Observable<any>;
|
|
3302
4632
|
private addToken;
|
|
@@ -3315,8 +4645,11 @@ declare class FHWinSalvaAnnulla implements AfterViewInit {
|
|
|
3315
4645
|
b_commento: boolean;
|
|
3316
4646
|
commento_mgs: string;
|
|
3317
4647
|
insert_comment_msg: string;
|
|
3318
|
-
|
|
4648
|
+
buttons: DialogButton[];
|
|
3319
4649
|
constructor(dialogRef: MatDialogRef<FHWinSalvaAnnulla>, data: any, toast: ToastrService);
|
|
4650
|
+
private updateButtons;
|
|
4651
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
4652
|
+
close(): void;
|
|
3320
4653
|
salva_esci(): void;
|
|
3321
4654
|
esci_senza_salv(): void;
|
|
3322
4655
|
ngAfterViewInit(): void;
|
|
@@ -3357,5 +4690,662 @@ declare class QueryOpenService {
|
|
|
3357
4690
|
static ɵprov: i0.ɵɵInjectableDeclaration<QueryOpenService>;
|
|
3358
4691
|
}
|
|
3359
4692
|
|
|
3360
|
-
|
|
3361
|
-
|
|
4693
|
+
/** Singola app esposta dal launcher. */
|
|
4694
|
+
interface FHLauncherApp {
|
|
4695
|
+
id: number;
|
|
4696
|
+
title: string;
|
|
4697
|
+
link: string;
|
|
4698
|
+
invisible?: boolean;
|
|
4699
|
+
/** Icona FontAwesome specifica dell'app (da applications.app_icon, scelta con FHIconPicker); se assente si usa il logo categoria o boxIcon. */
|
|
4700
|
+
appIcon?: string;
|
|
4701
|
+
}
|
|
4702
|
+
/** Categoria (cartella menu) che raggruppa le app. */
|
|
4703
|
+
interface FHLauncherCategory {
|
|
4704
|
+
/** id_category (dalla tabella applications_categories). */
|
|
4705
|
+
id: number | null;
|
|
4706
|
+
name: string;
|
|
4707
|
+
title: string;
|
|
4708
|
+
faIcon: string;
|
|
4709
|
+
mdIcon: string;
|
|
4710
|
+
color: string;
|
|
4711
|
+
/** Logo categoria (se configurato in v_category_logos). */
|
|
4712
|
+
logoUrl?: string;
|
|
4713
|
+
logoFilename?: string;
|
|
4714
|
+
/** True se la categoria va renderizzata "a box" (precalcolato, vedi boxCategoryIds). */
|
|
4715
|
+
isBox?: boolean;
|
|
4716
|
+
apps: FHLauncherApp[];
|
|
4717
|
+
}
|
|
4718
|
+
/**
|
|
4719
|
+
* Elenco applicazioni per la homepage (launcher a colonne "masonry").
|
|
4720
|
+
*
|
|
4721
|
+
* Legge il menu applicativo dell'utente tramite le query standard FluxHub
|
|
4722
|
+
* (SELECT_USER_ACCESS + SELECT_ALL_APPS_USER / SELECT_APPS_USER, in query.ini).
|
|
4723
|
+
* I nomi delle query e l'aspetto sono configurabili via @Input per riuso cross-cliente.
|
|
4724
|
+
*
|
|
4725
|
+
* Uso: <FHHomeLauncher [appVersion]="costanti.VER"></FHHomeLauncher>
|
|
4726
|
+
*/
|
|
4727
|
+
declare class FHHomeLauncherComponent implements AfterViewInit {
|
|
4728
|
+
appService: AppService;
|
|
4729
|
+
private _service;
|
|
4730
|
+
private _dataService;
|
|
4731
|
+
private _utility;
|
|
4732
|
+
private router;
|
|
4733
|
+
accent: string;
|
|
4734
|
+
accentDark: string;
|
|
4735
|
+
ink: string;
|
|
4736
|
+
get _a(): string;
|
|
4737
|
+
get _ad(): string;
|
|
4738
|
+
get _ink(): string;
|
|
4739
|
+
/** Mostra l'indice numerato (01, 02, ...) accanto al titolo categoria. */
|
|
4740
|
+
showIndex: boolean;
|
|
4741
|
+
/** Larghezza colonna masonry (px). */
|
|
4742
|
+
columnWidth: number;
|
|
4743
|
+
/** Spazio tra colonne (px). */
|
|
4744
|
+
columnGap: number;
|
|
4745
|
+
/**
|
|
4746
|
+
* Elenco di id_category da renderizzare "a box" (card) invece che come
|
|
4747
|
+
* elenco testuale. Es. [23] per la categoria Offerte. Accetta numeri o stringhe.
|
|
4748
|
+
*/
|
|
4749
|
+
boxCategoryIds: Array<number | string>;
|
|
4750
|
+
/** Icona Material Symbols mostrata nel box quando la categoria non ha un logo. */
|
|
4751
|
+
boxIcon: string;
|
|
4752
|
+
/** Etichetta dell'azione nel box (sotto al titolo). */
|
|
4753
|
+
boxActionLabel: string;
|
|
4754
|
+
/**
|
|
4755
|
+
* Abilita la gestione dei preferiti: ogni categoria mostra un cuore; le
|
|
4756
|
+
* categorie preferite sono renderizzate "a box". Le preferenze sono persistite
|
|
4757
|
+
* per utente (tabella wkf_user_category_prefs, JSON di id_category).
|
|
4758
|
+
* Quando true, l'aspetto a box è guidato dai preferiti dell'utente; se l'utente
|
|
4759
|
+
* non ha mai personalizzato, si usa [boxCategoryIds] come default.
|
|
4760
|
+
*/
|
|
4761
|
+
enableFavorites: boolean;
|
|
4762
|
+
/** Query (query.ini) che legge le preferenze: SELECT fav_categories WHERE username=@VAL1. */
|
|
4763
|
+
sqlCatPrefsGet: string;
|
|
4764
|
+
/** Query (query.ini) di upsert: @VAL1=username, @VAL2=JSON array di id_category. */
|
|
4765
|
+
sqlCatPrefsSave: string;
|
|
4766
|
+
/** Tooltip del cuore quando la categoria NON è preferita. */
|
|
4767
|
+
favoriteTooltip: string;
|
|
4768
|
+
/** Tooltip del cuore quando la categoria È preferita. */
|
|
4769
|
+
unfavoriteTooltip: string;
|
|
4770
|
+
/**
|
|
4771
|
+
* Colore di sfondo della superficie del launcher.
|
|
4772
|
+
* "" (default) = trasparente: il launcher eredita lo sfondo della pagina.
|
|
4773
|
+
*/
|
|
4774
|
+
background: string;
|
|
4775
|
+
/**
|
|
4776
|
+
* Mostra la trama a griglia ("piastrelle") dietro il launcher.
|
|
4777
|
+
* true = griglia visibile; false (default) = nessuna griglia (aspetto attuale).
|
|
4778
|
+
*/
|
|
4779
|
+
showGridBackground: boolean;
|
|
4780
|
+
sqlUserAccess: string;
|
|
4781
|
+
sqlAllApps: string;
|
|
4782
|
+
sqlApps: string;
|
|
4783
|
+
sqlAccessLog: string;
|
|
4784
|
+
/** Versione applicativa registrata nel log di accesso (di solito costanti.VER). */
|
|
4785
|
+
appVersion: string;
|
|
4786
|
+
/** Emesso quando l'utente apre un'app (dopo log e navigazione). */
|
|
4787
|
+
appOpen: EventEmitter<FHLauncherApp>;
|
|
4788
|
+
categories: FHLauncherCategory[];
|
|
4789
|
+
is_loaded: boolean;
|
|
4790
|
+
/** Set degli id_category preferiti (effettivi: salvati dall'utente o default). */
|
|
4791
|
+
private favoriteIds;
|
|
4792
|
+
/** True se l'utente ha già personalizzato le preferenze (riga presente in DB). */
|
|
4793
|
+
private hasUserPref;
|
|
4794
|
+
constructor(appService: AppService, _service: AuthenticationService, _dataService: QueryService, _utility: UtilityService, router: Router);
|
|
4795
|
+
ngAfterViewInit(): void;
|
|
4796
|
+
private bootstrap;
|
|
4797
|
+
private load_user_then_menu;
|
|
4798
|
+
private load_prefs_then_menu;
|
|
4799
|
+
/** Normalizza il valore fav_categories (JSON string o array già parsato) in un Set di numeri. */
|
|
4800
|
+
private parseFavorites;
|
|
4801
|
+
private build_menu;
|
|
4802
|
+
/**
|
|
4803
|
+
* Classe CSS FontAwesome per l'icona dell'app. Il valore (applications.app_icon,
|
|
4804
|
+
* scelto con FHIconPicker) puo` essere: classe completa ("fa-solid fa-clipboard",
|
|
4805
|
+
* "fa-brands fa-github"), nome con prefisso ("fa-clipboard") o nome semplice
|
|
4806
|
+
* ("clipboard"). Se manca lo stile assume "fa-solid".
|
|
4807
|
+
*/
|
|
4808
|
+
appIconClass(v: string): string;
|
|
4809
|
+
/**
|
|
4810
|
+
* True se la categoria va renderizzata "a box". Con i preferiti abilitati
|
|
4811
|
+
* dipende dai preferiti dell'utente (favoriteIds); altrimenti da [boxCategoryIds].
|
|
4812
|
+
*/
|
|
4813
|
+
private isBoxCat;
|
|
4814
|
+
/** Toggle preferito su una categoria: aggiorna l'aspetto e persiste subito. */
|
|
4815
|
+
toggleFavorite(cat: FHLauncherCategory, ev: Event): void;
|
|
4816
|
+
/** Persiste le preferenze correnti (upsert username + JSON array di id_category). */
|
|
4817
|
+
private save_prefs;
|
|
4818
|
+
open_app(app: FHLauncherApp): void;
|
|
4819
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHHomeLauncherComponent, never>;
|
|
4820
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHHomeLauncherComponent, "FHHomeLauncher", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "ink": { "alias": "ink"; "required": false; }; "showIndex": { "alias": "showIndex"; "required": false; }; "columnWidth": { "alias": "columnWidth"; "required": false; }; "columnGap": { "alias": "columnGap"; "required": false; }; "boxCategoryIds": { "alias": "boxCategoryIds"; "required": false; }; "boxIcon": { "alias": "boxIcon"; "required": false; }; "boxActionLabel": { "alias": "boxActionLabel"; "required": false; }; "enableFavorites": { "alias": "enableFavorites"; "required": false; }; "sqlCatPrefsGet": { "alias": "sqlCatPrefsGet"; "required": false; }; "sqlCatPrefsSave": { "alias": "sqlCatPrefsSave"; "required": false; }; "favoriteTooltip": { "alias": "favoriteTooltip"; "required": false; }; "unfavoriteTooltip": { "alias": "unfavoriteTooltip"; "required": false; }; "background": { "alias": "background"; "required": false; }; "showGridBackground": { "alias": "showGridBackground"; "required": false; }; "sqlUserAccess": { "alias": "sqlUserAccess"; "required": false; }; "sqlAllApps": { "alias": "sqlAllApps"; "required": false; }; "sqlApps": { "alias": "sqlApps"; "required": false; }; "sqlAccessLog": { "alias": "sqlAccessLog"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; }, { "appOpen": "appOpen"; }, never, never, true, never>;
|
|
4821
|
+
}
|
|
4822
|
+
|
|
4823
|
+
/**
|
|
4824
|
+
* Pannello "Task / To-Do" della homepage: elenco delle attività dei workflow
|
|
4825
|
+
* assegnate all'utente, con filtro per categoria.
|
|
4826
|
+
*
|
|
4827
|
+
* Le query (in query.ini) e i nomi dei campi restituiti sono configurabili via
|
|
4828
|
+
* @Input, così ogni cliente può usare le proprie senza modificare il componente.
|
|
4829
|
+
*
|
|
4830
|
+
* Campi attesi nella riga task (rinominabili): oggetto, applicazione, data_ultimo_step, link.
|
|
4831
|
+
* Campo categoria atteso: valore.
|
|
4832
|
+
*/
|
|
4833
|
+
declare class FHHomeTodoComponent implements AfterViewInit {
|
|
4834
|
+
private _dataService;
|
|
4835
|
+
private app_service;
|
|
4836
|
+
accent: string;
|
|
4837
|
+
accentDark: string;
|
|
4838
|
+
/** Colore del badge col conteggio sui chip categoria (default arancione). */
|
|
4839
|
+
badgeColor: string;
|
|
4840
|
+
get _a(): string;
|
|
4841
|
+
get _ad(): string;
|
|
4842
|
+
get _b(): string;
|
|
4843
|
+
title: string;
|
|
4844
|
+
subtitle: string;
|
|
4845
|
+
tagLabel: string;
|
|
4846
|
+
icon: string;
|
|
4847
|
+
allLabel: string;
|
|
4848
|
+
emptyTitle: string;
|
|
4849
|
+
emptySub: string;
|
|
4850
|
+
dateFormat: string;
|
|
4851
|
+
showCategoryFilter: boolean;
|
|
4852
|
+
sqlCategories: string;
|
|
4853
|
+
sqlByUser: string;
|
|
4854
|
+
sqlByUserCat: string;
|
|
4855
|
+
fieldLabel: string;
|
|
4856
|
+
fieldMeta: string;
|
|
4857
|
+
fieldDate: string;
|
|
4858
|
+
fieldLink: string;
|
|
4859
|
+
/** Campo che contiene il nome categoria nella query categorie. */
|
|
4860
|
+
fieldCategory: string;
|
|
4861
|
+
/** Campo (opzionale) col conteggio per categoria: se presente e > 0 mostra un badge. */
|
|
4862
|
+
fieldCategoryCount: string;
|
|
4863
|
+
/** Emesso quando l'utente apre un task. */
|
|
4864
|
+
todoOpen: EventEmitter<any>;
|
|
4865
|
+
username: string | undefined;
|
|
4866
|
+
todos: any[] | undefined;
|
|
4867
|
+
errorMsg: string;
|
|
4868
|
+
categories: any[];
|
|
4869
|
+
selectedCat: string;
|
|
4870
|
+
/** Totale per il badge del chip "Tutti": somma dei conteggi di categoria. */
|
|
4871
|
+
get totalCount(): number;
|
|
4872
|
+
constructor(_dataService: QueryService, app_service: AppService);
|
|
4873
|
+
ngAfterViewInit(): void;
|
|
4874
|
+
load_todos(): void;
|
|
4875
|
+
fetch_todos(cat: string): void;
|
|
4876
|
+
select_cat(cat: string): void;
|
|
4877
|
+
open(o: any): void;
|
|
4878
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHHomeTodoComponent, never>;
|
|
4879
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHHomeTodoComponent, "FHHomeTodo", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "tagLabel": { "alias": "tagLabel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "allLabel": { "alias": "allLabel"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "showCategoryFilter": { "alias": "showCategoryFilter"; "required": false; }; "sqlCategories": { "alias": "sqlCategories"; "required": false; }; "sqlByUser": { "alias": "sqlByUser"; "required": false; }; "sqlByUserCat": { "alias": "sqlByUserCat"; "required": false; }; "fieldLabel": { "alias": "fieldLabel"; "required": false; }; "fieldMeta": { "alias": "fieldMeta"; "required": false; }; "fieldDate": { "alias": "fieldDate"; "required": false; }; "fieldLink": { "alias": "fieldLink"; "required": false; }; "fieldCategory": { "alias": "fieldCategory"; "required": false; }; "fieldCategoryCount": { "alias": "fieldCategoryCount"; "required": false; }; }, { "todoOpen": "todoOpen"; }, never, never, true, never>;
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* Pannello "La tua attività" della homepage: doughnut delle applicazioni
|
|
4884
|
+
* utilizzate + grafico a linea degli step di workflow eseguiti nel periodo.
|
|
4885
|
+
*
|
|
4886
|
+
* Le due query (in query.ini) e i nomi dei campi sono configurabili via @Input.
|
|
4887
|
+
* - Query app: campi `label`, `value` (rinominabili).
|
|
4888
|
+
* - Query step: campi `giorno` (data ISO), `value` (rinominabili).
|
|
4889
|
+
*/
|
|
4890
|
+
declare class FHHomeStatsComponent implements OnInit {
|
|
4891
|
+
apps: AppService;
|
|
4892
|
+
private queryService;
|
|
4893
|
+
accent: string;
|
|
4894
|
+
accentDark: string;
|
|
4895
|
+
/** Palette del doughnut; il primo elemento dovrebbe coincidere con l'accent. */
|
|
4896
|
+
pieColors: string[];
|
|
4897
|
+
get _a(): string;
|
|
4898
|
+
get _ad(): string;
|
|
4899
|
+
appsTitle: string;
|
|
4900
|
+
stepsTitle: string;
|
|
4901
|
+
appsTag: string;
|
|
4902
|
+
stepsTag: string;
|
|
4903
|
+
appsEmptyTitle: string;
|
|
4904
|
+
appsEmptySub: string;
|
|
4905
|
+
stepsEmptyTitle: string;
|
|
4906
|
+
stepsEmptySub: string;
|
|
4907
|
+
/** Giorni indietro coperti dai grafici (default 30). */
|
|
4908
|
+
days: number;
|
|
4909
|
+
sqlApps: string;
|
|
4910
|
+
sqlSteps: string;
|
|
4911
|
+
appLabelField: string;
|
|
4912
|
+
appValueField: string;
|
|
4913
|
+
stepDayField: string;
|
|
4914
|
+
stepValueField: string;
|
|
4915
|
+
stepSeriesLabel: string;
|
|
4916
|
+
loading: boolean;
|
|
4917
|
+
error: boolean;
|
|
4918
|
+
hasApps: boolean;
|
|
4919
|
+
hasSteps: boolean;
|
|
4920
|
+
periodoLabel: string;
|
|
4921
|
+
subtitlePrefix: string;
|
|
4922
|
+
pieLabels: string[];
|
|
4923
|
+
pieDatasets: ChartDataset<'doughnut'>[];
|
|
4924
|
+
pieOptions: ChartConfiguration<'doughnut'>['options'];
|
|
4925
|
+
lineLabels: string[];
|
|
4926
|
+
lineDatasets: ChartDataset<'line'>[];
|
|
4927
|
+
lineOptions: ChartConfiguration<'line'>['options'];
|
|
4928
|
+
constructor(apps: AppService, queryService: QueryService);
|
|
4929
|
+
ngOnInit(): void;
|
|
4930
|
+
private buildPeriodoLabel;
|
|
4931
|
+
private tryLoad;
|
|
4932
|
+
private load;
|
|
4933
|
+
private buildPie;
|
|
4934
|
+
private buildLine;
|
|
4935
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHHomeStatsComponent, never>;
|
|
4936
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHHomeStatsComponent, "FHHomeStats", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "pieColors": { "alias": "pieColors"; "required": false; }; "appsTitle": { "alias": "appsTitle"; "required": false; }; "stepsTitle": { "alias": "stepsTitle"; "required": false; }; "appsTag": { "alias": "appsTag"; "required": false; }; "stepsTag": { "alias": "stepsTag"; "required": false; }; "appsEmptyTitle": { "alias": "appsEmptyTitle"; "required": false; }; "appsEmptySub": { "alias": "appsEmptySub"; "required": false; }; "stepsEmptyTitle": { "alias": "stepsEmptyTitle"; "required": false; }; "stepsEmptySub": { "alias": "stepsEmptySub"; "required": false; }; "days": { "alias": "days"; "required": false; }; "sqlApps": { "alias": "sqlApps"; "required": false; }; "sqlSteps": { "alias": "sqlSteps"; "required": false; }; "appLabelField": { "alias": "appLabelField"; "required": false; }; "appValueField": { "alias": "appValueField"; "required": false; }; "stepDayField": { "alias": "stepDayField"; "required": false; }; "stepValueField": { "alias": "stepValueField"; "required": false; }; "stepSeriesLabel": { "alias": "stepSeriesLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
/**
|
|
4940
|
+
* Pannello "Documenti" della homepage: esplora la cartella documentale condivisa
|
|
4941
|
+
* (navigazione cartelle + download file) tramite FileService.
|
|
4942
|
+
*
|
|
4943
|
+
* Endpoint e percorsi sono configurabili via @Input per riuso cross-cliente.
|
|
4944
|
+
* L'endpoint API NON è obbligatorio: se non passato viene ricavato da
|
|
4945
|
+
* AppService.API_ENDPOINT (lo stesso usato da QueryService/FileService).
|
|
4946
|
+
*/
|
|
4947
|
+
declare class FHHomeDocsComponent implements OnInit {
|
|
4948
|
+
private _dataService;
|
|
4949
|
+
private appService;
|
|
4950
|
+
accent: string;
|
|
4951
|
+
accentDark: string;
|
|
4952
|
+
get _a(): string;
|
|
4953
|
+
get _ad(): string;
|
|
4954
|
+
title: string;
|
|
4955
|
+
tagLabel: string;
|
|
4956
|
+
emptyTitle: string;
|
|
4957
|
+
emptySub: string;
|
|
4958
|
+
/**
|
|
4959
|
+
* Base URL delle API per costruire l'URL di download (il suffisso "/api" viene rimosso).
|
|
4960
|
+
* Opzionale: se vuoto si usa AppService.API_ENDPOINT.
|
|
4961
|
+
*/
|
|
4962
|
+
apiEndpoint: string;
|
|
4963
|
+
/** Comando FileService per elencare i documenti. */
|
|
4964
|
+
command: string;
|
|
4965
|
+
/** Cartella radice da cui partire. */
|
|
4966
|
+
rootPath: string;
|
|
4967
|
+
/** Segmento di percorso aggiunto all'endpoint per il download. */
|
|
4968
|
+
downloadSegment: string;
|
|
4969
|
+
/** Percorso base delle icone tipo file. */
|
|
4970
|
+
iconBasePath: string;
|
|
4971
|
+
curr_path: string;
|
|
4972
|
+
last_curr_path: string;
|
|
4973
|
+
b_loading: boolean;
|
|
4974
|
+
errorMsg: string;
|
|
4975
|
+
dirs: Array<any>;
|
|
4976
|
+
files: Array<any>;
|
|
4977
|
+
constructor(_dataService: FileService, appService: AppService);
|
|
4978
|
+
/** Endpoint effettivo: input esplicito oppure default da AppService. */
|
|
4979
|
+
private get effectiveEndpoint();
|
|
4980
|
+
ngOnInit(): void;
|
|
4981
|
+
open_dir(item: any): void;
|
|
4982
|
+
download_file(item: any): void;
|
|
4983
|
+
ref_dirs(s: string): void;
|
|
4984
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHHomeDocsComponent, never>;
|
|
4985
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHHomeDocsComponent, "FHHomeDocs", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "title": { "alias": "title"; "required": false; }; "tagLabel": { "alias": "tagLabel"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "apiEndpoint": { "alias": "apiEndpoint"; "required": false; }; "command": { "alias": "command"; "required": false; }; "rootPath": { "alias": "rootPath"; "required": false; }; "downloadSegment": { "alias": "downloadSegment"; "required": false; }; "iconBasePath": { "alias": "iconBasePath"; "required": false; }; }, {}, never, never, true, never>;
|
|
4986
|
+
}
|
|
4987
|
+
|
|
4988
|
+
/** Voce del selettore "filtra per": etichetta mostrata e query da eseguire. */
|
|
4989
|
+
interface FiltroMailArchiviata {
|
|
4990
|
+
etichetta: string;
|
|
4991
|
+
sql: string;
|
|
4992
|
+
/** Testo di aiuto nella casella del valore. */
|
|
4993
|
+
placeholder?: string;
|
|
4994
|
+
}
|
|
4995
|
+
/**
|
|
4996
|
+
* Elenco delle mail archiviate dal Mail Archiver, filtrabile.
|
|
4997
|
+
*
|
|
4998
|
+
* Legge le tabelle `fh_mail_archiver_*`, che sono le stesse su ogni portale che
|
|
4999
|
+
* installa l'archiviatore: per questo i nomi delle colonne NON sono configurabili,
|
|
5000
|
+
* a differenza dei componenti della homepage. Sono il contratto del prodotto.
|
|
5001
|
+
*
|
|
5002
|
+
* Il filtro segue l'idioma della libreria (`[sql]` + `[valore]`, come FHComboBox e
|
|
5003
|
+
* FHList): una query per tipo di filtro, cosi ognuna resta indicizzabile e si evita
|
|
5004
|
+
* il classico `(@VAL1='' OR colonna LIKE ...)` che manda in scansione completa.
|
|
5005
|
+
*
|
|
5006
|
+
* Colonne attese dalla query (vista `v_fh_mail_archiver`):
|
|
5007
|
+
* id, received_at, subject, sender_name, sender_email, client_name,
|
|
5008
|
+
* contatti, pratiche, rilevanza, has_attachments, archived_at, archived_by
|
|
5009
|
+
*/
|
|
5010
|
+
declare class FHMailArchivedComponent implements AfterViewInit {
|
|
5011
|
+
private _dataService;
|
|
5012
|
+
accent: string;
|
|
5013
|
+
accentDark: string;
|
|
5014
|
+
get _a(): string;
|
|
5015
|
+
get _ad(): string;
|
|
5016
|
+
/** Query di partenza. Deve gia contenere ORDER BY e LIMIT. */
|
|
5017
|
+
sql: string;
|
|
5018
|
+
/**
|
|
5019
|
+
* @VAL1 della query di partenza: e il *contesto*, non il filtro dell'utente.
|
|
5020
|
+
* Serve quando il componente vive dentro una scheda gia circoscritta — per
|
|
5021
|
+
* esempio dentro l'anagrafica di un cliente, dove passa l'id di quel cliente.
|
|
5022
|
+
* Lasciarlo vuoto se la query di partenza non ha parametri.
|
|
5023
|
+
*/
|
|
5024
|
+
valoreBase: string;
|
|
5025
|
+
/** Valore digitato dall'utente, passato come @VAL1 alla query del filtro attivo. */
|
|
5026
|
+
valore: string;
|
|
5027
|
+
/**
|
|
5028
|
+
* Filtri offerti dal selettore. Lasciandolo vuoto il componente e una tabella
|
|
5029
|
+
* pura: la UI di filtro la disegna il portale e pilota [sql] e [valore].
|
|
5030
|
+
*/
|
|
5031
|
+
filtri: FiltroMailArchiviata[];
|
|
5032
|
+
/** Deve combaciare col LIMIT delle query: serve solo a dichiarare il troncamento. */
|
|
5033
|
+
limite: number;
|
|
5034
|
+
autoLoad: boolean;
|
|
5035
|
+
title: string;
|
|
5036
|
+
icon: string;
|
|
5037
|
+
tuttiLabel: string;
|
|
5038
|
+
cercaLabel: string;
|
|
5039
|
+
cercaPlaceholder: string;
|
|
5040
|
+
apriTooltip: string;
|
|
5041
|
+
senzaOggetto: string;
|
|
5042
|
+
emptyTitle: string;
|
|
5043
|
+
emptySub: string;
|
|
5044
|
+
troncatoLabel: string;
|
|
5045
|
+
dateFormat: string;
|
|
5046
|
+
colData: string;
|
|
5047
|
+
colOggetto: string;
|
|
5048
|
+
colCliente: string;
|
|
5049
|
+
colContatti: string;
|
|
5050
|
+
colPratiche: string;
|
|
5051
|
+
colRilevanza: string;
|
|
5052
|
+
/**
|
|
5053
|
+
* Riga aperta. L'anteprima della mail la gestisce il portale: passa dalla utility
|
|
5054
|
+
* mail_reader via exec_app, che e idraulica del singolo server e non ha senso
|
|
5055
|
+
* dentro la libreria.
|
|
5056
|
+
*/
|
|
5057
|
+
apriMail: EventEmitter<any>;
|
|
5058
|
+
righe: any[] | undefined;
|
|
5059
|
+
filtroAttivo: FiltroMailArchiviata | null;
|
|
5060
|
+
troncato: boolean;
|
|
5061
|
+
errorMsg: string;
|
|
5062
|
+
constructor(_dataService: QueryService);
|
|
5063
|
+
ngAfterViewInit(): void;
|
|
5064
|
+
/** Ricarica l'elenco con il filtro attivo. Pubblica: la chiama anche il portale. */
|
|
5065
|
+
carica(): void;
|
|
5066
|
+
cambiaFiltro(): void;
|
|
5067
|
+
apri(riga: any): void;
|
|
5068
|
+
stelle(n: any): string;
|
|
5069
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHMailArchivedComponent, never>;
|
|
5070
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHMailArchivedComponent, "FHMailArchived", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "valoreBase": { "alias": "valoreBase"; "required": false; }; "valore": { "alias": "valore"; "required": false; }; "filtri": { "alias": "filtri"; "required": false; }; "limite": { "alias": "limite"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tuttiLabel": { "alias": "tuttiLabel"; "required": false; }; "cercaLabel": { "alias": "cercaLabel"; "required": false; }; "cercaPlaceholder": { "alias": "cercaPlaceholder"; "required": false; }; "apriTooltip": { "alias": "apriTooltip"; "required": false; }; "senzaOggetto": { "alias": "senzaOggetto"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySub": { "alias": "emptySub"; "required": false; }; "troncatoLabel": { "alias": "troncatoLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "colData": { "alias": "colData"; "required": false; }; "colOggetto": { "alias": "colOggetto"; "required": false; }; "colCliente": { "alias": "colCliente"; "required": false; }; "colContatti": { "alias": "colContatti"; "required": false; }; "colPratiche": { "alias": "colPratiche"; "required": false; }; "colRilevanza": { "alias": "colRilevanza"; "required": false; }; }, { "apriMail": "apriMail"; }, never, never, true, never>;
|
|
5071
|
+
}
|
|
5072
|
+
|
|
5073
|
+
/**
|
|
5074
|
+
* Anteprima di una mail archiviata (Mail Archiver).
|
|
5075
|
+
*
|
|
5076
|
+
* L'archivio conserva l'`.eml` originale, che non si mostra a video: la resa la
|
|
5077
|
+
* produce l'utility `mail_reader` lanciata con `exec_app`, che restituisce l'HTML
|
|
5078
|
+
* sullo stdout. Nessun file finisce nella docroot — le mail archiviate sarebbero
|
|
5079
|
+
* altrimenti scaricabili senza autenticazione.
|
|
5080
|
+
*/
|
|
5081
|
+
declare class FHMailPreviewComponent implements OnInit {
|
|
5082
|
+
dialogRef: MatDialogRef<FHMailPreviewComponent>;
|
|
5083
|
+
private fileService;
|
|
5084
|
+
private sanitizer;
|
|
5085
|
+
appService: AppService;
|
|
5086
|
+
data: any;
|
|
5087
|
+
titolo: string;
|
|
5088
|
+
html: SafeHtml | null;
|
|
5089
|
+
errore: string;
|
|
5090
|
+
caricamento: boolean;
|
|
5091
|
+
scaricando: boolean;
|
|
5092
|
+
allegati: any[];
|
|
5093
|
+
buttons: DialogButton[];
|
|
5094
|
+
private aggiornaPulsanti;
|
|
5095
|
+
constructor(dialogRef: MatDialogRef<FHMailPreviewComponent>, fileService: FileService, sanitizer: DomSanitizer, appService: AppService, data: any);
|
|
5096
|
+
ngOnInit(): void;
|
|
5097
|
+
/**
|
|
5098
|
+
* Elenco degli allegati per la barra cliccabile. Chiamata separata e leggera:
|
|
5099
|
+
* restituisce solo nomi e pesi, non i byte, che si leggono al momento del
|
|
5100
|
+
* download — un allegato da 20 MB non va tirato giu per disegnare un pulsante.
|
|
5101
|
+
*/
|
|
5102
|
+
private caricaAllegati;
|
|
5103
|
+
scaricaAllegato(a: any): void;
|
|
5104
|
+
peso(byteCount: number): string;
|
|
5105
|
+
/** atob non regge gli accenti: si passa dai byte, non dai caratteri. */
|
|
5106
|
+
private daBase64;
|
|
5107
|
+
onBeforeClose(event: DialogBeforeCloseEvent): void;
|
|
5108
|
+
/**
|
|
5109
|
+
* Scarica l'.eml originale. Passa da mail_reader --originale invece che da un
|
|
5110
|
+
* link diretto: il file sta fuori dalla docroot apposta, e servirlo via URL lo
|
|
5111
|
+
* renderebbe scaricabile senza autenticazione.
|
|
5112
|
+
*/
|
|
5113
|
+
private scarica;
|
|
5114
|
+
private salvaFile;
|
|
5115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHMailPreviewComponent, never>;
|
|
5116
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHMailPreviewComponent, "FHMailPreview", never, {}, {}, never, never, true, never>;
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
/** Ruolo di un messaggio nella conversazione (formato OpenAI-compatible). */
|
|
5120
|
+
type FHAiRole = "user" | "assistant" | "system";
|
|
5121
|
+
/** Sorgente RAG citata dal modello (chunk recuperato da Qdrant via Cheshire Cat). */
|
|
5122
|
+
interface FHAiSource {
|
|
5123
|
+
/** Titolo/nome documento o riferimento mostrabile. */
|
|
5124
|
+
title: string;
|
|
5125
|
+
/** Estratto del chunk (snippet). */
|
|
5126
|
+
snippet?: string;
|
|
5127
|
+
/** Punteggio di similarita' (0..1) se fornito dal backend. */
|
|
5128
|
+
score?: number;
|
|
5129
|
+
/** Eventuale URL/percorso del documento sorgente. */
|
|
5130
|
+
url?: string;
|
|
5131
|
+
}
|
|
5132
|
+
/** Singolo messaggio della conversazione. */
|
|
5133
|
+
interface FHAiMessage {
|
|
5134
|
+
role: FHAiRole;
|
|
5135
|
+
content: string;
|
|
5136
|
+
/** True mentre il messaggio assistant e' in streaming/caricamento. */
|
|
5137
|
+
loading?: boolean;
|
|
5138
|
+
/** Sorgenti RAG associate alla risposta (citazioni). */
|
|
5139
|
+
sources?: FHAiSource[];
|
|
5140
|
+
/** Timestamp di creazione (ms). */
|
|
5141
|
+
ts?: number;
|
|
5142
|
+
}
|
|
5143
|
+
/**
|
|
5144
|
+
* Contesto di scoping {azienda, ruolo, persona}.
|
|
5145
|
+
* NB: e' informativo/di visualizzazione lato client (es. per il titolo).
|
|
5146
|
+
* L'enforcement di sicurezza avviene server-side dall'identita' autenticata.
|
|
5147
|
+
*/
|
|
5148
|
+
interface FHAiContext {
|
|
5149
|
+
azienda?: string;
|
|
5150
|
+
ruolo?: string;
|
|
5151
|
+
persona?: string;
|
|
5152
|
+
/** Id conversazione per continuita' lato backend. */
|
|
5153
|
+
conversationId?: string;
|
|
5154
|
+
}
|
|
5155
|
+
/** Opzioni della singola chiamata al backend AI. */
|
|
5156
|
+
interface FHAiRequestOptions {
|
|
5157
|
+
/** URL completo dell'endpoint chat. Se assente: AppService.API_ENDPOINT + path. */
|
|
5158
|
+
endpoint?: string;
|
|
5159
|
+
/** Path relativo all'API_ENDPOINT quando non si passa un endpoint completo. */
|
|
5160
|
+
path?: string;
|
|
5161
|
+
/** Modello da richiedere (override; di norma deciso dal backend). */
|
|
5162
|
+
model?: string;
|
|
5163
|
+
/** Abilita lo streaming SSE (default true). */
|
|
5164
|
+
stream?: boolean;
|
|
5165
|
+
/** API key del servizio AI (header x-api-key). Di norma NON serve lato browser:
|
|
5166
|
+
* la chiave sta sul backend FluxHub che fa da proxy. */
|
|
5167
|
+
apiKey?: string;
|
|
5168
|
+
/** Header aggiuntivi. */
|
|
5169
|
+
headers?: Record<string, string>;
|
|
5170
|
+
/** Inoltra il JWT FluxHub come Authorization: Bearer (default true). */
|
|
5171
|
+
forwardAuth?: boolean;
|
|
5172
|
+
/** Contesto di scoping (inviato come metadata, non autoritativo). */
|
|
5173
|
+
context?: FHAiContext;
|
|
5174
|
+
}
|
|
5175
|
+
/** Frammento emesso durante lo streaming. */
|
|
5176
|
+
interface FHAiChunk {
|
|
5177
|
+
/** Delta di testo (token). */
|
|
5178
|
+
delta: string;
|
|
5179
|
+
/** Testo accumulato finora. */
|
|
5180
|
+
text: string;
|
|
5181
|
+
/** True sull'ultimo frammento. */
|
|
5182
|
+
done: boolean;
|
|
5183
|
+
/** Sorgenti, se arrivate (di norma a fine risposta). */
|
|
5184
|
+
sources?: FHAiSource[];
|
|
5185
|
+
}
|
|
5186
|
+
|
|
5187
|
+
/**
|
|
5188
|
+
* Client del layer AI di FluxHub.
|
|
5189
|
+
*
|
|
5190
|
+
* Parla con un backend OpenAI-compatible (/v1/chat/completions o una route FluxHub
|
|
5191
|
+
* che fa da proxy verso il Cheshire Cat / Gemma). Supporta streaming SSE e risposta
|
|
5192
|
+
* singola. L'identita' utente viene inoltrata col JWT FluxHub: scoping e retrieval
|
|
5193
|
+
* sono enforced server-side (vedi architettura, sez. 10-11).
|
|
5194
|
+
*
|
|
5195
|
+
* Usa fetch() invece di HttpClient per gestire nativamente lo streaming SSE e per
|
|
5196
|
+
* avere pieno controllo sugli header (la chiamata AI puo' usare una chiave dedicata).
|
|
5197
|
+
*/
|
|
5198
|
+
declare class FHAiService {
|
|
5199
|
+
private appService;
|
|
5200
|
+
/** Path di default (relativo ad API_ENDPOINT) della route AI sul backend FluxHub. */
|
|
5201
|
+
defaultPath: string;
|
|
5202
|
+
constructor(appService: AppService);
|
|
5203
|
+
/** Costruisce l'URL effettivo dell'endpoint. */
|
|
5204
|
+
private resolveUrl;
|
|
5205
|
+
/** Costruisce gli header (Content-Type, JWT FluxHub, API key AI, custom). */
|
|
5206
|
+
private buildHeaders;
|
|
5207
|
+
/** Corpo della richiesta (OpenAI-compatible). */
|
|
5208
|
+
private buildBody;
|
|
5209
|
+
/**
|
|
5210
|
+
* Conversazione in streaming. Emette un FHAiChunk per ogni delta di testo;
|
|
5211
|
+
* l'ultimo ha done=true ed eventuali sources.
|
|
5212
|
+
*/
|
|
5213
|
+
chatStream(messages: FHAiMessage[], opts?: FHAiRequestOptions): Observable<FHAiChunk>;
|
|
5214
|
+
/**
|
|
5215
|
+
* Conversazione non-streaming: risolve con il testo completo e le sorgenti.
|
|
5216
|
+
*/
|
|
5217
|
+
chatOnce(messages: FHAiMessage[], opts?: FHAiRequestOptions): Observable<{
|
|
5218
|
+
content: string;
|
|
5219
|
+
sources?: FHAiSource[];
|
|
5220
|
+
}>;
|
|
5221
|
+
/** Estrae il delta di testo da un evento SSE (OpenAI: choices[].delta.content). */
|
|
5222
|
+
private extractDelta;
|
|
5223
|
+
/** Estrae il testo completo dalla risposta non-streaming. */
|
|
5224
|
+
private extractContent;
|
|
5225
|
+
/** Estrae le sorgenti RAG (Cheshire Cat: why.memory.declarative; o sources/citations). */
|
|
5226
|
+
private extractSources;
|
|
5227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHAiService, never>;
|
|
5228
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FHAiService>;
|
|
5229
|
+
}
|
|
5230
|
+
|
|
5231
|
+
/**
|
|
5232
|
+
* Pannello chat AI riusabile di FluxHub.
|
|
5233
|
+
*
|
|
5234
|
+
* Conversazione con un backend OpenAI-compatible (proxy Prologika -> Cheshire Cat ->
|
|
5235
|
+
* Gemma) via FHAiService. Renderizza testo markdown, citazioni RAG, ha schermata di
|
|
5236
|
+
* benvenuto con suggerimenti e supporta streaming token-by-token.
|
|
5237
|
+
*
|
|
5238
|
+
* Tutto configurabile via @Input (endpoint, contesto azienda/ruolo, testi, tema) per
|
|
5239
|
+
* riuso cross-cliente, in linea con gli altri componenti standard della libreria.
|
|
5240
|
+
*
|
|
5241
|
+
* Esempio:
|
|
5242
|
+
* <FHAiChat [context]="{azienda:'Bormioli', ruolo:'sales'}"
|
|
5243
|
+
* [accent]="'#16afc7'"
|
|
5244
|
+
* welcomeTitle="Assistente Bormioli"></FHAiChat>
|
|
5245
|
+
*/
|
|
5246
|
+
declare class FHAiChatComponent implements OnDestroy {
|
|
5247
|
+
private ai;
|
|
5248
|
+
private sanitizer;
|
|
5249
|
+
accent: string;
|
|
5250
|
+
accentDark: string;
|
|
5251
|
+
get _a(): string;
|
|
5252
|
+
get _ad(): string;
|
|
5253
|
+
showHeader: boolean;
|
|
5254
|
+
title: string;
|
|
5255
|
+
subtitle: string;
|
|
5256
|
+
tagLabel: string;
|
|
5257
|
+
welcomeTitle: string;
|
|
5258
|
+
welcomeSubtitle: string;
|
|
5259
|
+
suggestions: string[];
|
|
5260
|
+
placeholder: string;
|
|
5261
|
+
showHint: boolean;
|
|
5262
|
+
/** URL completo dell'endpoint AI. Se vuoto: AppService.API_ENDPOINT + path. */
|
|
5263
|
+
endpoint: string;
|
|
5264
|
+
/** Path relativo all'API_ENDPOINT (default route AI sul backend FluxHub). */
|
|
5265
|
+
path: string;
|
|
5266
|
+
/** Modello da richiedere (di norma deciso lato server). */
|
|
5267
|
+
model: string;
|
|
5268
|
+
/** Abilita lo streaming token-by-token (SSE). */
|
|
5269
|
+
stream: boolean;
|
|
5270
|
+
/** API key del servizio AI (di norma NON serve lato browser). */
|
|
5271
|
+
apiKey: string;
|
|
5272
|
+
/** Inoltra il JWT FluxHub come Authorization Bearer. */
|
|
5273
|
+
forwardAuth: boolean;
|
|
5274
|
+
/** Contesto di scoping {azienda, ruolo, persona} (informativo + metadata). */
|
|
5275
|
+
context: FHAiContext | null;
|
|
5276
|
+
/** Messaggio di sistema iniziale opzionale (di norma lo costruisce il backend). */
|
|
5277
|
+
systemPrompt: string;
|
|
5278
|
+
messageSent: EventEmitter<string>;
|
|
5279
|
+
responseReceived: EventEmitter<FHAiMessage>;
|
|
5280
|
+
errored: EventEmitter<string>;
|
|
5281
|
+
scroller?: ElementRef<HTMLDivElement>;
|
|
5282
|
+
messages: FHAiMessage[];
|
|
5283
|
+
userInput: string;
|
|
5284
|
+
busy: boolean;
|
|
5285
|
+
errorMsg: string;
|
|
5286
|
+
private sub?;
|
|
5287
|
+
constructor(ai: FHAiService, sanitizer: DomSanitizer);
|
|
5288
|
+
ngOnDestroy(): void;
|
|
5289
|
+
onKeyDown(ev: KeyboardEvent): void;
|
|
5290
|
+
autoGrow(ta: HTMLTextAreaElement): void;
|
|
5291
|
+
sendSuggestion(text: string): void;
|
|
5292
|
+
send(): void;
|
|
5293
|
+
stop(): void;
|
|
5294
|
+
clear(): void;
|
|
5295
|
+
private finish;
|
|
5296
|
+
private fail;
|
|
5297
|
+
private scrollSoon;
|
|
5298
|
+
/** Rende il markdown (sottoinsieme) in HTML sicuro: escape -> formattazione. */
|
|
5299
|
+
render(content: string): SafeHtml;
|
|
5300
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHAiChatComponent, never>;
|
|
5301
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHAiChatComponent, "FHAiChat", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "tagLabel": { "alias": "tagLabel"; "required": false; }; "welcomeTitle": { "alias": "welcomeTitle"; "required": false; }; "welcomeSubtitle": { "alias": "welcomeSubtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "path": { "alias": "path"; "required": false; }; "model": { "alias": "model"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; "forwardAuth": { "alias": "forwardAuth"; "required": false; }; "context": { "alias": "context"; "required": false; }; "systemPrompt": { "alias": "systemPrompt"; "required": false; }; }, { "messageSent": "messageSent"; "responseReceived": "responseReceived"; "errored": "errored"; }, never, never, true, never>;
|
|
5302
|
+
}
|
|
5303
|
+
|
|
5304
|
+
/**
|
|
5305
|
+
* Launcher AI flottante ("drop-anywhere") di FluxHub: un FAB in basso a destra che
|
|
5306
|
+
* apre/chiude un pannello con dentro <FHAiChat>. Si inserisce in qualunque pagina
|
|
5307
|
+
* del portale per dare accesso all'assistente senza occupare layout.
|
|
5308
|
+
*
|
|
5309
|
+
* Inoltra al chat gli @Input principali (endpoint, contesto, tema, testi).
|
|
5310
|
+
*
|
|
5311
|
+
* Esempio:
|
|
5312
|
+
* <FHAiAssistant [context]="{azienda:'COEM', ruolo:'manager'}"
|
|
5313
|
+
* [accent]="'#16afc7'"
|
|
5314
|
+
* welcomeTitle="Assistente COEM"></FHAiAssistant>
|
|
5315
|
+
*/
|
|
5316
|
+
declare class FHAiAssistantComponent implements OnInit {
|
|
5317
|
+
accent: string;
|
|
5318
|
+
accentDark: string;
|
|
5319
|
+
get _a(): string;
|
|
5320
|
+
get _ad(): string;
|
|
5321
|
+
icon: string;
|
|
5322
|
+
openLabel: string;
|
|
5323
|
+
showLabel: boolean;
|
|
5324
|
+
/** 'floating' = popover ancorato al FAB; 'right' = drawer a tutta altezza. */
|
|
5325
|
+
dock: 'floating' | 'right';
|
|
5326
|
+
/** Apre il pannello all'avvio. */
|
|
5327
|
+
startOpen: boolean;
|
|
5328
|
+
title: string;
|
|
5329
|
+
subtitle: string;
|
|
5330
|
+
tagLabel: string;
|
|
5331
|
+
welcomeTitle: string;
|
|
5332
|
+
welcomeSubtitle: string;
|
|
5333
|
+
suggestions: string[];
|
|
5334
|
+
placeholder: string;
|
|
5335
|
+
endpoint: string;
|
|
5336
|
+
path: string;
|
|
5337
|
+
model: string;
|
|
5338
|
+
stream: boolean;
|
|
5339
|
+
apiKey: string;
|
|
5340
|
+
forwardAuth: boolean;
|
|
5341
|
+
context: FHAiContext | null;
|
|
5342
|
+
systemPrompt: string;
|
|
5343
|
+
open: boolean;
|
|
5344
|
+
ngOnInit(): void;
|
|
5345
|
+
toggle(): void;
|
|
5346
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHAiAssistantComponent, never>;
|
|
5347
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHAiAssistantComponent, "FHAiAssistant", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "openLabel": { "alias": "openLabel"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "dock": { "alias": "dock"; "required": false; }; "startOpen": { "alias": "startOpen"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "tagLabel": { "alias": "tagLabel"; "required": false; }; "welcomeTitle": { "alias": "welcomeTitle"; "required": false; }; "welcomeSubtitle": { "alias": "welcomeSubtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "path": { "alias": "path"; "required": false; }; "model": { "alias": "model"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; "forwardAuth": { "alias": "forwardAuth"; "required": false; }; "context": { "alias": "context"; "required": false; }; "systemPrompt": { "alias": "systemPrompt"; "required": false; }; }, {}, never, never, true, never>;
|
|
5348
|
+
}
|
|
5349
|
+
|
|
5350
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
|
|
5351
|
+
export type { DialogBeforeCloseEvent, DialogButton, FHAiChunk, FHAiContext, FHAiMessage, FHAiRequestOptions, FHAiRole, FHAiSource, FHGridColumn, FHLauncherApp, FHLauncherCategory, FHSearchListData, FHSearchListItem, FHTaskExternalHint, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, FiltroMailArchiviata, WkfCompleteTaskOptions, WkfFieldType, WkfFieldValue, WkfProceedOptions, WkfProceedReason, WkfProceedResult, WkfTaskResult };
|