%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.110 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 : /var/www/html/ppaobm/vendor/bower-asset/fullcalendar-scheduler/src/resource-common/ |
Upload File : |
import { SplittableProps, Calendar, EventUi, isPropsValid, Constraint, EventStore, mergeEventStores } from '@fullcalendar/core' import ResourceSplitter from './common/ResourceSplitter' export function isPropsValidWithResources(props: SplittableProps, calendar: Calendar): boolean { let splitter = new ResourceSplitter() let sets = splitter.splitProps({ ...props, resourceStore: calendar.state.resourceStore }) for (let resourceId in sets) { let props = sets[resourceId] // merge in event data from the non-resource segment if (resourceId && sets['']) { // current segment is not the non-resource one, and there IS a non-resource one props = { ...props, eventStore: mergeEventStores(sets[''].eventStore, props.eventStore), eventUiBases: { ...sets[''].eventUiBases, ...props.eventUiBases } } } if (!isPropsValid(props, calendar, { resourceId }, filterConfig.bind(null, resourceId))) { return false } } return true } function filterConfig(resourceId, config: EventUi) { return { ...config, constraints: filterConstraints(resourceId, config.constraints) } } function filterConstraints(resourceId: string, constraints: Constraint[]) { return constraints.map(function(constraint) { let defs = (constraint as EventStore).defs if (defs) { // we are dealing with an EventStore // if any of the events define constraints to resources that are NOT this resource, // then this resource is unconditionally prohibited, which is what a `false` value does. for (let defId in defs) { let resourceIds = defs[defId].resourceIds if (resourceIds.length && resourceIds.indexOf(resourceId) === -1) { // TODO: use a hash?!!! (for other reasons too) return false } } } return constraint }) }