@fullcalendar/daygrid 7.0.0-beta.3 → 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,6 +1,6 @@
1
1
  import { Slicer, DayGridRange, DayTableModel, DateRange, DateProfileGenerator, DateEnv, BaseComponent, ViewProps, DateMarker, DateProfile, DateFormatter, ViewContext, DayTableCell, Hit, EventRangeProps, EventSegUiInteractionState, DateComponent, ViewOptionsRefined, RefMap, SlicedCoordRange } from '@fullcalendar/core/internal';
2
2
  import { createElement, Ref, VNode } from '@fullcalendar/core/preact';
3
- import { CustomContentGenerator, ClassNamesGenerator, DidMountHandler, WillUnmountHandler, DayHeaderContentArg, CssDimValue } from '@fullcalendar/core';
3
+ import { CustomContentGenerator, ClassNamesGenerator, DidMountHandler, WillUnmountHandler, DayHeaderContentArg } from '@fullcalendar/core';
4
4
 
5
5
  declare class DayTableSlicer extends Slicer<DayGridRange, [DayTableModel]> {
6
6
  forceDayIfListItem: boolean;
@@ -46,6 +46,7 @@ interface CellDataConfig<RenderProps> {
46
46
  isNavLink?: boolean;
47
47
  }
48
48
  interface RowConfig<RenderProps> {
49
+ isDateRow: boolean;
49
50
  renderConfig: CellRenderConfig<RenderProps>;
50
51
  dataConfigs: CellDataConfig<RenderProps>[];
51
52
  }
@@ -54,7 +55,9 @@ declare function buildDateRowConfig(dates: DateMarker[], datesRepDistinctDays: b
54
55
  context: ViewContext, colSpan?: number): RowConfig<DayHeaderContentArg>;
55
56
  declare function buildDateRenderConfig(context: ViewContext): CellRenderConfig<DayHeaderContentArg>;
56
57
  declare function buildDateDataConfigs(dates: DateMarker[], datesRepDistinctDays: boolean, dateProfile: DateProfile, todayRange: DateRange, dayHeaderFormat: DateFormatter, // TODO: rename to dateHeaderFormat?
57
- context: ViewContext, colSpan?: number, keyPrefix?: string): CellDataConfig<DayHeaderContentArg>[];
58
+ context: ViewContext, colSpan?: number, keyPrefix?: string, extraRenderProps?: any, // TODO
59
+ extraAttrs?: any, // TODO
60
+ className?: string): CellDataConfig<DayHeaderContentArg>[];
58
61
 
