@daypilot/daypilot-lite-react 4.0.2 → 4.2.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/README.md CHANGED
@@ -43,6 +43,13 @@ Customize the scheduling components using an online [UI Builder](https://builder
43
43
 
44
44
  ## Tutorials
45
45
 
46
+ ### React Scheduler with Horizontal Timeline
47
+
48
+ [![React Scheduler with Horizontal Timeline](https://static.daypilot.org/npm/202507/react-scheduler-with-horizontal-timeline-open-source-tutorial.png)](https://code.daypilot.org/79813/react-scheduler-with-horizontal-timeline-open-source)
49
+ [React Scheduler with Horizontal Timeline (Open-Source)](https://code.daypilot.org/79813/react-scheduler-with-horizontal-timeline-open-source)
50
+
51
+ A lightweight, open-source React Scheduler component with a horizontal timeline, drag-and-drop support, customizable appearance, and smooth performance for large data sets.
52
+
46
53
  ### React Weekly Calendar Tutorial
47
54
 
48
55
  [![React Weekly Calendar](https://static.daypilot.org/npm/202308/react-weekly-calendar-component-open-source.png)](https://code.daypilot.org/42221/react-weekly-calendar-tutorial)
@@ -25,6 +25,7 @@ export module DayPilot {
25
25
 
26
26
  export class SchedulerPropsAndEvents {
27
27
  backendUrl?: string;
28
+ beforeCellRenderCaching?: boolean;
28
29
  businessBeginsHour?: number;
29
30
  businessEndsHour?: number;
30
31
  businessWeekends?: boolean;
@@ -44,7 +45,7 @@ export module DayPilot {
44
45
  dynamicEventRenderingMargin?: number;
45
46
  dynamicEventRenderingMarginX?: number;
46
47
  dynamicEventRenderingMarginY?: number;
47
- // eventBorderRadius?: string | number;eventBubbleShowForMargins?: boolean;
48
+ // eventBorderRadius?: string | number;
48
49
  eventClickHandling?: "Enabled" | "Disabled";
49
50
  eventDeleteHandling?: "Update" | "Disabled";
50
51
  eventEndSpec?: "DateTime" | "Date";
@@ -68,6 +69,8 @@ export module DayPilot {
68
69
  resources?: ResourceData[];
69
70
  // rowClickHandling?: "Enabled" | "Disabled" | "CallBack" | "Edit" | "Select";
70
71
  rowHeaderWidth?: number;
72
+ rowMarginBottom?: number;
73
+ rowMarginTop?: number;
71
74
  rowsLoadMethod?: "GET" | "POST";
72
75
  scale?: "CellDuration" | "Minute" | "Hour" | "Day" | "Week";
73
76
  scrollDelayCells?: number;
@@ -92,6 +95,7 @@ export module DayPilot {
92
95
  xssProtection?: "Enabled" | "Disabled";
93
96
 
94
97
  onAfterUpdate?: EventHandler<SchedulerAfterUpdateArgs>;
98
+ onBeforeCellRender?: EventHandler<SchedulerBeforeCellRenderArgs>;
95
99
  onBeforeEventRender?: EventHandler<SchedulerBeforeEventRenderArgs>;
96
100
  onBeforeRowHeaderRender?: EventHandler<SchedulerBeforeRowHeaderRenderArgs>;
97
101
  onBeforeTimeHeaderRender?: EventHandler<SchedulerBeforeTimeHeaderRenderArgs>;
@@ -211,6 +215,27 @@ export module DayPilot {
211
215
  export interface SchedulerAfterUpdateArgs {
212
216
  }
213
217
 
218
+ export interface SchedulerBeforeCellRenderArgs {
219
+ readonly cell: {
220
+ readonly start: DayPilot.Date;
221
+ readonly end: DayPilot.Date;
222
+ readonly resource: ResourceId;
223
+ readonly row: DayPilot.Row;
224
+ readonly x: number;
225
+ readonly y: number;
226
+ readonly properties: {
227
+ html: string;
228
+ business: boolean;
229
+ backColor: string;
230
+ backImage: string;
231
+ backRepeat: string;
232
+ fontColor: string;
233
+ cssClass: string;
234
+ text: string;
235
+ };
236
+ };
237
+ }
238
+
214
239
  export interface SchedulerBeforeEventRenderArgs {
215
240
  readonly control: DayPilot.Scheduler;
216
241
  readonly data: EventData;