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
|
@@ -727,6 +727,9 @@ class HelperClass {
|
|
|
727
727
|
static getNow() {
|
|
728
728
|
return now();
|
|
729
729
|
}
|
|
730
|
+
static getDateAdd(amount, unit) {
|
|
731
|
+
return HelperClass.getMoment().add(amount, unit).unix() * 1000;
|
|
732
|
+
}
|
|
730
733
|
static getMoment(i = null, f = null) {
|
|
731
734
|
if (i == null) {
|
|
732
735
|
return moment();
|
|
@@ -1400,7 +1403,6 @@ class FormClass {
|
|
|
1400
1403
|
}
|
|
1401
1404
|
};
|
|
1402
1405
|
this.inputs.forEach(inp => {
|
|
1403
|
-
console.log(inp.name, inp.data(), '$$$$$$$$$$$');
|
|
1404
1406
|
const vl = inp.data();
|
|
1405
1407
|
if (vl !== null) {
|
|
1406
1408
|
if (typeof vl === 'object' && !(vl instanceof Array)) {
|
|
@@ -3139,7 +3141,6 @@ class FormDateComponent {
|
|
|
3139
3141
|
}
|
|
3140
3142
|
};
|
|
3141
3143
|
this.inp.data = () => {
|
|
3142
|
-
console.log(moment(this.inp.value, 'jYYYY/jMM/jDD').locale('en').format('YYYY/MM/DD'), this.inp.value, this.inp.search, this.inp.name);
|
|
3143
3144
|
return this.inp.value ? moment(this.inp.value, 'jYYYY/jMM/jDD').locale('en').format('YYYY/MM/DD') : null;
|
|
3144
3145
|
};
|
|
3145
3146
|
this.inp.focus = () => {
|