59
62
  interface DayGridHeaderRowProps<RenderProps> extends RowConfig<RenderProps> {
60
63
  isSticky?: boolean;
@@ -62,6 +65,8 @@ interface DayGridHeaderRowProps<RenderProps> extends RowConfig<RenderProps> {
62
65
  height?: number;
63
66
  colWidth?: number;
64
67
  innerHeightRef?: Ref<number>;
68
+ role?: string;
69
+ rowIndex?: number;
65
70
  }
66
71
  declare class DayGridHeaderRow<RenderProps extends {
67
72
  text: string;
@@ -71,6 +76,7 @@ declare class DayGridHeaderRow<RenderProps extends {
71
76
  private currentInnerHeight?;
72
77
  render(): createElement.JSX.Element;
73
78
  private handleInnerHeights;
79
+ componentWillUnmount(): void;
74
80
  }
75
81
 
76
82
  declare function buildDayTableModel(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): DayTableModel;
@@ -88,6 +94,8 @@ declare function getCellEl(rowEl: HTMLElement, col: number): HTMLElement;
88
94
  declare function createDayHeaderFormatter(explicitFormat: DateFormatter, datesRepDistinctDays: any, dateCnt: any): DateFormatter;
89
95
 
90
96
  interface DayGridLayoutProps {
97
+ labelId: string | undefined;
98
+ labelStr: string | undefined;
91
99
  dateProfile: DateProfile;
92
100
  todayRange: DateRange;
93
101
  cellRows: DayTableCell[][];
@@ -116,7 +124,7 @@ declare class DayGridLayout extends BaseComponent<DayGridLayoutProps> {
116
124
  componentWillUnmount(): void;
117
125
  resetScroll(): void;
118
126
  updateScrollY: () => void;
119
- clearScroll: () => void;
127
+ handleScrollEnd: (isUser: boolean) => void;
120
128
  }
121
129
 
122
130
  interface DayGridRowsProps {
@@ -149,15 +157,14 @@ declare class DayGridRows extends DateComponent<DayGridRowsProps> {
149
157
  private splitEventDrag;
150
158
  private splitEventResize;
151
159
  private rowHeightRefMap;
152
- private disconnectWidth?;
153
160
  render(): createElement.JSX.Element;
154
161
  handleRootEl: (rootEl: HTMLDivElement) => void;
155
- componentDidMount(): void;
156
- componentWillUnmount(): void;
157
162
  queryHit(positionLeft: number, positionTop: number, elWidth: number): Hit;
158
163
  }
159
- declare function computeRowHeight(visibleWidth: number | undefined, // should INCLUDE any scrollbar width to avoid oscillation
160
- rowCnt: number, isHeightAuto: boolean, forPrint: boolean, options: ViewOptionsRefined): [minHeight: CssDimValue | undefined, isCompact: boolean];
164
+ declare function computeRowBasis(visibleWidth: number | undefined, // should INCLUDE any scrollbar width to avoid oscillation
165
+ rowCnt: number, isHeightAuto: boolean, options: ViewOptionsRefined): number;
166
+ declare function computeRowIsCompact(visibleWidth: number | undefined, // should INCLUDE any scrollbar width to avoid oscillation
167
+ options: ViewOptionsRefined): boolean;
161
168
 
162
169
  type DayRowRange = SlicedCoordRange;
163
170
  type DayRowEventRange = DayRowRange & EventRangeProps;
@@ -176,6 +183,7 @@ interface DayGridRowProps {
176
183
  className?: string;
177
184
  isCompact?: boolean;
178
185
  isTall?: boolean;
186
+ role?: string;
179
187
  fgEventSegs: (SlicedCoordRange & EventRangeProps)[];
180
188
  bgEventSegs: (SlicedCoordRange & EventRangeProps)[];
181
189
  businessHourSegs: (SlicedCoordRange & EventRangeProps)[];
@@ -186,7 +194,7 @@ interface DayGridRowProps {
186
194
  dayMaxEvents: boolean | number;
187
195
  dayMaxEventRows: boolean | number;
188
196
  colWidth?: number;
189
- minHeight?: number | string;
197
+ basis?: number;
190
198
  rootElRef?: Ref<HTMLElement>;
191
199
  heightRef?: Ref<number>;
192
200
  }
@@ -210,4 +218,4 @@ declare class DayGridRow extends BaseComponent<DayGridRowProps> {
210
218
  private getHighlightSegs;
211
219
  }
212
220
 
213
- export { CellDataConfig, CellRenderConfig, DayGridHeaderRow, DayGridHeaderRowProps, DayGridLayout, DayGridLayoutProps, DayGridRow, DayGridRowProps, DayGridRows, DayGridView, DayTableSlicer, RowConfig, TableDateProfileGenerator, buildDateDataConfigs, buildDateRenderConfig, buildDateRowConfig, buildDateRowConfigs, buildDayTableModel, buildDayTableRenderRange, computeColFromPosition, computeColWidth, computeRowHeight, createDayHeaderFormatter, getCellEl, getRowEl };
221
+ export { CellDataConfig, CellRenderConfig, DayGridHeaderRow, DayGridHeaderRowProps, DayGridLayout, DayGridLayoutProps, DayGridRow, DayGridRowProps, DayGridRows, DayGridView, DayTableSlicer, RowConfig, TableDateProfileGenerator, buildDateDataConfigs, buildDateRenderConfig, buildDateRowConfig, buildDateRowConfigs, buildDayTableModel, buildDayTableRenderRange, computeColFromPosition, computeColWidth, computeRowBasis, computeRowIsCompact, createDayHeaderFormatter, getCellEl, getRowEl };