ps-toolkit-ui 1.11.21 → 1.11.24
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/ps-toolkit-ui.umd.js +3 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +1 -2
- package/esm2015/lib/classes/helper.class.js +4 -1
- package/esm2015/lib/components/form/date/form.date.component.js +1 -2
- package/fesm2015/ps-toolkit-ui.js +3 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1084,6 +1084,9 @@
|
|
|
1084
1084
|
HelperClass.getNow = function () {
|
|
1085
1085
|
return moment.now();
|
|
1086
1086
|
};
|
|
1087
|
+
HelperClass.getDateAdd = function (amount, unit) {
|
|
1088
|
+
return HelperClass.getMoment().add(amount, unit).unix() * 1000;
|
|
1089
|
+
};
|
|
1087
1090
|
HelperClass.getMoment = function (i, f) {
|
|
1088
1091
|
if (i === void 0) { i = null; }
|
|
1089
1092
|
if (f === void 0) { f = null; }
|
|
@@ -1846,7 +1849,6 @@
|
|
|
1846
1849
|
};
|
|
1847
1850
|
this.inputs.forEach(function (inp) {
|
|
1848
1851
|
var e_2, _a;
|
|
1849
|
-
console.log(inp.name, inp.data(), '$$$$$$$$$$$');
|
|
1850
1852
|
var vl = inp.data();
|
|
1851
1853
|
if (vl !== null) {
|
|
1852
1854
|
if (typeof vl === 'object' && !(vl instanceof Array)) {
|
|
@@ -3832,7 +3834,6 @@
|
|
|
3832
3834
|
}
|
|
3833
3835
|
};
|
|
3834
3836
|
this.inp.data = function () {
|
|
3835
|
-
console.log(moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD').locale('en').format('YYYY/MM/DD'), _this.inp.value, _this.inp.search, _this.inp.name);
|
|
3836
3837
|
return _this.inp.value ? moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD').locale('en').format('YYYY/MM/DD') : null;
|
|
3837
3838
|
};
|
|
3838
3839
|
this.inp.focus = function () {
|