@fluxhub/fluxhub-lib 18.0.33 → 18.0.35
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/esm2022/lib/controls/fh-grid.mjs +10 -8
- package/esm2022/lib/controls/fh-gridn.mjs +9 -7
- package/esm2022/lib/controls/fh-notes-panel.mjs +9 -3
- package/esm2022/lib/controls/grid_editors/fh-grid.mjs +10 -8
- package/esm2022/lib/services/app-maker.service.mjs +3 -2
- package/esm2022/lib/services/dofile.service.mjs +3 -2
- package/esm2022/lib/services/doquery-odbc.service.mjs +3 -2
- package/esm2022/lib/services/doquery.service.mjs +3 -3
- package/esm2022/lib/services/dowkf.service.mjs +3 -2
- package/esm2022/lib/services/error-reporter.mjs +15 -1
- package/esm2022/lib/services/grid.service.mjs +3 -3
- package/esm2022/lib/services/login.service.mjs +10 -9
- package/esm2022/lib/wkf_engine/win-comments.mjs +9 -3
- package/esm2022/lib/wkf_engine_v2/win-comments.mjs +9 -3
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/fluxhub-fluxhub-lib.mjs +150 -112
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/lib/controls/fh-grid.d.ts +1 -1
- package/lib/controls/fh-gridn.d.ts +1 -1
- package/lib/controls/grid_editors/fh-grid.d.ts +1 -1
- package/lib/services/error-reporter.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { InjectionToken, Injectable, inject, forwardRef, EventEmitter, Component, Input, ViewChild, Output, Inject, Pipe, Directive, HostListener, ViewContainerRef, Optional, HostBinding, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common/http';
|
|
4
|
-
import {
|
|
4
|
+
import { HttpErrorResponse, HttpHeaders } 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';
|
|
@@ -100,6 +100,89 @@ class QParam {
|
|
|
100
100
|
names = new Array();
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
104
|
+
const FH_ERROR_REPORTER = new InjectionToken('FH_ERROR_REPORTER');
|
|
105
|
+
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
106
|
+
const FH_EVENT_ID_HEADER = 'X-FH-Event-Id';
|
|
107
|
+
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
108
|
+
const FH_ROUTE_HEADER = 'X-FH-Route';
|
|
109
|
+
/** Pagina corrente: i portali usano l'hash routing (/#/home), altrimenti il path. */
|
|
110
|
+
function fhCurrentRoute() {
|
|
111
|
+
try {
|
|
112
|
+
const h = window.location.hash || '';
|
|
113
|
+
const r = h.startsWith('#') ? h.substring(1) : window.location.pathname;
|
|
114
|
+
// Va in un header HTTP: solo ASCII stampabile, il resto codificato.
|
|
115
|
+
return (r.split('?')[0] || '/')
|
|
116
|
+
.substring(0, 200)
|
|
117
|
+
.replace(/[^\x20-\x7E]/g, (c) => encodeURIComponent(c));
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
return '';
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function fhEndpointOf(url) {
|
|
124
|
+
if (!url)
|
|
125
|
+
return '';
|
|
126
|
+
try {
|
|
127
|
+
// Solo l'ultimo segmento (/doquery, /dogridn): il prefisso del reverse proxy
|
|
128
|
+
// (/fh3/...) cambia da portale a portale e il backend non lo vede.
|
|
129
|
+
const segs = new URL(url, window.location.href).pathname.split('/').filter((x) => x);
|
|
130
|
+
return '/' + (segs[segs.length - 1] || '');
|
|
131
|
+
}
|
|
132
|
+
catch {
|
|
133
|
+
return url;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/** Invoca il reporter senza mai far fallire la chiamata dati per colpa sua. */
|
|
137
|
+
function fhReport(reporter, r) {
|
|
138
|
+
if (!reporter || !r)
|
|
139
|
+
return;
|
|
140
|
+
try {
|
|
141
|
+
reporter(r);
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
// il monitoraggio non deve mai rompere il portale
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/** Report per un errore di trasporto, o null se non va segnalato. */
|
|
148
|
+
function fhHttpErrorReport(err, base) {
|
|
149
|
+
if (!(err instanceof HttpErrorResponse))
|
|
150
|
+
return null;
|
|
151
|
+
// 401 lo gestisce l'interceptor (refresh token); 0 e' rete assente o richiesta
|
|
152
|
+
// interrotta dal cambio pagina: rumore. Si segnalano gli errori del server.
|
|
153
|
+
if (err.status < 500)
|
|
154
|
+
return null;
|
|
155
|
+
return {
|
|
156
|
+
...base,
|
|
157
|
+
kind: 'http',
|
|
158
|
+
status: err.status,
|
|
159
|
+
message: `${err.status} ${err.statusText || ''}`.trim(),
|
|
160
|
+
serverEventId: fhEventId(err.headers),
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function fhEventId(h) {
|
|
164
|
+
try {
|
|
165
|
+
return h?.get(FH_EVENT_ID_HEADER) || null;
|
|
166
|
+
}
|
|
167
|
+
catch {
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Errore rilanciato dai servizi dati dopo un KO gia' mostrato a video (toast) e, per
|
|
173
|
+
* query e griglie, gia' segnalato: serve solo a interrompere la catena del chiamante.
|
|
174
|
+
* Se il chiamante non lo gestisce arriverebbe a Rustrak come "Error: No error message",
|
|
175
|
+
* doppione del KO: il portale lo riconosce con fhIsHandled() e lo scarta.
|
|
176
|
+
*/
|
|
177
|
+
function fhHandledError() {
|
|
178
|
+
const e = new Error();
|
|
179
|
+
e.fhHandled = true;
|
|
180
|
+
return e;
|
|
181
|
+
}
|
|
182
|
+
function fhIsHandled(err) {
|
|
183
|
+
return !!err?.fhHandled;
|
|
184
|
+
}
|
|
185
|
+
|
|
103
186
|
class QGResult {
|
|
104
187
|
result_msg = '';
|
|
105
188
|
msg = '';
|
|
@@ -1231,7 +1314,7 @@ class AuthenticationService {
|
|
|
1231
1314
|
if (displayError) {
|
|
1232
1315
|
this.toastr.error(err.message);
|
|
1233
1316
|
}
|
|
1234
|
-
throw
|
|
1317
|
+
throw fhHandledError();
|
|
1235
1318
|
}
|
|
1236
1319
|
return res || new QGResult();
|
|
1237
1320
|
}), catchError((err) => {
|
|
@@ -1276,7 +1359,7 @@ class AuthenticationService {
|
|
|
1276
1359
|
if (displayError) {
|
|
1277
1360
|
this.toastr.error(err.message);
|
|
1278
1361
|
}
|
|
1279
|
-
throw
|
|
1362
|
+
throw fhHandledError();
|
|
1280
1363
|
}
|
|
1281
1364
|
return res || new QGResult();
|
|
1282
1365
|
}), catchError((err) => {
|
|
@@ -1320,7 +1403,7 @@ class AuthenticationService {
|
|
|
1320
1403
|
if (displayError) {
|
|
1321
1404
|
this.toastr.error(err.message);
|
|
1322
1405
|
}
|
|
1323
|
-
throw
|
|
1406
|
+
throw fhHandledError();
|
|
1324
1407
|
}
|
|
1325
1408
|
return res || new QGResult();
|
|
1326
1409
|
}), catchError((err) => {
|
|
@@ -1355,7 +1438,7 @@ class AuthenticationService {
|
|
|
1355
1438
|
if (displayError) {
|
|
1356
1439
|
this.toastr.error(err.message);
|
|
1357
1440
|
}
|
|
1358
|
-
throw
|
|
1441
|
+
throw fhHandledError();
|
|
1359
1442
|
}
|
|
1360
1443
|
return res || new QGResult();
|
|
1361
1444
|
}), catchError((err) => {
|
|
@@ -1390,7 +1473,7 @@ class AuthenticationService {
|
|
|
1390
1473
|
if (displayError) {
|
|
1391
1474
|
this.toastr.error(err.message);
|
|
1392
1475
|
}
|
|
1393
|
-
throw
|
|
1476
|
+
throw fhHandledError();
|
|
1394
1477
|
}
|
|
1395
1478
|
return res || new QGResult();
|
|
1396
1479
|
}), catchError((err) => {
|
|
@@ -1429,7 +1512,7 @@ class AuthenticationService {
|
|
|
1429
1512
|
if (displayError) {
|
|
1430
1513
|
this.toastr.error(err.message);
|
|
1431
1514
|
}
|
|
1432
|
-
throw
|
|
1515
|
+
throw fhHandledError();
|
|
1433
1516
|
}
|
|
1434
1517
|
return res || new QGResult();
|
|
1435
1518
|
}), catchError((err) => {
|
|
@@ -1463,7 +1546,7 @@ class AuthenticationService {
|
|
|
1463
1546
|
if (displayError) {
|
|
1464
1547
|
this.toastr.error(err.message);
|
|
1465
1548
|
}
|
|
1466
|
-
throw
|
|
1549
|
+
throw fhHandledError();
|
|
1467
1550
|
}
|
|
1468
1551
|
return res || new QGResult();
|
|
1469
1552
|
}), catchError((err) => {
|
|
@@ -1501,7 +1584,7 @@ class AuthenticationService {
|
|
|
1501
1584
|
if (displayError) {
|
|
1502
1585
|
this.toastr.error(err.message);
|
|
1503
1586
|
}
|
|
1504
|
-
throw
|
|
1587
|
+
throw fhHandledError();
|
|
1505
1588
|
}
|
|
1506
1589
|
return res || new QGResult();
|
|
1507
1590
|
}), catchError((err) => {
|
|
@@ -1544,75 +1627,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1544
1627
|
}]
|
|
1545
1628
|
}], ctorParameters: () => [{ type: i3.ToastrService }, { type: i1$1.HttpClient }, { type: i3$1.Router }, { type: AppService }, { type: UtilityService }] });
|
|
1546
1629
|
|
|
1547
|
-
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
1548
|
-
const FH_ERROR_REPORTER = new InjectionToken('FH_ERROR_REPORTER');
|
|
1549
|
-
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
1550
|
-
const FH_EVENT_ID_HEADER = 'X-FH-Event-Id';
|
|
1551
|
-
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
1552
|
-
const FH_ROUTE_HEADER = 'X-FH-Route';
|
|
1553
|
-
/** Pagina corrente: i portali usano l'hash routing (/#/home), altrimenti il path. */
|
|
1554
|
-
function fhCurrentRoute() {
|
|
1555
|
-
try {
|
|
1556
|
-
const h = window.location.hash || '';
|
|
1557
|
-
const r = h.startsWith('#') ? h.substring(1) : window.location.pathname;
|
|
1558
|
-
// Va in un header HTTP: solo ASCII stampabile, il resto codificato.
|
|
1559
|
-
return (r.split('?')[0] || '/')
|
|
1560
|
-
.substring(0, 200)
|
|
1561
|
-
.replace(/[^\x20-\x7E]/g, (c) => encodeURIComponent(c));
|
|
1562
|
-
}
|
|
1563
|
-
catch {
|
|
1564
|
-
return '';
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
function fhEndpointOf(url) {
|
|
1568
|
-
if (!url)
|
|
1569
|
-
return '';
|
|
1570
|
-
try {
|
|
1571
|
-
// Solo l'ultimo segmento (/doquery, /dogridn): il prefisso del reverse proxy
|
|
1572
|
-
// (/fh3/...) cambia da portale a portale e il backend non lo vede.
|
|
1573
|
-
const segs = new URL(url, window.location.href).pathname.split('/').filter((x) => x);
|
|
1574
|
-
return '/' + (segs[segs.length - 1] || '');
|
|
1575
|
-
}
|
|
1576
|
-
catch {
|
|
1577
|
-
return url;
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
/** Invoca il reporter senza mai far fallire la chiamata dati per colpa sua. */
|
|
1581
|
-
function fhReport(reporter, r) {
|
|
1582
|
-
if (!reporter || !r)
|
|
1583
|
-
return;
|
|
1584
|
-
try {
|
|
1585
|
-
reporter(r);
|
|
1586
|
-
}
|
|
1587
|
-
catch {
|
|
1588
|
-
// il monitoraggio non deve mai rompere il portale
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
/** Report per un errore di trasporto, o null se non va segnalato. */
|
|
1592
|
-
function fhHttpErrorReport(err, base) {
|
|
1593
|
-
if (!(err instanceof HttpErrorResponse))
|
|
1594
|
-
return null;
|
|
1595
|
-
// 401 lo gestisce l'interceptor (refresh token); 0 e' rete assente o richiesta
|
|
1596
|
-
// interrotta dal cambio pagina: rumore. Si segnalano gli errori del server.
|
|
1597
|
-
if (err.status < 500)
|
|
1598
|
-
return null;
|
|
1599
|
-
return {
|
|
1600
|
-
...base,
|
|
1601
|
-
kind: 'http',
|
|
1602
|
-
status: err.status,
|
|
1603
|
-
message: `${err.status} ${err.statusText || ''}`.trim(),
|
|
1604
|
-
serverEventId: fhEventId(err.headers),
|
|
1605
|
-
};
|
|
1606
|
-
}
|
|
1607
|
-
function fhEventId(h) {
|
|
1608
|
-
try {
|
|
1609
|
-
return h?.get(FH_EVENT_ID_HEADER) || null;
|
|
1610
|
-
}
|
|
1611
|
-
catch {
|
|
1612
|
-
return null;
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
1630
|
class QueryService {
|
|
1617
1631
|
http;
|
|
1618
1632
|
toastr;
|
|
@@ -1739,7 +1753,7 @@ class QueryService {
|
|
|
1739
1753
|
if (err.message.indexOf('ORA-50012') == -1)
|
|
1740
1754
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
1741
1755
|
}
|
|
1742
|
-
throw
|
|
1756
|
+
throw fhHandledError();
|
|
1743
1757
|
}
|
|
1744
1758
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
1745
1759
|
if (!!res)
|
|
@@ -1968,7 +1982,7 @@ class OdbcService {
|
|
|
1968
1982
|
if (displayError) {
|
|
1969
1983
|
this.toastr.error(queryp.sql + ' ' + err.message);
|
|
1970
1984
|
}
|
|
1971
|
-
throw
|
|
1985
|
+
throw fhHandledError();
|
|
1972
1986
|
}
|
|
1973
1987
|
return res || new QGResult();
|
|
1974
1988
|
}), catchError((err) => {
|
|
@@ -7343,7 +7357,7 @@ class GridService {
|
|
|
7343
7357
|
if (displayError) {
|
|
7344
7358
|
this.toastr.error(err.message);
|
|
7345
7359
|
}
|
|
7346
|
-
throw
|
|
7360
|
+
throw fhHandledError();
|
|
7347
7361
|
}
|
|
7348
7362
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
7349
7363
|
if (!!res)
|
|
@@ -7415,7 +7429,7 @@ class FileService {
|
|
|
7415
7429
|
if (displayError) {
|
|
7416
7430
|
this.toastr.error(err.message);
|
|
7417
7431
|
}
|
|
7418
|
-
throw
|
|
7432
|
+
throw fhHandledError();
|
|
7419
7433
|
}
|
|
7420
7434
|
return res || new QGResult();
|
|
7421
7435
|
}), catchError((err) => {
|
|
@@ -9328,7 +9342,7 @@ class FHGridComponent {
|
|
|
9328
9342
|
if (obj_filtro.dateTo != null && obj_filtro.dateFrom != null) {
|
|
9329
9343
|
if (obj_filtro.dateFrom >= obj_filtro.dateTo) {
|
|
9330
9344
|
this._toast.error('Data inizio range deve essere maggiore di data fine range');
|
|
9331
|
-
return;
|
|
9345
|
+
return filter_v; // filtro invariato: undefined finirebbe concatenato nel WHERE
|
|
9332
9346
|
}
|
|
9333
9347
|
b_filter = true;
|
|
9334
9348
|
if (add_end)
|
|
@@ -10215,12 +10229,14 @@ class FHGridComponent {
|
|
|
10215
10229
|
this.check_end(format);
|
|
10216
10230
|
});
|
|
10217
10231
|
}
|
|
10218
|
-
|
|
10232
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
10233
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
10234
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
10219
10235
|
let p = new FSInput();
|
|
10220
10236
|
p.p1 =
|
|
10221
10237
|
this.m_appService.LOCAL_PATH +
|
|
10222
10238
|
'grid_reports\\' +
|
|
10223
|
-
|
|
10239
|
+
uiid +
|
|
10224
10240
|
'_' +
|
|
10225
10241
|
this.m_appService.user +
|
|
10226
10242
|
format;
|
|
@@ -10229,20 +10245,20 @@ class FHGridComponent {
|
|
|
10229
10245
|
if (data != null)
|
|
10230
10246
|
if (data.msg == 'N') {
|
|
10231
10247
|
setTimeout(() => {
|
|
10232
|
-
this.check_end(format);
|
|
10248
|
+
this.check_end(format, uiid, dialogRef);
|
|
10233
10249
|
}, 5000);
|
|
10234
10250
|
}
|
|
10235
10251
|
else {
|
|
10236
10252
|
setTimeout(() => {
|
|
10237
|
-
|
|
10253
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
10238
10254
|
});
|
|
10239
10255
|
setTimeout(() => {
|
|
10240
10256
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
10241
10257
|
'/grid_reports/' +
|
|
10242
|
-
|
|
10258
|
+
uiid +
|
|
10243
10259
|
'_' +
|
|
10244
10260
|
this.m_appService.user +
|
|
10245
|
-
format,
|
|
10261
|
+
format, uiid +
|
|
10246
10262
|
'_' +
|
|
10247
10263
|
this.m_appService.user +
|
|
10248
10264
|
format);
|
|
@@ -12323,12 +12339,14 @@ class FHGridComponentN {
|
|
|
12323
12339
|
this.check_end(type == 'pdf' ? '.pdf' : '.xlsx');
|
|
12324
12340
|
});
|
|
12325
12341
|
}
|
|
12326
|
-
|
|
12342
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
12343
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
12344
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
12327
12345
|
let p = new FSInput();
|
|
12328
12346
|
p.p1 =
|
|
12329
12347
|
this.m_appService.LOCAL_PATH +
|
|
12330
12348
|
'grid_reports\\' +
|
|
12331
|
-
|
|
12349
|
+
uiid +
|
|
12332
12350
|
'_' +
|
|
12333
12351
|
this.m_appService.user +
|
|
12334
12352
|
format;
|
|
@@ -12337,20 +12355,20 @@ class FHGridComponentN {
|
|
|
12337
12355
|
if (data != null)
|
|
12338
12356
|
if (data.msg == 'N') {
|
|
12339
12357
|
setTimeout(() => {
|
|
12340
|
-
this.check_end(format);
|
|
12358
|
+
this.check_end(format, uiid, dialogRef);
|
|
12341
12359
|
}, 1000);
|
|
12342
12360
|
}
|
|
12343
12361
|
else {
|
|
12344
12362
|
setTimeout(() => {
|
|
12345
|
-
|
|
12363
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
12346
12364
|
});
|
|
12347
12365
|
setTimeout(() => {
|
|
12348
12366
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
12349
12367
|
'/grid_reports/' +
|
|
12350
|
-
|
|
12368
|
+
uiid +
|
|
12351
12369
|
'_' +
|
|
12352
12370
|
this.m_appService.user +
|
|
12353
|
-
format,
|
|
12371
|
+
format, uiid +
|
|
12354
12372
|
'_' +
|
|
12355
12373
|
this.m_appService.user +
|
|
12356
12374
|
format);
|
|
@@ -17049,7 +17067,7 @@ class WkfService {
|
|
|
17049
17067
|
if (displayError) {
|
|
17050
17068
|
this.toastr.error(err.message);
|
|
17051
17069
|
}
|
|
17052
|
-
throw
|
|
17070
|
+
throw fhHandledError();
|
|
17053
17071
|
}
|
|
17054
17072
|
if (this.app_s.COMPANY_KEY == 'COCIF_')
|
|
17055
17073
|
if (!!res)
|
|
@@ -17212,7 +17230,10 @@ class FHNotesPanelComponent {
|
|
|
17212
17230
|
this.App +
|
|
17213
17231
|
'|' +
|
|
17214
17232
|
this.K;
|
|
17215
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
17233
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
17234
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
17235
|
+
error: () => { },
|
|
17236
|
+
});
|
|
17216
17237
|
ok_op = true;
|
|
17217
17238
|
this.b_edit = false;
|
|
17218
17239
|
this.refresh_list();
|
|
@@ -17245,7 +17266,10 @@ class FHNotesPanelComponent {
|
|
|
17245
17266
|
this.K +
|
|
17246
17267
|
'|' +
|
|
17247
17268
|
this.edit_id;
|
|
17248
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
17269
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
17270
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
17271
|
+
error: () => { },
|
|
17272
|
+
});
|
|
17249
17273
|
ok_op = true;
|
|
17250
17274
|
this.b_edit = false;
|
|
17251
17275
|
this.refresh_list();
|
|
@@ -26810,7 +26834,7 @@ class FHGridInternalComponent {
|
|
|
26810
26834
|
if (obj_filtro.dateTo != null && obj_filtro.dateFrom != null) {
|
|
26811
26835
|
if (obj_filtro.dateFrom >= obj_filtro.dateTo) {
|
|
26812
26836
|
this._toast.error('Data inizio range deve essere maggiore di data fine range');
|
|
26813
|
-
return;
|
|
26837
|
+
return filter_v; // filtro invariato: undefined finirebbe concatenato nel WHERE
|
|
26814
26838
|
}
|
|
26815
26839
|
b_filter = true;
|
|
26816
26840
|
if (add_end)
|
|
@@ -27694,12 +27718,14 @@ class FHGridInternalComponent {
|
|
|
27694
27718
|
this.check_end(format);
|
|
27695
27719
|
});
|
|
27696
27720
|
}
|
|
27697
|
-
|
|
27721
|
+
// uiid e finestra dell'export che ha avviato il controllo: con un secondo export
|
|
27722
|
+
// partito nel frattempo (doppio clic) this.uiid_stampa/dialogRef_W sono gia' dell'altro
|
|
27723
|
+
check_end(format, uiid = this.uiid_stampa, dialogRef = this.dialogRef_W) {
|
|
27698
27724
|
let p = new FSInput();
|
|
27699
27725
|
p.p1 =
|
|
27700
27726
|
this.m_appService.LOCAL_PATH +
|
|
27701
27727
|
'grid_reports\\' +
|
|
27702
|
-
|
|
27728
|
+
uiid +
|
|
27703
27729
|
'_' +
|
|
27704
27730
|
this.m_appService.user +
|
|
27705
27731
|
format;
|
|
@@ -27708,20 +27734,20 @@ class FHGridInternalComponent {
|
|
|
27708
27734
|
if (data != null)
|
|
27709
27735
|
if (data.msg == 'N') {
|
|
27710
27736
|
setTimeout(() => {
|
|
27711
|
-
this.check_end(format);
|
|
27737
|
+
this.check_end(format, uiid, dialogRef);
|
|
27712
27738
|
}, 5000);
|
|
27713
27739
|
}
|
|
27714
27740
|
else {
|
|
27715
27741
|
setTimeout(() => {
|
|
27716
|
-
|
|
27742
|
+
dialogRef?.componentInstance?.update_progess(100);
|
|
27717
27743
|
});
|
|
27718
27744
|
setTimeout(() => {
|
|
27719
27745
|
this.downloadFile(this.m_appService.COMPANY_SITE_ROOT +
|
|
27720
27746
|
'/grid_reports/' +
|
|
27721
|
-
|
|
27747
|
+
uiid +
|
|
27722
27748
|
'_' +
|
|
27723
27749
|
this.m_appService.user +
|
|
27724
|
-
format,
|
|
27750
|
+
format, uiid +
|
|
27725
27751
|
'_' +
|
|
27726
27752
|
this.m_appService.user +
|
|
27727
27753
|
format);
|
|
@@ -30293,7 +30319,7 @@ class AppMakerService {
|
|
|
30293
30319
|
if (displayError) {
|
|
30294
30320
|
this.toastr.error(err.message);
|
|
30295
30321
|
}
|
|
30296
|
-
throw
|
|
30322
|
+
throw fhHandledError();
|
|
30297
30323
|
}
|
|
30298
30324
|
return r || new QGResult();
|
|
30299
30325
|
}), catchError((err) => {
|
|
@@ -30851,7 +30877,10 @@ class win_commenti {
|
|
|
30851
30877
|
this.m_appService.getState().wkf_doc_info.uiid_app +
|
|
30852
30878
|
'|' +
|
|
30853
30879
|
this.m_appService.getState().wkf_doc_info.uiid_doc;
|
|
30854
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
30880
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
30881
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
30882
|
+
error: () => { },
|
|
30883
|
+
});
|
|
30855
30884
|
ok_op = true;
|
|
30856
30885
|
this.b_edit = false;
|
|
30857
30886
|
if (sdest != '')
|
|
@@ -30889,7 +30918,10 @@ class win_commenti {
|
|
|
30889
30918
|
this.m_appService.getState().wkf_doc_info.uiid_doc +
|
|
30890
30919
|
'|' +
|
|
30891
30920
|
this.edit_id;
|
|
30892
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
30921
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
30922
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
30923
|
+
error: () => { },
|
|
30924
|
+
});
|
|
30893
30925
|
ok_op = true;
|
|
30894
30926
|
this.b_edit = false;
|
|
30895
30927
|
if (sdest != '')
|
|
@@ -34789,7 +34821,10 @@ class win_commenti_v2 {
|
|
|
34789
34821
|
this.m_appService.getState().wkf_doc_info.uiid_app +
|
|
34790
34822
|
'|' +
|
|
34791
34823
|
this.m_appService.getState().wkf_doc_info.uiid_doc;
|
|
34792
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
34824
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
34825
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
34826
|
+
error: () => { },
|
|
34827
|
+
});
|
|
34793
34828
|
ok_op = true;
|
|
34794
34829
|
this.b_edit = false;
|
|
34795
34830
|
if (sdest != '')
|
|
@@ -34829,7 +34864,10 @@ class win_commenti_v2 {
|
|
|
34829
34864
|
this.m_appService.getState().wkf_doc_info.uiid_doc +
|
|
34830
34865
|
'|' +
|
|
34831
34866
|
this.edit_id;
|
|
34832
|
-
this.m_file.doQuery(p, false).subscribe(
|
|
34867
|
+
this.m_file.doQuery(p, false).subscribe({
|
|
34868
|
+
// hook facoltativo: il portale puo' non avere l'utility, il commento e' gia' salvato
|
|
34869
|
+
error: () => { },
|
|
34870
|
+
});
|
|
34833
34871
|
ok_op = true;
|
|
34834
34872
|
this.b_edit = false;
|
|
34835
34873
|
if (sdest != '')
|
|
@@ -46345,5 +46383,5 @@ const KNOWN_EXT = "3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT
|
|
|
46345
46383
|
* Generated bundle index. Do not edit.
|
|
46346
46384
|
*/
|
|
46347
46385
|
|
|
46348
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHColorPickerComponent, FHComboboxComponent, FHComboboxComponentFilter, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHImagePreview, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichTextComponent, FHRoleManager, FHTableManager, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUsersPickerComponent, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, FSInput, FSResult, FileService, FluxhublibModule, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_error, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2 };
|
|
46386
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHColorPickerComponent, FHComboboxComponent, FHComboboxComponentFilter, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHImagePreview, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichTextComponent, FHRoleManager, FHTableManager, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHUsersPickerComponent, FH_ERROR_REPORTER, FH_EVENT_ID_HEADER, FH_ROUTE_HEADER, FSInput, FSResult, FileService, FluxhublibModule, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fhHandledError, fhIsHandled, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_error, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2 };
|
|
46349
46387
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|