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.
@@ -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('fa').format('jYYYY/jMM/jDD');
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');