ps-toolkit-ui 1.12.45 → 1.12.47

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.
@@ -3992,15 +3992,7 @@
3992
3992
  }
3993
3993
  };
3994
3994
  this.inp.data = function () {
3995
- if (_this.inp.value == null) {
3996
- return null;
3997
- }
3998
- var d = {};
3999
- var m = moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD');
4000
- d[_this.inp.name] = m.locale('en').format('YYYY/MM/DD');
4001
- d[_this.inp.name + 'Start'] = m.locale('fa').startOf('month').locale('en').format('YYYY/MM/DD');
4002
- d[_this.inp.name + 'End'] = m.locale('fa').endOf('month').locale('en').format('YYYY/MM/DD');
4003
- return d;
3995
+ return _this.inp.value ? moment__namespace(_this.inp.value, 'jYYYY/jMM/jDD').locale('en').format('YYYY/MM/DD') : null;
4004
3996
  };
4005
3997
  this.inp.focus = function () {
4006
3998
  _this.openCalendar();