@fluxhub/fluxhub-lib 9.0.55 → 9.0.56
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 +9 -7
- 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/services/utility.service.js +8 -8
- package/esm5/lib/services/utility.service.js +10 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +7 -7
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +9 -7
- 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
|
@@ -928,11 +928,13 @@
|
|
|
928
928
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
929
929
|
return integer + fraction;
|
|
930
930
|
};
|
|
931
|
-
UtilityService.prototype.
|
|
932
|
-
if (
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
931
|
+
UtilityService.prototype.left_pad = function (n, size, charc) {
|
|
932
|
+
if (size === void 0) { size = 2; }
|
|
933
|
+
if (charc === void 0) { charc = '0'; }
|
|
934
|
+
var s = n + '';
|
|
935
|
+
while (s.length < size)
|
|
936
|
+
s = charc + s;
|
|
937
|
+
return s;
|
|
936
938
|
};
|
|
937
939
|
UtilityService.prototype.datetime2GanttString = function (dt) {
|
|
938
940
|
var mm = dt.getMonth() + 1; // getMonth() is zero-based
|
|
@@ -1012,7 +1014,7 @@
|
|
|
1012
1014
|
: '0') + mm,
|
|
1013
1015
|
'-',
|
|
1014
1016
|
dt.getFullYear()
|
|
1015
|
-
].join('') + " " + this.
|
|
1017
|
+
].join('') + " " + this.left_pad(dt.getHours()) + ":" + this.left_pad(dt.getMinutes()) + ":" + this.left_pad(dt.getSeconds());
|
|
1016
1018
|
if (this.app_s.SQL_SERVER_LANG == 'uk')
|
|
1017
1019
|
return [
|
|
1018
1020
|
dt.getFullYear(),
|
|
@@ -1024,7 +1026,7 @@
|
|
|
1024
1026
|
(dd > 9
|
|
1025
1027
|
? ''
|
|
1026
1028
|
: '0') + dd
|
|
1027
|
-
].join('') + " " + this.
|
|
1029
|
+
].join('') + " " + this.left_pad(dt.getHours()) + ":" + this.left_pad(dt.getMinutes()) + ":" + this.left_pad(dt.getSeconds());
|
|
1028
1030
|
return "Parametro SQL_SERVER_LANG non corretto";
|
|
1029
1031
|
};
|
|
1030
1032
|
UtilityService.prototype.descriMese = function (date) {
|