@fluxhub/fluxhub-lib 21.0.3 → 21.0.5
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { InjectionToken, Injectable, inject, forwardRef, EventEmitter, Input, Output, ViewChild, Component, Inject, Pipe, HostListener, Directive, ChangeDetectionStrategy, ViewEncapsulation, ViewContainerRef, Optional, HostBinding } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common/http';
|
|
4
|
-
import {
|
|
4
|
+
import { HttpErrorResponse, HttpHeaders, HttpEventType } from '@angular/common/http';
|
|
5
5
|
import { map, catchError, flatMap, debounceTime, switchMap, filter, take, tap } from 'rxjs/operators';
|
|
6
6
|
import * as i3 from 'ngx-toastr';
|
|
7
7
|
import * as i3$1 from '@angular/router';
|
|
@@ -88,6 +88,89 @@ class QParam {
|
|
|
88
88
|
names = new Array();
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
92
|
+
const FH_ERROR_REPORTER = new InjectionToken('FH_ERROR_REPORTER');
|
|
93
|
+
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
94
|
+
const FH_EVENT_ID_HEADER = 'X-FH-Event-Id';
|
|
95
|
+
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
96
|
+
const FH_ROUTE_HEADER = 'X-FH-Route';
|
|
97
|
+
/** Pagina corrente: i portali usano l'hash routing (/#/home), altrimenti il path. */
|
|
98
|
+
function fhCurrentRoute() {
|
|
99
|
+
try {
|
|
100
|
+
const h = window.location.hash || '';
|
|
101
|
+
const r = h.startsWith('#') ? h.substring(1) : window.location.pathname;
|
|
102
|
+
// Va in un header HTTP: solo ASCII stampabile, il resto codificato.
|
|
103
|
+
return (r.split('?')[0] || '/')
|
|
104
|
+
.substring(0, 200)
|
|
105
|
+
.replace(/[^\x20-\x7E]/g, (c) => encodeURIComponent(c));
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
return '';
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function fhEndpointOf(url) {
|
|
112
|
+
if (!url)
|
|
113
|
+
return '';
|
|
114
|
+
try {
|
|
115
|
+
// Solo l'ultimo segmento (/doquery, /dogridn): il prefisso del reverse proxy
|
|
116
|
+
// (/fh3/...) cambia da portale a portale e il backend non lo vede.
|
|
117
|
+
const segs = new URL(url, window.location.href).pathname.split('/').filter((x) => x);
|
|
118
|
+
return '/' + (segs[segs.length - 1] || '');
|
|
119
|
+
}
|
|
120
|
+
catch {
|
|
121
|
+
return url;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/** Invoca il reporter senza mai far fallire la chiamata dati per colpa sua. */
|
|
125
|
+
function fhReport(reporter, r) {
|
|
126
|
+
if (!reporter || !r)
|
|
127
|
+
return;
|
|
128
|
+
try {
|
|
129
|
+
reporter(r);
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
// il monitoraggio non deve mai rompere il portale
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
/** Report per un errore di trasporto, o null se non va segnalato. */
|
|
136
|
+
function fhHttpErrorReport(err, base) {
|
|
137
|
+
if (!(err instanceof HttpErrorResponse))
|
|
138
|
+
return null;
|
|
139
|
+
// 401 lo gestisce l'interceptor (refresh token); 0 e' rete assente o richiesta
|
|
140
|
+
// interrotta dal cambio pagina: rumore. Si segnalano gli errori del server.
|
|
141
|
+
if (err.status < 500)
|
|
142
|
+
return null;
|
|
143
|
+
return {
|
|
144
|
+
...base,
|
|
145
|
+
kind: 'http',
|
|
146
|
+
status: err.status,
|
|
147
|
+
message: `${err.status} ${err.statusText || ''}`.trim(),
|
|
148
|
+
serverEventId: fhEventId(err.headers),
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
function fhEventId(h) {
|
|
152
|
+
try {
|
|
153
|
+
return h?.get(FH_EVENT_ID_HEADER) || null;
|
|
154
|
+
}
|
|
155
|
+
catch {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Errore rilanciato dai servizi dati dopo un KO gia' mostrato a video (toast) e, per
|
|
161
|
+
* query e griglie, gia' segnalato: serve solo a interrompere la catena del chiamante.
|
|
162
|
+
* Se il chiamante non lo gestisce arriverebbe a Rustrak come "Error: No error message",
|
|
163
|
+
* doppione del KO: il portale lo riconosce con fhIsHandled() e lo scarta.
|
|
164
|
+
*/
|
|
165
|
+
function fhHandledError() {
|
|
166
|
+
const e = new Error();
|
|
167
|
+
e.fhHandled = true;
|
|
168
|
+
return e;
|
|
169
|
+
}
|
|
170
|
+
function fhIsHandled(err) {
|
|
171
|
+
return !!err?.fhHandled;
|
|
172
|
+
}
|
|
173
|
+
|
|
91
174
|
class QGResult {
|
|
92
175
|
result_msg = '';
|
|
93
176
|
msg = '';
|
|
@@ -1219,7 +1302,7 @@ class AuthenticationService {
|
|
|
1219
1302
|
if (displayError) {
|
|
1220
1303
|
this.toastr.error(err.message);
|
|
1221
1304
|
}
|
|
1222
|
-
throw
|
|
1305
|
+
throw fhHandledError();
|
|
1223
1306
|
}
|
|
1224
1307
|
return res || new QGResult();
|
|
1225
1308
|
}), catchError((err) => {
|
|
@@ -1264,7 +1347,7 @@ class AuthenticationService {
|
|
|
1264
1347
|
if (displayError) {
|
|
1265
1348
|
this.toastr.error(err.message);
|
|
1266
1349
|
}
|
|
1267
|
-
throw
|
|
1350
|
+
throw fhHandledError();
|
|
1268
1351
|
}
|
|
1269
1352
|
return res || new QGResult();
|
|
1270
1353
|
}), catchError((err) => {
|
|
@@ -1308,7 +1391,7 @@ class AuthenticationService {
|
|
|
1308
1391
|
if (displayError) {
|
|
1309
1392
|
this.toastr.error(err.message);
|
|
1310
1393
|
}
|
|
1311
|
-
throw
|
|
1394
|
+
throw fhHandledError();
|
|
1312
1395
|
}
|
|
1313
1396
|
return res || new QGResult();
|
|
1314
1397
|
}), catchError((err) => {
|
|
@@ -1343,7 +1426,7 @@ class AuthenticationService {
|
|
|
1343
1426
|
if (displayError) {
|
|
1344
1427
|
this.toastr.error(err.message);
|
|
1345
1428
|
}
|
|
1346
|
-
throw
|
|
1429
|
+
throw fhHandledError();
|
|
1347
1430
|
}
|
|
1348
1431
|
return res || new QGResult();
|
|
1349
1432
|
}), catchError((err) => {
|
|
@@ -1378,7 +1461,7 @@ class AuthenticationService {
|
|
|
1378
1461
|
if (displayError) {
|
|
1379
1462
|
this.toastr.error(err.message);
|
|
1380
1463
|
}
|
|
1381
|
-
throw
|
|
1464
|
+
throw fhHandledError();
|
|
1382
1465
|
}
|
|
1383
1466
|
return res || new QGResult();
|
|
1384
1467
|
}), catchError((err) => {
|
|
@@ -1417,7 +1500,7 @@ class AuthenticationService {
|
|
|
1417
1500
|
if (displayError) {
|
|
1418
1501
|
this.toastr.error(err.message);
|
|
1419
1502
|
}
|
|
1420
|
-
throw
|
|
1503
|
+
throw fhHandledError();
|
|
1421
1504
|
}
|
|
1422
1505
|
return res || new QGResult();
|
|
1423
1506
|
}), catchError((err) => {
|
|
@@ -1451,7 +1534,7 @@ class AuthenticationService {
|
|
|
1451
1534
|
if (displayError) {
|
|
1452
1535
|
this.toastr.error(err.message);
|
|
1453
1536
|
}
|
|
1454
|
-
throw
|
|
1537
|
+
throw fhHandledError();
|
|
1455
1538
|
}
|
|
1456
1539
|
return res || new QGResult();
|
|
1457
1540
|
}), catchError((err) => {
|
|
@@ -1489,7 +1572,7 @@ class AuthenticationService {
|
|
|
1489
1572
|
if (displayError) {
|
|
1490
1573
|
this.toastr.error(err.message);
|
|
1491
1574
|
}
|
|
1492
|
-
throw
|
|
1575
|
+
throw fhHandledError();
|
|
1493
1576
|
}
|
|
1494
1577
|
return res || new QGResult();
|
|
1495
1578
|
}), catchError((err) => {
|
|
@@ -1533,75 +1616,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
1533
1616
|
}]
|
|
1534
1617
|
}], ctorParameters: () => [{ type: i3.ToastrService }, { type: i1$1.HttpClient }, { type: i3$1.Router }, { type: AppService }, { type: UtilityService }] });
|
|
1535
1618
|
|
|
1536
|
-
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
1537
|
-
const FH_ERROR_REPORTER = new InjectionToken('FH_ERROR_REPORTER');
|
|
1538
|
-
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
1539
|
-
const FH_EVENT_ID_HEADER = 'X-FH-Event-Id';
|
|
1540
|
-
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
1541
|
-
const FH_ROUTE_HEADER = 'X-FH-Route';
|
|
1542
|
-
/** Pagina corrente: i portali usano l'hash routing (/#/home), altrimenti il path. */
|
|
1543
|
-
function fhCurrentRoute() {
|
|
1544
|
-
try {
|
|
1545
|
-
const h = window.location.hash || '';
|
|
1546
|
-
const r = h.startsWith('#') ? h.substring(1) : window.location.pathname;
|
|
1547
|
-
// Va in un header HTTP: solo ASCII stampabile, il resto codificato.
|
|
1548
|
-
return (r.split('?')[0] || '/')
|
|
1549
|
-
.substring(0, 200)
|
|
1550
|
-
.replace(/[^\x20-\x7E]/g, (c) => encodeURIComponent(c));
|
|
1551
|
-
}
|
|
1552
|
-
catch {
|
|
1553
|
-
return '';
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
function fhEndpointOf(url) {
|
|
1557
|
-
if (!url)
|
|
1558
|
-
return '';
|
|
1559
|
-
try {
|
|
1560
|
-
// Solo l'ultimo segmento (/doquery, /dogridn): il prefisso del reverse proxy
|
|
1561
|
-
// (/fh3/...) cambia da portale a portale e il backend non lo vede.
|
|
1562
|
-
const segs = new URL(url, window.location.href).pathname.split('/').filter((x) => x);
|
|
1563
|
-
return '/' + (segs[segs.length - 1] || '');
|
|
1564
|
-
}
|
|
1565
|
-
catch {
|
|
1566
|
-
return url;
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
/** Invoca il reporter senza mai far fallire la chiamata dati per colpa sua. */
|
|
1570
|
-
function fhReport(reporter, r) {
|
|
1571
|
-
if (!reporter || !r)
|
|
1572
|
-
return;
|
|
1573
|
-
try {
|
|
1574
|
-
reporter(r);
|
|
1575
|
-
}
|
|
1576
|
-
catch {
|
|
1577
|
-
// il monitoraggio non deve mai rompere il portale
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
/** Report per un errore di trasporto, o null se non va segnalato. */
|
|
1581
|
-
function fhHttpErrorReport(err, base) {
|
|
1582
|
-
if (!(err instanceof HttpErrorResponse))
|
|
1583
|
-
return null;
|
|
1584
|
-
// 401 lo gestisce l'interceptor (refresh token); 0 e' rete assente o richiesta
|
|
1585
|
-
// interrotta dal cambio pagina: rumore. Si segnalano gli errori del server.
|
|
1586
|
-
if (err.status < 500)
|
|
1587
|
-
return null;
|
|
1588
|
-
return {
|
|
1589
|
-
...base,
|
|
1590
|
-
kind: 'http',
|
|
1591
|
-
status: err.status,
|
|
1592
|
-
message: `${err.status} ${err.statusText || ''}`.trim(),
|
|
1593
|
-
serverEventId: fhEventId(err.headers),
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
|
-
function fhEventId(h) {
|
|
1597
|
-
try {
|
|
1598
|
-
return h?.get(FH_EVENT_ID_HEADER) || null;
|
|
1599
|
-
}
|
|
1600
|
-
catch {
|
|
1601
|
-
return null;
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
1619
|
class QueryService {
|
|
1606
1620
|
http;
|
|
1607
1621
|
toastr;
|
|
@@ -1723,7 +1737,7 @@ class QueryService {
|
|
|
1723
1737
|
if (err.message.indexOf('ORA-50012') == -1)
|
|
1724
1738
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
1725
1739
|
}
|
|
1726
|
-
throw
|
|
1740
|
+
throw fhHandledError();
|
|
1727
1741
|
}
|
|
1728
1742
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
1729
1743
|
if (!!res)
|
|
@@ -1932,7 +1946,7 @@ class OdbcService {
|
|
|
1932
1946
|
if (displayError) {
|
|
1933
1947
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
1934
1948
|
}
|
|
1935
|
-
throw
|
|
1949
|
+
throw fhHandledError();
|
|
1936
1950
|
}
|
|
1937
1951
|
return res || new QGResult();
|
|
1938
1952
|
}), catchError((err) => {
|
|
@@ -8898,7 +8912,7 @@ class GridService {
|
|
|
8898
8912
|
if (displayError) {
|
|
8899
8913
|
this.toastr.error(err.message);
|
|
8900
8914
|
}
|
|
8901
|
-
throw
|
|
8915
|
+
throw fhHandledError();
|
|
8902
8916
|
}
|
|
8903
8917
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
8904
8918
|
if (!!res)
|
|
@@ -8971,7 +8985,7 @@ class FileService {
|
|
|
8971
8985
|
if (displayError) {
|
|
8972
8986
|
this.toastr.error(err.message);
|
|
8973
8987
|
}
|
|
8974
|
-
throw
|
|
8988
|
+
throw fhHandledError();
|
|
8975
8989
|
}
|
|
8976
8990
|
return res || new QGResult();
|
|
8977
8991
|
}), catchError((err) => {
|
|
@@ -9557,12 +9571,14 @@ class FHGridComponent {
|
|
|
9557
9571
|
this.check_end(type == 'pdf' ? '.pdf' : '.xlsx');
|
|
9558
9572
|
});
|
|
9559
9573
|
}
|
|
9560
|
-
|
|
9574
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
9575
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
9576
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
9561
9577
|
let p = new FSInput();
|
|
9562
9578
|
p.p1 =
|
|
9563
9579
|
this.m_appService.LOCAL_PATH +
|
|
9564
9580
|
'grid_reports\\' +
|
|
9565
|
-
|
|
9581
|
+
uiid +
|
|
9566
9582
|
'_' +
|
|
9567
9583
|
this.m_appService.user +
|
|
9568
9584
|
format;
|
|
@@ -9571,20 +9587,20 @@ class FHGridComponent {
|
|
|
9571
9587
|
if (data != null)
|
|
9572
9588
|
if (data.msg == 'N') {
|
|
9573
9589
|
setTimeout(() => {
|
|
9574
|
-
this.check_end(format);
|
|
9590
|
+
this.check_end(format, uiid, dialogRef);
|
|
9575
9591
|
}, 1000);
|
|
9576
9592
|
}
|
|
9577
9593
|
else {
|
|
9578
9594
|
setTimeout(() => {
|
|
9579
|
-
|
|
9595
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
9580
9596
|
});
|
|
9581
9597
|
setTimeout(() => {
|
|
9582
9598
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
9583
9599
|
'/grid_reports/' +
|
|
9584
|
-
|
|
9600
|
+
uiid +
|
|
9585
9601
|
'_' +
|
|
9586
9602
|
this.m_appService.user +
|
|
9587
|
-
format,
|
|
9603
|
+
format, uiid +
|
|
9588
9604
|
'_' +
|
|
9589
9605
|
this.m_appService.user +
|
|
9590
9606
|
format);
|
|
@@ -14988,7 +15004,7 @@ class WkfService {
|
|
|
14988
15004
|
if (displayError) {
|
|
14989
15005
|
this.toastr.error(err.message);
|
|
14990
15006
|
}
|
|
14991
|
-
throw
|
|
15007
|
+
throw fhHandledError();
|
|
14992
15008
|
}
|
|
14993
15009
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
14994
15010
|
if (!!res)
|
|
@@ -15149,7 +15165,10 @@ class FHNotesPanelComponent {
|
|
|
15149
15165
|
this.App +
|
|
15150
15166
|
'|' +
|
|
15151
15167
|
this.K;
|
|
15152
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
15168
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
15169
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
15170
|
+
error: () => { },
|
|
15171
|
+
});
|
|
15153
15172
|
ok_op = true;
|
|
15154
15173
|
this.b_edit = false;
|
|
15155
15174
|
this.refresh_list();
|
|
@@ -15182,7 +15201,10 @@ class FHNotesPanelComponent {
|
|
|
15182
15201
|
this.K +
|
|
15183
15202
|
'|' +
|
|
15184
15203
|
this.edit_id;
|
|
15185
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
15204
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
15205
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
15206
|
+
error: () => { },
|
|
15207
|
+
});
|
|
15186
15208
|
ok_op = true;
|
|
15187
15209
|
this.b_edit = false;
|
|
15188
15210
|
this.refresh_list();
|
|
@@ -26509,7 +26531,7 @@ class AppMakerService {
|
|
|
26509
26531
|
if (displayError) {
|
|
26510
26532
|
this.toastr.error(err.message);
|
|
26511
26533
|
}
|
|
26512
|
-
throw
|
|
26534
|
+
throw fhHandledError();
|
|
26513
26535
|
}
|
|
26514
26536
|
return r || new QGResult();
|
|
26515
26537
|
}), catchError((err) => {
|
|
@@ -27306,7 +27328,7 @@ class FHGridInternalComponent {
|
|
|
27306
27328
|
if (obj_filtro.dateTo != null && obj_filtro.dateFrom != null) {
|
|
27307
27329
|
if (obj_filtro.dateFrom >= obj_filtro.dateTo) {
|
|
27308
27330
|
this._toast.error('Data inizio range deve essere maggiore di data fine range');
|
|
27309
|
-
return;
|
|
27331
|
+
return filter_v; // filtro invariato: undefined finirebbe concatenato nel WHERE
|
|
27310
27332
|
}
|
|
27311
27333
|
b_filter = true;
|
|
27312
27334
|
if (add_end)
|
|
@@ -28152,12 +28174,14 @@ class FHGridInternalComponent {
|
|
|
28152
28174
|
this.check_end(format);
|
|
28153
28175
|
});
|
|
28154
28176
|
}
|
|
28155
|
-
|
|
28177
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
28178
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
28179
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
28156
28180
|
let p = new FSInput();
|
|
28157
28181
|
p.p1 =
|
|
28158
28182
|
this.m_appService.LOCAL_PATH +
|
|
28159
28183
|
'grid_reports\\' +
|
|
28160
|
-
|
|
28184
|
+
uiid +
|
|
28161
28185
|
'_' +
|
|
28162
28186
|
this.m_appService.user +
|
|
28163
28187
|
format;
|
|
@@ -28166,20 +28190,20 @@ class FHGridInternalComponent {
|
|
|
28166
28190
|
if (data != null)
|
|
28167
28191
|
if (data.msg == 'N') {
|
|
28168
28192
|
setTimeout(() => {
|
|
28169
|
-
this.check_end(format);
|
|
28193
|
+
this.check_end(format, uiid, dialogRef);
|
|
28170
28194
|
}, 5000);
|
|
28171
28195
|
}
|
|
28172
28196
|
else {
|
|
28173
28197
|
setTimeout(() => {
|
|
28174
|
-
|
|
28198
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
28175
28199
|
});
|
|
28176
28200
|
setTimeout(() => {
|
|
28177
28201
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
28178
28202
|
'/grid_reports/' +
|
|
28179
|
-
|
|
28203
|
+
uiid +
|
|
28180
28204
|
'_' +
|
|
28181
28205
|
this.m_appService.user +
|
|
28182
|
-
format,
|
|
28206
|
+
format, uiid +
|
|
28183
28207
|
'_' +
|
|
28184
28208
|
this.m_appService.user +
|
|
28185
28209
|
format);
|
|
@@ -31278,7 +31302,10 @@ class win_commenti_v2 {
|
|
|
31278
31302
|
this.m_appService.getState().wkf_doc_info.uiid_app +
|
|
31279
31303
|
'|' +
|
|
31280
31304
|
this.m_appService.getState().wkf_doc_info.uiid_doc;
|
|
31281
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
31305
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
31306
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
31307
|
+
error: () => { },
|
|
31308
|
+
});
|
|
31282
31309
|
ok_op = true;
|
|
31283
31310
|
this.b_edit = false;
|
|
31284
31311
|
if (sdest != '')
|
|
@@ -31318,7 +31345,10 @@ class win_commenti_v2 {
|
|
|
31318
31345
|
this.m_appService.getState().wkf_doc_info.uiid_doc +
|
|
31319
31346
|
'|' +
|
|
31320
31347
|
this.edit_id;
|
|
31321
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
31348
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
31349
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
31350
|
+
error: () => { },
|
|
31351
|
+
});
|
|
31322
31352
|
ok_op = true;
|
|
31323
31353
|
this.b_edit = false;
|
|
31324
31354
|
if (sdest != '')
|
|
@@ -32320,7 +32350,10 @@ class win_log_v2 {
|
|
|
32320
32350
|
this.m_appService.getState().wkf_doc_info.uiid_app +
|
|
32321
32351
|
'|' +
|
|
32322
32352
|
this.m_appService.getState().wkf_doc_info.uiid_doc;
|
|
32323
|
-
this.m_file.doQuery(px, false).subscribe(
|
|
32353
|
+
this.m_file.doQuery(px, false).subscribe({
|
|
32354
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
32355
|
+
error: () => { },
|
|
32356
|
+
});
|
|
32324
32357
|
this.b_edit = false;
|
|
32325
32358
|
if (sdest != '')
|
|
32326
32359
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
|
|
@@ -32353,7 +32386,10 @@ class win_log_v2 {
|
|
|
32353
32386
|
this.m_appService.getState().wkf_doc_info.uiid_app +
|
|
32354
32387
|
'|' +
|
|
32355
32388
|
this.m_appService.getState().wkf_doc_info.uiid_doc;
|
|
32356
|
-
this.m_file.doQuery(px, false).subscribe(
|
|
32389
|
+
this.m_file.doQuery(px, false).subscribe({
|
|
32390
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
32391
|
+
error: () => { },
|
|
32392
|
+
});
|
|
32357
32393
|
this.b_edit = false;
|
|
32358
32394
|
if (sdest != '')
|
|
32359
32395
|
this.sendEMail_ex(this.m_appService.getState().wkf_doc_info.curr_user, sdest, this.subject
|
|
@@ -36255,7 +36291,7 @@ class RegistrationService {
|
|
|
36255
36291
|
if (displayError) {
|
|
36256
36292
|
this.toastr.error(err.message);
|
|
36257
36293
|
}
|
|
36258
|
-
throw
|
|
36294
|
+
throw fhHandledError();
|
|
36259
36295
|
}
|
|
36260
36296
|
return res || new QGResult();
|
|
36261
36297
|
}), catchError((err) => {
|
|
@@ -36377,7 +36413,7 @@ class QueryOpenService {
|
|
|
36377
36413
|
if (err.message.indexOf('ORA-50012') == -1)
|
|
36378
36414
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
36379
36415
|
}
|
|
36380
|
-
throw
|
|
36416
|
+
throw fhHandledError();
|
|
36381
36417
|
}
|
|
36382
36418
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
36383
36419
|
if (!!res)
|
|
@@ -36412,5 +36448,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
|
|
|
36412
36448
|
* Generated bundle index. Do not edit.
|
|
36413
36449
|
*/
|
|
36414
36450
|
|
|
36415
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, 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, 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 };
|
|
36451
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, 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, 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, fhHandledError, fhIsHandled };
|
|
36416
36452
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|