@daypilot/daypilot-lite-angular 3.4.0 → 3.5.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/esm2020/lib/core/daypilot-core.mjs +141 -123
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +143 -104
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +140 -122
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +24 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export declare module DayPilot {
|
|
|
6
6
|
businessEndsHour?: number;
|
|
7
7
|
cellHeight?: number;
|
|
8
8
|
columnMarginRight?: number;
|
|
9
|
+
columnsLoadMethod?: "POST" | "GET";
|
|
9
10
|
days?: number;
|
|
10
11
|
doubleClickTimeout?: number;
|
|
11
12
|
durationBarVisible?: boolean;
|
|
@@ -28,7 +29,7 @@ export declare module DayPilot {
|
|
|
28
29
|
theme?: string;
|
|
29
30
|
timeFormat?: "Auto" | "Clock12Hours" | "Clock24Hours";
|
|
30
31
|
timeRangeSelectedHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
31
|
-
viewType?: "Day" | "Days" | "Week" | "WorkWeek";
|
|
32
|
+
viewType?: "Day" | "Days" | "Week" | "WorkWeek" | "Resources";
|
|
32
33
|
visible?: boolean;
|
|
33
34
|
xssProtection?: "Enabled" | "Disabled";
|
|
34
35
|
onEventClick?: EventHandler<CalendarEventClickArgs>;
|
|
@@ -43,10 +44,21 @@ export declare module DayPilot {
|
|
|
43
44
|
onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
|
|
44
45
|
}
|
|
45
46
|
export class CalendarConfig extends CalendarPropsAndEvents {
|
|
47
|
+
columns?: CalendarColumnData[];
|
|
46
48
|
events?: EventData[];
|
|
47
49
|
}
|
|
48
50
|
export class Calendar extends CalendarPropsAndEvents {
|
|
49
51
|
v: string;
|
|
52
|
+
columns: {
|
|
53
|
+
list: CalendarColumnData[];
|
|
54
|
+
load(url: string, success: (args: {
|
|
55
|
+
data: any;
|
|
56
|
+
preventDefault(): void;
|
|
57
|
+
}) => void, error: (args: {
|
|
58
|
+
request: XMLHttpRequest;
|
|
59
|
+
exception: any;
|
|
60
|
+
}) => void): void;
|
|
61
|
+
};
|
|
50
62
|
events: {
|
|
51
63
|
list: EventData[];
|
|
52
64
|
add(e: DayPilot.Event | EventData): void;
|
|
@@ -73,6 +85,13 @@ export declare module DayPilot {
|
|
|
73
85
|
visibleStart(): DayPilot.Date;
|
|
74
86
|
visibleEnd(): DayPilot.Date;
|
|
75
87
|
}
|
|
88
|
+
interface CalendarColumnData {
|
|
89
|
+
name: string;
|
|
90
|
+
id?: ResourceId;
|
|
91
|
+
start?: DayPilot.Date | string;
|
|
92
|
+
html?: string;
|
|
93
|
+
toolTip?: string;
|
|
94
|
+
}
|
|
76
95
|
export interface CalendarEventClickArgs {
|
|
77
96
|
readonly e: DayPilot.Event;
|
|
78
97
|
readonly control: DayPilot.Calendar;
|
|
@@ -102,6 +121,7 @@ export declare module DayPilot {
|
|
|
102
121
|
readonly control: DayPilot.Calendar;
|
|
103
122
|
readonly newStart: DayPilot.Date;
|
|
104
123
|
readonly newEnd: DayPilot.Date;
|
|
124
|
+
readonly newResource: ResourceId;
|
|
105
125
|
readonly ctrl: boolean;
|
|
106
126
|
readonly shift: boolean;
|
|
107
127
|
preventDefault(): void;
|
|
@@ -111,6 +131,7 @@ export declare module DayPilot {
|
|
|
111
131
|
readonly control: DayPilot.Calendar;
|
|
112
132
|
readonly newStart: DayPilot.Date;
|
|
113
133
|
readonly newEnd: DayPilot.Date;
|
|
134
|
+
readonly newResource: ResourceId;
|
|
114
135
|
readonly ctrl: boolean;
|
|
115
136
|
readonly shift: boolean;
|
|
116
137
|
}
|
|
@@ -130,12 +151,14 @@ export declare module DayPilot {
|
|
|
130
151
|
export interface CalendarTimeRangeSelectArgs {
|
|
131
152
|
readonly start: DayPilot.Date;
|
|
132
153
|
readonly end: DayPilot.Date;
|
|
154
|
+
readonly resource: ResourceId;
|
|
133
155
|
readonly control: DayPilot.Calendar;
|
|
134
156
|
preventDefault(): void;
|
|
135
157
|
}
|
|
136
158
|
export interface CalendarTimeRangeSelectedArgs {
|
|
137
159
|
readonly start: DayPilot.Date;
|
|
138
160
|
readonly end: DayPilot.Date;
|
|
161
|
+
readonly resource: ResourceId;
|
|
139
162
|
readonly control: DayPilot.Calendar;
|
|
140
163
|
}
|
|
141
164
|
export class MonthPropsAndEvents {
|