@fluxhub/fluxhub-lib 22.0.4 → 22.0.6
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@ 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, OnDestroy, ChangeDetectorRef, OnInit, QueryList, DoCheck } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ElementRef, EventEmitter, PipeTransform, OnDestroy, ChangeDetectorRef, OnInit, QueryList, InjectionToken, 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
8
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -210,6 +210,7 @@ declare class QueryService {
|
|
|
210
210
|
private app_s;
|
|
211
211
|
private uti_s;
|
|
212
212
|
headers?: HttpHeaders | null;
|
|
213
|
+
private reporter;
|
|
213
214
|
url: string | null;
|
|
214
215
|
constructor(http: HttpClient, toastr: ToastrService, app_s: AppService, uti_s: UtilityService);
|
|
215
216
|
/**
|
|
@@ -1061,6 +1062,7 @@ declare class GridService {
|
|
|
1061
1062
|
private toastr;
|
|
1062
1063
|
private uti_s;
|
|
1063
1064
|
headers?: HttpHeaders | null;
|
|
1065
|
+
private reporter;
|
|
1064
1066
|
constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, uti_s: UtilityService);
|
|
1065
1067
|
url: string | null;
|
|
1066
1068
|
doQuery(queryp: QGParam, displayError?: boolean, url_sec?: string | null): Observable<QGResult>;
|
|
@@ -3734,6 +3736,45 @@ declare class AppMakerService {
|
|
|
3734
3736
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppMakerService>;
|
|
3735
3737
|
}
|
|
3736
3738
|
|
|
3739
|
+
/**
|
|
3740
|
+
* Segnalazione di un errore dei servizi dati della libreria (query, griglie).
|
|
3741
|
+
*
|
|
3742
|
+
* La libreria non dipende da nessun SDK di monitoraggio: il portale che vuole
|
|
3743
|
+
* raccogliere gli errori fornisce FH_ERROR_REPORTER (es. con @sentry/angular verso
|
|
3744
|
+
* Rustrak) e decide cosa farne. Senza provider non succede niente.
|
|
3745
|
+
*/
|
|
3746
|
+
interface FHErrorReport {
|
|
3747
|
+
/** 'ko' = risposta { result_msg: 'KO' }, 'http' = errore di trasporto (5xx, rete), 'empty' = risposta vuota */
|
|
3748
|
+
kind: 'ko' | 'http' | 'empty';
|
|
3749
|
+
/** Servizio che ha fatto la chiamata */
|
|
3750
|
+
service: 'query' | 'grid';
|
|
3751
|
+
/** Endpoint chiamato, senza host (es. /doquery, /dogridn, /doexportn) */
|
|
3752
|
+
endpoint: string;
|
|
3753
|
+
/** Chiave della query o della griglia (mai i valori dei parametri) */
|
|
3754
|
+
key: string;
|
|
3755
|
+
/** Messaggio d'errore restituito dal server */
|
|
3756
|
+
message: string;
|
|
3757
|
+
/** Status HTTP, solo per kind='http' */
|
|
3758
|
+
status?: number;
|
|
3759
|
+
/**
|
|
3760
|
+
* Id dell'evento gia' registrato dal server (header X-FH-Event-Id). Se valorizzato
|
|
3761
|
+
* l'errore e' gia' stato raccolto lato backend con stack trace e chiave: il
|
|
3762
|
+
* reporter non dovrebbe mandarne un secondo, al massimo un breadcrumb.
|
|
3763
|
+
*/
|
|
3764
|
+
serverEventId: string | null;
|
|
3765
|
+
/** Pagina del portale da cui e' partita la chiamata */
|
|
3766
|
+
route: string;
|
|
3767
|
+
/** false se il chiamante ha chiesto di non mostrare il toast d'errore */
|
|
3768
|
+
displayError: boolean;
|
|
3769
|
+
}
|
|
3770
|
+
type FHErrorReporter = (report: FHErrorReport) => void;
|
|
3771
|
+
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
3772
|
+
declare const FH_ERROR_REPORTER: InjectionToken<FHErrorReporter>;
|
|
3773
|
+
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
3774
|
+
declare const FH_EVENT_ID_HEADER = "X-FH-Event-Id";
|
|
3775
|
+
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
3776
|
+
declare const FH_ROUTE_HEADER = "X-FH-Route";
|
|
3777
|
+
|
|
3737
3778
|
/** Motivo per cui un avanzamento headless non e' andato a buon fine. */
|
|
3738
3779
|
type WkfProceedReason = 'OK' | 'NO_DOC' | 'CLOSED' | 'TASKS_OPEN' | 'NO_LEVELS' | 'NO_CURRENT_LEVEL' | 'NO_TRANSITION' | 'MULTIPLE_TRANSITIONS' | 'NO_RECIPIENTS' | 'MANUAL_ASSIGNMENT';
|
|
3739
3780
|
interface WkfProceedResult {
|
|
@@ -4497,6 +4538,23 @@ interface FHTaskExternalHint {
|
|
|
4497
4538
|
label: string;
|
|
4498
4539
|
icon?: string;
|
|
4499
4540
|
}
|
|
4541
|
+
/**
|
|
4542
|
+
* Riga di sola lettura da inserire nell'elenco dei task, subito dopo il task con
|
|
4543
|
+
* `after_check_key` (in fondo se la chiave non c'e'). Serve per le condizioni che non
|
|
4544
|
+
* sono task ma vanno lette accanto a essi (es. "attesa esito" dedotta dagli allegati):
|
|
4545
|
+
* niente pulsanti e non entrano nel conteggio di avanzamento.
|
|
4546
|
+
*
|
|
4547
|
+
* `icon` e' un material symbol (default `info`), `icon_color` il suo colore; `status`
|
|
4548
|
+
* compare a destra al posto dei pulsanti, `meta` sotto il titolo come per i task.
|
|
4549
|
+
*/
|
|
4550
|
+
interface FHTaskExtraRow {
|
|
4551
|
+
after_check_key?: string;
|
|
4552
|
+
title: string;
|
|
4553
|
+
icon?: string;
|
|
4554
|
+
icon_color?: string;
|
|
4555
|
+
status?: string;
|
|
4556
|
+
meta?: string;
|
|
4557
|
+
}
|
|
4500
4558
|
/**
|
|
4501
4559
|
* Pannello dei task dello step corrente (step_mode='T').
|
|
4502
4560
|
*
|
|
@@ -4531,6 +4589,14 @@ declare class FHWorkflowTasksPanel implements DoCheck {
|
|
|
4531
4589
|
* se l'applicativo esterno lo ha concluso per errore.
|
|
4532
4590
|
*/
|
|
4533
4591
|
ext_tasks: FHTaskExternalHint[];
|
|
4592
|
+
/**
|
|
4593
|
+
* Righe di sola lettura da mostrare tra i task (vedi `FHTaskExtraRow`), ciascuna dopo
|
|
4594
|
+
* il task con il suo `after_check_key`. Passare un riferimento stabile e sostituirlo
|
|
4595
|
+
* (non mutarlo) quando cambiano i dati: il pannello lo confronta per riferimento.
|
|
4596
|
+
*
|
|
4597
|
+
* [ext_rows]="[{after_check_key:'50_COM_PREVENTIVA', title:'ATTESA ESITO GSE', status:'In attesa'}]"
|
|
4598
|
+
*/
|
|
4599
|
+
ext_rows: FHTaskExtraRow[];
|
|
4534
4600
|
title: string;
|
|
4535
4601
|
claim_label: string;
|
|
4536
4602
|
release_label: string;
|
|
@@ -4551,6 +4617,8 @@ declare class FHWorkflowTasksPanel implements DoCheck {
|
|
|
4551
4617
|
last_task_title: string;
|
|
4552
4618
|
last_task_confirm: string;
|
|
4553
4619
|
tasks: any[];
|
|
4620
|
+
/** Task e righe extra nell'ordine in cui si vedono (le extra hanno `_extra`). */
|
|
4621
|
+
rows: any[];
|
|
4554
4622
|
totalRequired: number;
|
|
4555
4623
|
doneRequired: number;
|
|
4556
4624
|
progressPct: number;
|
|
@@ -4558,6 +4626,8 @@ declare class FHWorkflowTasksPanel implements DoCheck {
|
|
|
4558
4626
|
private _lastTasksRef;
|
|
4559
4627
|
/** Idem per `ext_tasks`: se cambia l'input vanno ricalcolate le indicazioni. */
|
|
4560
4628
|
private _lastExtRef;
|
|
4629
|
+
/** Idem per `ext_rows`. */
|
|
4630
|
+
private _lastRowsRef;
|
|
4561
4631
|
constructor(dialog: MatDialog, toastr: ToastrService | null);
|
|
4562
4632
|
ngDoCheck(): void;
|
|
4563
4633
|
private rebuild;
|
|
@@ -4576,7 +4646,7 @@ declare class FHWorkflowTasksPanel implements DoCheck {
|
|
|
4576
4646
|
private doClose;
|
|
4577
4647
|
onReopen(t: any): void;
|
|
4578
4648
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHWorkflowTasksPanel, [null, { optional: true; }]>;
|
|
4579
|
-
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>;
|
|
4649
|
+
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; }; "ext_rows": { "alias": "ext_rows"; "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>;
|
|
4580
4650
|
}
|
|
4581
4651
|
|
|
4582
4652
|
declare class BpmnEditorComponent implements AfterViewInit, OnDestroy {
|
|
@@ -5392,5 +5462,5 @@ declare class FHAiAssistantComponent implements OnInit {
|
|
|
5392
5462
|
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>;
|
|
5393
5463
|
}
|
|
5394
5464
|
|
|
5395
|
-
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 };
|
|
5396
|
-
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 };
|
|
5465
|
+
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, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, 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 };
|
|
5466
|
+
export type { DialogBeforeCloseEvent, DialogButton, FHAiChunk, FHAiContext, FHAiMessage, FHAiRequestOptions, FHAiRole, FHAiSource, FHErrorReport, FHErrorReporter, FHGridColumn, FHLauncherApp, FHLauncherCategory, FHSearchListData, FHSearchListItem, FHTaskExternalHint, FHTaskExtraRow, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, FiltroMailArchiviata, WkfCompleteTaskOptions, WkfFieldType, WkfFieldValue, WkfProceedOptions, WkfProceedReason, WkfProceedResult, WkfTaskResult };
|