@fluxhub/fluxhub-lib 22.0.4 → 22.0.6
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 { Injectable, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, ViewChild, Inject, forwardRef, Optional, Pipe, HostListener, Directive, ViewEncapsulation, ViewContainerRef, ElementRef, ViewChildren, HostBinding } from '@angular/core';
|
|
2
|
+
import { Injectable, InjectionToken, inject, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, ViewChild, Inject, forwardRef, Optional, Pipe, HostListener, Directive, ViewEncapsulation, ViewContainerRef, ElementRef, ViewChildren, HostBinding } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders,
|
|
4
|
+
import { HttpHeaders, HttpErrorResponse, HttpEventType } from '@angular/common/http';
|
|
5
5
|
import { map, catchError, flatMap, debounceTime, switchMap, filter, take, tap } from 'rxjs/operators';
|
|
6
6
|
import * as i3$1 from 'ngx-toastr';
|
|
7
7
|
import * as i3$2 from '@angular/router';
|
|
@@ -1564,12 +1564,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
1564
1564
|
}]
|
|
1565
1565
|
}], ctorParameters: () => [{ type: i3$1.ToastrService }, { type: i1$1.HttpClient }, { type: i3$2.Router }, { type: AppService }, { type: UtilityService }] });
|
|
1566
1566
|
|
|
1567
|
+
/** Fornito dal portale: `{ provide: FH_ERROR_REPORTER, useValue: (r) => ... }` */
|
|
1568
|
+
const FH_ERROR_REPORTER = new InjectionToken('FH_ERROR_REPORTER');
|
|
1569
|
+
/** Header con cui il server dichiara di aver gia' registrato l'errore. */
|
|
1570
|
+
const FH_EVENT_ID_HEADER = 'X-FH-Event-Id';
|
|
1571
|
+
/** Header con la pagina del portale, letto dal server per arricchire i suoi eventi. */
|
|
1572
|
+
const FH_ROUTE_HEADER = 'X-FH-Route';
|
|
1573
|
+
/** Pagina corrente: i portali usano l'hash routing (/#/home), altrimenti il path. */
|
|
1574
|
+
function fhCurrentRoute() {
|
|
1575
|
+
try {
|
|
1576
|
+
const h = window.location.hash || '';
|
|
1577
|
+
const r = h.startsWith('#') ? h.substring(1) : window.location.pathname;
|
|
1578
|
+
// Va in un header HTTP: solo ASCII stampabile, il resto codificato.
|
|
1579
|
+
return (r.split('?')[0] || '/')
|
|
1580
|
+
.substring(0, 200)
|
|
1581
|
+
.replace(/[^\x20-\x7E]/g, (c) => encodeURIComponent(c));
|
|
1582
|
+
}
|
|
1583
|
+
catch {
|
|
1584
|
+
return '';
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
function fhEndpointOf(url) {
|
|
1588
|
+
if (!url)
|
|
1589
|
+
return '';
|
|
1590
|
+
try {
|
|
1591
|
+
// Solo l'ultimo segmento (/doquery, /dogridn): il prefisso del reverse proxy
|
|
1592
|
+
// (/fh3/...) cambia da portale a portale e il backend non lo vede.
|
|
1593
|
+
const segs = new URL(url, window.location.href).pathname.split('/').filter((x) => x);
|
|
1594
|
+
return '/' + (segs[segs.length - 1] || '');
|
|
1595
|
+
}
|
|
1596
|
+
catch {
|
|
1597
|
+
return url;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
/** Invoca il reporter senza mai far fallire la chiamata dati per colpa sua. */
|
|
1601
|
+
function fhReport(reporter, r) {
|
|
1602
|
+
if (!reporter || !r)
|
|
1603
|
+
return;
|
|
1604
|
+
try {
|
|
1605
|
+
reporter(r);
|
|
1606
|
+
}
|
|
1607
|
+
catch {
|
|
1608
|
+
// il monitoraggio non deve mai rompere il portale
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
/** Report per un errore di trasporto, o null se non va segnalato. */
|
|
1612
|
+
function fhHttpErrorReport(err, base) {
|
|
1613
|
+
if (!(err instanceof HttpErrorResponse))
|
|
1614
|
+
return null;
|
|
1615
|
+
// 401 lo gestisce l'interceptor (refresh token); 0 e' rete assente o richiesta
|
|
1616
|
+
// interrotta dal cambio pagina: rumore. Si segnalano gli errori del server.
|
|
1617
|
+
if (err.status < 500)
|
|
1618
|
+
return null;
|
|
1619
|
+
return {
|
|
1620
|
+
...base,
|
|
1621
|
+
kind: 'http',
|
|
1622
|
+
status: err.status,
|
|
1623
|
+
message: `${err.status} ${err.statusText || ''}`.trim(),
|
|
1624
|
+
serverEventId: fhEventId(err.headers),
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
function fhEventId(h) {
|
|
1628
|
+
try {
|
|
1629
|
+
return h?.get(FH_EVENT_ID_HEADER) || null;
|
|
1630
|
+
}
|
|
1631
|
+
catch {
|
|
1632
|
+
return null;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1567
1636
|
class QueryService {
|
|
1568
1637
|
http;
|
|
1569
1638
|
toastr;
|
|
1570
1639
|
app_s;
|
|
1571
1640
|
uti_s;
|
|
1572
1641
|
headers;
|
|
1642
|
+
// Opzionale: lo fornisce il portale che raccoglie gli errori (vedi error-reporter.ts)
|
|
1643
|
+
reporter = inject(FH_ERROR_REPORTER, { optional: true });
|
|
1573
1644
|
url = null;
|
|
1574
1645
|
constructor(http, toastr, app_s, uti_s) {
|
|
1575
1646
|
this.http = http;
|
|
@@ -1594,6 +1665,7 @@ class QueryService {
|
|
|
1594
1665
|
this.headers = new HttpHeaders({
|
|
1595
1666
|
"Content-Type": "application/json",
|
|
1596
1667
|
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
1668
|
+
[FH_ROUTE_HEADER]: fhCurrentRoute(),
|
|
1597
1669
|
});
|
|
1598
1670
|
if (url_sec == null)
|
|
1599
1671
|
this.url = this.app_s.API_ENDPOINT + this.app_s.QUERY_ENDPOINT;
|
|
@@ -1651,7 +1723,15 @@ class QueryService {
|
|
|
1651
1723
|
// se rilevo che sono sono localhost:4200 scrivo su console
|
|
1652
1724
|
if (isLocalhost) {
|
|
1653
1725
|
}
|
|
1654
|
-
|
|
1726
|
+
const base = {
|
|
1727
|
+
service: "query",
|
|
1728
|
+
endpoint: fhEndpointOf(this.url),
|
|
1729
|
+
key: queryp.sql || "",
|
|
1730
|
+
route: fhCurrentRoute(),
|
|
1731
|
+
displayError,
|
|
1732
|
+
};
|
|
1733
|
+
return this.http.post(this.url, post_v, { headers: this.headers, observe: "response" }).pipe(map((resp) => {
|
|
1734
|
+
const res = resp?.body;
|
|
1655
1735
|
this.app_s.complete();
|
|
1656
1736
|
// Handle errors, display if enabled
|
|
1657
1737
|
let err;
|
|
@@ -1662,6 +1742,12 @@ class QueryService {
|
|
|
1662
1742
|
err = new Error(res.msg);
|
|
1663
1743
|
}
|
|
1664
1744
|
if (err) {
|
|
1745
|
+
fhReport(this.reporter, {
|
|
1746
|
+
...base,
|
|
1747
|
+
kind: res ? "ko" : "empty",
|
|
1748
|
+
message: err.message || "",
|
|
1749
|
+
serverEventId: fhEventId(resp?.headers),
|
|
1750
|
+
});
|
|
1665
1751
|
console.error(err);
|
|
1666
1752
|
if (displayError) {
|
|
1667
1753
|
console.error(queryp.sql + ' ' + err.message);
|
|
@@ -1681,6 +1767,7 @@ class QueryService {
|
|
|
1681
1767
|
res.result_data = this.uti_s.convertKeysToLowerCase(res.result_data);
|
|
1682
1768
|
return res || new QGResult();
|
|
1683
1769
|
}), catchError((err) => {
|
|
1770
|
+
fhReport(this.reporter, fhHttpErrorReport(err, base));
|
|
1684
1771
|
let errMsg = err.message
|
|
1685
1772
|
? err.message
|
|
1686
1773
|
: err.status
|
|
@@ -10026,6 +10113,8 @@ class GridService {
|
|
|
10026
10113
|
toastr;
|
|
10027
10114
|
uti_s;
|
|
10028
10115
|
headers;
|
|
10116
|
+
// Opzionale: lo fornisce il portale che raccoglie gli errori (vedi error-reporter.ts)
|
|
10117
|
+
reporter = inject(FH_ERROR_REPORTER, { optional: true });
|
|
10029
10118
|
constructor(http, app_s, toastr, uti_s) {
|
|
10030
10119
|
this.http = http;
|
|
10031
10120
|
this.app_s = app_s;
|
|
@@ -10039,13 +10128,22 @@ class GridService {
|
|
|
10039
10128
|
this.headers = new HttpHeaders({
|
|
10040
10129
|
"Content-Type": "application/json",
|
|
10041
10130
|
Authorization: "Bearer " + localStorage.getItem(this.app_s.COMPANY_KEY + "token"),
|
|
10131
|
+
[FH_ROUTE_HEADER]: fhCurrentRoute(),
|
|
10042
10132
|
});
|
|
10043
10133
|
if (url_sec == null)
|
|
10044
10134
|
this.url = this.app_s.API_ENDPOINT + this.app_s.GRID_ENDPOINT;
|
|
10045
10135
|
else
|
|
10046
10136
|
this.url = url_sec;
|
|
10047
10137
|
let post_v = JSON.stringify(queryp);
|
|
10048
|
-
|
|
10138
|
+
const base = {
|
|
10139
|
+
service: "grid",
|
|
10140
|
+
endpoint: fhEndpointOf(this.url),
|
|
10141
|
+
key: queryp.kd || queryp.table || "",
|
|
10142
|
+
route: fhCurrentRoute(),
|
|
10143
|
+
displayError,
|
|
10144
|
+
};
|
|
10145
|
+
return this.http.post(this.url, post_v, { headers: this.headers, observe: "response" }).pipe(map((resp) => {
|
|
10146
|
+
const res = resp?.body;
|
|
10049
10147
|
this.app_s.complete();
|
|
10050
10148
|
// Handle errors, display if enabled
|
|
10051
10149
|
let err;
|
|
@@ -10056,6 +10154,12 @@ class GridService {
|
|
|
10056
10154
|
err = new Error(res.msg);
|
|
10057
10155
|
}
|
|
10058
10156
|
if (err) {
|
|
10157
|
+
fhReport(this.reporter, {
|
|
10158
|
+
...base,
|
|
10159
|
+
kind: res ? "ko" : "empty",
|
|
10160
|
+
message: err.message || "",
|
|
10161
|
+
serverEventId: fhEventId(resp?.headers),
|
|
10162
|
+
});
|
|
10059
10163
|
console.error(err);
|
|
10060
10164
|
if (displayError) {
|
|
10061
10165
|
this.toastr.error(err.message);
|
|
@@ -10068,6 +10172,7 @@ class GridService {
|
|
|
10068
10172
|
res.result_data = this.uti_s.convertKeysToLowerCase(res.result_data);
|
|
10069
10173
|
return res || new QGResult();
|
|
10070
10174
|
}), catchError((err) => {
|
|
10175
|
+
fhReport(this.reporter, fhHttpErrorReport(err, base));
|
|
10071
10176
|
// In a real world app, we might use a remote logging infrastructure
|
|
10072
10177
|
// We'd also dig deeper into the error to get a better message
|
|
10073
10178
|
let errMsg = err.message
|
|
@@ -38894,6 +38999,14 @@ class FHWorkflowTasksPanel {
|
|
|
38894
38999
|
* se l'applicativo esterno lo ha concluso per errore.
|
|
38895
39000
|
*/
|
|
38896
39001
|
ext_tasks = [];
|
|
39002
|
+
/**
|
|
39003
|
+
* Righe di sola lettura da mostrare tra i task (vedi `FHTaskExtraRow`), ciascuna dopo
|
|
39004
|
+
* il task con il suo `after_check_key`. Passare un riferimento stabile e sostituirlo
|
|
39005
|
+
* (non mutarlo) quando cambiano i dati: il pannello lo confronta per riferimento.
|
|
39006
|
+
*
|
|
39007
|
+
* [ext_rows]="[{after_check_key:'50_COM_PREVENTIVA', title:'ATTESA ESITO GSE', status:'In attesa'}]"
|
|
39008
|
+
*/
|
|
39009
|
+
ext_rows = [];
|
|
38897
39010
|
title = 'Attività dello step';
|
|
38898
39011
|
claim_label = 'PRENDI IN CARICO';
|
|
38899
39012
|
release_label = 'Rilascia la presa in carico';
|
|
@@ -38916,6 +39029,8 @@ class FHWorkflowTasksPanel {
|
|
|
38916
39029
|
// Valori pre-calcolati: MAI getter dinamici nel template (un getter che costruisce
|
|
38917
39030
|
// array darebbe a *ngFor un riferimento nuovo a ogni change detection).
|
|
38918
39031
|
tasks = [];
|
|
39032
|
+
/** Task e righe extra nell'ordine in cui si vedono (le extra hanno `_extra`). */
|
|
39033
|
+
rows = [];
|
|
38919
39034
|
totalRequired = 0;
|
|
38920
39035
|
doneRequired = 0;
|
|
38921
39036
|
progressPct = 0;
|
|
@@ -38923,16 +39038,21 @@ class FHWorkflowTasksPanel {
|
|
|
38923
39038
|
_lastTasksRef = null;
|
|
38924
39039
|
/** Idem per `ext_tasks`: se cambia l'input vanno ricalcolate le indicazioni. */
|
|
38925
39040
|
_lastExtRef = null;
|
|
39041
|
+
/** Idem per `ext_rows`. */
|
|
39042
|
+
_lastRowsRef = null;
|
|
38926
39043
|
constructor(dialog, toastr) {
|
|
38927
39044
|
this.dialog = dialog;
|
|
38928
39045
|
this.toastr = toastr;
|
|
38929
39046
|
}
|
|
38930
39047
|
ngDoCheck() {
|
|
38931
39048
|
const tasks = this.dt_agg?.step_tasks || null;
|
|
38932
|
-
if (tasks === this._lastTasksRef &&
|
|
39049
|
+
if (tasks === this._lastTasksRef &&
|
|
39050
|
+
this.ext_tasks === this._lastExtRef &&
|
|
39051
|
+
this.ext_rows === this._lastRowsRef)
|
|
38933
39052
|
return; // confronto per riferimento: O(1)
|
|
38934
39053
|
this._lastTasksRef = tasks;
|
|
38935
39054
|
this._lastExtRef = this.ext_tasks;
|
|
39055
|
+
this._lastRowsRef = this.ext_rows;
|
|
38936
39056
|
this.rebuild();
|
|
38937
39057
|
}
|
|
38938
39058
|
rebuild() {
|
|
@@ -38957,6 +39077,20 @@ class FHWorkflowTasksPanel {
|
|
|
38957
39077
|
t._ext_icon = ext && ext.icon ? ext.icon : 'open_in_new';
|
|
38958
39078
|
}
|
|
38959
39079
|
this.tasks = tasks;
|
|
39080
|
+
// Righe extra subito dopo il loro task; senza un task corrispondente in fondo.
|
|
39081
|
+
const extra = (this.ext_rows || []).filter((r) => !!r);
|
|
39082
|
+
const rows = [];
|
|
39083
|
+
for (const t of tasks) {
|
|
39084
|
+
rows.push(t);
|
|
39085
|
+
for (const r of extra)
|
|
39086
|
+
if (r.after_check_key && t.check_key && r.after_check_key === t.check_key)
|
|
39087
|
+
rows.push({ ...r, _extra: true });
|
|
39088
|
+
}
|
|
39089
|
+
const keys = new Set(tasks.map((t) => t.check_key).filter(Boolean));
|
|
39090
|
+
for (const r of extra)
|
|
39091
|
+
if (!r.after_check_key || !keys.has(r.after_check_key))
|
|
39092
|
+
rows.push({ ...r, _extra: true });
|
|
39093
|
+
this.rows = rows;
|
|
38960
39094
|
const req = tasks.filter((t) => t.required === 1);
|
|
38961
39095
|
this.totalRequired = req.length;
|
|
38962
39096
|
this.doneRequired = req.filter((t) => t.stato === 1).length;
|
|
@@ -39066,7 +39200,7 @@ class FHWorkflowTasksPanel {
|
|
|
39066
39200
|
});
|
|
39067
39201
|
}
|
|
39068
39202
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FHWorkflowTasksPanel, deps: [{ token: i1$2.MatDialog }, { token: i3$1.ToastrService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
39069
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FHWorkflowTasksPanel, isStandalone: true, selector: "FHWorkflowTasksPanel", inputs: { dt_agg: "dt_agg", is_supervisor: "is_supervisor", ext_tasks: "ext_tasks", title: "title", claim_label: "claim_label", release_label: "release_label", force_release_label: "force_release_label", in_charge_label: "in_charge_label", in_charge_you_label: "in_charge_you_label", claim_lost_label: "claim_lost_label", close_label: "close_label", reopen_label: "reopen_label", optional_label: "optional_label", closed_by_label: "closed_by_label", empty_label: "empty_label", no_role_label: "no_role_label", after_label: "after_label", locked_label: "locked_label", reopen_confirm: "reopen_confirm", note_label: "note_label", last_task_title: "last_task_title", last_task_confirm: "last_task_confirm" }, ngImport: i0, template: `
|
|
39203
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: FHWorkflowTasksPanel, isStandalone: true, selector: "FHWorkflowTasksPanel", inputs: { dt_agg: "dt_agg", is_supervisor: "is_supervisor", ext_tasks: "ext_tasks", ext_rows: "ext_rows", title: "title", claim_label: "claim_label", release_label: "release_label", force_release_label: "force_release_label", in_charge_label: "in_charge_label", in_charge_you_label: "in_charge_you_label", claim_lost_label: "claim_lost_label", close_label: "close_label", reopen_label: "reopen_label", optional_label: "optional_label", closed_by_label: "closed_by_label", empty_label: "empty_label", no_role_label: "no_role_label", after_label: "after_label", locked_label: "locked_label", reopen_confirm: "reopen_confirm", note_label: "note_label", last_task_title: "last_task_title", last_task_confirm: "last_task_confirm" }, ngImport: i0, template: `
|
|
39070
39204
|
@if (dt_agg && dt_agg.step_mode === 'T') {
|
|
39071
39205
|
<div class="fh-tasks">
|
|
39072
39206
|
<div class="fh-tasks-head">
|
|
@@ -39095,7 +39229,26 @@ class FHWorkflowTasksPanel {
|
|
|
39095
39229
|
</div>
|
|
39096
39230
|
}
|
|
39097
39231
|
<div class="fh-lane">
|
|
39098
|
-
@for (t of
|
|
39232
|
+
@for (t of rows; track t) {
|
|
39233
|
+
@if (t._extra) {
|
|
39234
|
+
<!-- Riga extra (input ext_rows): sola lettura, nessun pulsante. -->
|
|
39235
|
+
<div class="fh-task fh-task-extra">
|
|
39236
|
+
<span
|
|
39237
|
+
class="material-symbols-outlined fh-task-ico"
|
|
39238
|
+
[style.color]="t.icon_color || null"
|
|
39239
|
+
>{{ t.icon || 'info' }}</span
|
|
39240
|
+
>
|
|
39241
|
+
<div class="fh-task-body">
|
|
39242
|
+
<div class="fh-task-title">{{ t.title }}</div>
|
|
39243
|
+
@if (t.meta) {
|
|
39244
|
+
<div class="fh-task-meta">{{ t.meta }}</div>
|
|
39245
|
+
}
|
|
39246
|
+
</div>
|
|
39247
|
+
@if (t.status) {
|
|
39248
|
+
<span class="fh-task-extra-st">{{ t.status }}</span>
|
|
39249
|
+
}
|
|
39250
|
+
</div>
|
|
39251
|
+
} @else {
|
|
39099
39252
|
<div class="fh-task" [class.fh-task-done]="t.stato === 1">
|
|
39100
39253
|
<span
|
|
39101
39254
|
class="material-symbols-outlined fh-task-ico"
|
|
@@ -39222,11 +39375,12 @@ class FHWorkflowTasksPanel {
|
|
|
39222
39375
|
</button>
|
|
39223
39376
|
}
|
|
39224
39377
|
</div>
|
|
39378
|
+
}
|
|
39225
39379
|
}
|
|
39226
39380
|
</div>
|
|
39227
39381
|
</div>
|
|
39228
39382
|
}
|
|
39229
|
-
`, isInline: true, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}.fh-task-ext{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-style:italic;color:#6b6363;border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:4px 10px;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i10$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i8$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
39383
|
+
`, isInline: true, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}.fh-task-extra-st{flex:0 0 auto;font-size:12px;color:#6b6363;white-space:nowrap}.fh-task-ext{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-style:italic;color:#6b6363;border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:4px 10px;white-space:nowrap}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i10$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i8$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
39230
39384
|
}
|
|
39231
39385
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FHWorkflowTasksPanel, decorators: [{
|
|
39232
39386
|
type: Component,
|
|
@@ -39265,7 +39419,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
39265
39419
|
</div>
|
|
39266
39420
|
}
|
|
39267
39421
|
<div class="fh-lane">
|
|
39268
|
-
@for (t of
|
|
39422
|
+
@for (t of rows; track t) {
|
|
39423
|
+
@if (t._extra) {
|
|
39424
|
+
<!-- Riga extra (input ext_rows): sola lettura, nessun pulsante. -->
|
|
39425
|
+
<div class="fh-task fh-task-extra">
|
|
39426
|
+
<span
|
|
39427
|
+
class="material-symbols-outlined fh-task-ico"
|
|
39428
|
+
[style.color]="t.icon_color || null"
|
|
39429
|
+
>{{ t.icon || 'info' }}</span
|
|
39430
|
+
>
|
|
39431
|
+
<div class="fh-task-body">
|
|
39432
|
+
<div class="fh-task-title">{{ t.title }}</div>
|
|
39433
|
+
@if (t.meta) {
|
|
39434
|
+
<div class="fh-task-meta">{{ t.meta }}</div>
|
|
39435
|
+
}
|
|
39436
|
+
</div>
|
|
39437
|
+
@if (t.status) {
|
|
39438
|
+
<span class="fh-task-extra-st">{{ t.status }}</span>
|
|
39439
|
+
}
|
|
39440
|
+
</div>
|
|
39441
|
+
} @else {
|
|
39269
39442
|
<div class="fh-task" [class.fh-task-done]="t.stato === 1">
|
|
39270
39443
|
<span
|
|
39271
39444
|
class="material-symbols-outlined fh-task-ico"
|
|
@@ -39392,11 +39565,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
39392
39565
|
</button>
|
|
39393
39566
|
}
|
|
39394
39567
|
</div>
|
|
39568
|
+
}
|
|
39395
39569
|
}
|
|
39396
39570
|
</div>
|
|
39397
39571
|
</div>
|
|
39398
39572
|
}
|
|
39399
|
-
`, changeDetection: ChangeDetectionStrategy.Eager, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}.fh-task-ext{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-style:italic;color:#6b6363;border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:4px 10px;white-space:nowrap}\n"] }]
|
|
39573
|
+
`, changeDetection: ChangeDetectionStrategy.Eager, styles: [".fh-tasks{border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:10px 14px 6px;margin:8px 0;background:#fff}.fh-tasks-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fh-tasks-title{font-weight:600}.fh-tasks-progress{font-size:12px;color:#6b6363;margin-left:auto}.fh-tasks-bar{width:120px;height:6px;border-radius:4px;background:#00000014;overflow:hidden}.fh-tasks-bar-fill{height:100%;background:#4caf50;transition:width .2s ease}.fh-tasks-empty{color:#6b6363;font-size:13px;padding:6px 0 10px}.fh-lane{margin-bottom:6px}.fh-task-dep{color:#6b6363;font-style:italic}.fh-task{display:flex;align-items:center;gap:10px;padding:6px 4px;border-top:1px solid rgba(0,0,0,.06)}.fh-task-done .fh-task-title{text-decoration:line-through;color:#6b6363}.fh-task-ico{color:#b0bec5}.fh-task-ico.done{color:#4caf50}.fh-task-ico.locked{color:#90a4ae}.fh-task-body{flex:1 1 auto;min-width:0}.fh-task-title{font-size:14px}.fh-task-opt{font-size:10px;font-weight:600;color:#6b6363;border:1px solid rgba(0,0,0,.18);border-radius:10px;padding:0 6px;margin-left:6px}.fh-task-meta{font-size:11px;color:#6b6363}.fh-task-lock{color:#e65100;font-weight:600}.fh-lock-ico{font-size:13px;vertical-align:text-bottom}.fh-task-note{font-size:12px;color:#455a64;font-style:italic;margin-top:2px}.fh-task-extra-st{flex:0 0 auto;font-size:12px;color:#6b6363;white-space:nowrap}.fh-task-ext{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-style:italic;color:#6b6363;border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:4px 10px;white-space:nowrap}\n"] }]
|
|
39400
39574
|
}], ctorParameters: () => [{ type: i1$2.MatDialog }, { type: i3$1.ToastrService, decorators: [{
|
|
39401
39575
|
type: Optional
|
|
39402
39576
|
}] }], propDecorators: { dt_agg: [{
|
|
@@ -39405,6 +39579,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
39405
39579
|
type: Input
|
|
39406
39580
|
}], ext_tasks: [{
|
|
39407
39581
|
type: Input
|
|
39582
|
+
}], ext_rows: [{
|
|
39583
|
+
type: Input
|
|
39408
39584
|
}], title: [{
|
|
39409
39585
|
type: Input
|
|
39410
39586
|
}], claim_label: [{
|
|
@@ -43196,5 +43372,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
43196
43372
|
* Generated bundle index. Do not edit.
|
|
43197
43373
|
*/
|
|
43198
43374
|
|
|
43199
|
-
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, 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, fh_win_translate, wkfField };
|
|
43375
|
+
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, fh_win_translate, wkfField };
|
|
43200
43376
|
//# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map
|