@schedule-x/calendar
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -206,2 +206,8 @@ import { Signal } from "@preact/signals"; | ||
} | ||
type CustomComponentFns = { | ||
timeGridEvent?: CustomComponentFn; | ||
dateGridEvent?: CustomComponentFn; | ||
monthGridEvent?: CustomComponentFn; | ||
monthAgendaEvent?: CustomComponentFn; | ||
}; | ||
type WeekOptions = { | ||
@@ -225,6 +231,2 @@ gridHeight: number; | ||
type CustomComponentFn = (wrapperElement: HTMLElement, props: Record<string, unknown>) => void; | ||
type CustomComponentFns = { | ||
timeGridEvent?: CustomComponentFn; | ||
dateGridEvent?: CustomComponentFn; | ||
}; | ||
interface CalendarConfigInternal extends Config { | ||
@@ -297,3 +299,3 @@ defaultView: ViewName; | ||
* */ | ||
_setCustomComponentFn(fnId: "timeGridEvent" | "dateGridEvent", fn: CustomComponentFn): void; | ||
_setCustomComponentFn(fnId: "timeGridEvent" | "dateGridEvent" | "monthGridEvent" | "monthAgendaEvent", fn: CustomComponentFn): void; | ||
} | ||
@@ -300,0 +302,0 @@ declare const createCalendar: (config: CalendarConfigExternal) => CalendarApp; |
@@ -206,2 +206,8 @@ import { Signal } from "@preact/signals"; | ||
} | ||
type CustomComponentFns = { | ||
timeGridEvent?: CustomComponentFn; | ||
dateGridEvent?: CustomComponentFn; | ||
monthGridEvent?: CustomComponentFn; | ||
monthAgendaEvent?: CustomComponentFn; | ||
}; | ||
type WeekOptions = { | ||
@@ -225,6 +231,2 @@ gridHeight: number; | ||
type CustomComponentFn = (wrapperElement: HTMLElement, props: Record<string, unknown>) => void; | ||
type CustomComponentFns = { | ||
timeGridEvent?: CustomComponentFn; | ||
dateGridEvent?: CustomComponentFn; | ||
}; | ||
interface CalendarConfigInternal extends Config { | ||
@@ -297,3 +299,3 @@ defaultView: ViewName; | ||
* */ | ||
_setCustomComponentFn(fnId: "timeGridEvent" | "dateGridEvent", fn: CustomComponentFn): void; | ||
_setCustomComponentFn(fnId: "timeGridEvent" | "dateGridEvent" | "monthGridEvent" | "monthAgendaEvent", fn: CustomComponentFn): void; | ||
} | ||
@@ -300,0 +302,0 @@ declare const createCalendar: (config: CalendarConfigExternal) => CalendarApp; |
@@ -206,2 +206,8 @@ import { Signal } from "@preact/signals"; | ||
} | ||
type CustomComponentFns = { | ||
timeGridEvent?: CustomComponentFn; | ||
dateGridEvent?: CustomComponentFn; | ||
monthGridEvent?: CustomComponentFn; | ||
monthAgendaEvent?: CustomComponentFn; | ||
}; | ||
type WeekOptions = { | ||
@@ -225,6 +231,2 @@ gridHeight: number; | ||
type CustomComponentFn = (wrapperElement: HTMLElement, props: Record<string, unknown>) => void; | ||
type CustomComponentFns = { | ||
timeGridEvent?: CustomComponentFn; | ||
dateGridEvent?: CustomComponentFn; | ||
}; | ||
interface CalendarConfigInternal extends Config { | ||
@@ -297,3 +299,3 @@ defaultView: ViewName; | ||
* */ | ||
_setCustomComponentFn(fnId: "timeGridEvent" | "dateGridEvent", fn: CustomComponentFn): void; | ||
_setCustomComponentFn(fnId: "timeGridEvent" | "dateGridEvent" | "monthGridEvent" | "monthAgendaEvent", fn: CustomComponentFn): void; | ||
} | ||
@@ -300,0 +302,0 @@ declare const createCalendar: (config: CalendarConfigExternal) => CalendarApp; |
{ | ||
"name": "@schedule-x/calendar", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Schedule-X calendar component", | ||
@@ -39,3 +39,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "a209dff68150af52076e4b4eb4a962870ed4bca0" | ||
"gitHead": "5c642352a99424437720fae459a6bf851c22b3b1" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
525958
12679