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.
@@ -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) {