From ef0b2aeaa9d0203e0671429820751397f8983b83 Mon Sep 17 00:00:00 2001 From: Jatin_Chugh Date: Thu, 27 Jul 2023 11:17:12 +0530 Subject: [PATCH] added type MatDatepickerInputEvent for parameter $event --- .../card-view-dateitem/card-view-dateitem.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.ts b/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.ts index 59c22541a41..8d94fa33c20 100644 --- a/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.ts +++ b/lib/core/src/lib/card-view/components/card-view-dateitem/card-view-dateitem.component.ts @@ -26,7 +26,7 @@ import { BaseCardView } from '../base-card-view'; import { ClipboardService } from '../../../clipboard/clipboard.service'; import { TranslationService } from '../../../translation/translation.service'; import { endOfDay, parse, startOfDay } from 'date-fns'; -import { MatDatepicker } from '@angular/material/datepicker'; +import { MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker'; import { DateFnsUtils } from '../../../common/utils/date-fns-utils'; @Component({ @@ -111,7 +111,7 @@ export class CardViewDateItemComponent extends BaseCardView) { if (newDateValue) { const date = this.getDateValue(newDateValue); if (date) { @@ -134,7 +134,7 @@ export class CardViewDateItemComponent extends BaseCardView) { if (newDateValue) { const date = this.getDateValue(newDateValue); if (date) { @@ -153,7 +153,7 @@ export class CardViewDateItemComponent extends BaseCardView): Date { return this.property.key === 'properties.cm:from' ? startOfDay(newDateValue.value) : endOfDay(newDateValue.value); } }