@daypilot/daypilot-lite-react 3.33.0 → 3.34.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
@@ -77,6 +77,22 @@ React application that displays a monthly event calendar. Calendar events use cu
77
77
 
78
78
  ***
79
79
 
80
+ ### Next.js Calendar with Day/Week/Month Views
81
+ [![Next.js Calendar with Day/Week/Month Views](https://static.daypilot.org/npm/202505/next.js-calendar-with-day-week-month-views-open-source.png)](https://code.daypilot.org/62886/next-js-calendar-day-week-month-open-source)
82
+
83
+ [Next.js Calendar with Day/Week/Month Views (Open-Source)](https://code.daypilot.org/62886/next-js-calendar-day-week-month-open-source)
84
+ How to create an integrated day, week, and month calendar view with a shared data source in Next.js.
85
+
86
+ ***
87
+
88
+ ### Next.js Resource-Scheduling Calendar
89
+ [![Next.js Resource-Scheduling Calendar](https://static.daypilot.org/npm/202505/next.js-resource-scheduling-calendar-open-source.png)](https://code.daypilot.org/13080/next-js-resource-scheduling-calendar-open-source)
90
+
91
+ [Next.js Resource-Scheduling Calendar (Open-Source)](https://code.daypilot.org/13080/next-js-resource-scheduling-calendar-open-source)
92
+ This Next.js app uses a resource-scheduling calendar UI to let you manage tasks for multiple resources side by side. Each column displays a 24-hour timeline for a different resource.
93
+
94
+ ***
95
+
80
96
  ### Next.js Weekly Calendar Tutorial
81
97
 
82
98
  [![Next.js Weekly Calendar](https://static.daypilot.org/npm/202403/next.js-weekly-calendar-open-source.png)](https://code.daypilot.org/45330/next-js-weekly-calendar-open-source)
@@ -55,10 +55,12 @@ export module DayPilot {
55
55
  loadingLabelVisible?: boolean;
56
56
  locale?: string;
57
57
  showToolTip?: boolean;
58
+ snapToGrid?: boolean;
58
59
  startDate?: DayPilot.Date | string;
59
60
  theme?: string;
60
61
  timeFormat?: "Auto" | "Clock12Hours" | "Clock24Hours";
61
62
  timeRangeSelectedHandling?: "Enabled" | "Disabled" | "CallBack";
63
+ useEventBoxes?: "Always" | "Never";
62
64
  viewType?: "Day" | "Days" | "Week" | "WorkWeek" | "Resources";
63
65
  visible?: boolean;
64
66
  weekStarts?: "Auto" | number;
@@ -556,11 +558,16 @@ export module DayPilot {
556
558
  selectionStart?: DayPilot.Date;
557
559
  selectMode?: "Day" | "Week" | "Month" | "None";
558
560
  showMonths?: number;
561
+ showToday?: boolean;
559
562
  showWeekNumbers?: boolean;
560
563
  skipMonths?: number;
561
564
  startDate?: DayPilot.Date | string;
562
565
  theme?: string;
563
566
  titleHeight?: number;
567
+ todayHeight?: number;
568
+ todayHtml?: string;
569
+ todayPosition?: "Top" | "Bottom";
570
+ todayText?: string;
564
571
  weekStarts?: "Auto" | number;
565
572
  weekNumberAlgorithm?: "Auto" | "US" | "ISO8601";
566
573
  timeRangeSelectedHandling?: "Bind" | "None";
@@ -569,6 +576,7 @@ export module DayPilot {
569
576
  onBeforeCellRender?: EventHandler<NavigatorBeforeCellRenderArgs>;
570
577
  onTimeRangeSelect?: EventHandler<NavigatorTimeRangeSelectArgs>;
571
578
  onTimeRangeSelected?: EventHandler<NavigatorTimeRangeSelectedArgs>;
579
+ onTodayClick?: EventHandler<NavigatorTodayClickArgs>;
572
580
  onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
573
581
  onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
574
582
  }
@@ -636,6 +644,10 @@ export module DayPilot {
636
644
  readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
637
645
  }
638
646
 
647
+ export interface NavigatorTodayClickArgs {
648
+ preventDefault(): void;
649
+ }
650
+
639
651
  interface NavigatorVisibleRangeChangeArgs {
640
652
  readonly start: DayPilot.Date;
641
653
  readonly end: DayPilot.Date;
@@ -911,38 +923,23 @@ export module DayPilot {
911
923
  static contrasting(color: string, light?: string, dark?: string): string;
912
924
  }
913
925
 
914
- export class Http {
915
- static get(url: string, options?: HttpGetOptions): Promise<HttpPromiseArgs>;
916
- static post(url: string, data?: object | string, options?: HttpPostOptions): Promise<HttpPromiseArgs>;
917
- static put(url: string, data?: object | string, options?: HttpPutOptions): Promise<HttpPromiseArgs>;
918
- static delete(url: string, options?: HttpDeleteOptions): Promise<HttpPromiseArgs>;
919
- }
920
-
921
- export interface HttpDeleteOptions {
922
- headers?: HttpHeaders;
923
- }
924
-
925
- export interface HttpGetOptions {
926
- headers?: HttpHeaders;
926
+ class Http {
927
+ static get<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
928
+ static post<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
929
+ static put<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
930
+ static patch<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
931
+ static delete<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
927
932
  }
928
933
 
929
- export interface HttpPostOptions {
930
- headers?: HttpHeaders;
931
- contentType?: string;
932
- }
933
-
934
- export interface HttpPutOptions {
935
- headers?: HttpHeaders;
936
- contentType?: string;
937
- }
938
-
939
- export interface HttpPromiseArgs {
940
- readonly data: any;
941
- readonly request: XMLHttpRequest;
942
- }
943
-
944
- export interface HttpHeaders {
945
- [header: string]: string;
934
+ namespace Http {
935
+ interface RequestParams {
936
+ contentType?: string;
937
+ headers?: Record<string, string>;
938
+ }
939
+ interface Result<T = any> {
940
+ request: XMLHttpRequest;
941
+ data?: T;
942
+ }
946
943
  }
947
944
 
948
945
  export class Duration {