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.
- package/bundles/ps-toolkit-ui.umd.js +6 -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 +7 -6
- package/fesm2015/ps-toolkit-ui.js +7 -6
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -3627,7 +3627,8 @@
|
|
|
3627
3627
|
}
|
|
3628
3628
|
FormDateComponent.prototype.ngOnInit = function () {
|
|
3629
3629
|
var _this = this;
|
|
3630
|
-
|
|
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()
|
|
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)
|
|
3683
|
+
this.active = moment__namespace(d);
|
|
3683
3684
|
}
|
|
3684
3685
|
else if (typeof v === 'number') {
|
|
3685
|
-
this.active = moment__namespace(v)
|
|
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.
|
|
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');
|