@fluxhub/fluxhub-lib 22.0.12 → 22.0.14
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.
|
@@ -175,6 +175,65 @@ function fhHandledError() {
|
|
|
175
175
|
function fhIsHandled(err) {
|
|
176
176
|
return !!err?.fhHandled;
|
|
177
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Impostazioni comuni per Sentry.init dei portali (Rustrak): rumore da scartare e pulizia
|
|
180
|
+
* dei breadcrumb. Unica fonte per tutti i portali: una voce nuova si aggiunge qui e arriva
|
|
181
|
+
* a tutti con l'aggiornamento della libreria. Uso nel monitoring.ts del portale:
|
|
182
|
+
* Sentry.init({ dsn, release, ..., ...FH_MONITORING_DEFAULTS })
|
|
183
|
+
* Tipi volutamente generici: la libreria non dipende dall'SDK di Sentry.
|
|
184
|
+
* Rumore individuato analizzando le issue di tutti i portali il 21/10/2026.
|
|
185
|
+
*/
|
|
186
|
+
const FH_MONITORING_IGNORE_ERRORS = [
|
|
187
|
+
'ResizeObserver loop',
|
|
188
|
+
'NG0100',
|
|
189
|
+
// sessione scaduta: l'interceptor fa logout e rilancia l'errore alle richieste in coda
|
|
190
|
+
'Refresh token non valido',
|
|
191
|
+
'SESSIONE SCADUTA',
|
|
192
|
+
// file JS della versione precedente spariti dopo una pubblicazione
|
|
193
|
+
'ChunkLoadError',
|
|
194
|
+
/Loading chunk [\w-]+ failed/,
|
|
195
|
+
'Failed to fetch dynamically imported module',
|
|
196
|
+
'Importing a module script failed',
|
|
197
|
+
// copia di un 5xx che la libreria ha gia' segnalato come "HTTP 5xx /endpoint CHIAVE"
|
|
198
|
+
/^Server returned code \d+ with body/,
|
|
199
|
+
];
|
|
200
|
+
/** Scarta un evento gia' segnalato o non azionabile; raggruppa i backend non raggiungibili. */
|
|
201
|
+
function fhMonitoringBeforeSend(event, hint) {
|
|
202
|
+
const ex = hint?.originalException;
|
|
203
|
+
// KO dei servizi dati rilanciato dopo essere stato mostrato e segnalato
|
|
204
|
+
if (fhIsHandled(ex))
|
|
205
|
+
return null;
|
|
206
|
+
// chiamata HTTP senza gestore d'errore arrivata all'ErrorHandler: 0 = rete assente o
|
|
207
|
+
// richiesta interrotta dal cambio pagina, 401 = sessione scaduta (li scarta anche fhHttpErrorReport)
|
|
208
|
+
if (ex instanceof HttpErrorResponse && (ex.status === 0 || ex.status === 401))
|
|
209
|
+
return null;
|
|
210
|
+
// backend giu' o in riavvio: una issue per portale e status, non una per chiave di query
|
|
211
|
+
const msg = String(event?.message || event?.exception?.values?.[0]?.value || '');
|
|
212
|
+
const gw = /^HTTP (502|503|504) /.exec(msg);
|
|
213
|
+
if (gw && event)
|
|
214
|
+
event.fingerprint = ['fh-gateway', gw[1]];
|
|
215
|
+
return event;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Breadcrumb: i console.log dei portali stampano record interi (anche utenti con password),
|
|
219
|
+
* quindi dei log di console restano solo warning ed errori, senza argomenti; via anche il
|
|
220
|
+
* banner di licenza di AG Grid, che riempie la coda.
|
|
221
|
+
*/
|
|
222
|
+
function fhMonitoringBeforeBreadcrumb(b) {
|
|
223
|
+
if (!b || b.category !== 'console')
|
|
224
|
+
return b;
|
|
225
|
+
if (b.level !== 'warning' && b.level !== 'error')
|
|
226
|
+
return null;
|
|
227
|
+
if (/AG Grid/i.test(String(b.message || '')) && /licen/i.test(String(b.message || '')))
|
|
228
|
+
return null;
|
|
229
|
+
delete b.data;
|
|
230
|
+
return b;
|
|
231
|
+
}
|
|
232
|
+
const FH_MONITORING_DEFAULTS = {
|
|
233
|
+
ignoreErrors: FH_MONITORING_IGNORE_ERRORS,
|
|
234
|
+
beforeSend: fhMonitoringBeforeSend,
|
|
235
|
+
beforeBreadcrumb: fhMonitoringBeforeBreadcrumb,
|
|
236
|
+
};
|
|
178
237
|
|
|
179
238
|
class QGResult {
|
|
180
239
|
result_msg = '';
|
|
@@ -5362,7 +5421,7 @@ class FHUploadComponent {
|
|
|
5362
5421
|
if (event.type === HttpEventType.UploadProgress && event.total) {
|
|
5363
5422
|
const progress = Math.round((100 * event.loaded) / event.total);
|
|
5364
5423
|
if (this.dialogRef?.componentInstance) {
|
|
5365
|
-
this.dialogRef
|
|
5424
|
+
this.dialogRef?.componentInstance?.update_progess(progress);
|
|
5366
5425
|
}
|
|
5367
5426
|
}
|
|
5368
5427
|
else if (event.type === HttpEventType.Response) {
|
|
@@ -5379,7 +5438,7 @@ class FHUploadComponent {
|
|
|
5379
5438
|
this.descrizione = '';
|
|
5380
5439
|
this.ref_allegato();
|
|
5381
5440
|
if (this.dialogRef?.componentInstance) {
|
|
5382
|
-
this.dialogRef
|
|
5441
|
+
this.dialogRef?.componentInstance?.update_progess(100);
|
|
5383
5442
|
this.dialogRef = null;
|
|
5384
5443
|
}
|
|
5385
5444
|
}
|
|
@@ -10281,7 +10340,7 @@ class FileService {
|
|
|
10281
10340
|
setTimeout(() => {
|
|
10282
10341
|
if (dialogRef_W != null)
|
|
10283
10342
|
if (dialogRef_W.componentInstance != null)
|
|
10284
|
-
dialogRef_W
|
|
10343
|
+
dialogRef_W?.componentInstance?.update_progess(this.eprog);
|
|
10285
10344
|
});
|
|
10286
10345
|
setTimeout(() => {
|
|
10287
10346
|
this.progress_update(dialogRef_W);
|
|
@@ -21443,7 +21502,7 @@ class FHUploadS3Component {
|
|
|
21443
21502
|
this.upload_ended.emit(this.last_result);
|
|
21444
21503
|
if (this.dialogRef != null)
|
|
21445
21504
|
if (this.dialogRef.componentInstance != null) {
|
|
21446
|
-
this.dialogRef
|
|
21505
|
+
this.dialogRef?.componentInstance?.update_progess(100);
|
|
21447
21506
|
this.dialogRef = null;
|
|
21448
21507
|
}
|
|
21449
21508
|
};
|
|
@@ -21457,7 +21516,7 @@ class FHUploadS3Component {
|
|
|
21457
21516
|
this.loading = true;
|
|
21458
21517
|
if (this.dialogRef != null)
|
|
21459
21518
|
if (this.dialogRef.componentInstance != null)
|
|
21460
|
-
this.dialogRef
|
|
21519
|
+
this.dialogRef?.componentInstance?.update_progess(progress);
|
|
21461
21520
|
};
|
|
21462
21521
|
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
21463
21522
|
switch (filter.name) {
|
|
@@ -29502,7 +29561,7 @@ class OfficeAutomatorService {
|
|
|
29502
29561
|
setTimeout(() => {
|
|
29503
29562
|
if (dialogRef_W != null)
|
|
29504
29563
|
if (dialogRef_W.componentInstance != null)
|
|
29505
|
-
dialogRef_W
|
|
29564
|
+
dialogRef_W?.componentInstance?.update_progess(this.eprog);
|
|
29506
29565
|
});
|
|
29507
29566
|
setTimeout(() => {
|
|
29508
29567
|
this.progress_update(dialogRef_W);
|
|
@@ -36517,7 +36576,7 @@ class FHWorkflowForm {
|
|
|
36517
36576
|
this.chstato(trans.step_d);
|
|
36518
36577
|
if (this.dialogRef_ww != null)
|
|
36519
36578
|
if (this.dialogRef_ww.componentInstance != null)
|
|
36520
|
-
this.dialogRef_ww
|
|
36579
|
+
this.dialogRef_ww?.componentInstance?.update_progess(100);
|
|
36521
36580
|
this.goto_edit_doc();
|
|
36522
36581
|
});
|
|
36523
36582
|
});
|
|
@@ -36528,7 +36587,7 @@ class FHWorkflowForm {
|
|
|
36528
36587
|
this.ttw += 10;
|
|
36529
36588
|
if (this.dialogRef_ww != null)
|
|
36530
36589
|
if (this.dialogRef_ww.componentInstance != null)
|
|
36531
|
-
this.dialogRef_ww
|
|
36590
|
+
this.dialogRef_ww?.componentInstance?.update_progess(this.ttw);
|
|
36532
36591
|
setTimeout(() => {
|
|
36533
36592
|
this.reset_updw();
|
|
36534
36593
|
}, 800);
|
|
@@ -43454,5 +43513,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
43454
43513
|
* Generated bundle index. Do not edit.
|
|
43455
43514
|
*/
|
|
43456
43515
|
|
|
43457
|
-
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, fhHandledError, fhIsHandled, fh_win_translate, wkfField };
|
|
43516
|
+
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_MONITORING_DEFAULTS, FH_MONITORING_IGNORE_ERRORS, 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, fhHandledError, fhIsHandled, fhMonitoringBeforeBreadcrumb, fhMonitoringBeforeSend, fh_win_translate, wkfField };
|
|
43458
43517
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|