ps-toolkit-ui 1.5.91 → 1.5.92
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.
- package/bundles/ps-toolkit-ui.umd.js +5 -5
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/date/form.date.component.js +6 -6
- package/fesm2015/ps-toolkit-ui.js +6 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -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();
|
|
3630
|
+
// moment.locale('fa');
|
|
3631
|
+
var today = moment__namespace().locale('fa');
|
|
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,16 +3673,16 @@
|
|
|
3673
3673
|
FormDateComponent.prototype.setInpValue = function (v) {
|
|
3674
3674
|
if (v === null) {
|
|
3675
3675
|
this.inp.clear();
|
|
3676
|
-
this.active = moment__namespace();
|
|
3676
|
+
this.active = moment__namespace().locale('fa');
|
|
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);
|
|
3682
|
+
this.active = moment__namespace(d).locale('fa');
|
|
3683
3683
|
}
|
|
3684
3684
|
else if (typeof v === 'number') {
|
|
3685
|
-
this.active = moment__namespace(v);
|
|
3685
|
+
this.active = moment__namespace(v).locale('fa');
|
|
3686
3686
|
}
|
|
3687
3687
|
else {
|
|
3688
3688
|
this.active = v;
|