"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/common/src/options.ts" between
fullcalendar-5.9.0.tar.gz and fullcalendar-5.10.0.tar.gz

About: FullCalendar is a full-sized drag & drop JavaScript event calendar.

options.ts  (fullcalendar-5.9.0):options.ts  (fullcalendar-5.10.0)
skipping to change at line 44 skipping to change at line 44
VUIEvent, VUIEvent,
WeekNumberCalculation, WeekNumberCalculation,
FormatterInput, FormatterInput,
ToolbarInput, CustomButtonInput, ButtonIconsInput, ButtonTextCompoundInput, ToolbarInput, CustomButtonInput, ButtonIconsInput, ButtonTextCompoundInput,
EventContentArg, EventMountArg, EventContentArg, EventMountArg,
DatesSetArg, DatesSetArg,
EventApi, EventAddArg, EventChangeArg, EventRemoveArg, EventApi, EventAddArg, EventChangeArg, EventRemoveArg,
MoreLinkContentArg, MoreLinkContentArg,
MoreLinkMountArg, MoreLinkMountArg,
MoreLinkAction, MoreLinkAction,
ButtonHintCompoundInput,
} from './api-type-deps' } from './api-type-deps'
// base options // base options
// ------------ // ------------
export const BASE_OPTION_REFINERS = { export const BASE_OPTION_REFINERS = {
navLinkDayClick: identity as Identity<string | ((this: CalendarApi, date: Date , jsEvent: VUIEvent) => void)>, navLinkDayClick: identity as Identity<string | ((this: CalendarApi, date: Date , jsEvent: VUIEvent) => void)>,
navLinkWeekClick: identity as Identity<string | ((this: CalendarApi, weekStart : Date, jsEvent: VUIEvent) => void)>, navLinkWeekClick: identity as Identity<string | ((this: CalendarApi, weekStart : Date, jsEvent: VUIEvent) => void)>,
duration: createDuration, duration: createDuration,
bootstrapFontAwesome: identity as Identity<ButtonIconsInput | false>, // TODO: move to bootstrap plugin bootstrapFontAwesome: identity as Identity<ButtonIconsInput | false>, // TODO: move to bootstrap plugin
skipping to change at line 136 skipping to change at line 137
longPressDelay: Number, longPressDelay: Number,
eventDragMinDistance: Number, eventDragMinDistance: Number,
expandRows: Boolean, expandRows: Boolean,
height: identity as Identity<CssDimValue>, height: identity as Identity<CssDimValue>,
contentHeight: identity as Identity<CssDimValue>, contentHeight: identity as Identity<CssDimValue>,
direction: String as Identity<'ltr' | 'rtl'>, direction: String as Identity<'ltr' | 'rtl'>,
weekNumberFormat: createFormatter, weekNumberFormat: createFormatter,
eventResizableFromStart: Boolean, eventResizableFromStart: Boolean,
displayEventTime: Boolean, displayEventTime: Boolean,
displayEventEnd: Boolean, displayEventEnd: Boolean,
weekText: String, weekText: String, // the short version
weekTextLong: String, // falls back to weekText
progressiveEventRendering: Boolean, progressiveEventRendering: Boolean,
businessHours: identity as Identity<BusinessHoursInput>, businessHours: identity as Identity<BusinessHoursInput>,
initialDate: identity as Identity<DateInput>, initialDate: identity as Identity<DateInput>,
now: identity as Identity<DateInput | ((this: CalendarApi) => DateInput)>, now: identity as Identity<DateInput | ((this: CalendarApi) => DateInput)>,
eventDataTransform: identity as Identity<EventInputTransformer>, eventDataTransform: identity as Identity<EventInputTransformer>,
stickyHeaderDates: identity as Identity<boolean | 'auto'>, stickyHeaderDates: identity as Identity<boolean | 'auto'>,
stickyFooterScrollbar: identity as Identity<boolean | 'auto'>, stickyFooterScrollbar: identity as Identity<boolean | 'auto'>,
viewHeight: identity as Identity<CssDimValue>, viewHeight: identity as Identity<CssDimValue>,
defaultAllDay: Boolean, defaultAllDay: Boolean,
eventSourceFailure: identity as Identity<(this: CalendarApi, error: any) => vo id>, eventSourceFailure: identity as Identity<(this: CalendarApi, error: any) => vo id>,
skipping to change at line 199 skipping to change at line 201
allDayClassNames: identity as Identity<ClassNamesGenerator<AllDayContentArg>>, allDayClassNames: identity as Identity<ClassNamesGenerator<AllDayContentArg>>,
allDayContent: identity as Identity<CustomContentGenerator<AllDayContentArg>>, allDayContent: identity as Identity<CustomContentGenerator<AllDayContentArg>>,
allDayDidMount: identity as Identity<DidMountHandler<AllDayMountArg>>, allDayDidMount: identity as Identity<DidMountHandler<AllDayMountArg>>,
allDayWillUnmount: identity as Identity<WillUnmountHandler<AllDayMountArg>>, allDayWillUnmount: identity as Identity<WillUnmountHandler<AllDayMountArg>>,
slotMinWidth: Number, // move to timeline? slotMinWidth: Number, // move to timeline?
navLinks: Boolean, navLinks: Boolean,
eventTimeFormat: createFormatter, eventTimeFormat: createFormatter,
rerenderDelay: Number, // TODO: move to @fullcalendar/core right? nah keep her e rerenderDelay: Number, // TODO: move to @fullcalendar/core right? nah keep her e
moreLinkText: identity as Identity<string | ((this: CalendarApi, num: number) => string)>, // this not enforced :( check others too moreLinkText: identity as Identity<string | ((this: CalendarApi, num: number) => string)>, // this not enforced :( check others too
moreLinkHint: identity as Identity<string | ((this: CalendarApi, num: number) => string)>,
selectMinDistance: Number, selectMinDistance: Number,
selectable: Boolean, selectable: Boolean,
selectLongPressDelay: Number, selectLongPressDelay: Number,
eventLongPressDelay: Number, eventLongPressDelay: Number,
selectMirror: Boolean, selectMirror: Boolean,
eventMaxStack: Number, eventMaxStack: Number,
eventMinHeight: Number, eventMinHeight: Number,
eventMinWidth: Number, eventMinWidth: Number,
eventShortHeight: Number, eventShortHeight: Number,
skipping to change at line 222 skipping to change at line 225
dayCount: Number, dayCount: Number,
dateAlignment: String, dateAlignment: String,
dateIncrement: createDuration, dateIncrement: createDuration,
hiddenDays: identity as Identity<number[]>, hiddenDays: identity as Identity<number[]>,
monthMode: Boolean, monthMode: Boolean,
fixedWeekCount: Boolean, fixedWeekCount: Boolean,
validRange: identity as Identity<DateRangeInput | ((this: CalendarApi, nowDate : Date) => DateRangeInput)>, // `this` works? validRange: identity as Identity<DateRangeInput | ((this: CalendarApi, nowDate : Date) => DateRangeInput)>, // `this` works?
visibleRange: identity as Identity<DateRangeInput | ((this: CalendarApi, curre ntDate: Date) => DateRangeInput)>, // `this` works? visibleRange: identity as Identity<DateRangeInput | ((this: CalendarApi, curre ntDate: Date) => DateRangeInput)>, // `this` works?
titleFormat: identity as Identity<FormatterInput>, // DONT parse just yet. we need to inject titleSeparator titleFormat: identity as Identity<FormatterInput>, // DONT parse just yet. we need to inject titleSeparator
eventInteractive: Boolean,
// only used by list-view, but languages define the value, so we need it in ba se options // only used by list-view, but languages define the value, so we need it in ba se options
noEventsText: String, noEventsText: String,
viewHint: identity as Identity<string | ((...args: any[]) => string)>,
navLinkHint: identity as Identity<string | ((...args: any[]) => string)>,
closeHint: String,
timeHint: String,
eventHint: String,
moreLinkClick: identity as Identity<MoreLinkAction>, moreLinkClick: identity as Identity<MoreLinkAction>,
moreLinkClassNames: identity as Identity<ClassNamesGenerator<MoreLinkContentAr g>>, moreLinkClassNames: identity as Identity<ClassNamesGenerator<MoreLinkContentAr g>>,
moreLinkContent: identity as Identity<CustomContentGenerator<MoreLinkContentAr g>>, moreLinkContent: identity as Identity<CustomContentGenerator<MoreLinkContentAr g>>,
moreLinkDidMount: identity as Identity<DidMountHandler<MoreLinkMountArg>>, moreLinkDidMount: identity as Identity<DidMountHandler<MoreLinkMountArg>>,
moreLinkWillUnmount: identity as Identity<WillUnmountHandler<MoreLinkMountArg> >, moreLinkWillUnmount: identity as Identity<WillUnmountHandler<MoreLinkMountArg> >,
} }
type BuiltInBaseOptionRefiners = typeof BASE_OPTION_REFINERS type BuiltInBaseOptionRefiners = typeof BASE_OPTION_REFINERS
export interface BaseOptionRefiners extends BuiltInBaseOptionRefiners { export interface BaseOptionRefiners extends BuiltInBaseOptionRefiners {
skipping to change at line 343 skipping to change at line 354
} }
type CalendarListenersLoose = RefinedOptionsFromRefiners<Required<CalendarListen erRefiners>> // Required hack type CalendarListenersLoose = RefinedOptionsFromRefiners<Required<CalendarListen erRefiners>> // Required hack
export type CalendarListeners = Required<CalendarListenersLoose> // much more co nvenient for Emitters and whatnot export type CalendarListeners = Required<CalendarListenersLoose> // much more co nvenient for Emitters and whatnot
// calendar-specific options // calendar-specific options
// ------------------------- // -------------------------
export const CALENDAR_OPTION_REFINERS = { // does not include base nor calendar listeners export const CALENDAR_OPTION_REFINERS = { // does not include base nor calendar listeners
buttonText: identity as Identity<ButtonTextCompoundInput>, buttonText: identity as Identity<ButtonTextCompoundInput>,
buttonHints: identity as Identity<ButtonHintCompoundInput>,
views: identity as Identity<{ [viewId: string]: ViewOptions }>, views: identity as Identity<{ [viewId: string]: ViewOptions }>,
plugins: identity as Identity<PluginDef[]>, plugins: identity as Identity<PluginDef[]>,
initialEvents: identity as Identity<EventSourceInput>, initialEvents: identity as Identity<EventSourceInput>,
events: identity as Identity<EventSourceInput>, events: identity as Identity<EventSourceInput>,
eventSources: identity as Identity<EventSourceInput[]>, eventSources: identity as Identity<EventSourceInput[]>,
} }
type BuiltInCalendarOptionRefiners = typeof CALENDAR_OPTION_REFINERS type BuiltInCalendarOptionRefiners = typeof CALENDAR_OPTION_REFINERS
export interface CalendarOptionRefiners extends BuiltInCalendarOptionRefiners { export interface CalendarOptionRefiners extends BuiltInCalendarOptionRefiners {
skipping to change at line 372 skipping to change at line 384
BaseOptionsRefined & BaseOptionsRefined &
CalendarListenersLoose & CalendarListenersLoose &
RefinedOptionsFromRefiners<Required<CalendarOptionRefiners>> // Required hack RefinedOptionsFromRefiners<Required<CalendarOptionRefiners>> // Required hack
export const COMPLEX_OPTION_COMPARATORS: { export const COMPLEX_OPTION_COMPARATORS: {
[optionName in keyof CalendarOptions]: (a: CalendarOptions[optionName], b: Cal endarOptions[optionName]) => boolean [optionName in keyof CalendarOptions]: (a: CalendarOptions[optionName], b: Cal endarOptions[optionName]) => boolean
} = { } = {
headerToolbar: isBoolComplexEqual, headerToolbar: isBoolComplexEqual,
footerToolbar: isBoolComplexEqual, footerToolbar: isBoolComplexEqual,
buttonText: isBoolComplexEqual, buttonText: isBoolComplexEqual,
buttonHints: isBoolComplexEqual,
buttonIcons: isBoolComplexEqual, buttonIcons: isBoolComplexEqual,
} }
function isBoolComplexEqual(a, b) { function isBoolComplexEqual(a, b) {
if (typeof a === 'object' && typeof b === 'object' && a && b) { // both non-nu ll objects if (typeof a === 'object' && typeof b === 'object' && a && b) { // both non-nu ll objects
return isPropsEqual(a, b) return isPropsEqual(a, b)
} }
return a === b return a === b
} }
 End of changes. 7 change blocks. 
1 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)