@fullcalendar/timeline 7.0.0-beta.4 → 7.0.0-rc.0

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/internal.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { DateComponent, ViewProps, Hit, DateRange, DateMarker, DateProfile, DateEnv, BaseOptionsRefined, DateProfileGenerator, Slicer, CoordRange, EventStore, EventUiHash, DateSpan, EventInteractionState, BaseComponent, EventRangeProps, CoordSpan, SegGroup } from '@fullcalendar/core/internal';
1
+ import { DateComponent, ViewProps, Hit, DateRange, DateMarker, DateProfile, DateEnv, BaseOptionsRefined, DateProfileGenerator, Slicer, CoordRange, BaseComponent, EventRangeProps, CoordSpan, SegGroup, EventSegUiInteractionState } from '@fullcalendar/core/internal';
2
2
  import { createElement, Ref } from '@fullcalendar/core/preact';
3
3
  import { Duration } from '@fullcalendar/core';
4
4
 
5
5
  interface TimelineViewState {
6
+ totalWidth?: number;
6
7
  clientWidth?: number;
7
- endScrollbarWidth?: number;
8
8
  slotInnerWidth?: number;
9
9
  }
10
10
  declare class TimelineView extends DateComponent<ViewProps, TimelineViewState> {
@@ -20,14 +20,15 @@ declare class TimelineView extends DateComponent<ViewProps, TimelineViewState> {
20
20
  private bodySlotInnerWidth?;
21
21
  private syncedScroller;
22
22
  private scrollTime;
23
+ private slicer;
23
24
  render(): createElement.JSX.Element;
24
25
  componentDidMount(): void;
25
26
  componentDidUpdate(prevProps: ViewProps): void;
26
27
  componentWillUnmount(): void;
27
28
  handleBodySlotInnerWidth: (innerWidth: number) => void;
28
29
  handleSlotInnerWidths: () => void;
30
+ handleTotalWidth: (totalWidth: number) => void;
29
31
  handleClientWidth: (clientWidth: number) => void;
30
- handleEndScrollbarWidth: (endScrollbarWidth: number) => void;
31
32
  private updateSyncedScroller;
32
33
  private resetScroll;
33
34
  private handleTimeScrollRequest;
@@ -82,31 +83,29 @@ declare class TimelineLaneSlicer extends Slicer<TimelineRange, [
82
83
  sliceRange(origRange: DateRange, dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator, tDateProfile: TimelineDateProfile, dateEnv: DateEnv): TimelineRange[];
83
84
  }
84
85
 
85
- interface TimelineLaneProps {
86
+ interface TimelineFgProps {
86
87
  dateProfile: DateProfile;
87
88
  tDateProfile: TimelineDateProfile;
88
89
  nowDate: DateMarker;
89
90
  todayRange: DateRange;
90
- nextDayThreshold: Duration;
91
- eventStore: EventStore | null;
92
- eventUiBases: EventUiHash;
93
- businessHours: EventStore | null;
94
- dateSelection: DateSpan | null;
95
- eventDrag: EventInteractionState | null;
96
- eventResize: EventInteractionState | null;
91
+ fgEventSegs: (TimelineRange & EventRangeProps)[];
92
+ eventDrag: EventSegUiInteractionState<TimelineRange> | null;
93
+ eventResize: EventSegUiInteractionState<TimelineRange> | null;
97
94
  eventSelection: string;
98
95
  resourceId?: string;
99
96
  slotWidth: number | undefined;
97
+ heightRef?: Ref<number>;
100
98
  }
101
- interface TimelineLaneState {
99
+ interface TimelineFgState {
102
100
  segHeightRev?: string;
103
101
  moreLinkHeightRev?: string;
104
102
  }
105
- declare class TimelineLane extends BaseComponent<TimelineLaneProps, TimelineLaneState> {
103
+ declare class TimelineFg extends BaseComponent<TimelineFgProps, TimelineFgState> {
106
104
  private sortEventSegs;
107
105
  private segHeightRefMap;
108
106
  private moreLinkHeightRefMap;
109
- private slicer;
107
+ private totalHeight?;
108
+ private firedTotalHeight?;
110
109
  render(): createElement.JSX.Element;
111
110
  renderFgSegs(segs: (TimelineRange & EventRangeProps)[], segHorizontals: {
112
111
  [instanceId: string]: CoordSpan;
@@ -115,19 +114,21 @@ declare class TimelineLane extends BaseComponent<TimelineLaneProps, TimelineLane
115
114
  }, hiddenGroups: SegGroup<TimelineCoordRange>[], hiddenGroupTops: Map<string, number>, isDragging: boolean, isResizing: boolean, isDateSelecting: boolean): createElement.JSX.Element;
116
115
  private handleMoreLinkHeights;
117
116
  private handleSegHeights;
117
+ componentDidUpdate(): void;
118
+ componentWillUnmount(): void;
118
119
  }
119
120
 
120
- interface TimelineLaneBgProps {
121
+ interface TimelineBgProps {
121
122
  tDateProfile: TimelineDateProfile;
122
123
  nowDate: DateMarker;
123
124
  todayRange: DateRange;
124
125
  bgEventSegs: (TimelineRange & EventRangeProps)[] | null;
125
126
  businessHourSegs: (TimelineRange & EventRangeProps)[] | null;
126
127
  dateSelectionSegs: (TimelineRange & EventRangeProps)[];
127
- eventResizeSegs: (TimelineRange & EventRangeProps)[];
128
+ eventResizeSegs: (TimelineRange & EventRangeProps)[] | null;
128
129
  slotWidth: number | undefined;
129
130
  }
130
- declare class TimelineLaneBg extends BaseComponent<TimelineLaneBgProps> {
131
+ declare class TimelineBg extends BaseComponent<TimelineBgProps> {
131
132
  render(): createElement.JSX.Element;
132
133
  renderSegs(segs: (TimelineRange & EventRangeProps)[], fillType: string): createElement.JSX.Element;
133
134
  }
@@ -206,4 +207,6 @@ declare class TimelineNowIndicatorLine extends BaseComponent<TimelineNowIndicato
206
207
  render(): createElement.JSX.Element;
207
208
  }
208
209
 
209
- export { TimelineDateProfile, TimelineHeaderRow, TimelineLane, TimelineLaneBg, TimelineLaneProps, TimelineLaneSlicer, TimelineNowIndicatorArrow, TimelineNowIndicatorLine, TimelineRange, TimelineSlats, TimelineView, buildTimelineDateProfile, computeSlotWidth, createHorizontalStyle, createVerticalStyle, timeToCoord };
210
+ declare function getTimelineSlotEl(parentEl: HTMLElement, index: number): HTMLElement;
211
+
212
+ export { TimelineBg, TimelineDateProfile, TimelineFg, TimelineHeaderRow, TimelineLaneSlicer, TimelineNowIndicatorArrow, TimelineNowIndicatorLine, TimelineRange, TimelineSlats, TimelineView, buildTimelineDateProfile, computeSlotWidth, createHorizontalStyle, createVerticalStyle, getTimelineSlotEl, timeToCoord };