@fluxhub/fluxhub-lib 9.0.82 → 9.0.84
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 +12 -22
- 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/fhautocomplete.js +13 -22
- package/esm5/lib/controls/fhautocomplete.js +13 -23
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -21
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +12 -22
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -7012,15 +7012,14 @@
|
|
|
7012
7012
|
return data['descrizione_valore'];
|
|
7013
7013
|
};
|
|
7014
7014
|
FHAutoCompleteComponent.prototype.resetValue = function () {
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
_this.selval = null;
|
|
7021
|
-
}, 100);
|
|
7015
|
+
console.log('>>>resetValue<<<');
|
|
7016
|
+
this.selval = '';
|
|
7017
|
+
// this.valDef = '';
|
|
7018
|
+
this.sItem = '';
|
|
7019
|
+
this.selval = null;
|
|
7022
7020
|
};
|
|
7023
7021
|
FHAutoCompleteComponent.prototype.reset = function () {
|
|
7022
|
+
console.log('>>>reset<<<');
|
|
7024
7023
|
this.selval = '';
|
|
7025
7024
|
this.valDef = '';
|
|
7026
7025
|
this.selval = null;
|
|
@@ -7036,24 +7035,17 @@
|
|
|
7036
7035
|
p.sql = this.sql;
|
|
7037
7036
|
p.types = this.types;
|
|
7038
7037
|
p.values = this.values;
|
|
7039
|
-
var ok_op = false;
|
|
7040
7038
|
if (this.db_type == "1") {
|
|
7041
7039
|
this
|
|
7042
7040
|
._dataService
|
|
7043
7041
|
.doQuery(p)
|
|
7044
7042
|
.subscribe(function (data) {
|
|
7045
|
-
var ok_op = false;
|
|
7046
7043
|
if (data != null) {
|
|
7047
7044
|
if (data.result_msg == "OK") {
|
|
7048
7045
|
_this.resetD(data.result_data);
|
|
7049
7046
|
_this.fillend.emit();
|
|
7050
|
-
ok_op = true;
|
|
7051
7047
|
}
|
|
7052
7048
|
}
|
|
7053
|
-
if (!ok_op) {
|
|
7054
|
-
}
|
|
7055
|
-
}, function (err) {
|
|
7056
|
-
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
7057
7049
|
});
|
|
7058
7050
|
}
|
|
7059
7051
|
if (this.db_type == "2") {
|
|
@@ -7077,10 +7069,6 @@
|
|
|
7077
7069
|
ok_op = true;
|
|
7078
7070
|
}
|
|
7079
7071
|
}
|
|
7080
|
-
if (!ok_op) {
|
|
7081
|
-
}
|
|
7082
|
-
}, function (err) {
|
|
7083
|
-
_this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
|
|
7084
7072
|
});
|
|
7085
7073
|
}
|
|
7086
7074
|
};
|
|
@@ -7088,15 +7076,17 @@
|
|
|
7088
7076
|
this.myData = o;
|
|
7089
7077
|
this.selval = '';
|
|
7090
7078
|
this.table_hidden = false;
|
|
7091
|
-
this.errorMsg =
|
|
7079
|
+
this.errorMsg = '';
|
|
7080
|
+
console.log('resetD prima --> ', this.getValue(), this.valDef);
|
|
7092
7081
|
this.setByValue(this.valDef);
|
|
7093
7082
|
this.is_loaded = true;
|
|
7094
|
-
console.log('resetD --> ', this.getValue(), this.valDef);
|
|
7095
|
-
if ((this.getValue() == null || this.getValue() == '') && this.valDef !=
|
|
7083
|
+
console.log('resetD dopo --> ', this.getValue(), this.valDef);
|
|
7084
|
+
if ((this.getValue() == null || this.getValue() == '') && this.valDef != '') {
|
|
7096
7085
|
this.setByDescri(this.valDef);
|
|
7097
7086
|
}
|
|
7098
7087
|
};
|
|
7099
7088
|
FHAutoCompleteComponent.prototype.setByDescri = function (desc_val) {
|
|
7089
|
+
console.log('>>>setByDescri<<<', desc_val);
|
|
7100
7090
|
this.valDef = desc_val;
|
|
7101
7091
|
this.selval = '';
|
|
7102
7092
|
if (desc_val == "") {
|
|
@@ -7192,7 +7182,7 @@
|
|
|
7192
7182
|
}
|
|
7193
7183
|
this.table_hidden = false;
|
|
7194
7184
|
this.setByValue(this.valDef);
|
|
7195
|
-
if (this.getValue() ==
|
|
7185
|
+
if (this.getValue() == '') {
|
|
7196
7186
|
this.setByDescri(this.valDef);
|
|
7197
7187
|
}
|
|
7198
7188
|
};
|