ps-toolkit-ui 1.5.90 → 1.5.91

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.
@@ -3627,8 +3627,8 @@
3627
3627
  }
3628
3628
  FormDateComponent.prototype.ngOnInit = function () {
3629
3629
  var _this = this;
3630
- // moment.locale('fa');
3631
- var today = moment__namespace().locale('fa');
3630
+ moment.locale('fa');
3631
+ var today = moment__namespace();
3632
3632
  this.todayDay = parseInt(today.format('jDD'), 10);
3633
3633
  this.todayMonth = parseInt(today.format('jMM'), 10);
3634
3634
  this.todayYear = parseInt(today.format('jYYYY'), 10);
@@ -3673,26 +3673,26 @@
3673
3673
  FormDateComponent.prototype.setInpValue = function (v) {
3674
3674
  if (v === null) {
3675
3675
  this.inp.clear();
3676
- this.active = moment__namespace().locale('fa');
3676
+ this.active = moment__namespace();
3677
3677
  this.setDate();
3678
3678
  return;
3679
3679
  }
3680
3680
  else if (typeof v === 'string') {
3681
3681
  var d = parseInt(v.substring(6, v.length - 2), 10);
3682
- this.active = moment__namespace(d).locale('fa');
3682
+ this.active = moment__namespace(d);
3683
3683
  }
3684
3684
  else if (typeof v === 'number') {
3685
- this.active = moment__namespace(v).locale('fa');
3685
+ this.active = moment__namespace(v);
3686
3686
  }
3687
3687
  else {
3688
- this.active = v.locale('fa');
3688
+ this.active = v;
3689
3689
  }
3690
3690
  this.inp.value = this.active.format('jYYYY/jMM/jDD');
3691
3691
  this.inp.search = this.active.format('jYYYY/jMM/jDD');
3692
3692
  this.setDate();
3693
3693
  };
3694
3694
  FormDateComponent.prototype.setDate = function () {
3695
- var n = this.active.locale('fa').clone();
3695
+ var n = this.active.clone();
3696
3696
  var countDayInMonth = n.daysInMonth();
3697
3697
  var startWeek = parseInt(n.startOf('month').format('d'), 10);
3698
3698
  var previousMonth = n.subtract(1, 'month');