ps-toolkit-ui 1.5.93 → 1.5.96

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