@fluxhub/fluxhub-lib 9.0.113 → 9.0.115
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 +38 -15
- 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 +13 -3
- package/esm2015/lib/wkf_engine/win_assegna.js +16 -8
- package/esm2015/lib/wkf_engine/win_insert_commento.js +1 -1
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +12 -7
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -6
- package/esm5/lib/controls/fhgrid.js +13 -3
- package/esm5/lib/wkf_engine/win_assegna.js +16 -8
- package/esm5/lib/wkf_engine/win_insert_commento.js +1 -1
- package/esm5/lib/wkf_engine/wkf_header_bar.js +8 -3
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +8 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +39 -17
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +38 -15
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/win_assegna.d.ts +2 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +1 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +2 -1
- package/package.json +1 -1
|
@@ -5784,6 +5784,7 @@ let FHGridComponent = class FHGridComponent {
|
|
|
5784
5784
|
else {
|
|
5785
5785
|
// if(obj_filtro.length>0)filter_v= filter_v+' and ';
|
|
5786
5786
|
let sq = '';
|
|
5787
|
+
let include_null_value = false;
|
|
5787
5788
|
if (obj_filtro.values != null)
|
|
5788
5789
|
for (let i = 0; i < obj_filtro.values.length; i++)
|
|
5789
5790
|
if (obj_filtro.values[i] != null) {
|
|
@@ -5791,17 +5792,26 @@ let FHGridComponent = class FHGridComponent {
|
|
|
5791
5792
|
sq = sq + ',';
|
|
5792
5793
|
sq = sq + '\'' + obj_filtro.values[i].replace('\'', '\'\'') + '\'';
|
|
5793
5794
|
}
|
|
5795
|
+
else {
|
|
5796
|
+
include_null_value = true;
|
|
5797
|
+
}
|
|
5794
5798
|
if (sq != '') {
|
|
5795
5799
|
b_filter = true;
|
|
5796
5800
|
if (add_end)
|
|
5797
5801
|
filter_v = filter_v + ' and ';
|
|
5798
|
-
|
|
5802
|
+
if (!include_null_value)
|
|
5803
|
+
filter_v = filter_v + key + ' in (' + sq + ')';
|
|
5804
|
+
else
|
|
5805
|
+
filter_v = filter_v + '(' + key + ' in (' + sq + ') or ' + key + ' is null)';
|
|
5799
5806
|
}
|
|
5800
5807
|
else {
|
|
5801
5808
|
b_filter = true;
|
|
5802
5809
|
if (add_end)
|
|
5803
5810
|
filter_v = filter_v + ' and ';
|
|
5804
|
-
|
|
5811
|
+
if (!include_null_value)
|
|
5812
|
+
filter_v = filter_v + ' (1=0)';
|
|
5813
|
+
else
|
|
5814
|
+
filter_v = filter_v + ' ' + key + ' is null';
|
|
5805
5815
|
}
|
|
5806
5816
|
}
|
|
5807
5817
|
this.show_pulisci_filtri = b_filter;
|
|
@@ -10295,18 +10305,18 @@ win_salva_annulla = __decorate([
|
|
|
10295
10305
|
], win_salva_annulla);
|
|
10296
10306
|
|
|
10297
10307
|
let win_assegna = class win_assegna {
|
|
10298
|
-
constructor(dialogRef, m_appService, toastr, _dataService) {
|
|
10308
|
+
constructor(dialogRef, m_appService, toastr, _dataService, data) {
|
|
10299
10309
|
this.dialogRef = dialogRef;
|
|
10300
10310
|
this.m_appService = m_appService;
|
|
10301
10311
|
this.toastr = toastr;
|
|
10302
10312
|
this._dataService = _dataService;
|
|
10313
|
+
this.data = data;
|
|
10303
10314
|
this.lbl = "";
|
|
10304
10315
|
this.nota = "";
|
|
10305
10316
|
this.nota_commento = "";
|
|
10306
10317
|
this.title = "ASSEGNA DOCUMENTO";
|
|
10307
10318
|
this.comm_notrequired = 0;
|
|
10308
10319
|
this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
|
|
10309
|
-
console.log(' this.comm_notrequired ', this.comm_notrequired);
|
|
10310
10320
|
this.title = this.m_appService.getState().wkf_doc_info.title;
|
|
10311
10321
|
this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
|
|
10312
10322
|
this.arrAutori = this.m_appService.getState().wkf_doc_info.arrAutori;
|
|
@@ -10316,6 +10326,12 @@ let win_assegna = class win_assegna {
|
|
|
10316
10326
|
}
|
|
10317
10327
|
if (this.comm_notrequired == 2)
|
|
10318
10328
|
this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
|
|
10329
|
+
if (data != null) {
|
|
10330
|
+
if (data.commento_default != null)
|
|
10331
|
+
this.nota = data.commento_default;
|
|
10332
|
+
if (data.comm_notrequired != null)
|
|
10333
|
+
this.comm_notrequired = data.comm_notrequired;
|
|
10334
|
+
}
|
|
10319
10335
|
}
|
|
10320
10336
|
close() { this.dialogRef.close(null); }
|
|
10321
10337
|
ok() {
|
|
@@ -10346,7 +10362,8 @@ win_assegna.ctorParameters = () => [
|
|
|
10346
10362
|
{ type: MatDialogRef },
|
|
10347
10363
|
{ type: AppService },
|
|
10348
10364
|
{ type: ToastrService },
|
|
10349
|
-
{ type: QueryService }
|
|
10365
|
+
{ type: QueryService },
|
|
10366
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
10350
10367
|
];
|
|
10351
10368
|
__decorate([
|
|
10352
10369
|
ViewChild('up'),
|
|
@@ -10380,7 +10397,8 @@ win_assegna = __decorate([
|
|
|
10380
10397
|
|
|
10381
10398
|
`
|
|
10382
10399
|
}),
|
|
10383
|
-
|
|
10400
|
+
__param(4, Inject(MAT_DIALOG_DATA)),
|
|
10401
|
+
__metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService, Object])
|
|
10384
10402
|
], win_assegna);
|
|
10385
10403
|
|
|
10386
10404
|
let win_conferma = class win_conferma {
|
|
@@ -12844,6 +12862,7 @@ class dati_aggiuntivi {
|
|
|
12844
12862
|
this.limite_salto_after = -1;
|
|
12845
12863
|
this.respingi_enabled = false;
|
|
12846
12864
|
this.oper = '';
|
|
12865
|
+
this.commento_default = '';
|
|
12847
12866
|
this.b_edit_before = false;
|
|
12848
12867
|
this.all_c = 0;
|
|
12849
12868
|
this.comm_c = 0;
|
|
@@ -13206,10 +13225,7 @@ class dati_aggiuntivi {
|
|
|
13206
13225
|
});
|
|
13207
13226
|
;
|
|
13208
13227
|
let dialogRef = this.m_dialog.open(win_assegna, {
|
|
13209
|
-
disableClose: true
|
|
13210
|
-
});
|
|
13211
|
-
setTimeout(() => {
|
|
13212
|
-
dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
|
|
13228
|
+
disableClose: true, data: { commento_default: this.commento_default, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
13213
13229
|
});
|
|
13214
13230
|
dialogRef.afterClosed().subscribe(result => {
|
|
13215
13231
|
if (result == "" || result == null) {
|
|
@@ -13557,9 +13573,10 @@ class dati_aggiuntivi {
|
|
|
13557
13573
|
this.resp_b(false);
|
|
13558
13574
|
this.salva();
|
|
13559
13575
|
}
|
|
13560
|
-
procedi() {
|
|
13576
|
+
procedi(commento_default = '') {
|
|
13561
13577
|
this.oper = 'procedi';
|
|
13562
13578
|
this.btnprocedi = true;
|
|
13579
|
+
this.commento_default = commento_default;
|
|
13563
13580
|
this.edit_b(false);
|
|
13564
13581
|
this.resp_b(false);
|
|
13565
13582
|
if (!this.ck_field()) {
|
|
@@ -14213,6 +14230,7 @@ let wkf_header_bar = class wkf_header_bar {
|
|
|
14213
14230
|
this.edit_button = false;
|
|
14214
14231
|
this.respingi_button = false;
|
|
14215
14232
|
this.procedi_button = true;
|
|
14233
|
+
this.commento_default = '';
|
|
14216
14234
|
}
|
|
14217
14235
|
back() { if (this.dt_agg != null)
|
|
14218
14236
|
this.dt_agg.back(this.edit_button); }
|
|
@@ -14221,7 +14239,7 @@ let wkf_header_bar = class wkf_header_bar {
|
|
|
14221
14239
|
respingi() { if (this.dt_agg != null)
|
|
14222
14240
|
this.dt_agg.respingi(); }
|
|
14223
14241
|
procedi() { if (this.dt_agg != null)
|
|
14224
|
-
this.dt_agg.procedi(); }
|
|
14242
|
+
this.dt_agg.procedi(this.commento_default); }
|
|
14225
14243
|
open_info() { if (this.dt_agg != null)
|
|
14226
14244
|
this.dt_agg.open_info(); }
|
|
14227
14245
|
open_commenti() { if (this.dt_agg != null)
|
|
@@ -14252,6 +14270,10 @@ __decorate([
|
|
|
14252
14270
|
Input(),
|
|
14253
14271
|
__metadata("design:type", Boolean)
|
|
14254
14272
|
], wkf_header_bar.prototype, "procedi_button", void 0);
|
|
14273
|
+
__decorate([
|
|
14274
|
+
Input(),
|
|
14275
|
+
__metadata("design:type", String)
|
|
14276
|
+
], wkf_header_bar.prototype, "commento_default", void 0);
|
|
14255
14277
|
wkf_header_bar = __decorate([
|
|
14256
14278
|
Component({
|
|
14257
14279
|
selector: 'wkf_header_bar',
|
|
@@ -14269,12 +14291,12 @@ wkf_header_bar = __decorate([
|
|
|
14269
14291
|
|
|
14270
14292
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="16px" fxLayoutGap.xs="3px">
|
|
14271
14293
|
<div fxLayout="row" >
|
|
14272
|
-
<button mat-flat-button (click)="open_info()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>info_outline</mat-icon> Info Doc</button>
|
|
14273
|
-
<button mat-flat-button [color]="(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''" [matBadge]="dt_agg?.comm_c?dt_agg?.comm_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_commenti()"> <mat-icon>insert_comment</mat-icon>Commenti</button> </div> <div fxLayout="row">
|
|
14274
|
-
<button mat-flat-button [color]="(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''" [matBadge]="dt_agg?.all_c?dt_agg?.all_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_upload()"> <mat-icon>attach_file</mat-icon>Allegati</button>
|
|
14275
|
-
|
|
14294
|
+
<button mat-flat-button (click)="open_info()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>info_outline</mat-icon> Info Doc</button>
|
|
14295
|
+
<button mat-flat-button [color]="(dt_agg?.comm_c?dt_agg?.comm_c:0>0)?'accent':''" [matBadge]="dt_agg?.comm_c?dt_agg?.comm_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_commenti()"> <mat-icon>insert_comment</mat-icon>Commenti</button> </div> <div fxLayout="row">
|
|
14296
|
+
<button mat-flat-button [color]="(dt_agg?.all_c?dt_agg?.all_c:0>0)?'accent':''" [matBadge]="dt_agg?.all_c?dt_agg?.all_c:0" matBadgePosition="before" matBadgeColor="primary" (click)="open_upload()"> <mat-icon>attach_file</mat-icon>Allegati</button>
|
|
14297
|
+
<button mat-flat-button (click)="open_wkf()" *ngIf="!m_appService.getState().pageFullscreen"> <mat-icon>transfer_within_a_station</mat-icon>Workflow</button></div>
|
|
14298
|
+
</div>
|
|
14276
14299
|
</div>
|
|
14277
|
-
</div>
|
|
14278
14300
|
`
|
|
14279
14301
|
}),
|
|
14280
14302
|
__metadata("design:paramtypes", [AppService])
|