@fluxhub/fluxhub-lib 22.0.5 → 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.
|
@@ -38999,6 +38999,14 @@ class FHWorkflowTasksPanel {
|
|
|
38999
38999
|
* se l'applicativo esterno lo ha concluso per errore.
|
|
39000
39000
|
*/
|
|
39001
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 = [];
|
|
39002
39010
|
title = 'Attività dello step';
|
|
39003
39011
|
claim_label = 'PRENDI IN CARICO';
|
|
39004
39012
|
release_label = 'Rilascia la presa in carico';
|
|
@@ -39021,6 +39029,8 @@ class FHWorkflowTasksPanel {
|
|
|
39021
39029
|
// Valori pre-calcolati: MAI getter dinamici nel template (un getter che costruisce
|
|
39022
39030
|
// array darebbe a *ngFor un riferimento nuovo a ogni change detection).
|
|
39023
39031
|
tasks = [];
|
|
39032
|
+
/** Task e righe extra nell'ordine in cui si vedono (le extra hanno `_extra`). */
|
|
39033
|
+
rows = [];
|
|
39024
39034
|
totalRequired = 0;
|
|
39025
39035
|
doneRequired = 0;
|
|
39026
39036
|
progressPct = 0;
|
|
@@ -39028,16 +39038,21 @@ class FHWorkflowTasksPanel {
|
|
|
39028
39038
|
_lastTasksRef = null;
|
|
39029
39039
|
/** Idem per `ext_tasks`: se cambia l'input vanno ricalcolate le indicazioni. */
|
|
39030
39040
|
_lastExtRef = null;
|
|
39041
|
+
/** Idem per `ext_rows`. */
|
|
39042
|
+
_lastRowsRef = null;
|
|
39031
39043
|
constructor(dialog, toastr) {
|
|
39032
39044
|
this.dialog = dialog;
|
|
39033
39045
|
this.toastr = toastr;
|
|
39034
39046
|
}
|
|
39035
39047
|
ngDoCheck() {
|
|
39036
39048
|
const tasks = this.dt_agg?.step_tasks || null;
|
|
39037
|
-
if (tasks === this._lastTasksRef &&
|
|
39049
|
+
if (tasks === this._lastTasksRef &&
|
|
39050
|
+
this.ext_tasks === this._lastExtRef &&
|
|
39051
|
+
this.ext_rows === this._lastRowsRef)
|
|
39038
39052
|
return; // confronto per riferimento: O(1)
|
|
39039
39053
|
this._lastTasksRef = tasks;
|
|
39040
39054
|
this._lastExtRef = this.ext_tasks;
|
|
39055
|
+
this._lastRowsRef = this.ext_rows;
|
|
39041
39056
|
this.rebuild();
|
|
39042
39057
|
}
|
|
39043
39058
|
rebuild() {
|
|
@@ -39062,6 +39077,20 @@ class FHWorkflowTasksPanel {
|
|
|
39062
39077
|
t._ext_icon = ext && ext.icon ? ext.icon : 'open_in_new';
|
|
39063
39078
|
}
|
|
39064
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;
|
|
39065
39094
|
const req = tasks.filter((t) => t.required === 1);
|
|
39066
39095
|
this.totalRequired = req.length;
|
|
39067
39096
|
this.doneRequired = req.filter((t) => t.stato === 1).length;
|
|
@@ -39171,7 +39200,7 @@ class FHWorkflowTasksPanel {
|
|
|
39171
39200
|
});
|
|
39172
39201
|
}
|
|
39173
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 });
|
|
39174
|
-
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: `
|
|
39175
39204
|
@if (dt_agg && dt_agg.step_mode === 'T') {
|
|
39176
39205
|
<div class="fh-tasks">
|
|
39177
39206
|
<div class="fh-tasks-head">
|
|
@@ -39200,7 +39229,26 @@ class FHWorkflowTasksPanel {
|
|
|
39200
39229
|
</div>
|
|
39201
39230
|
}
|
|
39202
39231
|
<div class="fh-lane">
|
|
39203
|
-
@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 {
|
|
39204
39252
|
<div class="fh-task" [class.fh-task-done]="t.stato === 1">
|
|
39205
39253
|
<span
|
|
39206
39254
|
class="material-symbols-outlined fh-task-ico"
|
|
@@ -39327,11 +39375,12 @@ class FHWorkflowTasksPanel {
|
|
|
39327
39375
|
</button>
|
|
39328
39376
|
}
|
|
39329
39377
|
</div>
|
|
39378
|
+
}
|
|
39330
39379
|
}
|
|
39331
39380
|
</div>
|
|
39332
39381
|
</div>
|
|
39333
39382
|
}
|
|
39334
|
-
`, 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 });
|
|
39335
39384
|
}
|
|
39336
39385
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FHWorkflowTasksPanel, decorators: [{
|
|
39337
39386
|
type: Component,
|
|
@@ -39370,7 +39419,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
39370
39419
|
</div>
|
|
39371
39420
|
}
|
|
39372
39421
|
<div class="fh-lane">
|
|
39373
|
-
@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 {
|
|
39374
39442
|
<div class="fh-task" [class.fh-task-done]="t.stato === 1">
|
|
39375
39443
|
<span
|
|
39376
39444
|
class="material-symbols-outlined fh-task-ico"
|
|
@@ -39497,11 +39565,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
39497
39565
|
</button>
|
|
39498
39566
|
}
|
|
39499
39567
|
</div>
|
|
39568
|
+
}
|
|
39500
39569
|
}
|
|
39501
39570
|
</div>
|
|
39502
39571
|
</div>
|
|
39503
39572
|
}
|
|
39504
|
-
`, 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"] }]
|
|
39505
39574
|
}], ctorParameters: () => [{ type: i1$2.MatDialog }, { type: i3$1.ToastrService, decorators: [{
|
|
39506
39575
|
type: Optional
|
|
39507
39576
|
}] }], propDecorators: { dt_agg: [{
|
|
@@ -39510,6 +39579,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
|
|
|
39510
39579
|
type: Input
|
|
39511
39580
|
}], ext_tasks: [{
|
|
39512
39581
|
type: Input
|
|
39582
|
+
}], ext_rows: [{
|
|
39583
|
+
type: Input
|
|
39513
39584
|
}], title: [{
|
|
39514
39585
|
type: Input
|
|
39515
39586
|
}], claim_label: [{
|