@fullcalendar/timeline 5.11.3 → 6.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1,18 +1,18 @@
1
1
 
2
2
  For complete licensing information, visit:
3
- http://fullcalendar.io/scheduler/license
3
+ https://fullcalendar.io/scheduler/license
4
4
 
5
5
  FullCalendar Scheduler is tri-licensed, meaning you must choose
6
6
  one of three licenses to use. Here is a summary of those licenses:
7
7
 
8
8
  - Commercial License
9
- (a paid license, meant for commercial use)
10
- http://fullcalendar.io/scheduler/license-details
9
+ (a paid license, intended for commercial use)
10
+ https://fullcalendar.io/scheduler/license-details
11
11
 
12
12
  - Creative Commons Non-Commercial No-Derivatives
13
- (meant for trial and non-commercial use)
13
+ (intended for trial and non-commercial use)
14
14
  https://creativecommons.org/licenses/by-nc-nd/4.0/
15
15
 
16
16
  - GPLv3 License
17
- (meant for open-source projects)
17
+ (intended for open-source projects)
18
18
  http://www.gnu.org/licenses/gpl-3.0.en.html
package/index.cjs ADDED
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index_cjs = require('@fullcalendar/core/index.cjs');
6
+ var premiumCommonPlugin = require('@fullcalendar/premium-common/index.cjs');
7
+ var internalCommon = require('./internal.cjs');
8
+ require('@fullcalendar/scrollgrid/index.cjs');
9
+ var internal_cjs = require('@fullcalendar/core/internal.cjs');
10
+ require('@fullcalendar/core/preact.cjs');
11
+ require('@fullcalendar/scrollgrid/internal.cjs');
12
+
13
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
+
15
+ var premiumCommonPlugin__default = /*#__PURE__*/_interopDefaultLegacy(premiumCommonPlugin);
16
+
17
+ var css_248z = "\n\n .fc .fc-timeline-body {\n min-height: 100%;\n position: relative;\n z-index: 1; /* scope slots, bg, etc */\n }\n/*\nvertical slots in both the header AND the body\n*/\n.fc .fc-timeline-slots {\n position: absolute;\n z-index: 1;\n top: 0;\n bottom: 0\n }\n.fc .fc-timeline-slots > table {\n height: 100%;\n }\n.fc {\n\n /* border for both header AND body cells */\n\n}\n.fc .fc-timeline-slot-minor {\n border-style: dotted;\n }\n.fc {\n\n /* header cells (aka \"label\") */\n\n}\n.fc .fc-timeline-slot-frame {\n display: flex;\n align-items: center; /* vertical align */\n justify-content: center; /* horizontal align */\n }\n.fc .fc-timeline-header-row-chrono { /* a row of times */\n }\n.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame {\n justify-content: flex-start; /* horizontal align left or right */\n }\n.fc .fc-timeline-header-row:last-child { /* guaranteed NOT to have sticky elements */\n }\n.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame {\n /* so text doesn't bleed out and cause extra scroll */\n /* (won't work with sticky elements) */\n overflow: hidden;\n }\n.fc .fc-timeline-slot-cushion {\n padding: 4px 5px; /* TODO: unify with fc-col-header? */\n white-space: nowrap;\n }\n.fc {\n\n /* NOTE: how does the top row of cells get horizontally centered? */\n /* for the non-chrono-row, the fc-sticky system looks for text-align center, */\n /* and it's a fluke that the default browser stylesheet already does this for <th> */\n /* TODO: have StickyScrolling look at natural left coord to detect centeredness. */\n\n}\n/* only owns one side, so can do dotted */\n.fc-direction-ltr .fc-timeline-slot { border-right: 0 !important }\n.fc-direction-rtl .fc-timeline-slot { border-left: 0 !important }\n.fc .fc-timeline-now-indicator-container {\n position: absolute;\n z-index: 4;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 0;\n }\n.fc .fc-timeline-now-indicator-arrow,\n .fc .fc-timeline-now-indicator-line {\n position: absolute;\n top: 0;\n border-style: solid;\n border-color: var(--fc-now-indicator-color);\n }\n.fc .fc-timeline-now-indicator-arrow {\n margin: 0 -6px; /* 5, then one more to counteract scroller's negative margins */\n\n /* triangle pointing down. TODO: mixin */\n border-width: 6px 5px 0 5px;\n border-left-color: transparent;\n border-right-color: transparent;\n }\n.fc .fc-timeline-now-indicator-line {\n margin: 0 -1px; /* counteract scroller's negative margins */\n bottom: 0;\n border-width: 0 0 0 1px;\n }\n.fc {\n\n /* container */\n\n}\n.fc .fc-timeline-events {\n position: relative;\n z-index: 3;\n width: 0; /* for event positioning. will end up on correct side based on dir */\n }\n.fc {\n\n /* harness */\n\n}\n.fc .fc-timeline-event-harness,\n .fc .fc-timeline-more-link {\n position: absolute;\n top: 0; /* for when when top can't be computed yet */\n /* JS will set tht left/right */\n }\n/* z-index, scoped within fc-timeline-events */\n.fc-timeline-event { z-index: 1 }\n.fc-timeline-event.fc-event-mirror { z-index: 2 }\n.fc-timeline-event {\n position: relative; /* contains things. TODO: make part of fc-h-event and fc-v-event */\n display: flex; /* for v-aligning start/end arrows and making fc-event-main stretch all the way */\n align-items: center;\n border-radius: 0;\n padding: 2px 1px;\n margin-bottom: 1px;\n font-size: var(--fc-small-font-size)\n\n /* time and title spacing */\n /* ---------------------------------------------------------------------------------------------------- */\n}\n.fc-timeline-event .fc-event-main {\n flex-grow: 1;\n flex-shrink: 1;\n min-width: 0; /* important for allowing to shrink all the way */\n }\n.fc-timeline-event .fc-event-time {\n font-weight: bold;\n }\n.fc-timeline-event .fc-event-time,\n .fc-timeline-event .fc-event-title {\n white-space: nowrap;\n padding: 0 2px;\n }\n/* move 1px away from slot line */\n.fc-direction-ltr .fc-timeline-event.fc-event-end,\n .fc-direction-ltr .fc-timeline-more-link {\n margin-right: 1px;\n }\n.fc-direction-rtl .fc-timeline-event.fc-event-end,\n .fc-direction-rtl .fc-timeline-more-link {\n margin-left: 1px;\n }\n/* make event beefier when overlap not allowed */\n.fc-timeline-overlap-disabled .fc-timeline-event {\n padding-top: 5px;\n padding-bottom: 5px;\n margin-bottom: 0;\n}\n/* arrows indicating the event continues into past/future */\n/* ---------------------------------------------------------------------------------------------------- */\n/* part of the flexbox flow */\n.fc-timeline-event:not(.fc-event-start):before,\n.fc-timeline-event:not(.fc-event-end):after {\n content: \"\";\n flex-grow: 0;\n flex-shrink: 0;\n opacity: .5;\n\n /* triangle. TODO: mixin */\n width: 0;\n height: 0;\n margin: 0 1px;\n border: 5px solid #000; /* TODO: var */\n border-top-color: transparent;\n border-bottom-color: transparent;\n}\n/* pointing left */\n.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,\n.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after {\n border-left: 0;\n}\n/* pointing right */\n.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,\n.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before {\n border-right: 0;\n}\n/* +more events indicator */\n/* ---------------------------------------------------------------------------------------------------- */\n.fc-timeline-more-link {\n font-size: var(--fc-small-font-size);\n color: var(--fc-more-link-text-color);\n background: var(--fc-more-link-bg-color);\n padding: 1px;\n cursor: pointer;\n}\n.fc-timeline-more-link-inner { /* has fc-sticky */\n display: inline-block;\n left: 0;\n right: 0;\n padding: 2px;\n}\n.fc .fc-timeline-bg { /* a container for bg content */\n position: absolute;\n z-index: 2;\n top: 0;\n bottom: 0;\n width: 0;\n left: 0; /* will take precedence when LTR */\n right: 0; /* will take precedence when RTL */ /* TODO: kill */\n }\n.fc .fc-timeline-bg .fc-non-business { z-index: 1 }\n.fc .fc-timeline-bg .fc-bg-event { z-index: 2 }\n.fc .fc-timeline-bg .fc-highlight { z-index: 3 }\n.fc .fc-timeline-bg-harness {\n position: absolute;\n top: 0;\n bottom: 0;\n }\n\n";
18
+ internal_cjs.injectStyles(css_248z);
19
+
20
+ var index = index_cjs.createPlugin({
21
+ name: '@fullcalendar/timeline',
22
+ premiumReleaseDate: '2022-11-22',
23
+ deps: [premiumCommonPlugin__default["default"]],
24
+ initialView: 'timelineDay',
25
+ views: {
26
+ timeline: {
27
+ component: internalCommon.TimelineView,
28
+ usesMinMaxTime: true,
29
+ eventResizableFromStart: true, // how is this consumed for TimelineView tho?
30
+ },
31
+ timelineDay: {
32
+ type: 'timeline',
33
+ duration: { days: 1 },
34
+ },
35
+ timelineWeek: {
36
+ type: 'timeline',
37
+ duration: { weeks: 1 },
38
+ },
39
+ timelineMonth: {
40
+ type: 'timeline',
41
+ duration: { months: 1 },
42
+ },
43
+ timelineYear: {
44
+ type: 'timeline',
45
+ duration: { years: 1 },
46
+ },
47
+ },
48
+ });
49
+
50
+ exports["default"] = index;
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { PluginDef } from '@fullcalendar/core';
2
+ import '@fullcalendar/premium-common';
3
+ import '@fullcalendar/scrollgrid';
4
+
5
+ declare const _default: PluginDef;
6
+ //# sourceMappingURL=index.d.ts.map
7
+
8
+ export { _default as default };