@fullcalendar/timeline 5.7.2 → 5.10.1
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/main.cjs.js +230 -217
- package/main.css +7 -0
- package/main.d.ts +19 -16
- package/main.global.js +230 -217
- package/main.global.min.js +2 -2
- package/main.js +230 -219
- package/main.js.map +1 -1
- package/main.min.css +1 -1
- package/package.json +6 -6
package/main.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import * as _fullcalendar_common from '@fullcalendar/common';
|
|
3
|
-
import { Duration, DateRange, DateMarker, DateProfile, DateEnv, BaseOptionsRefined, DateProfileGenerator, PositionCache, DateComponent, ViewProps, createElement, Seg, Slicer, EventStore, EventUiHash, DateSpan, EventInteractionState, BaseComponent, RefObject,
|
|
3
|
+
import { Duration, DateRange, DateMarker, DateProfile, DateEnv, BaseOptionsRefined, DateProfileGenerator, PositionCache, SegSpan, CssDimValue, DateComponent, ViewProps, createElement, Seg, Slicer, EventStore, EventUiHash, DateSpan, EventInteractionState, BaseComponent, RefObject, VNode, ScrollRequest } from '@fullcalendar/common';
|
|
4
4
|
import '@fullcalendar/premium-common';
|
|
5
5
|
|
|
6
6
|
interface TimelineDateProfile {
|
|
@@ -42,15 +42,21 @@ declare class TimelineCoords {
|
|
|
42
42
|
innerCoordCache: PositionCache;
|
|
43
43
|
constructor(slatRootEl: HTMLElement,
|
|
44
44
|
slatEls: HTMLElement[], dateProfile: DateProfile, tDateProfile: TimelineDateProfile, dateEnv: DateEnv, isRtl: boolean);
|
|
45
|
-
rangeToCoords(range: any): {
|
|
46
|
-
right: any;
|
|
47
|
-
left: any;
|
|
48
|
-
};
|
|
49
45
|
isDateInRange(date: DateMarker): boolean;
|
|
50
|
-
dateToCoord(date:
|
|
46
|
+
dateToCoord(date: DateMarker): number;
|
|
47
|
+
rangeToCoords(range: DateRange): SegSpan;
|
|
48
|
+
durationToCoord(duration: Duration): number;
|
|
49
|
+
coordFromLeft(coord: number): number;
|
|
51
50
|
computeDateSnapCoverage(date: DateMarker): number;
|
|
52
|
-
computeDurationLeft(duration: Duration): number;
|
|
53
51
|
}
|
|
52
|
+
declare function coordToCss(hcoord: number | null, isRtl: boolean): {
|
|
53
|
+
left: CssDimValue;
|
|
54
|
+
right: CssDimValue;
|
|
55
|
+
};
|
|
56
|
+
declare function coordsToCss(hcoords: SegSpan | null, isRtl: boolean): {
|
|
57
|
+
left: CssDimValue;
|
|
58
|
+
right: CssDimValue;
|
|
59
|
+
};
|
|
54
60
|
|
|
55
61
|
interface TimelineViewState {
|
|
56
62
|
slatCoords: TimelineCoords | null;
|
|
@@ -89,10 +95,8 @@ declare class TimelineLaneSlicer extends Slicer<TimelineLaneSeg, [
|
|
|
89
95
|
|
|
90
96
|
interface TimelineSegPlacement {
|
|
91
97
|
seg: TimelineLaneSeg | TimelineLaneSeg[];
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
right: number;
|
|
95
|
-
top: number;
|
|
98
|
+
hcoords: SegSpan | null;
|
|
99
|
+
top: number | null;
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
interface TimelineLaneProps extends TimelineLaneCoreProps {
|
|
@@ -125,7 +129,6 @@ interface TimelineLaneState {
|
|
|
125
129
|
declare class TimelineLane extends BaseComponent<TimelineLaneProps, TimelineLaneState> {
|
|
126
130
|
private slicer;
|
|
127
131
|
private sortEventSegs;
|
|
128
|
-
private computeFgSegPlacements;
|
|
129
132
|
private harnessElRefs;
|
|
130
133
|
private moreElRefs;
|
|
131
134
|
private innerElRef;
|
|
@@ -136,7 +139,7 @@ declare class TimelineLane extends BaseComponent<TimelineLaneProps, TimelineLane
|
|
|
136
139
|
updateSize(): void;
|
|
137
140
|
renderFgSegs(segPlacements: TimelineSegPlacement[], isForcedInvisible: {
|
|
138
141
|
[instanceId: string]: any;
|
|
139
|
-
}, isDragging
|
|
142
|
+
}, isDragging: boolean, isResizing: boolean, isDateSelecting: boolean): createElement.JSX.Element;
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
interface TimelineLaneBgProps {
|
|
@@ -144,13 +147,13 @@ interface TimelineLaneBgProps {
|
|
|
144
147
|
bgEventSegs: TimelineLaneSeg[] | null;
|
|
145
148
|
dateSelectionSegs: TimelineLaneSeg[];
|
|
146
149
|
eventResizeSegs: TimelineLaneSeg[];
|
|
147
|
-
timelineCoords
|
|
150
|
+
timelineCoords: TimelineCoords | null;
|
|
148
151
|
todayRange: DateRange;
|
|
149
152
|
nowDate: DateMarker;
|
|
150
153
|
}
|
|
151
154
|
declare class TimelineLaneBg extends BaseComponent<TimelineLaneBgProps> {
|
|
152
155
|
render(): createElement.JSX.Element;
|
|
153
|
-
renderSegs(segs: TimelineLaneSeg[], timelineCoords: TimelineCoords, fillType: string): createElement.JSX.Element;
|
|
156
|
+
renderSegs(segs: TimelineLaneSeg[], timelineCoords: TimelineCoords | null, fillType: string): createElement.JSX.Element;
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
interface TimelineHeaderProps {
|
|
@@ -227,4 +230,4 @@ declare const _default: _fullcalendar_common.PluginDef;
|
|
|
227
230
|
|
|
228
231
|
|
|
229
232
|
export default _default;
|
|
230
|
-
export { TimelineCoords, TimelineDateProfile, TimelineHeader, TimelineHeaderRows, TimelineLane, TimelineLaneBg, TimelineLaneCoreProps, TimelineLaneProps, TimelineLaneSeg, TimelineLaneSlicer, TimelineSlats, TimelineView, buildSlatCols, buildTimelineDateProfile };
|
|
233
|
+
export { TimelineCoords, TimelineDateProfile, TimelineHeader, TimelineHeaderRows, TimelineLane, TimelineLaneBg, TimelineLaneCoreProps, TimelineLaneProps, TimelineLaneSeg, TimelineLaneSlicer, TimelineSlats, TimelineView, buildSlatCols, buildTimelineDateProfile, coordToCss, coordsToCss };
|