@fluxhub/fluxhub-lib 19.0.249 → 19.0.251
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 = '';
|
|
@@ -4781,7 +4840,7 @@ class FHUploadComponent {
|
|
|
4781
4840
|
if (event.type === HttpEventType.UploadProgress && event.total) {
|
|
4782
4841
|
const progress = Math.round(100 * event.loaded / event.total);
|
|
4783
4842
|
if (this.dialogRef?.componentInstance) {
|
|
4784
|
-
this.dialogRef
|
|
4843
|
+
this.dialogRef?.componentInstance?.update_progess(progress);
|
|
4785
4844
|
}
|
|
4786
4845
|
}
|
|
4787
4846
|
else if (event.type === HttpEventType.Response) {
|
|
@@ -4798,7 +4857,7 @@ class FHUploadComponent {
|
|
|
4798
4857
|
this.descrizione = '';
|
|
4799
4858
|
this.ref_allegato();
|
|
4800
4859
|
if (this.dialogRef?.componentInstance) {
|
|
4801
|
-
this.dialogRef
|
|
4860
|
+
this.dialogRef?.componentInstance?.update_progess(100);
|
|
4802
4861
|
this.dialogRef = null;
|
|
4803
4862
|
}
|
|
4804
4863
|
}
|
|
@@ -9219,7 +9278,7 @@ class FileService {
|
|
|
9219
9278
|
setTimeout(() => {
|
|
9220
9279
|
if (dialogRef_W != null)
|
|
9221
9280
|
if (dialogRef_W.componentInstance != null)
|
|
9222
|
-
dialogRef_W
|
|
9281
|
+
dialogRef_W?.componentInstance?.update_progess(this.eprog);
|
|
9223
9282
|
});
|
|
9224
9283
|
setTimeout(() => {
|
|
9225
9284
|
this.progress_update(dialogRef_W);
|
|
@@ -19830,7 +19889,7 @@ class FHUploadS3Component {
|
|
|
19830
19889
|
this.upload_ended.emit(this.last_result);
|
|
19831
19890
|
if (this.dialogRef != null)
|
|
19832
19891
|
if (this.dialogRef.componentInstance != null) {
|
|
19833
|
-
this.dialogRef
|
|
19892
|
+
this.dialogRef?.componentInstance?.update_progess(100);
|
|
19834
19893
|
this.dialogRef = null;
|
|
19835
19894
|
}
|
|
19836
19895
|
};
|
|
@@ -19844,7 +19903,7 @@ class FHUploadS3Component {
|
|
|
19844
19903
|
this.loading = true;
|
|
19845
19904
|
if (this.dialogRef != null)
|
|
19846
19905
|
if (this.dialogRef.componentInstance != null)
|
|
19847
|
-
this.dialogRef
|
|
19906
|
+
this.dialogRef?.componentInstance?.update_progess(progress);
|
|
19848
19907
|
};
|
|
19849
19908
|
this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
|
|
19850
19909
|
switch (filter.name) {
|
|
@@ -27419,7 +27478,7 @@ class OfficeAutomatorService {
|
|
|
27419
27478
|
setTimeout(() => {
|
|
27420
27479
|
if (dialogRef_W != null)
|
|
27421
27480
|
if (dialogRef_W.componentInstance != null)
|
|
27422
|
-
dialogRef_W
|
|
27481
|
+
dialogRef_W?.componentInstance?.update_progess(this.eprog);
|
|
27423
27482
|
});
|
|
27424
27483
|
setTimeout(() => {
|
|
27425
27484
|
this.progress_update(dialogRef_W);
|
|
@@ -34206,7 +34265,7 @@ class FHWorkflowForm {
|
|
|
34206
34265
|
this.chstato(trans.step_d);
|
|
34207
34266
|
if (this.dialogRef_ww != null)
|
|
34208
34267
|
if (this.dialogRef_ww.componentInstance != null)
|
|
34209
|
-
this.dialogRef_ww
|
|
34268
|
+
this.dialogRef_ww?.componentInstance?.update_progess(100);
|
|
34210
34269
|
this.goto_edit_doc();
|
|
34211
34270
|
});
|
|
34212
34271
|
});
|
|
@@ -34217,7 +34276,7 @@ class FHWorkflowForm {
|
|
|
34217
34276
|
this.ttw += 10;
|
|
34218
34277
|
if (this.dialogRef_ww != null)
|
|
34219
34278
|
if (this.dialogRef_ww.componentInstance != null)
|
|
34220
|
-
this.dialogRef_ww
|
|
34279
|
+
this.dialogRef_ww?.componentInstance?.update_progess(this.ttw);
|
|
34221
34280
|
setTimeout(() => {
|
|
34222
34281
|
this.reset_updw();
|
|
34223
34282
|
}, 800);
|
|
@@ -40338,5 +40397,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
40338
40397
|
* Generated bundle index. Do not edit.
|
|
40339
40398
|
*/
|
|
40340
40399
|
|
|
40341
|
-
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, 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 };
|
|
40400
|
+
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, 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 };
|
|
40342
40401
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|