This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/components/VCalendar/util/events.js.map

1 line
2.9 KiB
Text
Raw Normal View History

2019-08-11 18:48:02 +00:00
{"version":3,"sources":["../../../../src/components/VCalendar/util/events.ts"],"names":[],"mappings":"AAAA,SAEE,cAFF,EAGE,gBAHF,EAIE,sBAJF,QAKO,aALP;AAuBA,OAAM,SAAU,UAAV,CAAsB,KAAtB,EAA0C,KAA1C,EAAyD,aAAzD,EAAgF,WAAhF,EAAmG;AACvG,MAAI,EAAE,aAAa,IAAI,KAAnB,CAAJ,EAA+B;AAC7B,UAAM,IAAI,KAAJ,CAAU,SAAS,aAAT,GAAyB,0GAAnC,CAAN;AACD;;AAED,QAAM,KAAK,GAAe,cAAc,CAAC,KAAK,CAAC,aAAD,CAAN,CAAxC;AACA,QAAM,GAAG,GAAgB,KAAK,CAAC,WAAD,CAAL,GAAqB,cAAc,CAAC,KAAK,CAAC,WAAD,CAAN,CAAnC,GAA0D,KAAnF;AACA,QAAM,eAAe,GAAW,gBAAgB,CAAC,KAAD,CAAhD;AACA,QAAM,wBAAwB,GAAW,sBAAsB,CAAC,KAAD,CAA/D;AACA,QAAM,aAAa,GAAW,gBAAgB,CAAC,GAAD,CAA9C;AACA,QAAM,sBAAsB,GAAW,sBAAsB,CAAC,GAAD,CAA7D;AACA,QAAM,MAAM,GAAY,CAAC,KAAK,CAAC,OAA/B;AAEA,SAAO;AAAE,IAAA,KAAF;AAAS,IAAA,KAAT;AAAgB,IAAA,eAAhB;AAAiC,IAAA,wBAAjC;AAA2D,IAAA,GAA3D;AAAgE,IAAA,aAAhE;AAA+E,IAAA,sBAA/E;AAAuG,IAAA,MAAvG;AAA+G,IAAA;AAA/G,GAAP;AACD;AAED,OAAM,SAAU,SAAV,CAAqB,KAArB,EAA0C,aAA1C,EAA+D;AACnE,SAAO,aAAa,IAAI,KAAK,CAAC,eAAvB,IAA0C,aAAa,IAAI,KAAK,CAAC,aAAxE;AACD;AAED,OAAM,SAAU,kBAAV,CAA8B,KAA9B,EAAmD,eAAnD,EAA4E,aAA5E,EAAiG;AACrG,SAAO,eAAe,IAAI,KAAK,CAAC,aAAzB,IAA0C,aAAa,IAAI,KAAK,CAAC,eAAxE;AACD","sourcesContent":["import {\n VTimestamp,\n parseTimestamp,\n getDayIdentifier,\n getTimestampIdentifier,\n} from './timestamp'\n\nexport interface VEventInput {\n [prop: string]: any\n}\n\nexport interface VEventParsed {\n input: VEventInput\n start: VTimestamp\n startIdentifier: number\n startTimestampIdentifier: number\n end: VTimestamp\n endIdentifier: number\n endTimestampIdentifier: number\n allDay: boolean\n index: number\n}\n\nexport function parseEvent (input: VEventInput, index: number, startProperty: string, endProperty: string): VEventParsed {\n if (!(startProperty in input)) {\n throw new Error('The ' + startProperty + ' property is required on all events to be a valid timestamp in the format YYYY-MM-DD or YYYY-MM-DD hh:mm')\n }\n\n const start: VTimestamp = parseTimestamp(input[startProperty]) as VTimestamp\n const end: VTimestamp = (input[endProperty] ? parseTimestamp(input[endProperty]) : start) as VTimestamp\n const startIdentifier: number = getDayIdentifier(start)\n const startTimestampIdentifier: number = getTimestampIdentifier(start)\n const endIdentifier: number = getDayIdentifier(end)\n const endTimestampIdentifier: number = getTimestampIdentifier(end)\n const allDay: boolean = !start.hasTime\n\n return { input, start, startIdentifier, startTimestampIdentifier, end, endIdentifier, endTimestampIdentifier, allDay, index }\n}\n\nexport function isEventOn (event: VEventParsed, dayIdentifier: number): boolean {\n return dayIdentifier >= event.startIdentifier && dayIdentifier <= event.endIdentifier\n}\n\nexport function isEventOverlapping (event: VEventParsed, startIdentifier: number, endIdentifier: number): boolean {\n return startIdentifier <= event.endIdentifier && endIdentifier >= event.startIdentifier\n}\n"],"sourceRoot":"","file":"events.js"}