@fullcalendar/daygrid 4.3.0 → 4.4.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/main.css CHANGED
@@ -75,4 +75,4 @@
75
75
  /* work around the way we do column resizing and ensure a minimum width */
76
76
  display: inline-block;
77
77
  min-width: 1.25em;
78
- }
78
+ }
package/main.d.ts CHANGED
@@ -31,9 +31,10 @@ declare module '@fullcalendar/daygrid/SimpleDayGrid' {
31
31
  export { SimpleDayGrid as default, SimpleDayGrid };
32
32
  class SimpleDayGrid extends DateComponent<SimpleDayGridProps> {
33
33
  dayGrid: DayGrid;
34
- constructor(context: ComponentContext, dayGrid: DayGrid);
34
+ constructor(dayGrid: DayGrid);
35
+ firstContext(context: ComponentContext): void;
35
36
  destroy(): void;
36
- render(props: SimpleDayGridProps): void;
37
+ render(props: SimpleDayGridProps, context: ComponentContext): void;
37
38
  buildPositionCaches(): void;
38
39
  queryHit(positionLeft: number, positionTop: number): Hit;
39
40
  }
@@ -43,7 +44,7 @@ declare module '@fullcalendar/daygrid/SimpleDayGrid' {
43
44
  }
44
45
 
45
46
  declare module '@fullcalendar/daygrid/DayGrid' {
46
- import { PositionCache, DateMarker, DateComponent, EventSegUiInteractionState, Seg, DateProfile } from '@fullcalendar/core';
47
+ import { PositionCache, DateMarker, DateComponent, EventSegUiInteractionState, Seg, DateProfile, ComponentContext } from '@fullcalendar/core';
47
48
  import Popover from '@fullcalendar/daygrid/Popover';
48
49
  import DayGridEventRenderer from '@fullcalendar/daygrid/DayGridEventRenderer';
49
50
  import DayTile from '@fullcalendar/daygrid/DayTile';
@@ -89,8 +90,8 @@ declare module '@fullcalendar/daygrid/DayGrid' {
89
90
  colPositions: PositionCache;
90
91
  segPopover: Popover;
91
92
  segPopoverTile: DayTile;
92
- constructor(context: any, el: any, renderProps: RenderProps);
93
- render(props: DayGridProps): void;
93
+ constructor(el: any, renderProps: RenderProps);
94
+ render(props: DayGridProps, context: ComponentContext): void;
94
95
  destroy(): void;
95
96
  getCellRange(row: any, col: any): {
96
97
  start: Date;
@@ -146,16 +147,20 @@ declare module '@fullcalendar/daygrid/DayGrid' {
146
147
  }
147
148
 
148
149
  declare module '@fullcalendar/daygrid/AbstractDayGridView' {
149
- import { ScrollComponent, View, ComponentContext, ViewSpec, DateProfileGenerator, Duration } from '@fullcalendar/core';
150
+ import { ScrollComponent, View, Duration, ComponentContext, ViewProps } from '@fullcalendar/core';
150
151
  import DayGrid from '@fullcalendar/daygrid/DayGrid';
151
- export { DayGridView as default, DayGridView };
152
- abstract class DayGridView extends View {
152
+ export { AbstractDayGridView as default, AbstractDayGridView };
153
+ abstract class AbstractDayGridView extends View {
153
154
  scroller: ScrollComponent;
154
155
  dayGrid: DayGrid;
155
156
  colWeekNumbersVisible: boolean;
157
+ cellWeekNumbersVisible: boolean;
156
158
  weekNumberWidth: number;
157
- constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
159
+ _processOptions(options: any): void;
160
+ render(props: ViewProps, context: ComponentContext): void;
158
161
  destroy(): void;
162
+ _renderSkeleton(context: ComponentContext): void;
163
+ _unrenderSkeleton(): void;
159
164
  renderSkeletonHtml(): string;
160
165
  weekNumberStyleAttr(): string;
161
166
  hasRigidRows(): boolean;
@@ -178,7 +183,7 @@ declare module '@fullcalendar/daygrid/AbstractDayGridView' {
178
183
  }
179
184
 
180
185
  declare module '@fullcalendar/daygrid/DayGridView' {
181
- import { DayHeader, ComponentContext, ViewSpec, DateProfileGenerator, DateProfile, ViewProps, DayTable } from '@fullcalendar/core';
186
+ import { DayHeader, ComponentContext, DateProfileGenerator, DateProfile, ViewProps, DayTable } from '@fullcalendar/core';
182
187
  import AbstractDayGridView from '@fullcalendar/daygrid/AbstractDayGridView';
183
188
  import SimpleDayGrid from '@fullcalendar/daygrid/SimpleDayGrid';
184
189
  export { DayGridView as default, DayGridView };
@@ -186,9 +191,9 @@ declare module '@fullcalendar/daygrid/DayGridView' {
186
191
  header: DayHeader;
187
192
  simpleDayGrid: SimpleDayGrid;
188
193
  dayTable: DayTable;
189
- constructor(_context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
190
- destroy(): void;
191
- render(props: ViewProps): void;
194
+ render(props: ViewProps, context: ComponentContext): void;
195
+ _renderSkeleton(context: ComponentContext): void;
196
+ _unrenderSkeleton(): void;
192
197
  }
193
198
  export function buildDayTable(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator): DayTable;
194
199
  }
@@ -279,8 +284,9 @@ declare module '@fullcalendar/daygrid/DayTile' {
279
284
  export { DayTile as default, DayTile };
280
285
  class DayTile extends DateComponent<DayTileProps> {
281
286
  segContainerEl: HTMLElement;
282
- constructor(context: ComponentContext, el: HTMLElement);
283
- render(props: DayTileProps): void;
287
+ constructor(el: HTMLElement);
288
+ firstContext(context: ComponentContext): void;
289
+ render(props: DayTileProps, context: ComponentContext): void;
284
290
  destroy(): void;
285
291
  _renderFrame(date: DateMarker): void;
286
292
  queryHit(positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit | null;