@fluxhub/fluxhub-lib 19.0.248 → 19.0.250
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 = '';
|
|
@@ -9861,12 +9920,14 @@ class FHGridComponent {
|
|
|
9861
9920
|
this.check_end(type == 'pdf' ? '.pdf' : '.xlsx');
|
|
9862
9921
|
});
|
|
9863
9922
|
}
|
|
9864
|
-
|
|
9923
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
9924
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
9925
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
9865
9926
|
let p = new FSInput();
|
|
9866
9927
|
p.p1 =
|
|
9867
9928
|
this.m_appService.LOCAL_PATH +
|
|
9868
9929
|
'grid_reports' + (this.m_appService.LOCAL_PATH.indexOf('/') >= 0 ? '/' : '\\') +
|
|
9869
|
-
|
|
9930
|
+
uiid +
|
|
9870
9931
|
'_' +
|
|
9871
9932
|
this.m_appService.user +
|
|
9872
9933
|
format;
|
|
@@ -9875,20 +9936,20 @@ class FHGridComponent {
|
|
|
9875
9936
|
if (data != null)
|
|
9876
9937
|
if (data.msg == 'N') {
|
|
9877
9938
|
setTimeout(() => {
|
|
9878
|
-
this.check_end(format);
|
|
9939
|
+
this.check_end(format, uiid, dialogRef);
|
|
9879
9940
|
}, 1000);
|
|
9880
9941
|
}
|
|
9881
9942
|
else {
|
|
9882
9943
|
setTimeout(() => {
|
|
9883
|
-
|
|
9944
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
9884
9945
|
});
|
|
9885
9946
|
setTimeout(() => {
|
|
9886
9947
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
9887
9948
|
'/grid_reports/' +
|
|
9888
|
-
|
|
9949
|
+
uiid +
|
|
9889
9950
|
'_' +
|
|
9890
9951
|
this.m_appService.user +
|
|
9891
|
-
format,
|
|
9952
|
+
format, uiid +
|
|
9892
9953
|
'_' +
|
|
9893
9954
|
this.m_appService.user +
|
|
9894
9955
|
format);
|
|
@@ -40336,5 +40397,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
40336
40397
|
* Generated bundle index. Do not edit.
|
|
40337
40398
|
*/
|
|
40338
40399
|
|
|
40339
|
-
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 };
|
|
40340
40401
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|