import { Component, EventEmitter } from '@angular/core'; import { NbCalendarCell, NbCalendarDayPickerComponent, NbCalendarMonthModelService, NbDateService, } from '@nebular/theme'; import { TranslationWidth } from '@angular/common'; @Component({ selector: 'ngx-calendar-kit-month-cell', styleUrls: ['month-cell.component.scss'], templateUrl: 'month-cell.component.html', }) export class CalendarKitMonthCellComponent extends NbCalendarDayPickerComponent implements NbCalendarCell { select: EventEmitter = new EventEmitter(); selectedValue: Date; constructor(private dateService: NbDateService, monthModel: NbCalendarMonthModelService) { super(monthModel); } get title() { return this.dateService.getMonthName(this.date, TranslationWidth.Wide); } }