diff --git a/types/event-calendar__core/event-calendar__core-tests.ts b/types/event-calendar__core/event-calendar__core-tests.ts index 373466a71567d7..ad65aed1c161f4 100644 --- a/types/event-calendar__core/event-calendar__core-tests.ts +++ b/types/event-calendar__core/event-calendar__core-tests.ts @@ -140,8 +140,10 @@ cal = createCalendar(target, plugins, { customScrollbars: true, date: "1997-04-12", dateClick: (_info: Calendar.DateClickInfo) => {}, + dateIncrement: { days: 7 }, datesAboveResources: false, datesSet: (_info: Calendar.DatesSetInfo) => {}, + dayCellContent: { html: "" }, dayCellFormat: dateFormat, dayHeaderAriaLabelFormat: dateFormat, dayHeaderFormat: dateFormat, @@ -272,6 +274,7 @@ cal.setOption("buttonText", () => { return customButtons; }) .setOption("columnWidth", undefined) + .setOption("dayCellContent", (_arg: Calendar.DayCellContentArg) => "content") .setOption("dayCellFormat", (_d: Date) => "content") .setOption("dayHeaderAriaLabelFormat", (_d: Date) => "content") .setOption("dayHeaderFormat", (_d: Date) => "content") @@ -326,6 +329,7 @@ let validResource: Calendar.Resource = { title: "content", eventBackgroundColor: undefined, eventTextColor: undefined, + expanded: true, extendedProps: { a: 1, b: "two", c: [] }, }; const { title, ...rest } = validResource; diff --git a/types/event-calendar__core/index.d.ts b/types/event-calendar__core/index.d.ts index 1173ee7324576b..7e1e878267b83a 100644 --- a/types/event-calendar__core/index.d.ts +++ b/types/event-calendar__core/index.d.ts @@ -78,6 +78,7 @@ export namespace Calendar { title?: Content; eventBackgroundColor?: string; eventTextColor?: string; + expanded?: boolean; extendedProps?: Record; children?: ResourceInput[]; } @@ -87,6 +88,7 @@ export namespace Calendar { title: Content; eventBackgroundColor: string | undefined; eventTextColor: string | undefined; + expanded: boolean; extendedProps: Record; } @@ -131,6 +133,13 @@ export namespace Calendar { view: View; } + interface DayCellContentArg { + allDay: boolean; + date: Date; + isToday: boolean; + resource: Resource; + } + interface EventClassNamesInfo { event: Event; view: View; @@ -326,8 +335,10 @@ export namespace Calendar { customScrollbars?: boolean; date?: Date | string | undefined; dateClick?: (info: DateClickInfo) => void; + dateIncrement?: DurationInput; datesAboveResources?: boolean; datesSet?: (info: DatesSetInfo) => void; + dayCellContent?: Content | ((arg: DayCellContentArg) => Content); dayCellFormat?: Intl.DateTimeFormatOptions | ((d: Date) => Content); dayHeaderAriaLabelFormat?: Intl.DateTimeFormatOptions | ((d: Date) => Content); dayHeaderFormat?: Intl.DateTimeFormatOptions | ((d: Date) => Content); diff --git a/types/event-calendar__core/package.json b/types/event-calendar__core/package.json index ec6b13ede7fa2a..37feea24bf37d5 100644 --- a/types/event-calendar__core/package.json +++ b/types/event-calendar__core/package.json @@ -2,7 +2,7 @@ "private": true, "type": "module", "name": "@types/event-calendar__core", - "version": "5.5.9999", + "version": "5.6.9999", "projects": [ "https://vkurko.github.io/calendar/" ],