ps-toolkit-ui 1.5.95 → 1.5.98

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,6 @@
3627
3627
  }
3628
3628
  FormDateComponent.prototype.ngOnInit = function () {
3629
3629
  var _this = this;
3630
- moment.locale('fa');
3631
3630
  var today = moment__namespace().locale('fa');
3632
3631
  this.todayDay = parseInt(today.format('jDD'), 10);
3633
3632
  this.todayMonth = parseInt(today.format('jMM'), 10);
@@ -3673,16 +3672,16 @@
3673
3672
  FormDateComponent.prototype.setInpValue = function (v) {
3674
3673
  if (v === null) {
3675
3674
  this.inp.clear();
3676
- this.active = moment__namespace();
3675
+ this.active = moment__namespace().locale('fa');
3677
3676
  this.setDate();
3678
3677
  return;
3679
3678
  }
3680
3679
  else if (typeof v === 'string') {
3681
3680
  var d = parseInt(v.substring(6, v.length - 2), 10);
3682
- this.active = moment__namespace(d);
3681
+ this.active = moment__namespace(d).locale('fa');
3683
3682
  }
3684
3683
  else if (typeof v === 'number') {
3685
- this.active = moment__namespace(v);
3684
+ this.active = moment__namespace(v).locale('fa');
3686
3685
  }
3687
3686
  else {
3688
3687
  this.active = v;