@fluxhub/fluxhub-lib 9.0.55 → 9.0.57
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 +33 -28
- 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 +25 -22
- package/esm2015/lib/services/utility.service.js +8 -8
- package/esm5/lib/controls/fhautocomplete.js +25 -22
- package/esm5/lib/services/utility.service.js +10 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +31 -28
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +33 -28
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/utility.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -795,11 +795,13 @@ var UtilityService = /** @class */ (function () {
|
|
|
795
795
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
796
796
|
return integer + fraction;
|
|
797
797
|
};
|
|
798
|
-
UtilityService.prototype.
|
|
799
|
-
if (
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
798
|
+
UtilityService.prototype.left_pad = function (n, size, charc) {
|
|
799
|
+
if (size === void 0) { size = 2; }
|
|
800
|
+
if (charc === void 0) { charc = '0'; }
|
|
801
|
+
var s = n + '';
|
|
802
|
+
while (s.length < size)
|
|
803
|
+
s = charc + s;
|
|
804
|
+
return s;
|
|
803
805
|
};
|
|
804
806
|
UtilityService.prototype.datetime2GanttString = function (dt) {
|
|
805
807
|
var mm = dt.getMonth() + 1; // getMonth() is zero-based
|
|
@@ -879,7 +881,7 @@ var UtilityService = /** @class */ (function () {
|
|
|
879
881
|
: '0') + mm,
|
|
880
882
|
'-',
|
|
881
883
|
dt.getFullYear()
|
|
882
|
-
].join('') + " " + this.
|
|
884
|
+
].join('') + " " + this.left_pad(dt.getHours()) + ":" + this.left_pad(dt.getMinutes()) + ":" + this.left_pad(dt.getSeconds());
|
|
883
885
|
if (this.app_s.SQL_SERVER_LANG == 'uk')
|
|
884
886
|
return [
|
|
885
887
|
dt.getFullYear(),
|
|
@@ -891,7 +893,7 @@ var UtilityService = /** @class */ (function () {
|
|
|
891
893
|
(dd > 9
|
|
892
894
|
? ''
|
|
893
895
|
: '0') + dd
|
|
894
|
-
].join('') + " " + this.
|
|
896
|
+
].join('') + " " + this.left_pad(dt.getHours()) + ":" + this.left_pad(dt.getMinutes()) + ":" + this.left_pad(dt.getSeconds());
|
|
895
897
|
return "Parametro SQL_SERVER_LANG non corretto";
|
|
896
898
|
};
|
|
897
899
|
UtilityService.prototype.descriMese = function (date) {
|
|
@@ -6717,25 +6719,27 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
6717
6719
|
if (this.sItem != '') {
|
|
6718
6720
|
this.searchItemsFiltered = [];
|
|
6719
6721
|
var ps = this.sItem.toLowerCase();
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
if (this.myData[i].descrizione_valore
|
|
6723
|
-
|
|
6722
|
+
if (this.myData != null)
|
|
6723
|
+
for (var i = 0; i < this.myData.length; i++) {
|
|
6724
|
+
if (this.myData[i].descrizione_valore != null) {
|
|
6725
|
+
if (this.myData[i].descrizione_valore.toLowerCase().indexOf(ps) != -1) {
|
|
6726
|
+
this.searchItemsFiltered.push(this.myData[i]);
|
|
6727
|
+
}
|
|
6728
|
+
}
|
|
6729
|
+
if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
|
|
6730
|
+
break;
|
|
6724
6731
|
}
|
|
6725
6732
|
}
|
|
6726
|
-
if (ps.length < 4 && this.searchItemsFiltered.length == 20) {
|
|
6727
|
-
break;
|
|
6728
|
-
}
|
|
6729
|
-
}
|
|
6730
6733
|
}
|
|
6731
6734
|
else {
|
|
6732
6735
|
// console.log('onChange()1');
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6736
|
+
if (this.myData != null)
|
|
6737
|
+
for (var i = 0; i < this.myData.length; i++) {
|
|
6738
|
+
this.searchItemsFiltered.push(this.myData[i]);
|
|
6739
|
+
if (i == 20) {
|
|
6740
|
+
break;
|
|
6741
|
+
}
|
|
6737
6742
|
}
|
|
6738
|
-
}
|
|
6739
6743
|
}
|
|
6740
6744
|
}
|
|
6741
6745
|
};
|
|
@@ -6854,15 +6858,16 @@ var FHAutoCompleteComponent = /** @class */ (function () {
|
|
|
6854
6858
|
if (this.myData.length == 0 || this.myData[0] == null) {
|
|
6855
6859
|
return;
|
|
6856
6860
|
}
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
this.
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
this.
|
|
6861
|
+
if (this.myData != null)
|
|
6862
|
+
for (var j = 0; j < this.myData.length; j++)
|
|
6863
|
+
if (this.myData[j].descrizione_valore == desc_val) {
|
|
6864
|
+
this.sItem = desc_val;
|
|
6865
|
+
this.selval = this.myData[j].valore;
|
|
6866
|
+
if (this.sItem != null) {
|
|
6867
|
+
this.descri_val = this.sItem;
|
|
6868
|
+
}
|
|
6869
|
+
return;
|
|
6863
6870
|
}
|
|
6864
|
-
return;
|
|
6865
|
-
}
|
|
6866
6871
|
if (!this.only_from_list) {
|
|
6867
6872
|
this.sItem = desc_val;
|
|
6868
6873
|
}
|