ps-toolkit-ui 1.11.34 → 1.11.35
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 +4 -1
- 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/helper.class.js +2 -2
- package/esm2015/lib/components/form/date/form.date.component.js +4 -1
- package/fesm2015/ps-toolkit-ui.js +4 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
HelperClass.getInputDate = function (amount, unit) {
|
|
1088
1088
|
if (amount === void 0) { amount = 0; }
|
|
1089
1089
|
if (unit === void 0) { unit = 'month'; }
|
|
1090
|
-
return HelperClass.getMoment().add(amount, unit).locale('
|
|
1090
|
+
return HelperClass.getMoment().add(amount, unit).locale('en').format('YYYY/MM/DD');
|
|
1091
1091
|
};
|
|
1092
1092
|
HelperClass.getMoment = function (i, f) {
|
|
1093
1093
|
if (i === void 0) { i = null; }
|
|
@@ -3852,6 +3852,9 @@
|
|
|
3852
3852
|
this.setDate();
|
|
3853
3853
|
return;
|
|
3854
3854
|
}
|
|
3855
|
+
else if (typeof v === 'string' && v.length === 10) {
|
|
3856
|
+
this.active = moment__namespace(v, 'YY/MM/DD').locale('fa');
|
|
3857
|
+
}
|
|
3855
3858
|
else if (typeof v === 'string') {
|
|
3856
3859
|
var d = parseInt(v.substring(6, v.length - 2), 10);
|
|
3857
3860
|
this.active = moment__namespace(d).locale('fa');
|