@fluxhub/fluxhub-lib 10.0.338 → 10.0.340
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 +47 -12
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhupload.js +6 -4
- package/esm2015/lib/controls/fhuploadpanel.js +16 -5
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +15 -1
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +24 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +57 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +2 -1
- package/lib/controls/fhuploadpanel.d.ts +3 -0
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +2 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3959,6 +3959,7 @@ class FHUploadComponent {
|
|
|
3959
3959
|
maxFileSize: 500 * 1024 * 1024,
|
|
3960
3960
|
});
|
|
3961
3961
|
this.id = null;
|
|
3962
|
+
this.ver = -1;
|
|
3962
3963
|
this.show_upload = true;
|
|
3963
3964
|
this.id_component = this.uti.newGuid();
|
|
3964
3965
|
this.username = this.app_s.user;
|
|
@@ -3993,6 +3994,7 @@ class FHUploadComponent {
|
|
|
3993
3994
|
tipo: this.tipo,
|
|
3994
3995
|
local_path: this.app_s.LOCAL_PATH,
|
|
3995
3996
|
p1: this.programma_da_eseguire,
|
|
3997
|
+
ver: this.ver
|
|
3996
3998
|
});
|
|
3997
3999
|
}
|
|
3998
4000
|
onFileDrop(o) {
|
|
@@ -4113,8 +4115,6 @@ class FHUploadComponent {
|
|
|
4113
4115
|
}
|
|
4114
4116
|
}
|
|
4115
4117
|
ch(fileItem) {
|
|
4116
|
-
console.log('ch');
|
|
4117
|
-
console.log(this.descri_obb, this.descrizione);
|
|
4118
4118
|
if (this.descri_obb && this.descrizione == "") {
|
|
4119
4119
|
this.toastr.error(this.inserire_descrizione);
|
|
4120
4120
|
return;
|
|
@@ -4134,6 +4134,7 @@ class FHUploadComponent {
|
|
|
4134
4134
|
form.append("descrizione", this.descrizione);
|
|
4135
4135
|
form.append("single", this.single);
|
|
4136
4136
|
form.append("username", this.username);
|
|
4137
|
+
form.append("ver", this.ver);
|
|
4137
4138
|
if (this.multi_list && this.show_upload)
|
|
4138
4139
|
form.append("tipo", this.cmb_tipo.getDescri().split("-1").join(""));
|
|
4139
4140
|
else
|
|
@@ -4154,11 +4155,12 @@ class FHUploadComponent {
|
|
|
4154
4155
|
}
|
|
4155
4156
|
this.uploader.uploadAll();
|
|
4156
4157
|
}
|
|
4157
|
-
init(p_app, p_k, p_label, p_tipo = "", programma_da_eseguire = "", allow_delete = false, all_g = false, show_upload = true) {
|
|
4158
|
+
init(p_app, p_k, p_label, p_tipo = "", programma_da_eseguire = "", allow_delete = false, all_g = false, show_upload = true, current_v = -1) {
|
|
4158
4159
|
this.App = p_app;
|
|
4159
4160
|
this.K = p_k;
|
|
4160
4161
|
this.label = p_label;
|
|
4161
4162
|
this.tipo = p_tipo;
|
|
4163
|
+
this.ver = current_v;
|
|
4162
4164
|
this.b_ini = true;
|
|
4163
4165
|
this.b_edit_loaded = false;
|
|
4164
4166
|
this.descrizione = "";
|
|
@@ -4791,6 +4793,7 @@ class FHUploadPanelComponent {
|
|
|
4791
4793
|
this.dialog = dialog;
|
|
4792
4794
|
this.auth_s = auth_s;
|
|
4793
4795
|
this.uti = uti;
|
|
4796
|
+
this.show_version = false;
|
|
4794
4797
|
this.enabled = true;
|
|
4795
4798
|
this.force_en = false;
|
|
4796
4799
|
this.label = "";
|
|
@@ -4810,6 +4813,7 @@ class FHUploadPanelComponent {
|
|
|
4810
4813
|
this.K = "";
|
|
4811
4814
|
this.image_type = false;
|
|
4812
4815
|
this.b_edit_loaded = false;
|
|
4816
|
+
this.current_v = -1;
|
|
4813
4817
|
this.b_False = false;
|
|
4814
4818
|
this.b_mobile = false;
|
|
4815
4819
|
this.b_ini = false;
|
|
@@ -4817,6 +4821,10 @@ class FHUploadPanelComponent {
|
|
|
4817
4821
|
this.multi_list = false;
|
|
4818
4822
|
this.m_programma_da_eseguire = "";
|
|
4819
4823
|
}
|
|
4824
|
+
set_curr_version(vx) {
|
|
4825
|
+
this.show_version = true;
|
|
4826
|
+
this.current_v = vx;
|
|
4827
|
+
}
|
|
4820
4828
|
output_ris(o) {
|
|
4821
4829
|
if (o == null)
|
|
4822
4830
|
return;
|
|
@@ -4843,6 +4851,7 @@ class FHUploadPanelComponent {
|
|
|
4843
4851
|
tipo: this.m_p_tipo,
|
|
4844
4852
|
local_path: this._appservice.LOCAL_PATH,
|
|
4845
4853
|
p1: this.m_programma_da_eseguire,
|
|
4854
|
+
ver: this.current_v
|
|
4846
4855
|
});
|
|
4847
4856
|
}
|
|
4848
4857
|
preview_email(ax) {
|
|
@@ -4952,9 +4961,9 @@ class FHUploadPanelComponent {
|
|
|
4952
4961
|
this.upc.single = false;
|
|
4953
4962
|
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
4954
4963
|
if (this.force_en)
|
|
4955
|
-
this.upc.init(this.App, this.K, "Attachment Description", this.m_p_tipo, this.m_programma_da_eseguire);
|
|
4964
|
+
this.upc.init(this.App, this.K, "Attachment Description", this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
|
|
4956
4965
|
else
|
|
4957
|
-
this.upc.init(this.App, this.K, "Descrizione Allegato", this.m_p_tipo, this.m_programma_da_eseguire);
|
|
4966
|
+
this.upc.init(this.App, this.K, "Descrizione Allegato", this.m_p_tipo, this.m_programma_da_eseguire, false, false, true, this.current_v);
|
|
4958
4967
|
if (this.m_p_tipo.indexOf("SELECT_") > -1) {
|
|
4959
4968
|
this.multi_list = true;
|
|
4960
4969
|
}
|
|
@@ -5134,7 +5143,8 @@ FHUploadPanelComponent.decorators = [
|
|
|
5134
5143
|
<tr class="header">
|
|
5135
5144
|
<th [fxShow.lt-sm]="false" style="width:40px"></th>
|
|
5136
5145
|
<th style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
|
|
5137
|
-
<th [fxShow.lt-sm]="false" style="width:
|
|
5146
|
+
<th [fxShow.lt-sm]="false" *ngIf="show_version" style="width:30px;text-align:center">Ver.</th>
|
|
5147
|
+
<th [fxShow.lt-sm]="false" style="width:30px;text-align:center">Dim.</th>
|
|
5138
5148
|
<th [fxShow.lt-sm]="false" style="width:40%">
|
|
5139
5149
|
{{ force_en ? "Description" : "Descrizione" }}
|
|
5140
5150
|
</th>
|
|
@@ -5170,6 +5180,7 @@ FHUploadPanelComponent.decorators = [
|
|
|
5170
5180
|
</div>
|
|
5171
5181
|
</td>
|
|
5172
5182
|
<td><button mat-stroked-button color="primary" (click)="download_all(app)">{{ app.Filename }}</button></td>
|
|
5183
|
+
<td style="text-align:center" *ngIf="show_version" [fxShow.lt-sm]="false">{{ app.v }}</td>
|
|
5173
5184
|
<td style="text-align:center" [fxShow.lt-sm]="false">{{ app.Filesize }}</td>
|
|
5174
5185
|
<td [fxShow.lt-sm]="false">
|
|
5175
5186
|
<div fxLayout="row">
|
|
@@ -5285,7 +5296,8 @@ FHUploadPanelComponent.decorators = [
|
|
|
5285
5296
|
<tr class="header">
|
|
5286
5297
|
<th [fxShow.lt-sm]="false" style="width:40px"></th>
|
|
5287
5298
|
<th [fxShow.lt-sm]="false" style="width:50%">{{ force_en ? "Name" : "Nome" }}</th>
|
|
5288
|
-
<th [fxShow.lt-sm]="false" style="width:
|
|
5299
|
+
<th [fxShow.lt-sm]="false" *ngIf="show_version" style="width:30px;text-align:center">Ver.</th>
|
|
5300
|
+
<th [fxShow.lt-sm]="false" style="width:30px;text-align:center">Dim.</th>
|
|
5289
5301
|
|
|
5290
5302
|
<th [fxShow.lt-sm]="false" style="width:20%">
|
|
5291
5303
|
{{ force_en ? "Description" : "Descrizione" }}
|
|
@@ -5323,6 +5335,7 @@ FHUploadPanelComponent.decorators = [
|
|
|
5323
5335
|
</td>
|
|
5324
5336
|
|
|
5325
5337
|
<td [fxShow.lt-sm]="false"><button mat-stroked-button color="primary" (click)="download_all(app)">{{ app.Filename }}</button></td>
|
|
5338
|
+
<td style="text-align:center" *ngIf="show_version" [fxShow.lt-sm]="false">{{ app.v }}</td>
|
|
5326
5339
|
<td [fxShow.lt-sm]="false" style="text-align:center">{{ app.Filesize }}</td>
|
|
5327
5340
|
<td [fxShow.lt-sm]="false">
|
|
5328
5341
|
<div fxLayout="row">
|
|
@@ -24233,17 +24246,35 @@ class dati_aggiuntivi_v2 {
|
|
|
24233
24246
|
break;
|
|
24234
24247
|
}
|
|
24235
24248
|
this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
|
|
24236
|
-
|
|
24237
|
-
|
|
24238
|
-
|
|
24239
|
-
|
|
24240
|
-
|
|
24249
|
+
if (this.m_obj.v == null)
|
|
24250
|
+
this.uti_s.set_home_title(this.app_info.descrizione_breve +
|
|
24251
|
+
" " +
|
|
24252
|
+
this.m_obj.codice +
|
|
24253
|
+
" - " +
|
|
24254
|
+
this.m_obj.stat_stato);
|
|
24255
|
+
else
|
|
24256
|
+
this.uti_s.set_home_title(this.app_info.descrizione_breve +
|
|
24257
|
+
" " +
|
|
24258
|
+
this.m_obj.codice + "/" + this.m_obj.v +
|
|
24259
|
+
" - " +
|
|
24260
|
+
this.m_obj.stat_stato);
|
|
24241
24261
|
this.reset_form(this.app_info.descrizione_breve +
|
|
24242
24262
|
" " +
|
|
24243
24263
|
this.m_obj.codice +
|
|
24244
24264
|
" - " +
|
|
24245
24265
|
this.m_obj.stat_stato); //+' ('+s_uto+')');
|
|
24246
24266
|
}
|
|
24267
|
+
revisione() {
|
|
24268
|
+
let p = new QParam();
|
|
24269
|
+
p.sql = "UPDATE_DOCUMENTO_REV";
|
|
24270
|
+
p.values = [this.id_applicativo, this.id_documento];
|
|
24271
|
+
p.types = ['string', 'string'];
|
|
24272
|
+
this.m_dataService.doQuery(p).subscribe((data) => {
|
|
24273
|
+
if (data != null)
|
|
24274
|
+
if (data.result_msg == "OK") {
|
|
24275
|
+
}
|
|
24276
|
+
});
|
|
24277
|
+
}
|
|
24247
24278
|
onResize(event) { }
|
|
24248
24279
|
init_engine() {
|
|
24249
24280
|
if (this.user_idp == null || this.m_route.params == null) {
|
|
@@ -24384,10 +24415,13 @@ class wkf_header_bar_v2 {
|
|
|
24384
24415
|
this.utility_button = true;
|
|
24385
24416
|
this.force_save = false;
|
|
24386
24417
|
this.check_on_save = false;
|
|
24418
|
+
this.b_revisione = false;
|
|
24387
24419
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
24388
24420
|
this.sovra_path = '';
|
|
24389
24421
|
this.button_clicked = new EventEmitter();
|
|
24390
24422
|
}
|
|
24423
|
+
revisione() { this.button_clicked.emit('revisione'); if (this.dt_agg != null)
|
|
24424
|
+
this.dt_agg.revisione(); }
|
|
24391
24425
|
back() { this.button_clicked.emit('back'); if (this.dt_agg != null)
|
|
24392
24426
|
this.dt_agg.back(this.edit_button); }
|
|
24393
24427
|
evt_salv() { this.button_clicked.emit('evt_salv'); if (this.dt_agg != null)
|
|
@@ -24454,6 +24488,16 @@ wkf_header_bar_v2.decorators = [
|
|
|
24454
24488
|
Respingi
|
|
24455
24489
|
</button>
|
|
24456
24490
|
</div>
|
|
24491
|
+
<div>
|
|
24492
|
+
<button
|
|
24493
|
+
mat-flat-button
|
|
24494
|
+
(click)="revisione()"
|
|
24495
|
+
*ngIf="b_revisione"
|
|
24496
|
+
color="accent"
|
|
24497
|
+
>
|
|
24498
|
+
Revisione
|
|
24499
|
+
</button>
|
|
24500
|
+
</div>
|
|
24457
24501
|
<!-- <button mat-flat-button (click)="doEnd(900)" color="warn" >test</button>
|
|
24458
24502
|
-->
|
|
24459
24503
|
</div>
|
|
@@ -24528,6 +24572,7 @@ wkf_header_bar_v2.propDecorators = {
|
|
|
24528
24572
|
utility_button: [{ type: Input }],
|
|
24529
24573
|
force_save: [{ type: Input }],
|
|
24530
24574
|
check_on_save: [{ type: Input }],
|
|
24575
|
+
b_revisione: [{ type: Input }],
|
|
24531
24576
|
admin_role: [{ type: Input }],
|
|
24532
24577
|
sovra_path: [{ type: Input }],
|
|
24533
24578
|
button_clicked: [{ type: Output }]
|