tnx-shared 5.3.221 → 5.3.222
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/tnx-shared.umd.js +6 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/common.service.js +6 -1
- package/fesm2015/tnx-shared.js +5 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -4845,6 +4845,12 @@
|
|
|
4845
4845
|
}
|
|
4846
4846
|
return Math.floor((date.getMonth() + 3) / 3);
|
|
4847
4847
|
};
|
|
4848
|
+
CommonService.prototype.generateIndex = function (index, maxLength) {
|
|
4849
|
+
if (maxLength === void 0) { maxLength = 8; }
|
|
4850
|
+
var stringIndex = "" + index;
|
|
4851
|
+
var diff = (maxLength < stringIndex.length) ? 0 : maxLength - stringIndex.length;
|
|
4852
|
+
return "" + Array(diff).map(function (x) { return ''; }).join(' ') + stringIndex;
|
|
4853
|
+
};
|
|
4848
4854
|
return CommonService;
|
|
4849
4855
|
}());
|
|
4850
4856
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|