@daypilot/daypilot-lite-angular 3.33.1 → 4.0.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 +4 -1
- package/esm2020/lib/core/daypilot-core.mjs +2643 -1645
- package/esm2020/lib/daypilot-scheduler.component.mjs +102 -0
- package/esm2020/lib/daypilot.module.mjs +5 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +3869 -2113
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +2742 -1643
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +413 -27
- package/lib/daypilot-scheduler.component.d.ts +25 -0
- package/lib/daypilot.module.d.ts +4 -3
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -1,5 +1,409 @@
|
|
|
1
1
|
declare type GlobalDate = Date;
|
|
2
2
|
export declare module DayPilot {
|
|
3
|
+
export class SchedulerPropsAndEvents {
|
|
4
|
+
backendUrl?: string;
|
|
5
|
+
businessBeginsHour?: number;
|
|
6
|
+
businessEndsHour?: number;
|
|
7
|
+
businessWeekends?: boolean;
|
|
8
|
+
cellDuration?: number;
|
|
9
|
+
cellGroupBy?: GroupBy;
|
|
10
|
+
cellSweeping?: boolean;
|
|
11
|
+
cellSweepingCacheSize?: number;
|
|
12
|
+
cellWidth?: number;
|
|
13
|
+
cellsMarkBusiness?: boolean;
|
|
14
|
+
contextMenu?: DayPilot.Menu;
|
|
15
|
+
days?: number;
|
|
16
|
+
durationBarHeight?: number;
|
|
17
|
+
durationBarVisible?: boolean;
|
|
18
|
+
dynamicEventRendering?: "Progressive" | "Disabled";
|
|
19
|
+
dynamicEventRenderingCacheSize?: number;
|
|
20
|
+
dynamicEventRenderingCacheSweeping?: boolean;
|
|
21
|
+
dynamicEventRenderingMargin?: number;
|
|
22
|
+
dynamicEventRenderingMarginX?: number;
|
|
23
|
+
dynamicEventRenderingMarginY?: number;
|
|
24
|
+
eventClickHandling?: "Enabled" | "Disabled";
|
|
25
|
+
eventDeleteHandling?: "Update" | "Disabled";
|
|
26
|
+
eventEndSpec?: "DateTime" | "Date";
|
|
27
|
+
eventHeight?: number;
|
|
28
|
+
eventMinWidth?: number;
|
|
29
|
+
eventMoveHandling?: "Update" | "Disabled";
|
|
30
|
+
eventResizeHandling?: "Update" | "Disabled";
|
|
31
|
+
eventResizeMargin?: number;
|
|
32
|
+
eventRightClickHandling?: "Enabled" | "Disabled" | "ContextMenu";
|
|
33
|
+
eventTapAndHoldHandling?: "Move" | "ContextMenu";
|
|
34
|
+
eventTextWrappingEnabled?: boolean;
|
|
35
|
+
eventsLoadMethod?: "GET" | "POST";
|
|
36
|
+
floatingEvents?: boolean;
|
|
37
|
+
floatingTimeHeaders?: boolean;
|
|
38
|
+
headerHeight?: number;
|
|
39
|
+
height?: number;
|
|
40
|
+
heightSpec?: "Auto" | "Max" | "Fixed";
|
|
41
|
+
locale?: string | DayPilot.Locale;
|
|
42
|
+
progressiveRowRendering?: boolean;
|
|
43
|
+
progressiveRowRenderingPreload?: number;
|
|
44
|
+
resources?: ResourceData[];
|
|
45
|
+
rowHeaderWidth?: number;
|
|
46
|
+
rowsLoadMethod?: "GET" | "POST";
|
|
47
|
+
scale?: "CellDuration" | "Minute" | "Hour" | "Day" | "Week";
|
|
48
|
+
scrollDelayCells?: number;
|
|
49
|
+
scrollDelayEvents?: number;
|
|
50
|
+
scrollDelayFloats?: number;
|
|
51
|
+
scrollDelayRows?: number;
|
|
52
|
+
showToolTip?: boolean;
|
|
53
|
+
snapToGrid?: boolean;
|
|
54
|
+
startDate?: DayPilot.Date | string;
|
|
55
|
+
tapAndHoldTimeout?: number;
|
|
56
|
+
theme?: string;
|
|
57
|
+
timeFormat?: "Auto" | "Clock12Hours" | "Clock24Hours";
|
|
58
|
+
timeHeaderClickHandling?: "Enabled" | "Disabled";
|
|
59
|
+
timeHeaderTextWrappingEnabled?: boolean;
|
|
60
|
+
timeHeaders?: TimeHeaderData[];
|
|
61
|
+
timeRangeClickHandling?: "Enabled" | "Disabled";
|
|
62
|
+
timeRangeSelectedHandling?: "Enabled" | "Disabled";
|
|
63
|
+
useEventBoxes?: "Always" | "Never";
|
|
64
|
+
visible?: boolean;
|
|
65
|
+
weekStarts?: "Auto" | number;
|
|
66
|
+
width?: string;
|
|
67
|
+
xssProtection?: "Enabled" | "Disabled";
|
|
68
|
+
onAfterUpdate?: EventHandler<SchedulerAfterUpdateArgs>;
|
|
69
|
+
onBeforeEventRender?: EventHandler<SchedulerBeforeEventRenderArgs>;
|
|
70
|
+
onBeforeRowHeaderRender?: EventHandler<SchedulerBeforeRowHeaderRenderArgs>;
|
|
71
|
+
onBeforeTimeHeaderRender?: EventHandler<SchedulerBeforeTimeHeaderRenderArgs>;
|
|
72
|
+
onEventClick?: EventHandler<SchedulerEventClickArgs>;
|
|
73
|
+
onEventClicked?: EventHandler<SchedulerEventClickedArgs>;
|
|
74
|
+
onEventDelete?: EventHandler<SchedulerEventDeleteArgs>;
|
|
75
|
+
onEventDeleted?: EventHandler<SchedulerEventDeletedArgs>;
|
|
76
|
+
onEventMove?: EventHandler<SchedulerEventMoveArgs>;
|
|
77
|
+
onEventMoved?: EventHandler<SchedulerEventMovedArgs>;
|
|
78
|
+
onEventResize?: EventHandler<SchedulerEventResizeArgs>;
|
|
79
|
+
onEventResized?: EventHandler<SchedulerEventResizedArgs>;
|
|
80
|
+
onEventRightClick?: EventHandler<SchedulerEventRightClickArgs>;
|
|
81
|
+
onEventRightClicked?: EventHandler<SchedulerEventRightClickedArgs>;
|
|
82
|
+
onRowClick?: EventHandler<SchedulerRowClickArgs>;
|
|
83
|
+
onRowClicked?: EventHandler<SchedulerRowClickedArgs>;
|
|
84
|
+
onTimeHeaderClick?: EventHandler<SchedulerTimeHeaderClickArgs>;
|
|
85
|
+
onTimeHeaderClicked?: EventHandler<SchedulerTimeHeaderClickedArgs>;
|
|
86
|
+
onTimeHeaderRightClick?: EventHandler<SchedulerTimeHeaderRightClickArgs>;
|
|
87
|
+
onTimeHeaderRightClicked?: EventHandler<SchedulerTimeHeaderRightClickedArgs>;
|
|
88
|
+
onTimeRangeClick?: EventHandler<SchedulerTimeRangeClickArgs>;
|
|
89
|
+
onTimeRangeClicked?: EventHandler<SchedulerTimeRangeClickedArgs>;
|
|
90
|
+
onTimeRangeSelect?: EventHandler<SchedulerTimeRangeSelectArgs>;
|
|
91
|
+
onTimeRangeSelected?: EventHandler<SchedulerTimeRangeSelectedArgs>;
|
|
92
|
+
}
|
|
93
|
+
export class SchedulerConfig extends SchedulerPropsAndEvents {
|
|
94
|
+
events?: EventData[];
|
|
95
|
+
}
|
|
96
|
+
export class Scheduler extends SchedulerPropsAndEvents {
|
|
97
|
+
v: string;
|
|
98
|
+
events: {
|
|
99
|
+
list: EventData[];
|
|
100
|
+
add(e: DayPilot.Event): void;
|
|
101
|
+
add(data: EventData): void;
|
|
102
|
+
all(): DayPilot.Event[];
|
|
103
|
+
find(id: EventId): DayPilot.Event;
|
|
104
|
+
find(filter: (e: DayPilot.Event) => boolean): DayPilot.Event;
|
|
105
|
+
findAll(filter: (e: DayPilot.Event) => boolean): DayPilot.Event[];
|
|
106
|
+
findAll(example: any): DayPilot.Event[];
|
|
107
|
+
forRange(start?: DayPilot.Date | string, end?: DayPilot.Date | string): DayPilot.Event[];
|
|
108
|
+
load(url: string, success: (args: {
|
|
109
|
+
data: any;
|
|
110
|
+
preventDefault(): void;
|
|
111
|
+
}) => void, error: (args: {
|
|
112
|
+
request: XMLHttpRequest;
|
|
113
|
+
exception: any;
|
|
114
|
+
}) => void): void;
|
|
115
|
+
remove(e: DayPilot.Event): void;
|
|
116
|
+
remove(data: EventData): void;
|
|
117
|
+
remove(id: EventId): void;
|
|
118
|
+
scrollIntoView(e: DayPilot.Event): void;
|
|
119
|
+
update(e: DayPilot.Event): void;
|
|
120
|
+
update(data: EventData): void;
|
|
121
|
+
};
|
|
122
|
+
rows: {
|
|
123
|
+
add(data: ResourceData): void;
|
|
124
|
+
all(): DayPilot.Row[];
|
|
125
|
+
each(f: () => DayPilot.Row): void;
|
|
126
|
+
find(filter: (row: DayPilot.Row) => boolean, startIndex?: number): DayPilot.Row;
|
|
127
|
+
find(id: ResourceId, start?: DayPilot.Date | string): DayPilot.Row;
|
|
128
|
+
load(url: string, success: (args: {
|
|
129
|
+
data: any;
|
|
130
|
+
preventDefault(): void;
|
|
131
|
+
}) => void, error: (args: {
|
|
132
|
+
request: XMLHttpRequest;
|
|
133
|
+
exception: any;
|
|
134
|
+
}) => void): void;
|
|
135
|
+
remove(row: DayPilot.Row): void;
|
|
136
|
+
remove(id: ResourceId): void;
|
|
137
|
+
sort(spec?: string | {
|
|
138
|
+
field: string;
|
|
139
|
+
order?: "asc" | "desc";
|
|
140
|
+
}): void;
|
|
141
|
+
update(row: DayPilot.Row | ResourceData): void;
|
|
142
|
+
};
|
|
143
|
+
constructor(id: string | HTMLElement, options?: SchedulerConfig);
|
|
144
|
+
clearSelection(): void;
|
|
145
|
+
dispose(): void;
|
|
146
|
+
disposed(): boolean;
|
|
147
|
+
dragInProgress(): boolean;
|
|
148
|
+
getDate(pixels: number, precise?: boolean, isEnd?: boolean): DayPilot.Date;
|
|
149
|
+
getScrollX(): number;
|
|
150
|
+
getScrollY(): number;
|
|
151
|
+
getViewport(): SchedulerViewport;
|
|
152
|
+
hide(): void;
|
|
153
|
+
init(): void;
|
|
154
|
+
scrollTo(date: string | DayPilot.Date): void;
|
|
155
|
+
scrollToResource(id: ResourceId | DayPilot.Row): void;
|
|
156
|
+
selectTimeRange(start: DayPilot.Date | string, end: DayPilot.Date | string, resource: ResourceId, dontFireEvent?: boolean): void;
|
|
157
|
+
setHeight(pixels: number): void;
|
|
158
|
+
setScroll(scrollX: number, scrollY: number): void;
|
|
159
|
+
setScrollX(scrollX: number): void;
|
|
160
|
+
setScrollY(scrollY: number): void;
|
|
161
|
+
show(): void;
|
|
162
|
+
update(options?: SchedulerConfig): void;
|
|
163
|
+
visibleStart(): DayPilot.Date;
|
|
164
|
+
visibleEnd(): DayPilot.Date;
|
|
165
|
+
}
|
|
166
|
+
export interface SchedulerAfterUpdateArgs {
|
|
167
|
+
}
|
|
168
|
+
export interface SchedulerBeforeEventRenderArgs {
|
|
169
|
+
readonly control: DayPilot.Scheduler;
|
|
170
|
+
readonly data: EventData;
|
|
171
|
+
}
|
|
172
|
+
export interface SchedulerBeforeRowHeaderRenderArgs {
|
|
173
|
+
readonly row: RenderRow;
|
|
174
|
+
}
|
|
175
|
+
export interface SchedulerBeforeTimeHeaderRenderArgs {
|
|
176
|
+
readonly control: Scheduler;
|
|
177
|
+
readonly header: {
|
|
178
|
+
readonly start: DayPilot.Date;
|
|
179
|
+
readonly end: DayPilot.Date;
|
|
180
|
+
readonly level: number;
|
|
181
|
+
areas: AreaData[];
|
|
182
|
+
text: string;
|
|
183
|
+
html: string;
|
|
184
|
+
toolTip: string;
|
|
185
|
+
backColor: string;
|
|
186
|
+
fontColor: string;
|
|
187
|
+
cssClass: string;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
export interface SchedulerEventClickArgs {
|
|
191
|
+
readonly e: DayPilot.Event;
|
|
192
|
+
readonly div: HTMLElement;
|
|
193
|
+
readonly ctrl: boolean;
|
|
194
|
+
readonly meta: boolean;
|
|
195
|
+
readonly shift: boolean;
|
|
196
|
+
readonly control: DayPilot.Scheduler;
|
|
197
|
+
readonly originalEvent: MouseEvent;
|
|
198
|
+
preventDefault(): void;
|
|
199
|
+
}
|
|
200
|
+
export interface SchedulerEventClickedArgs {
|
|
201
|
+
readonly e: DayPilot.Event;
|
|
202
|
+
readonly div: HTMLElement;
|
|
203
|
+
readonly ctrl: boolean;
|
|
204
|
+
readonly meta: boolean;
|
|
205
|
+
readonly shift: boolean;
|
|
206
|
+
readonly control: DayPilot.Scheduler;
|
|
207
|
+
readonly originalEvent: MouseEvent;
|
|
208
|
+
}
|
|
209
|
+
export interface SchedulerEventDeleteArgs {
|
|
210
|
+
readonly e: DayPilot.Event;
|
|
211
|
+
readonly control: DayPilot.Scheduler;
|
|
212
|
+
preventDefault(): void;
|
|
213
|
+
}
|
|
214
|
+
export interface SchedulerEventDeletedArgs {
|
|
215
|
+
readonly e: DayPilot.Event;
|
|
216
|
+
readonly control: DayPilot.Scheduler;
|
|
217
|
+
}
|
|
218
|
+
export interface SchedulerEventMoveArgs {
|
|
219
|
+
async: boolean;
|
|
220
|
+
readonly areaData: any;
|
|
221
|
+
readonly control: DayPilot.Scheduler;
|
|
222
|
+
readonly e: DayPilot.Event;
|
|
223
|
+
newStart: DayPilot.Date;
|
|
224
|
+
newEnd: DayPilot.Date;
|
|
225
|
+
newResource: ResourceId;
|
|
226
|
+
readonly ctrl: boolean;
|
|
227
|
+
readonly shift: boolean;
|
|
228
|
+
readonly meta: boolean;
|
|
229
|
+
loaded(): void;
|
|
230
|
+
preventDefault(): void;
|
|
231
|
+
}
|
|
232
|
+
export interface SchedulerEventMovedArgs {
|
|
233
|
+
readonly async: boolean;
|
|
234
|
+
readonly areaData: any;
|
|
235
|
+
readonly control: DayPilot.Scheduler;
|
|
236
|
+
readonly e: DayPilot.Event;
|
|
237
|
+
readonly newStart: DayPilot.Date;
|
|
238
|
+
readonly newEnd: DayPilot.Date;
|
|
239
|
+
readonly newResource: ResourceId;
|
|
240
|
+
readonly ctrl: boolean;
|
|
241
|
+
readonly shift: boolean;
|
|
242
|
+
readonly meta: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface SchedulerEventResizeArgs {
|
|
245
|
+
readonly areaData: any;
|
|
246
|
+
async: boolean;
|
|
247
|
+
readonly control: DayPilot.Scheduler;
|
|
248
|
+
readonly e: DayPilot.Event;
|
|
249
|
+
newStart: DayPilot.Date;
|
|
250
|
+
newEnd: DayPilot.Date;
|
|
251
|
+
readonly what: "start" | "end";
|
|
252
|
+
loaded(): void;
|
|
253
|
+
preventDefault(): void;
|
|
254
|
+
}
|
|
255
|
+
export interface SchedulerEventResizedArgs {
|
|
256
|
+
readonly areaData: any;
|
|
257
|
+
readonly async: boolean;
|
|
258
|
+
readonly control: DayPilot.Scheduler;
|
|
259
|
+
readonly e: DayPilot.Event;
|
|
260
|
+
readonly newStart: DayPilot.Date;
|
|
261
|
+
readonly newEnd: DayPilot.Date;
|
|
262
|
+
readonly what: "start" | "end";
|
|
263
|
+
}
|
|
264
|
+
export interface SchedulerEventRightClickArgs {
|
|
265
|
+
readonly e: DayPilot.Event;
|
|
266
|
+
readonly div: HTMLElement;
|
|
267
|
+
readonly originalEvent: MouseEvent;
|
|
268
|
+
preventDefault(): void;
|
|
269
|
+
}
|
|
270
|
+
export interface SchedulerEventRightClickedArgs {
|
|
271
|
+
readonly e: DayPilot.Event;
|
|
272
|
+
readonly div: HTMLElement;
|
|
273
|
+
readonly originalEvent: MouseEvent;
|
|
274
|
+
}
|
|
275
|
+
export interface SchedulerRowClickArgs {
|
|
276
|
+
readonly row: DayPilot.Row;
|
|
277
|
+
readonly ctrl: boolean;
|
|
278
|
+
readonly shift: boolean;
|
|
279
|
+
readonly meta: boolean;
|
|
280
|
+
readonly originalEvent: MouseEvent;
|
|
281
|
+
preventDefault(): void;
|
|
282
|
+
}
|
|
283
|
+
export interface SchedulerRowClickedArgs {
|
|
284
|
+
readonly row: DayPilot.Row;
|
|
285
|
+
readonly ctrl: boolean;
|
|
286
|
+
readonly shift: boolean;
|
|
287
|
+
readonly meta: boolean;
|
|
288
|
+
readonly originalEvent: MouseEvent;
|
|
289
|
+
}
|
|
290
|
+
export interface SchedulerTimeHeaderClickArgs {
|
|
291
|
+
readonly control: Scheduler;
|
|
292
|
+
readonly header: {
|
|
293
|
+
readonly start: DayPilot.Date;
|
|
294
|
+
readonly end: DayPilot.Date;
|
|
295
|
+
readonly level: number;
|
|
296
|
+
};
|
|
297
|
+
readonly originalEvent: MouseEvent;
|
|
298
|
+
readonly ctrl: boolean;
|
|
299
|
+
readonly shift: boolean;
|
|
300
|
+
readonly meta: boolean;
|
|
301
|
+
preventDefault(): void;
|
|
302
|
+
}
|
|
303
|
+
export interface SchedulerTimeHeaderClickedArgs {
|
|
304
|
+
readonly control: Scheduler;
|
|
305
|
+
readonly header: {
|
|
306
|
+
readonly start: DayPilot.Date;
|
|
307
|
+
readonly end: DayPilot.Date;
|
|
308
|
+
readonly level: number;
|
|
309
|
+
};
|
|
310
|
+
readonly originalEvent: MouseEvent;
|
|
311
|
+
readonly ctrl: boolean;
|
|
312
|
+
readonly shift: boolean;
|
|
313
|
+
readonly meta: boolean;
|
|
314
|
+
}
|
|
315
|
+
export interface SchedulerTimeHeaderRightClickArgs {
|
|
316
|
+
readonly header: {
|
|
317
|
+
readonly start: DayPilot.Date;
|
|
318
|
+
readonly end: DayPilot.Date;
|
|
319
|
+
readonly level: number;
|
|
320
|
+
};
|
|
321
|
+
preventDefault(): void;
|
|
322
|
+
}
|
|
323
|
+
export interface SchedulerTimeHeaderRightClickedArgs {
|
|
324
|
+
readonly header: {
|
|
325
|
+
readonly start: DayPilot.Date;
|
|
326
|
+
readonly end: DayPilot.Date;
|
|
327
|
+
readonly level: number;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
export interface SchedulerTimeRangeClickArgs {
|
|
331
|
+
readonly start: DayPilot.Date;
|
|
332
|
+
readonly end: DayPilot.Date;
|
|
333
|
+
readonly resource: ResourceId;
|
|
334
|
+
preventDefault(): void;
|
|
335
|
+
}
|
|
336
|
+
export interface SchedulerTimeRangeClickedArgs {
|
|
337
|
+
readonly start: DayPilot.Date;
|
|
338
|
+
readonly end: DayPilot.Date;
|
|
339
|
+
readonly resource: ResourceId;
|
|
340
|
+
}
|
|
341
|
+
export interface SchedulerTimeRangeSelectArgs {
|
|
342
|
+
readonly start: DayPilot.Date;
|
|
343
|
+
readonly end: DayPilot.Date;
|
|
344
|
+
readonly resource: ResourceId;
|
|
345
|
+
readonly control: DayPilot.Scheduler;
|
|
346
|
+
preventDefault(): void;
|
|
347
|
+
}
|
|
348
|
+
export interface SchedulerTimeRangeSelectedArgs {
|
|
349
|
+
readonly start: DayPilot.Date;
|
|
350
|
+
readonly end: DayPilot.Date;
|
|
351
|
+
readonly resource: ResourceId;
|
|
352
|
+
readonly control: DayPilot.Scheduler;
|
|
353
|
+
}
|
|
354
|
+
export type GroupBy = "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year" | "Cell" | "None";
|
|
355
|
+
export interface SchedulerViewport {
|
|
356
|
+
start: DayPilot.Date;
|
|
357
|
+
end: DayPilot.Date;
|
|
358
|
+
resources: ResourceId[];
|
|
359
|
+
}
|
|
360
|
+
export interface ResourceData {
|
|
361
|
+
id?: ResourceId;
|
|
362
|
+
name?: string;
|
|
363
|
+
start?: DayPilot.Date | string;
|
|
364
|
+
end?: DayPilot.Date | string;
|
|
365
|
+
areas?: AreaData[];
|
|
366
|
+
ariaLabel?: string;
|
|
367
|
+
backColor?: string;
|
|
368
|
+
fontColor?: string;
|
|
369
|
+
cssClass?: string;
|
|
370
|
+
html?: string;
|
|
371
|
+
tags?: any;
|
|
372
|
+
toolTip?: string;
|
|
373
|
+
[prop: string]: any;
|
|
374
|
+
}
|
|
375
|
+
export interface TimeHeaderData {
|
|
376
|
+
groupBy: GroupBy;
|
|
377
|
+
format?: string;
|
|
378
|
+
height?: number;
|
|
379
|
+
}
|
|
380
|
+
export class Row {
|
|
381
|
+
events: {
|
|
382
|
+
all(): DayPilot.Event[];
|
|
383
|
+
isEmpty(): boolean;
|
|
384
|
+
forRange(start: string | DayPilot.Date, end: string | DayPilot.Date): DayPilot.Event[];
|
|
385
|
+
totalDuration(): DayPilot.Duration;
|
|
386
|
+
};
|
|
387
|
+
readonly calendar: DayPilot.Scheduler;
|
|
388
|
+
readonly data: any;
|
|
389
|
+
readonly id: ResourceId;
|
|
390
|
+
readonly index: number;
|
|
391
|
+
readonly level: number;
|
|
392
|
+
readonly name: string;
|
|
393
|
+
addClass(className: string): void;
|
|
394
|
+
remove(): void;
|
|
395
|
+
removeClass(className: string): void;
|
|
396
|
+
}
|
|
397
|
+
export class RenderRow extends Row {
|
|
398
|
+
areas: AreaData[];
|
|
399
|
+
backColor: string;
|
|
400
|
+
cssClass: string;
|
|
401
|
+
fontColor: string;
|
|
402
|
+
horizontalAlignment: HorizontalAlignment;
|
|
403
|
+
html: string;
|
|
404
|
+
text: string;
|
|
405
|
+
toolTip: string;
|
|
406
|
+
}
|
|
3
407
|
export class CalendarPropsAndEvents {
|
|
4
408
|
backendUrl?: string;
|
|
5
409
|
businessBeginsHour?: number;
|
|
@@ -455,11 +859,16 @@ export declare module DayPilot {
|
|
|
455
859
|
selectionStart?: DayPilot.Date;
|
|
456
860
|
selectMode?: "Day" | "Week" | "Month" | "None";
|
|
457
861
|
showMonths?: number;
|
|
862
|
+
showToday?: boolean;
|
|
458
863
|
showWeekNumbers?: boolean;
|
|
459
864
|
skipMonths?: number;
|
|
460
865
|
startDate?: DayPilot.Date | string;
|
|
461
866
|
theme?: string;
|
|
462
867
|
titleHeight?: number;
|
|
868
|
+
todayHeight?: number;
|
|
869
|
+
todayHtml?: string;
|
|
870
|
+
todayPosition?: "Top" | "Bottom";
|
|
871
|
+
todayText?: string;
|
|
463
872
|
weekStarts?: "Auto" | number;
|
|
464
873
|
weekNumberAlgorithm?: "Auto" | "US" | "ISO8601";
|
|
465
874
|
timeRangeSelectedHandling?: "Bind" | "None";
|
|
@@ -467,6 +876,7 @@ export declare module DayPilot {
|
|
|
467
876
|
onBeforeCellRender?: EventHandler<NavigatorBeforeCellRenderArgs>;
|
|
468
877
|
onTimeRangeSelect?: EventHandler<NavigatorTimeRangeSelectArgs>;
|
|
469
878
|
onTimeRangeSelected?: EventHandler<NavigatorTimeRangeSelectedArgs>;
|
|
879
|
+
onTodayClick?: EventHandler<NavigatorTodayClickArgs>;
|
|
470
880
|
onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
|
|
471
881
|
onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
|
|
472
882
|
}
|
|
@@ -518,6 +928,9 @@ export declare module DayPilot {
|
|
|
518
928
|
readonly days: number;
|
|
519
929
|
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
520
930
|
}
|
|
931
|
+
export interface NavigatorTodayClickArgs {
|
|
932
|
+
preventDefault(): void;
|
|
933
|
+
}
|
|
521
934
|
interface NavigatorVisibleRangeChangeArgs {
|
|
522
935
|
readonly start: DayPilot.Date;
|
|
523
936
|
readonly end: DayPilot.Date;
|
|
@@ -719,33 +1132,6 @@ export declare module DayPilot {
|
|
|
719
1132
|
static lighter(color: string, steps?: number): string;
|
|
720
1133
|
static contrasting(color: string, light?: string, dark?: string): string;
|
|
721
1134
|
}
|
|
722
|
-
export class Http {
|
|
723
|
-
static get(url: string, options?: HttpGetOptions): Promise<HttpPromiseArgs>;
|
|
724
|
-
static post(url: string, data?: object | string, options?: HttpPostOptions): Promise<HttpPromiseArgs>;
|
|
725
|
-
static put(url: string, data?: object | string, options?: HttpPutOptions): Promise<HttpPromiseArgs>;
|
|
726
|
-
static delete(url: string, options?: HttpDeleteOptions): Promise<HttpPromiseArgs>;
|
|
727
|
-
}
|
|
728
|
-
export interface HttpDeleteOptions {
|
|
729
|
-
headers?: HttpHeaders;
|
|
730
|
-
}
|
|
731
|
-
export interface HttpGetOptions {
|
|
732
|
-
headers?: HttpHeaders;
|
|
733
|
-
}
|
|
734
|
-
export interface HttpPostOptions {
|
|
735
|
-
headers?: HttpHeaders;
|
|
736
|
-
contentType?: string;
|
|
737
|
-
}
|
|
738
|
-
export interface HttpPutOptions {
|
|
739
|
-
headers?: HttpHeaders;
|
|
740
|
-
contentType?: string;
|
|
741
|
-
}
|
|
742
|
-
export interface HttpPromiseArgs {
|
|
743
|
-
readonly data: any;
|
|
744
|
-
readonly request: XMLHttpRequest;
|
|
745
|
-
}
|
|
746
|
-
export interface HttpHeaders {
|
|
747
|
-
[header: string]: string;
|
|
748
|
-
}
|
|
749
1135
|
export class Duration {
|
|
750
1136
|
ticks: number;
|
|
751
1137
|
constructor(ticks: number);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewInit, DoCheck, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DayPilot } from "./core/daypilot-core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DayPilotSchedulerComponent implements OnInit, OnDestroy, AfterViewInit, DoCheck {
|
|
5
|
+
control: DayPilot.Scheduler;
|
|
6
|
+
viewChange: EventEmitter<DayPilot.Date>;
|
|
7
|
+
events: DayPilot.EventData[];
|
|
8
|
+
config: any;
|
|
9
|
+
private _requestUpdateFull;
|
|
10
|
+
private _requestUpdateEvents;
|
|
11
|
+
private _requestViewChange;
|
|
12
|
+
private _hashOptions;
|
|
13
|
+
private _hashEvents;
|
|
14
|
+
private _id;
|
|
15
|
+
get id(): string;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
ngDoCheck(): void;
|
|
20
|
+
private dispose;
|
|
21
|
+
private updateOptions;
|
|
22
|
+
private updateEvents;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayPilotSchedulerComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DayPilotSchedulerComponent, "daypilot-scheduler", never, { "events": "events"; "config": "config"; }, { "viewChange": "viewChange"; }, never, never>;
|
|
25
|
+
}
|
package/lib/daypilot.module.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./daypilot-calendar.component";
|
|
3
|
-
import * as i2 from "./daypilot-
|
|
4
|
-
import * as i3 from "./daypilot-
|
|
3
|
+
import * as i2 from "./daypilot-scheduler.component";
|
|
4
|
+
import * as i3 from "./daypilot-month.component";
|
|
5
|
+
import * as i4 from "./daypilot-navigator.component";
|
|
5
6
|
export declare class DayPilotModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DayPilotModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DayPilotModule, [typeof i1.DayPilotCalendarComponent, typeof i2.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DayPilotModule, [typeof i1.DayPilotCalendarComponent, typeof i2.DayPilotSchedulerComponent, typeof i3.DayPilotMonthComponent, typeof i4.DayPilotNavigatorComponent], never, [typeof i1.DayPilotCalendarComponent, typeof i2.DayPilotSchedulerComponent, typeof i3.DayPilotMonthComponent, typeof i4.DayPilotNavigatorComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DayPilotModule>;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daypilot/daypilot-lite-angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "DayPilot Lite for Angular",
|
|
5
5
|
"homepage": "https://javascript.daypilot.org/",
|
|
6
6
|
"author": "Annpoint, s.r.o.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"tslib": "^2.3.0",
|
|
25
|
-
"@daypilot/daypilot-lite-javascript": "
|
|
25
|
+
"@daypilot/daypilot-lite-javascript": "4.0.0"
|
|
26
26
|
},
|
|
27
27
|
"module": "fesm2015/daypilot-daypilot-lite-angular.mjs",
|
|
28
28
|
"es2020": "fesm2020/daypilot-daypilot-lite-angular.mjs",
|
package/public-api.d.ts
CHANGED