diff --git a/package.json b/package.json index 29e39e4..d583006 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@angular/platform-browser-dynamic": "^8.0.0", "@angular/router": "^8.0.0", "core-js": "^2.5.4", - "jdnconvertiblecalendar": "0.0.3", + "jdnconvertiblecalendar": "0.0.4", "rxjs": "^6.5.1", "zone.js": "~0.9.1" }, diff --git a/projects/jdnconvertible-calendar-date-adapter/src/lib/jdnconvertible-calendar-date-adapter.ts b/projects/jdnconvertible-calendar-date-adapter/src/lib/jdnconvertible-calendar-date-adapter.ts index 8c43362..2346868 100644 --- a/projects/jdnconvertible-calendar-date-adapter/src/lib/jdnconvertible-calendar-date-adapter.ts +++ b/projects/jdnconvertible-calendar-date-adapter/src/lib/jdnconvertible-calendar-date-adapter.ts @@ -25,9 +25,8 @@ import { CalendarPeriod, GregorianCalendarDate, JDNConvertibleCalendar, - JDNConvertibleConversionModule, - JDNPeriod, - JulianCalendarDate + JulianCalendarDate, + IslamicCalendarDate } from 'jdnconvertiblecalendar'; @@ -105,6 +104,10 @@ export class JDNConvertibleCalendarDateAdapter extends DateAdapter implements OnInit { * * @param {"Gregorian" | "Julian"} calendar the target calendar format. */ - convertCalendar(calendar: 'Gregorian' | 'Julian') { + convertCalendar(calendar: 'Gregorian' | 'Julian' | 'Islamic') { if (this._dateAdapter instanceof JDNConvertibleCalendarDateAdapter) { @@ -88,6 +88,7 @@ export class HeaderComponent implements OnInit { this._datepickerContent.datepicker.select(convertedDate); this._calendar.updateTodaysDate(); + } } } diff --git a/yarn.lock b/yarn.lock index 5cfd728..29da0a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4282,10 +4282,10 @@ jasminewd2@^2.1.0: resolved "https://registry.yarnpkg.com/jasminewd2/-/jasminewd2-2.2.0.tgz#e37cf0b17f199cce23bea71b2039395246b4ec4e" integrity sha1-43zwsX8ZnM4jvqcbIDk5Uka07E4= -jdnconvertiblecalendar@0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/jdnconvertiblecalendar/-/jdnconvertiblecalendar-0.0.3.tgz#a4e6106340b27bc06bf08cd00912960c666693cc" - integrity sha512-AxqmzIkHLE/iEZuej5S9zTqXOAvtHJIk6iMPM3tLBha9UBclxXqXGeqJtclMflVHuvpzm06e0zJ2YVCSA8vtQg== +jdnconvertiblecalendar@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/jdnconvertiblecalendar/-/jdnconvertiblecalendar-0.0.4.tgz#83b9bfe0a3d589211ad13f6ac8524691817b7703" + integrity sha512-GmUZOcvD3ER3YaTnxkEnMToFH6Q8DpnbSM+7f+RZzDvKa/YLeiuU0gd+RWbyCxwA4mtWA/eJ9H+7HANjkjoqcA== "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0"