@fluxhub/fluxhub-lib 9.0.50 → 9.0.52
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/bundles/fluxhub-fluxhub-lib.umd.js +36 -20
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +14 -12
- package/esm2015/lib/controls/fhuploadpanel.js +21 -12
- package/esm2015/lib/services/utility.service.js +4 -2
- package/esm2015/lib/wkf_engine/win_salva_annulla.js +19 -14
- package/esm5/lib/controls/fhgrid.js +14 -12
- package/esm5/lib/controls/fhuploadpanel.js +7 -2
- package/esm5/lib/services/utility.service.js +4 -2
- package/esm5/lib/wkf_engine/win_salva_annulla.js +18 -13
- package/fesm2015/fluxhub-fluxhub-lib.js +51 -31
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +36 -20
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel.d.ts +1 -0
- package/lib/wkf_engine/win_salva_annulla.d.ts +4 -5
- package/package.json +1 -1
|
@@ -491,11 +491,13 @@ let UtilityService = UtilityService_1 = class UtilityService {
|
|
|
491
491
|
// return new Date(parseInt(a[0]), parseInt(a[1]) - 1, parseInt(a[2]), parseInt(b[0]), parseInt(b[1]), parseInt(b[2]));
|
|
492
492
|
// }
|
|
493
493
|
}
|
|
494
|
-
if (f == 3) {
|
|
494
|
+
if (f == 3 || f == 5) {
|
|
495
495
|
if (dt.length >= 16) {
|
|
496
496
|
dt = dt.substring(0, 16);
|
|
497
497
|
var ab = dt.split(' ');
|
|
498
498
|
var a = ab[0].split('/');
|
|
499
|
+
if (f == 5)
|
|
500
|
+
a = ab[0].split('-');
|
|
499
501
|
var b = ab[1].split(':');
|
|
500
502
|
// console.log("a[0]): "+a[0]+"a[1] :"+a[1]+" a[2]"+a[2]);
|
|
501
503
|
// console.log(new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]),parseInt(b[0]),parseInt(b[1]),parseInt(b[2])));
|
|
@@ -3124,6 +3126,7 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
|
|
|
3124
3126
|
this.auth_s = auth_s;
|
|
3125
3127
|
this.uti = uti;
|
|
3126
3128
|
this.enabled = true;
|
|
3129
|
+
this.force_en = false;
|
|
3127
3130
|
this.label = '';
|
|
3128
3131
|
this.sovrascrivi_path = '';
|
|
3129
3132
|
this.ruolo_supervisore = '[ZZZ_DIS_CC]';
|
|
@@ -3380,6 +3383,10 @@ __decorate([
|
|
|
3380
3383
|
Input(),
|
|
3381
3384
|
__metadata("design:type", Boolean)
|
|
3382
3385
|
], FHUploadPanelComponent.prototype, "enabled", void 0);
|
|
3386
|
+
__decorate([
|
|
3387
|
+
Input(),
|
|
3388
|
+
__metadata("design:type", Boolean)
|
|
3389
|
+
], FHUploadPanelComponent.prototype, "force_en", void 0);
|
|
3383
3390
|
__decorate([
|
|
3384
3391
|
Input(),
|
|
3385
3392
|
__metadata("design:type", String)
|
|
@@ -3423,20 +3430,24 @@ FHUploadPanelComponent = __decorate([
|
|
|
3423
3430
|
<h3 *ngIf="label!=''">{{label}}</h3>
|
|
3424
3431
|
<div fxLayout="column">
|
|
3425
3432
|
<div [hidden]="!enabled">
|
|
3426
|
-
<FHUpload [single]="b_False"
|
|
3433
|
+
<FHUpload [single]="b_False"
|
|
3434
|
+
[label_attendere]="force_en?'UPLOADING':'ATTENDERE UPLOAD IN CORSO'"
|
|
3435
|
+
[fixed_label]="force_en?'UPLOADING':'Attachments description (insert the description here before uploading the file)'"
|
|
3436
|
+
[allegato_inserito]="force_en?'Attachment Inserted':'ALLEGATO INSERITO'"
|
|
3437
|
+
[lista_allegati]="arr_g" (change)="ref_allegato()" (call_upload)="call_up($event)" #upc></FHUpload>
|
|
3427
3438
|
</div>
|
|
3428
3439
|
<table width="98%" class="fh_table" *ngIf="!image_type && !b_mobile">
|
|
3429
3440
|
<thead>
|
|
3430
3441
|
<tr class="header">
|
|
3431
3442
|
<th style="width:40px"></th>
|
|
3432
|
-
<th style="width:50%">Nome</th>
|
|
3443
|
+
<th style="width:50%">{{force_en?'Name':'Nome'}}</th>
|
|
3433
3444
|
<th style="width:60px;text-align:center">Dim.</th>
|
|
3434
|
-
<th style="width:40%">Descrizione</th>
|
|
3435
|
-
<th *ngIf="multi_list" style="width:20%">Tipo</th>
|
|
3445
|
+
<th style="width:40%">{{force_en?'Description':'Descrizione'}}</th>
|
|
3446
|
+
<th *ngIf="multi_list" style="width:20%">{{force_en?'Type':'Tipo'}}</th>
|
|
3436
3447
|
|
|
3437
3448
|
<th style="width:40px" class="actions"></th>
|
|
3438
|
-
<th style="width:30%" >Utente</th>
|
|
3439
|
-
<th style="width:240px;text-align:center">Data</th>
|
|
3449
|
+
<th style="width:30%" >{{force_en?'User':'Utente'}}</th>
|
|
3450
|
+
<th style="width:240px;text-align:center">{{force_en?'Date':'Data'}}</th>
|
|
3440
3451
|
<th style="width:40px" class="actions"></th>
|
|
3441
3452
|
<th *ngIf="enabled" style="width:40px" class="actions"></th>
|
|
3442
3453
|
</tr>
|
|
@@ -3511,16 +3522,16 @@ FHUploadPanelComponent = __decorate([
|
|
|
3511
3522
|
<thead>
|
|
3512
3523
|
<tr class="header">
|
|
3513
3524
|
<th style="width:40px"></th>
|
|
3514
|
-
<th style="width:50%">Nome</th>
|
|
3525
|
+
<th style="width:50%">{{force_en?'Name':'Nome'}}</th>
|
|
3515
3526
|
<th style="width:60px;text-align:center">Dim.</th>
|
|
3516
3527
|
|
|
3517
|
-
<th style="width:20%">Descrizione</th>
|
|
3518
|
-
<th *ngIf="multi_list" style="width:10%">Tipo</th>
|
|
3528
|
+
<th style="width:20%">{{force_en?'Description':'Descrizione'}}</th>
|
|
3529
|
+
<th *ngIf="multi_list" style="width:10%">{{force_en?'Type':'Tipo'}}</th>
|
|
3519
3530
|
<th style="width:40%" ></th>
|
|
3520
3531
|
|
|
3521
3532
|
|
|
3522
|
-
<th style="width:10%" >Utente</th>
|
|
3523
|
-
<th style="width:240px;text-align:center">Data</th>
|
|
3533
|
+
<th style="width:10%" >{{force_en?'User':'Utente'}}</th>
|
|
3534
|
+
<th style="width:240px;text-align:center">{{force_en?'Date':'Data'}}</th>
|
|
3524
3535
|
<th style="width:40px" class="actions"></th>
|
|
3525
3536
|
<th *ngIf="enabled" style="width:40px" class="actions"></th>
|
|
3526
3537
|
</tr>
|
|
@@ -6201,30 +6212,30 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6201
6212
|
}
|
|
6202
6213
|
if (obj_filtro.dateTo != null || obj_filtro.dateFrom != null) {
|
|
6203
6214
|
b_filter = true;
|
|
6204
|
-
console.log('ENTRO: ', obj_filtro.dateFrom, obj_filtro.type, 'conv: ', this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6215
|
+
console.log('ENTRO: ', obj_filtro.dateFrom, obj_filtro.type, 'conv: ', this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)));
|
|
6205
6216
|
if (add_end)
|
|
6206
6217
|
filter_v = filter_v + ' and ';
|
|
6207
6218
|
filter_v = filter_v + ' (';
|
|
6208
|
-
if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6209
|
-
filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6210
|
-
if (obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo,
|
|
6219
|
+
if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) != 'dbnull')
|
|
6220
|
+
filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5));
|
|
6221
|
+
if (obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) != 'dbnull') {
|
|
6211
6222
|
if (obj_filtro.dateFrom != null)
|
|
6212
6223
|
filter_v = filter_v + ' and ';
|
|
6213
|
-
filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo,
|
|
6224
|
+
filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) + "";
|
|
6214
6225
|
}
|
|
6215
6226
|
else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
|
|
6216
6227
|
if (obj_filtro.type == "greaterThan")
|
|
6217
|
-
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6228
|
+
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6218
6229
|
if (obj_filtro.type == "equals")
|
|
6219
|
-
filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6230
|
+
filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') + ')';
|
|
6220
6231
|
if (obj_filtro.type == "notEqual")
|
|
6221
|
-
filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6232
|
+
filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6222
6233
|
if (obj_filtro.type == "lessThan")
|
|
6223
|
-
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6234
|
+
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6224
6235
|
if (obj_filtro.type == "lessThanOrEqual")
|
|
6225
|
-
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6236
|
+
filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6226
6237
|
if (obj_filtro.type == "greaterThanOrEqual")
|
|
6227
|
-
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom,
|
|
6238
|
+
filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
|
|
6228
6239
|
}
|
|
6229
6240
|
filter_v = filter_v + ' )';
|
|
6230
6241
|
}
|
|
@@ -6314,6 +6325,8 @@ let FHGridComponent = class FHGridComponent {
|
|
|
6314
6325
|
return "NA";
|
|
6315
6326
|
}
|
|
6316
6327
|
ngAfterViewInit() {
|
|
6328
|
+
if (this.grid_key == "PRO_H")
|
|
6329
|
+
this.no_pref = true;
|
|
6317
6330
|
setTimeout(() => {
|
|
6318
6331
|
if (this.end_point == null)
|
|
6319
6332
|
this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
|
|
@@ -9619,10 +9632,17 @@ FHListPick = __decorate([
|
|
|
9619
9632
|
], FHListPick);
|
|
9620
9633
|
|
|
9621
9634
|
let win_salva_annulla = class win_salva_annulla {
|
|
9622
|
-
constructor(dialogRef,
|
|
9635
|
+
constructor(dialogRef, data) {
|
|
9623
9636
|
this.dialogRef = dialogRef;
|
|
9624
|
-
this.
|
|
9625
|
-
this.
|
|
9637
|
+
this.data = data;
|
|
9638
|
+
this.salva_ed_esci = 'SALVA ED ESCI';
|
|
9639
|
+
this.esci_senza_salvataggi = 'ESCI SENZA SALVATAGGIO';
|
|
9640
|
+
if (data != null) {
|
|
9641
|
+
if (data.mgs_salva_ed_esci != null)
|
|
9642
|
+
this.salva_ed_esci = data.mgs_salva_ed_esci;
|
|
9643
|
+
if (data.msg_esci_senza_salvataggi != null)
|
|
9644
|
+
this.esci_senza_salvataggi = data.msg_esci_senza_salvataggi;
|
|
9645
|
+
}
|
|
9626
9646
|
}
|
|
9627
9647
|
close() { this.dialogRef.close(null); }
|
|
9628
9648
|
salva_esci() {
|
|
@@ -9636,8 +9656,7 @@ let win_salva_annulla = class win_salva_annulla {
|
|
|
9636
9656
|
};
|
|
9637
9657
|
win_salva_annulla.ctorParameters = () => [
|
|
9638
9658
|
{ type: MatDialogRef },
|
|
9639
|
-
{ type:
|
|
9640
|
-
{ type: ToastrService }
|
|
9659
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
9641
9660
|
];
|
|
9642
9661
|
win_salva_annulla = __decorate([
|
|
9643
9662
|
Component({
|
|
@@ -9648,14 +9667,15 @@ win_salva_annulla = __decorate([
|
|
|
9648
9667
|
<div mat-dialog-content style="font-size: 15px;">
|
|
9649
9668
|
<br>
|
|
9650
9669
|
<div style="width:100%;text-align:center;">
|
|
9651
|
-
<button mat-flat-button color="primary" (click)="salva_esci()">
|
|
9652
|
-
<button mat-flat-button color="warn" (click)="esci_senza_salv()">
|
|
9670
|
+
<button mat-flat-button color="primary" (click)="salva_esci()">{{salva_ed_esci}}</button>
|
|
9671
|
+
<button mat-flat-button color="warn" (click)="esci_senza_salv()">{{esci_senza_salvataggi}}</button>
|
|
9653
9672
|
|
|
9654
9673
|
</div>
|
|
9655
9674
|
</div>
|
|
9656
9675
|
`
|
|
9657
9676
|
}),
|
|
9658
|
-
|
|
9677
|
+
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
9678
|
+
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
9659
9679
|
], win_salva_annulla);
|
|
9660
9680
|
|
|
9661
9681
|
let win_assegna = class win_assegna {
|