nuxeo-development-framework 5.0.1 → 5.0.2
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/nuxeo-development-framework.umd.js +12 -0
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.js +14 -1
- package/fesm2015/nuxeo-development-framework.js +12 -0
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-form/components/dynamic-form-hijri-dateitem/dynamic-form-hijri-dateitem.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -10763,6 +10763,10 @@
|
|
|
10763
10763
|
function DynamicFormHijriDateitemComponent(dateFormatterService, control) {
|
|
10764
10764
|
this.dateFormatterService = dateFormatterService;
|
|
10765
10765
|
this.control = control;
|
|
10766
|
+
/** Minimum Hijri Date */
|
|
10767
|
+
this.minHijri = this.getHijriDateMinusYears(50);
|
|
10768
|
+
/** Minimum Gregorian Date */
|
|
10769
|
+
this.minGreg = this.getGregDateMinusYears(50);
|
|
10766
10770
|
/** list inputs vertically (for range only) */
|
|
10767
10771
|
this.vertical = false;
|
|
10768
10772
|
/** Sets picker to readonly mode */
|
|
@@ -10777,6 +10781,14 @@
|
|
|
10777
10781
|
// this.date = this.dateFormatterService.GetTodayGregorian();
|
|
10778
10782
|
}
|
|
10779
10783
|
}
|
|
10784
|
+
DynamicFormHijriDateitemComponent.prototype.getGregDateMinusYears = function (years) {
|
|
10785
|
+
var today = this.dateFormatterService.GetTodayGregorian();
|
|
10786
|
+
return new i1$5.NgbDate(today.year - years, today.month, today.day);
|
|
10787
|
+
};
|
|
10788
|
+
DynamicFormHijriDateitemComponent.prototype.getHijriDateMinusYears = function (years) {
|
|
10789
|
+
var today = this.dateFormatterService.GetTodayHijri();
|
|
10790
|
+
return new i1$5.NgbDate(today.year - years, today.month, today.day);
|
|
10791
|
+
};
|
|
10780
10792
|
DynamicFormHijriDateitemComponent.prototype.writeValue = function (obj) {
|
|
10781
10793
|
if (obj) {
|
|
10782
10794
|
if (!this.range) {
|