@fluxhub/fluxhub-lib 10.0.533 → 10.0.535
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 +45 -30
- 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/fhcombobox.js +15 -9
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +17 -12
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +17 -12
- package/fesm2015/fluxhub-fluxhub-lib.js +44 -31
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcombobox.d.ts +3 -1
- package/lib/wkf_engine/wkf_header_bar.d.ts +3 -1
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +3 -1
- package/package.json +1 -1
|
@@ -7294,9 +7294,10 @@
|
|
|
7294
7294
|
multi: true,
|
|
7295
7295
|
};
|
|
7296
7296
|
var FHComboboxComponent = /** @class */ (function () {
|
|
7297
|
-
function FHComboboxComponent(_dataService, _dataService_odbc) {
|
|
7297
|
+
function FHComboboxComponent(_dataService, _dataService_odbc, _tsr) {
|
|
7298
7298
|
this._dataService = _dataService;
|
|
7299
7299
|
this._dataService_odbc = _dataService_odbc;
|
|
7300
|
+
this._tsr = _tsr;
|
|
7300
7301
|
this.init_fill = true;
|
|
7301
7302
|
this.sql = "";
|
|
7302
7303
|
this.types = [];
|
|
@@ -7332,13 +7333,13 @@
|
|
|
7332
7333
|
try {
|
|
7333
7334
|
if (this.descri_val != null)
|
|
7334
7335
|
if (this.descri_val != "") {
|
|
7335
|
-
this.dis_value = this.descri_val;
|
|
7336
|
+
this.dis_value = this._tsr.instant(this.descri_val);
|
|
7336
7337
|
return;
|
|
7337
7338
|
}
|
|
7338
7339
|
if (this.valDef == null)
|
|
7339
7340
|
this.dis_value = "";
|
|
7340
7341
|
else
|
|
7341
|
-
this.dis_value = this.valDef.split("-1").join("");
|
|
7342
|
+
this.dis_value = this._tsr.instant(this.valDef.split("-1").join(""));
|
|
7342
7343
|
}
|
|
7343
7344
|
catch (e) {
|
|
7344
7345
|
//console.log("errore split -> this.valDef ", this.valDef);
|
|
@@ -7383,6 +7384,8 @@
|
|
|
7383
7384
|
this._dataService.doQuery(p).subscribe(function (data) {
|
|
7384
7385
|
if (data != null)
|
|
7385
7386
|
if (data.result_msg == "OK") {
|
|
7387
|
+
for (var i = 0; i < data.result_data.length; i++)
|
|
7388
|
+
data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
|
|
7386
7389
|
_this.resetD(data.result_data);
|
|
7387
7390
|
}
|
|
7388
7391
|
});
|
|
@@ -7396,6 +7399,7 @@
|
|
|
7396
7399
|
if (data.result_data[i].DESCRIZIONE_VALORE != null)
|
|
7397
7400
|
data.result_data[i].descrizione_valore =
|
|
7398
7401
|
data.result_data[i].DESCRIZIONE_VALORE;
|
|
7402
|
+
data.result_data[i].descrizione_valore = _this._tsr.instant(data.result_data[i].descrizione_valore);
|
|
7399
7403
|
}
|
|
7400
7404
|
_this.resetD(data.result_data);
|
|
7401
7405
|
}
|
|
@@ -7418,7 +7422,7 @@
|
|
|
7418
7422
|
// console.log(this.smtr); console.log(this.smtr.nativeElement);
|
|
7419
7423
|
this.setByValue(this.valDef);
|
|
7420
7424
|
if (this.getValue() == "-1" && this.valDef != "-1")
|
|
7421
|
-
this.setByDescri(this.valDef);
|
|
7425
|
+
this.setByDescri(this._tsr.instant(this.valDef));
|
|
7422
7426
|
this.is_loaded = true;
|
|
7423
7427
|
this.fillend.emit();
|
|
7424
7428
|
};
|
|
@@ -7466,7 +7470,7 @@
|
|
|
7466
7470
|
if (this.myData.length == 0 || this.myData[0] == null)
|
|
7467
7471
|
return;
|
|
7468
7472
|
if (this.myData.length > ind) {
|
|
7469
|
-
this.setByDescri(this.myData[ind].descrizione_valore);
|
|
7473
|
+
this.setByDescri(this._tsr.instant(this.myData[ind].descrizione_valore));
|
|
7470
7474
|
}
|
|
7471
7475
|
};
|
|
7472
7476
|
FHComboboxComponent.prototype.getObj = function () {
|
|
@@ -7587,13 +7591,13 @@
|
|
|
7587
7591
|
var o = new Object();
|
|
7588
7592
|
var av = a[i].split("|");
|
|
7589
7593
|
o.valore = av[1];
|
|
7590
|
-
o.descrizione_valore = av[0];
|
|
7594
|
+
o.descrizione_valore = this._tsr.instant(av[0]);
|
|
7591
7595
|
this.add_option(o);
|
|
7592
7596
|
}
|
|
7593
7597
|
this.setByValue(this.valDef);
|
|
7594
7598
|
this.is_loaded = true;
|
|
7595
7599
|
if (this.getValue() == "-1")
|
|
7596
|
-
this.setByDescri(this.valDef);
|
|
7600
|
+
this.setByDescri(this._tsr.instant(this.valDef));
|
|
7597
7601
|
};
|
|
7598
7602
|
FHComboboxComponent.prototype.doFill = function () {
|
|
7599
7603
|
var _this = this;
|
|
@@ -7662,7 +7666,8 @@
|
|
|
7662
7666
|
];
|
|
7663
7667
|
FHComboboxComponent.ctorParameters = function () { return [
|
|
7664
7668
|
{ type: QueryService },
|
|
7665
|
-
{ type: OdbcService }
|
|
7669
|
+
{ type: OdbcService },
|
|
7670
|
+
{ type: core.TranslateService }
|
|
7666
7671
|
]; };
|
|
7667
7672
|
FHComboboxComponent.propDecorators = {
|
|
7668
7673
|
init_fill: [{ type: i0.Input }],
|
|
@@ -12722,8 +12727,10 @@
|
|
|
12722
12727
|
};
|
|
12723
12728
|
|
|
12724
12729
|
var wkf_header_bar = /** @class */ (function () {
|
|
12725
|
-
function wkf_header_bar(m_appService) {
|
|
12730
|
+
function wkf_header_bar(m_appService, _trs) {
|
|
12731
|
+
var _this = this;
|
|
12726
12732
|
this.m_appService = m_appService;
|
|
12733
|
+
this._trs = _trs;
|
|
12727
12734
|
this.custom_commands = [];
|
|
12728
12735
|
this.dt_agg = null;
|
|
12729
12736
|
this.edit_button = false;
|
|
@@ -12746,6 +12753,17 @@
|
|
|
12746
12753
|
this.allegati_lbl = 'Allegati';
|
|
12747
12754
|
this.workflow_lbl = 'Workflow';
|
|
12748
12755
|
this.button_clicked = new i0.EventEmitter();
|
|
12756
|
+
setTimeout(function () {
|
|
12757
|
+
_this.back_lbl = _this._trs.instant('Indietro');
|
|
12758
|
+
_this.save_lbl = _this._trs.instant('Salva');
|
|
12759
|
+
_this.procedi_lbl = _this._trs.instant('Procedi');
|
|
12760
|
+
_this.respingi_lbl = _this._trs.instant('Respingi');
|
|
12761
|
+
_this.revisione_lbl = _this._trs.instant('Revisione');
|
|
12762
|
+
_this.info_doc_lbl = _this._trs.instant('Info Doc');
|
|
12763
|
+
_this.commenti_lbl = _this._trs.instant('Commenti');
|
|
12764
|
+
_this.allegati_lbl = _this._trs.instant('Allegati');
|
|
12765
|
+
_this.workflow_lbl = _this._trs.instant('Workflow');
|
|
12766
|
+
});
|
|
12749
12767
|
}
|
|
12750
12768
|
wkf_header_bar.prototype.exec_command = function (command) {
|
|
12751
12769
|
this.command.emit({ cmd: command });
|
|
@@ -12800,7 +12818,8 @@
|
|
|
12800
12818
|
},] }
|
|
12801
12819
|
];
|
|
12802
12820
|
wkf_header_bar.ctorParameters = function () { return [
|
|
12803
|
-
{ type: AppService }
|
|
12821
|
+
{ type: AppService },
|
|
12822
|
+
{ type: core.TranslateService }
|
|
12804
12823
|
]; };
|
|
12805
12824
|
wkf_header_bar.propDecorators = {
|
|
12806
12825
|
custom_commands: [{ type: i0.Input }],
|
|
@@ -12815,15 +12834,6 @@
|
|
|
12815
12834
|
command: [{ type: i0.Output }],
|
|
12816
12835
|
admin_role: [{ type: i0.Input }],
|
|
12817
12836
|
sovra_path: [{ type: i0.Input }],
|
|
12818
|
-
back_lbl: [{ type: i0.Input }],
|
|
12819
|
-
save_lbl: [{ type: i0.Input }],
|
|
12820
|
-
procedi_lbl: [{ type: i0.Input }],
|
|
12821
|
-
respingi_lbl: [{ type: i0.Input }],
|
|
12822
|
-
revisione_lbl: [{ type: i0.Input }],
|
|
12823
|
-
info_doc_lbl: [{ type: i0.Input }],
|
|
12824
|
-
commenti_lbl: [{ type: i0.Input }],
|
|
12825
|
-
allegati_lbl: [{ type: i0.Input }],
|
|
12826
|
-
workflow_lbl: [{ type: i0.Input }],
|
|
12827
12837
|
button_clicked: [{ type: i0.Output }]
|
|
12828
12838
|
};
|
|
12829
12839
|
|
|
@@ -16234,8 +16244,10 @@
|
|
|
16234
16244
|
};
|
|
16235
16245
|
|
|
16236
16246
|
var wkf_header_bar_v2 = /** @class */ (function () {
|
|
16237
|
-
function wkf_header_bar_v2(m_appService) {
|
|
16247
|
+
function wkf_header_bar_v2(m_appService, _trs) {
|
|
16248
|
+
var _this = this;
|
|
16238
16249
|
this.m_appService = m_appService;
|
|
16250
|
+
this._trs = _trs;
|
|
16239
16251
|
this.custom_commands = [];
|
|
16240
16252
|
this.dt_agg = null;
|
|
16241
16253
|
this.edit_button = false;
|
|
@@ -16259,6 +16271,17 @@
|
|
|
16259
16271
|
this.sovra_path = '';
|
|
16260
16272
|
this.command = new i0.EventEmitter();
|
|
16261
16273
|
this.button_clicked = new i0.EventEmitter();
|
|
16274
|
+
setTimeout(function () {
|
|
16275
|
+
_this.back_lbl = _this._trs.instant('Indietro');
|
|
16276
|
+
_this.save_lbl = _this._trs.instant('Salva');
|
|
16277
|
+
_this.procedi_lbl = _this._trs.instant('Procedi');
|
|
16278
|
+
_this.respingi_lbl = _this._trs.instant('Respingi');
|
|
16279
|
+
_this.revisione_lbl = _this._trs.instant('Revisione');
|
|
16280
|
+
_this.info_doc_lbl = _this._trs.instant('Info Doc');
|
|
16281
|
+
_this.commenti_lbl = _this._trs.instant('Commenti');
|
|
16282
|
+
_this.allegati_lbl = _this._trs.instant('Allegati');
|
|
16283
|
+
_this.workflow_lbl = _this._trs.instant('Workflow');
|
|
16284
|
+
});
|
|
16262
16285
|
}
|
|
16263
16286
|
wkf_header_bar_v2.prototype.exec_command = function (command) {
|
|
16264
16287
|
this.command.emit({ cmd: command });
|
|
@@ -16319,7 +16342,8 @@
|
|
|
16319
16342
|
},] }
|
|
16320
16343
|
];
|
|
16321
16344
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
16322
|
-
{ type: AppService }
|
|
16345
|
+
{ type: AppService },
|
|
16346
|
+
{ type: core.TranslateService }
|
|
16323
16347
|
]; };
|
|
16324
16348
|
wkf_header_bar_v2.propDecorators = {
|
|
16325
16349
|
custom_commands: [{ type: i0.Input }],
|
|
@@ -16331,15 +16355,6 @@
|
|
|
16331
16355
|
force_save: [{ type: i0.Input }],
|
|
16332
16356
|
check_on_save: [{ type: i0.Input }],
|
|
16333
16357
|
download_button: [{ type: i0.Input }],
|
|
16334
|
-
back_lbl: [{ type: i0.Input }],
|
|
16335
|
-
save_lbl: [{ type: i0.Input }],
|
|
16336
|
-
procedi_lbl: [{ type: i0.Input }],
|
|
16337
|
-
respingi_lbl: [{ type: i0.Input }],
|
|
16338
|
-
revisione_lbl: [{ type: i0.Input }],
|
|
16339
|
-
info_doc_lbl: [{ type: i0.Input }],
|
|
16340
|
-
commenti_lbl: [{ type: i0.Input }],
|
|
16341
|
-
allegati_lbl: [{ type: i0.Input }],
|
|
16342
|
-
workflow_lbl: [{ type: i0.Input }],
|
|
16343
16358
|
b_revisione: [{ type: i0.Input }],
|
|
16344
16359
|
admin_role: [{ type: i0.Input }],
|
|
16345
16360
|
sovra_path: [{ type: i0.Input }],
|