@daypilot/daypilot-lite-javascript 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/daypilot-javascript.min.d.ts +27 -30
- package/daypilot-javascript.min.js +11 -10
- package/package.json +1 -1
|
@@ -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
|
-
|
|
915
|
-
static get(url: string,
|
|
916
|
-
static post(url: string, data
|
|
917
|
-
static put(url: string, data
|
|
918
|
-
static
|
|
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
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
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 {
|