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