diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts index 9fd62b3f70da6..364ea2b009701 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts @@ -8,6 +8,7 @@ import { Inject, Input, NgZone, + Optional, Output, Self, ViewChild, @@ -135,8 +136,9 @@ export class TuiMobileCalendarComponent implements AfterViewInit { @Inject(TUI_DONE_WORD) readonly doneWord$: Observable, @Inject(TUI_SHORT_WEEK_DAYS) readonly unorderedWeekDays$: TuiInjectionTokenType, + @Optional() @Inject(TUI_CHOOSE_DAY_OR_RANGE_TEXTS) - readonly chooseDayOrRangeTexts$: Observable<[string, string, string]>, + readonly chooseDayOrRangeTexts$: Observable<[string, string, string]> | null, @Inject(TUI_ANIMATIONS_DURATION) private readonly duration: number, @Inject(NgZone) private readonly ngZone: NgZone, ) { diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.template.html b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.template.html index 24e2f07041bb6..7d03e2f553c6a 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.template.html +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.template.html @@ -1,4 +1,7 @@ -
+