ps-toolkit-ui 1.17.61 → 1.17.63
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 -3
- 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/classes/form.class.js +3 -2
- package/esm2015/lib/components/form/date/form.date.component.js +2 -3
- package/fesm2015/ps-toolkit-ui.js +3 -3
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -2592,7 +2592,8 @@
|
|
|
2592
2592
|
});
|
|
2593
2593
|
if (this.type === exports.InputType.SelectSearch || this.type === exports.InputType.Select || this.type === exports.InputType.SelectAutoComplete ||
|
|
2594
2594
|
this.type === exports.InputType.SelectAutoCompletePlaque || this.type === exports.InputType.SelectAutoCompletePlaqueM ||
|
|
2595
|
-
this.type === exports.InputType.SelectAutoCompletePlaqueF || this.type === exports.InputType.SelectAutoCompletePlaqueG ||
|
|
2595
|
+
this.type === exports.InputType.SelectAutoCompletePlaqueF || this.type === exports.InputType.SelectAutoCompletePlaqueG ||
|
|
2596
|
+
this.type === exports.InputType.Radio || this.type === exports.InputType.Slide) {
|
|
2596
2597
|
var r = this.getOptions(result_1, null);
|
|
2597
2598
|
this.setOptions(r);
|
|
2598
2599
|
}
|
|
@@ -4481,7 +4482,6 @@
|
|
|
4481
4482
|
};
|
|
4482
4483
|
};
|
|
4483
4484
|
FormDateComponent.prototype.setInpValue = function (v) {
|
|
4484
|
-
console.log(this.inp.name, v);
|
|
4485
4485
|
if (v === null) {
|
|
4486
4486
|
this.inp.clear();
|
|
4487
4487
|
this.active = moment__namespace().locale('fa');
|
|
@@ -4496,7 +4496,7 @@
|
|
|
4496
4496
|
this.active = moment__namespace(d).locale('fa');
|
|
4497
4497
|
}
|
|
4498
4498
|
else if (typeof v === 'number') {
|
|
4499
|
-
this.active = moment__namespace(v).locale('fa');
|
|
4499
|
+
this.active = this.inp.type === exports.InputType.Month ? moment__namespace(moment__namespace(v).locale('fa').format('jYYYY/jMM/jDD'), 'jYYYY/jMM/01').locale('fa') : moment__namespace(v).locale('fa');
|
|
4500
4500
|
}
|
|
4501
4501
|
else {
|
|
4502
4502
|
this.active = v;
|