@daypilot/daypilot-lite-vue 3.22.0 → 3.22.2
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/NOTICE.txt +1 -0
- package/daypilot-vue.min.d.ts +1232 -0
- package/daypilot-vue.min.js +5 -5
- package/package.json +6 -2
|
@@ -0,0 +1,1232 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright © 2024 Annpoint, s.r.o.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
|
|
16
|
+
-------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
NOTE: Requires the following acknowledgement (see also NOTICE):
|
|
19
|
+
This software includes DayPilot (https://www.daypilot.org).
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
type GlobalDate = Date;
|
|
23
|
+
|
|
24
|
+
export module DayPilot {
|
|
25
|
+
|
|
26
|
+
export class CalendarPropsAndEvents {
|
|
27
|
+
backendUrl?: string;
|
|
28
|
+
businessBeginsHour?: number;
|
|
29
|
+
businessEndsHour?: number;
|
|
30
|
+
cellHeight?: number;
|
|
31
|
+
columnMarginRight?: number;
|
|
32
|
+
columnsLoadMethod?: "POST" | "GET";
|
|
33
|
+
contextMenu?: DayPilot.Menu;
|
|
34
|
+
days?: number;
|
|
35
|
+
doubleClickTimeout?: number;
|
|
36
|
+
durationBarVisible?: boolean;
|
|
37
|
+
eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "ContextMenu";
|
|
38
|
+
eventDeleteHandling?: "Update" | "Disabled" | "CallBack";
|
|
39
|
+
eventMoveHandling?: "Update" | "CallBack" | "Disabled";
|
|
40
|
+
eventResizeHandling?: "Update" | "CallBack" | "Disabled";
|
|
41
|
+
eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
|
|
42
|
+
headerClickHandling?: "Enabled" | "Disabled";
|
|
43
|
+
headerDateFormat?: string;
|
|
44
|
+
headerHeight?: number;
|
|
45
|
+
headerTextWrappingEnabled?: boolean;
|
|
46
|
+
height?: number;
|
|
47
|
+
heightSpec?: "BusinessHours" | "BusinessHoursNoScroll" | "Full";
|
|
48
|
+
hideUntilInit?: boolean;
|
|
49
|
+
hourWidth?: number;
|
|
50
|
+
initScrollPos?: number;
|
|
51
|
+
loadingLabelText?: string;
|
|
52
|
+
loadingLabelHtml?: string;
|
|
53
|
+
loadingLabelVisible?: boolean;
|
|
54
|
+
locale?: string;
|
|
55
|
+
showToolTip?: boolean;
|
|
56
|
+
startDate?: DayPilot.Date | string;
|
|
57
|
+
theme?: string;
|
|
58
|
+
timeFormat?: "Auto" | "Clock12Hours" | "Clock24Hours";
|
|
59
|
+
timeRangeSelectedHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
60
|
+
viewType?: "Day" | "Days" | "Week" | "WorkWeek" | "Resources";
|
|
61
|
+
visible?: boolean;
|
|
62
|
+
// weekStarts?: "Auto" | number;
|
|
63
|
+
xssProtection?: "Enabled" | "Disabled";
|
|
64
|
+
|
|
65
|
+
onAfterEventRender?: EventHandler<CalendarAfterEventRenderArgs>;
|
|
66
|
+
|
|
67
|
+
onBeforeCellRender?: EventHandler<CalendarBeforeCellRenderArgs>;
|
|
68
|
+
onBeforeEventRender?: EventHandler<CalendarBeforeEventRenderArgs>;
|
|
69
|
+
onBeforeHeaderRender?: EventHandler<CalendarBeforeHeaderRenderArgs>;
|
|
70
|
+
|
|
71
|
+
onEventClick?: EventHandler<CalendarEventClickArgs>;
|
|
72
|
+
onEventClicked?: EventHandler<CalendarEventClickedArgs>;
|
|
73
|
+
onEventDelete?: EventHandler<CalendarEventDeleteArgs>;
|
|
74
|
+
onEventDeleted?: EventHandler<CalendarEventDeletedArgs>;
|
|
75
|
+
onEventMove?: EventHandler<CalendarEventMoveArgs>;
|
|
76
|
+
onEventMoved?: EventHandler<CalendarEventMovedArgs>;
|
|
77
|
+
onEventResize?: EventHandler<CalendarEventResizeArgs>;
|
|
78
|
+
onEventResized?: EventHandler<CalendarEventResizedArgs>;
|
|
79
|
+
onEventRightClick?: EventHandler<CalendarEventRightClickArgs>;
|
|
80
|
+
onEventRightClicked?: EventHandler<CalendarEventRightClickedArgs>;
|
|
81
|
+
onHeaderClick?: EventHandler<CalendarHeaderClickArgs>;
|
|
82
|
+
onHeaderClicked?: EventHandler<CalendarHeaderClickedArgs>;
|
|
83
|
+
onTimeRangeSelect?: EventHandler<CalendarTimeRangeSelectArgs>;
|
|
84
|
+
onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class CalendarConfig extends CalendarPropsAndEvents {
|
|
89
|
+
columns?: CalendarColumnData[];
|
|
90
|
+
events?: EventData[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export class Calendar extends CalendarPropsAndEvents {
|
|
94
|
+
v: string;
|
|
95
|
+
columns: {
|
|
96
|
+
list: CalendarColumnData[];
|
|
97
|
+
load(url: string,
|
|
98
|
+
success: (args: { data: any; preventDefault(): void; }) => void,
|
|
99
|
+
error: (args: { request: XMLHttpRequest, exception: any; }) => void
|
|
100
|
+
): void;
|
|
101
|
+
};
|
|
102
|
+
events: {
|
|
103
|
+
list: EventData[];
|
|
104
|
+
add(e: DayPilot.Event | EventData): void;
|
|
105
|
+
find(id: string): DayPilot.Event;
|
|
106
|
+
find(filter: (e: DayPilot.Event) => boolean): DayPilot.Event;
|
|
107
|
+
load(url: string,
|
|
108
|
+
success: (args: { data: any; preventDefault(): void; }) => void,
|
|
109
|
+
error: (args: { request: XMLHttpRequest, exception: any; }) => void
|
|
110
|
+
): void;
|
|
111
|
+
remove(e: DayPilot.Event): void;
|
|
112
|
+
remove(id: EventId): void;
|
|
113
|
+
update(e: DayPilot.Event | EventData): void;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
constructor(id: string | HTMLElement, options?: CalendarConfig);
|
|
117
|
+
|
|
118
|
+
clearSelection(): void;
|
|
119
|
+
|
|
120
|
+
dispose(): void;
|
|
121
|
+
|
|
122
|
+
disposed(): boolean;
|
|
123
|
+
|
|
124
|
+
getSelection(): DayPilot.Selection;
|
|
125
|
+
|
|
126
|
+
hide(): void;
|
|
127
|
+
|
|
128
|
+
init(): void;
|
|
129
|
+
|
|
130
|
+
show(): void;
|
|
131
|
+
|
|
132
|
+
update(options?: CalendarConfig): void;
|
|
133
|
+
|
|
134
|
+
visibleStart(): DayPilot.Date;
|
|
135
|
+
|
|
136
|
+
visibleEnd(): DayPilot.Date;
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface CalendarColumnData {
|
|
141
|
+
name: string;
|
|
142
|
+
id?: ResourceId;
|
|
143
|
+
start?: DayPilot.Date | string;
|
|
144
|
+
html?: string;
|
|
145
|
+
toolTip?: string;
|
|
146
|
+
tags?: any;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface CalendarAfterEventRenderArgs {
|
|
150
|
+
readonly e: DayPilot.Event;
|
|
151
|
+
readonly div: HTMLElement;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface CalendarBeforeCellRenderArgs {
|
|
155
|
+
readonly cell: {
|
|
156
|
+
readonly start: DayPilot.Date;
|
|
157
|
+
readonly end: DayPilot.Date;
|
|
158
|
+
readonly resource: ResourceId;
|
|
159
|
+
readonly properties: {
|
|
160
|
+
html: string;
|
|
161
|
+
business: boolean;
|
|
162
|
+
backColor: string;
|
|
163
|
+
backImage: string;
|
|
164
|
+
backRepeat: string;
|
|
165
|
+
cssClass: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface CalendarBeforeEventRenderArgs {
|
|
171
|
+
readonly control: DayPilot.Calendar;
|
|
172
|
+
readonly data: EventData;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export interface CalendarBeforeHeaderRenderArgs {
|
|
176
|
+
readonly header: {
|
|
177
|
+
readonly id: ResourceId;
|
|
178
|
+
readonly start: DayPilot.Date;
|
|
179
|
+
readonly name: string;
|
|
180
|
+
readonly children: CalendarColumnData[];
|
|
181
|
+
html: string;
|
|
182
|
+
backColor: string;
|
|
183
|
+
cssClass?: string;
|
|
184
|
+
verticalAlignment?: "top" | "center" | "bottom";
|
|
185
|
+
toolTip: string;
|
|
186
|
+
areas: AreaData[];
|
|
187
|
+
};
|
|
188
|
+
readonly column: Column;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface CalendarEventClickArgs {
|
|
192
|
+
readonly e: DayPilot.Event;
|
|
193
|
+
readonly control: DayPilot.Calendar;
|
|
194
|
+
readonly ctrl: boolean;
|
|
195
|
+
readonly meta: boolean;
|
|
196
|
+
readonly originalEvent: MouseEvent;
|
|
197
|
+
preventDefault(): void;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
export interface CalendarEventClickedArgs {
|
|
202
|
+
readonly e: DayPilot.Event;
|
|
203
|
+
readonly control: DayPilot.Calendar;
|
|
204
|
+
readonly ctrl: boolean;
|
|
205
|
+
readonly meta: boolean;
|
|
206
|
+
readonly originalEvent: MouseEvent;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface CalendarEventRightClickArgs {
|
|
210
|
+
readonly e: DayPilot.Event;
|
|
211
|
+
preventDefault(): void;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface CalendarEventRightClickedArgs {
|
|
215
|
+
readonly e: DayPilot.Event;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface CalendarEventDeleteArgs {
|
|
219
|
+
readonly e: DayPilot.Event;
|
|
220
|
+
readonly control: DayPilot.Calendar;
|
|
221
|
+
preventDefault(): void;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
export interface CalendarEventDeletedArgs {
|
|
226
|
+
readonly e: DayPilot.Event;
|
|
227
|
+
readonly control: DayPilot.Calendar;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
export interface CalendarEventMoveArgs {
|
|
232
|
+
readonly e: DayPilot.Event;
|
|
233
|
+
readonly control: DayPilot.Calendar;
|
|
234
|
+
readonly newStart: DayPilot.Date;
|
|
235
|
+
readonly newEnd: DayPilot.Date;
|
|
236
|
+
readonly newResource: ResourceId;
|
|
237
|
+
readonly ctrl: boolean;
|
|
238
|
+
readonly shift: boolean;
|
|
239
|
+
|
|
240
|
+
preventDefault(): void;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
export interface CalendarEventMovedArgs {
|
|
245
|
+
readonly e: DayPilot.Event;
|
|
246
|
+
readonly control: DayPilot.Calendar;
|
|
247
|
+
readonly newStart: DayPilot.Date;
|
|
248
|
+
readonly newEnd: DayPilot.Date;
|
|
249
|
+
readonly newResource: ResourceId;
|
|
250
|
+
readonly ctrl: boolean;
|
|
251
|
+
readonly shift: boolean;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
export interface CalendarEventResizeArgs {
|
|
256
|
+
readonly e: DayPilot.Event;
|
|
257
|
+
readonly control: DayPilot.Calendar;
|
|
258
|
+
readonly newStart: DayPilot.Date;
|
|
259
|
+
readonly newEnd: DayPilot.Date;
|
|
260
|
+
|
|
261
|
+
preventDefault(): void;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
export interface CalendarEventResizedArgs {
|
|
266
|
+
readonly e: DayPilot.Event;
|
|
267
|
+
readonly control: DayPilot.Calendar;
|
|
268
|
+
readonly newStart: DayPilot.Date;
|
|
269
|
+
readonly newEnd: DayPilot.Date;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface CalendarHeaderClickArgs {
|
|
273
|
+
readonly column: Column;
|
|
274
|
+
readonly originalEvent: MouseEvent;
|
|
275
|
+
readonly shift: boolean;
|
|
276
|
+
readonly meta: boolean;
|
|
277
|
+
readonly ctrl: boolean;
|
|
278
|
+
preventDefault(): void;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface CalendarHeaderClickedArgs {
|
|
282
|
+
readonly column: Column;
|
|
283
|
+
readonly originalEvent: MouseEvent;
|
|
284
|
+
readonly shift: boolean;
|
|
285
|
+
readonly meta: boolean;
|
|
286
|
+
readonly ctrl: boolean;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface CalendarTimeRangeSelectArgs {
|
|
290
|
+
readonly start: DayPilot.Date;
|
|
291
|
+
readonly end: DayPilot.Date;
|
|
292
|
+
readonly resource: ResourceId;
|
|
293
|
+
readonly control: DayPilot.Calendar;
|
|
294
|
+
preventDefault(): void;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
export interface CalendarTimeRangeSelectedArgs {
|
|
299
|
+
readonly start: DayPilot.Date;
|
|
300
|
+
readonly end: DayPilot.Date;
|
|
301
|
+
readonly resource: ResourceId;
|
|
302
|
+
readonly control: DayPilot.Calendar;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export class Column {
|
|
306
|
+
readonly id: ResourceId;
|
|
307
|
+
readonly start: DayPilot.Date;
|
|
308
|
+
readonly name: string;
|
|
309
|
+
readonly data: CalendarColumnData;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export class MonthPropsAndEvents {
|
|
313
|
+
backendUrl?: string;
|
|
314
|
+
cellHeaderClickHandling?: "Enabled" | "Disabled";
|
|
315
|
+
cellHeaderHeight?: number;
|
|
316
|
+
cellHeight?: number;
|
|
317
|
+
contextMenu?: DayPilot.Menu;
|
|
318
|
+
eventBarVisible?: boolean;
|
|
319
|
+
eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "ContextMenu";
|
|
320
|
+
eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
|
|
321
|
+
eventHeight?: number;
|
|
322
|
+
eventDeleteHandling?: "Update" | "Disabled";
|
|
323
|
+
eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
|
|
324
|
+
eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
|
|
325
|
+
headerClickHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
326
|
+
headerHeight?: number;
|
|
327
|
+
hideUntilInit?: boolean;
|
|
328
|
+
lineSpace?: number;
|
|
329
|
+
locale?: string;
|
|
330
|
+
showToolTip?: boolean;
|
|
331
|
+
startDate?: DayPilot.Date | string;
|
|
332
|
+
theme?: string;
|
|
333
|
+
timeRangeSelectedHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
334
|
+
visible?: boolean;
|
|
335
|
+
weekStarts?: number;
|
|
336
|
+
width?: string;
|
|
337
|
+
xssProtection?: "Enabled" | "Disabled";
|
|
338
|
+
|
|
339
|
+
onAfterEventRender?: EventHandler<MonthAfterEventRenderArgs>;
|
|
340
|
+
|
|
341
|
+
onBeforeEventRender?: EventHandler<MonthBeforeEventRenderArgs>;
|
|
342
|
+
onBeforeCellRender?: EventHandler<MonthBeforeCellRenderArgs>;
|
|
343
|
+
|
|
344
|
+
onCellHeaderClick?: EventHandler<MonthCellHeaderClickArgs>;
|
|
345
|
+
onCellHeaderClicked?: EventHandler<MonthCellHeaderClickedArgs>;
|
|
346
|
+
onEventClick?: EventHandler<MonthEventClickArgs>;
|
|
347
|
+
onEventClicked?: EventHandler<MonthEventClickedArgs>;
|
|
348
|
+
onEventDelete?: EventHandler<MonthEventDeleteArgs>;
|
|
349
|
+
onEventDeleted?: EventHandler<MonthEventDeletedArgs>;
|
|
350
|
+
onEventMove?: EventHandler<MonthEventMoveArgs>;
|
|
351
|
+
onEventMoved?: EventHandler<MonthEventMovedArgs>;
|
|
352
|
+
onEventResize?: EventHandler<MonthEventResizeArgs>;
|
|
353
|
+
onEventResized?: EventHandler<MonthEventResizedArgs>;
|
|
354
|
+
onEventRightClick?: EventHandler<MonthEventRightClickArgs>;
|
|
355
|
+
onEventRightClicked?: EventHandler<MonthEventRightClickedArgs>;
|
|
356
|
+
onTimeRangeSelect?: EventHandler<MonthTimeRangeSelectArgs>;
|
|
357
|
+
onTimeRangeSelected?: EventHandler<MonthTimeRangeSelectedArgs>;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export class MonthConfig extends MonthPropsAndEvents {
|
|
361
|
+
events?: EventData;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export class Month extends MonthPropsAndEvents {
|
|
365
|
+
v: string;
|
|
366
|
+
events: {
|
|
367
|
+
list: EventData[];
|
|
368
|
+
add(e: DayPilot.Event | EventData): void;
|
|
369
|
+
find(id: string): DayPilot.Event;
|
|
370
|
+
find(filter: (e: DayPilot.Event) => boolean): DayPilot.Event;
|
|
371
|
+
load(url: string,
|
|
372
|
+
success: (args: { data: any; preventDefault(): void; }) => void,
|
|
373
|
+
error: (args: { request: XMLHttpRequest, exception: any; }) => void
|
|
374
|
+
): void;
|
|
375
|
+
remove(e: DayPilot.Event): void;
|
|
376
|
+
update(e: DayPilot.Event): void;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
constructor(id: string | HTMLElement, options?: MonthConfig);
|
|
380
|
+
|
|
381
|
+
clearSelection(): void;
|
|
382
|
+
|
|
383
|
+
dispose(): void;
|
|
384
|
+
|
|
385
|
+
disposed(): boolean;
|
|
386
|
+
|
|
387
|
+
init(): void;
|
|
388
|
+
|
|
389
|
+
show(): void;
|
|
390
|
+
|
|
391
|
+
hide(): void;
|
|
392
|
+
|
|
393
|
+
update(options?: MonthConfig): void;
|
|
394
|
+
|
|
395
|
+
visibleStart(): DayPilot.Date;
|
|
396
|
+
|
|
397
|
+
visibleEnd(): DayPilot.Date;
|
|
398
|
+
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export interface MonthAfterEventRenderArgs {
|
|
402
|
+
readonly e: DayPilot.Event;
|
|
403
|
+
readonly div: HTMLElement;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export interface MonthBeforeEventRenderArgs {
|
|
407
|
+
readonly control: DayPilot.Month;
|
|
408
|
+
readonly data: EventData;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export interface MonthBeforeCellRenderArgs {
|
|
412
|
+
readonly control: DayPilot.Month;
|
|
413
|
+
readonly cell: {
|
|
414
|
+
readonly start: DayPilot.Date;
|
|
415
|
+
readonly end: DayPilot.Date;
|
|
416
|
+
readonly properties: {
|
|
417
|
+
business: boolean;
|
|
418
|
+
headerHtml: string;
|
|
419
|
+
html: string;
|
|
420
|
+
backColor: string;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface MonthCellHeaderClickArgs {
|
|
426
|
+
readonly control: DayPilot.Month;
|
|
427
|
+
readonly start: DayPilot.Date;
|
|
428
|
+
readonly end: DayPilot.Date;
|
|
429
|
+
preventDefault(): void;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface MonthCellHeaderClickedArgs {
|
|
433
|
+
readonly control: DayPilot.Month;
|
|
434
|
+
readonly start: DayPilot.Date;
|
|
435
|
+
readonly end: DayPilot.Date;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export interface MonthEventClickArgs {
|
|
439
|
+
readonly e: DayPilot.Event;
|
|
440
|
+
readonly control: DayPilot.Month;
|
|
441
|
+
readonly div: HTMLElement;
|
|
442
|
+
readonly originalEvent: MouseEvent;
|
|
443
|
+
readonly meta: boolean;
|
|
444
|
+
readonly ctrl: boolean;
|
|
445
|
+
preventDefault(): void;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export interface MonthEventClickedArgs {
|
|
449
|
+
readonly e: DayPilot.Event;
|
|
450
|
+
readonly control: DayPilot.Month;
|
|
451
|
+
readonly div: HTMLElement;
|
|
452
|
+
readonly originalEvent: MouseEvent;
|
|
453
|
+
readonly meta: boolean;
|
|
454
|
+
readonly ctrl: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export interface MonthEventRightClickArgs {
|
|
458
|
+
readonly e: DayPilot.Event;
|
|
459
|
+
preventDefault(): void;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export interface MonthEventRightClickedArgs {
|
|
463
|
+
readonly e: DayPilot.Event;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface MonthEventDeleteArgs {
|
|
467
|
+
readonly e: DayPilot.Event;
|
|
468
|
+
readonly control: DayPilot.Month;
|
|
469
|
+
preventDefault(): void;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export interface MonthEventDeletedArgs {
|
|
473
|
+
readonly e: DayPilot.Event;
|
|
474
|
+
readonly control: DayPilot.Month;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export interface MonthEventMoveArgs {
|
|
478
|
+
readonly e: DayPilot.Event;
|
|
479
|
+
readonly control: DayPilot.Month;
|
|
480
|
+
readonly newStart: DayPilot.Date;
|
|
481
|
+
readonly newEnd: DayPilot.Date;
|
|
482
|
+
readonly ctrl: boolean;
|
|
483
|
+
readonly shift: boolean;
|
|
484
|
+
preventDefault(): void;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
export interface MonthEventMovedArgs {
|
|
489
|
+
readonly e: DayPilot.Event;
|
|
490
|
+
readonly control: DayPilot.Month;
|
|
491
|
+
readonly newStart: DayPilot.Date;
|
|
492
|
+
readonly newEnd: DayPilot.Date;
|
|
493
|
+
readonly ctrl: boolean;
|
|
494
|
+
readonly shift: boolean;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
export interface MonthEventResizeArgs {
|
|
499
|
+
readonly e: DayPilot.Event;
|
|
500
|
+
readonly control: DayPilot.Month;
|
|
501
|
+
readonly newStart: DayPilot.Date;
|
|
502
|
+
readonly newEnd: DayPilot.Date;
|
|
503
|
+
preventDefault(): void;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
export interface MonthEventResizedArgs {
|
|
508
|
+
readonly e: DayPilot.Event;
|
|
509
|
+
readonly control: DayPilot.Month;
|
|
510
|
+
readonly newStart: DayPilot.Date;
|
|
511
|
+
readonly newEnd: DayPilot.Date;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
export interface MonthTimeRangeSelectArgs {
|
|
516
|
+
readonly control: DayPilot.Month;
|
|
517
|
+
readonly start: DayPilot.Date;
|
|
518
|
+
readonly end: DayPilot.Date;
|
|
519
|
+
preventDefault(): void;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
export interface MonthTimeRangeSelectedArgs {
|
|
524
|
+
readonly control: DayPilot.Month;
|
|
525
|
+
readonly start: DayPilot.Date;
|
|
526
|
+
readonly end: DayPilot.Date;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export class NavigatorPropsAndEvents {
|
|
530
|
+
cellHeight?: number;
|
|
531
|
+
cellWidth?: number;
|
|
532
|
+
command?: string;
|
|
533
|
+
dayHeaderHeight?: number;
|
|
534
|
+
freeHandSelectionEnabled?: boolean;
|
|
535
|
+
locale?: string;
|
|
536
|
+
orientation?: "Vertical" | "Horizontal";
|
|
537
|
+
rowsPerMonth?: "Auto" | "Six";
|
|
538
|
+
selectionDay?: DayPilot.Date;
|
|
539
|
+
selectionEnd?: DayPilot.Date;
|
|
540
|
+
selectionStart?: DayPilot.Date;
|
|
541
|
+
selectMode?: "Day" | "Week" | "Month" | "None";
|
|
542
|
+
showMonths?: number;
|
|
543
|
+
showWeekNumbers?: boolean;
|
|
544
|
+
skipMonths?: number;
|
|
545
|
+
startDate?: DayPilot.Date | string;
|
|
546
|
+
theme?: string;
|
|
547
|
+
titleHeight?: number;
|
|
548
|
+
weekStarts?: "Auto" | number;
|
|
549
|
+
weekNumberAlgorithm?: "Auto" | "US" | "ISO8601";
|
|
550
|
+
timeRangeSelectedHandling?: "Bind" | "None";
|
|
551
|
+
visibleRangeChangedHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
552
|
+
|
|
553
|
+
onBeforeCellRender?: EventHandler<NavigatorBeforeCellRenderArgs>;
|
|
554
|
+
onTimeRangeSelect?: EventHandler<NavigatorTimeRangeSelectArgs>;
|
|
555
|
+
onTimeRangeSelected?: EventHandler<NavigatorTimeRangeSelectedArgs>;
|
|
556
|
+
onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
|
|
557
|
+
onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export class NavigatorConfig extends NavigatorPropsAndEvents {
|
|
561
|
+
events?: EventData[];
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
interface NavigatorSelectOptions {
|
|
565
|
+
dontFocus?: boolean;
|
|
566
|
+
dontNotify?: boolean;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export class Navigator extends NavigatorPropsAndEvents {
|
|
570
|
+
v: string;
|
|
571
|
+
events: {
|
|
572
|
+
list: EventDataShort[];
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
constructor(id: string | HTMLElement, options?: NavigatorConfig);
|
|
576
|
+
|
|
577
|
+
init(): void;
|
|
578
|
+
|
|
579
|
+
dispose(): void;
|
|
580
|
+
|
|
581
|
+
update(options?: NavigatorConfig): void;
|
|
582
|
+
|
|
583
|
+
select(date: DayPilot.Date | string, options?: NavigatorSelectOptions): void;
|
|
584
|
+
select(start: DayPilot.Date | string, end: DayPilot.Date | string, options?: NavigatorSelectOptions): void;
|
|
585
|
+
|
|
586
|
+
hide(): void;
|
|
587
|
+
|
|
588
|
+
show(): void;
|
|
589
|
+
|
|
590
|
+
visibleEnd(): DayPilot.Date;
|
|
591
|
+
|
|
592
|
+
visibleStart(): DayPilot.Date;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
interface NavigatorBeforeCellRenderArgs {
|
|
596
|
+
readonly cell: {
|
|
597
|
+
readonly day: DayPilot.Date;
|
|
598
|
+
readonly isCurrentMonth: boolean;
|
|
599
|
+
readonly isToday: boolean;
|
|
600
|
+
readonly isWeekend: boolean;
|
|
601
|
+
html: string;
|
|
602
|
+
cssClass: string;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
interface NavigatorTimeRangeSelectArgs {
|
|
607
|
+
readonly start: DayPilot.Date;
|
|
608
|
+
readonly end: DayPilot.Date;
|
|
609
|
+
readonly day: DayPilot.Date;
|
|
610
|
+
readonly days: number;
|
|
611
|
+
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
612
|
+
preventDefault(): void;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
interface NavigatorTimeRangeSelectedArgs {
|
|
616
|
+
readonly start: DayPilot.Date;
|
|
617
|
+
readonly end: DayPilot.Date;
|
|
618
|
+
readonly day: DayPilot.Date;
|
|
619
|
+
readonly days: number;
|
|
620
|
+
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
interface NavigatorVisibleRangeChangeArgs {
|
|
624
|
+
readonly start: DayPilot.Date;
|
|
625
|
+
readonly end: DayPilot.Date;
|
|
626
|
+
preventDefault(): void;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
interface NavigatorVisibleRangeChangedArgs {
|
|
630
|
+
readonly start: DayPilot.Date;
|
|
631
|
+
readonly end: DayPilot.Date;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export class Locale {
|
|
635
|
+
datePattern: string;
|
|
636
|
+
dateTimePattern: string;
|
|
637
|
+
dayNames: string[];
|
|
638
|
+
dayNamesShort: string[];
|
|
639
|
+
monthNames: string[];
|
|
640
|
+
monthNamesShort: string[];
|
|
641
|
+
timeFormat: "Clock12Hours" | "Clock24Hours";
|
|
642
|
+
timePattern: string;
|
|
643
|
+
weekStarts: number;
|
|
644
|
+
|
|
645
|
+
constructor(id: string, properties: {
|
|
646
|
+
dayNames: string[];
|
|
647
|
+
dayNamesShort: string[];
|
|
648
|
+
monthNames: string[];
|
|
649
|
+
monthNamesShort: string[];
|
|
650
|
+
timePattern: string;
|
|
651
|
+
datePattern: string;
|
|
652
|
+
dateTimePattern: string;
|
|
653
|
+
timeFormat: "Clock12Hours" | "Clock24Hours";
|
|
654
|
+
weekStarts: number;
|
|
655
|
+
});
|
|
656
|
+
|
|
657
|
+
static register(locale: DayPilot.Locale): void;
|
|
658
|
+
static find(id: string): DayPilot.Locale;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
export class MenuPropsAndEvents {
|
|
663
|
+
hideOnMouseOut?: boolean;
|
|
664
|
+
items?: MenuItemData[];
|
|
665
|
+
menuTitle?: string;
|
|
666
|
+
onShow?: EventHandler<MenuShowArgs>;
|
|
667
|
+
onHide?: EventHandler<MenuHideArgs>;
|
|
668
|
+
showMenuTitle?: boolean;
|
|
669
|
+
zIndex?: number;
|
|
670
|
+
theme?: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export class MenuConfig extends MenuPropsAndEvents {
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
export class Menu extends MenuPropsAndEvents {
|
|
678
|
+
v: string;
|
|
679
|
+
constructor(options?: MenuConfig);
|
|
680
|
+
|
|
681
|
+
show(target?: any): void;
|
|
682
|
+
hide(): void;
|
|
683
|
+
|
|
684
|
+
static hide(): void;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
export interface MenuShowArgs {
|
|
688
|
+
readonly source: any;
|
|
689
|
+
readonly menu: DayPilot.Menu;
|
|
690
|
+
preventDefault(): void;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export interface MenuHideArgs {
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export class MenuBar {
|
|
697
|
+
items: any[];
|
|
698
|
+
|
|
699
|
+
constructor(id: string, options?: any);
|
|
700
|
+
|
|
701
|
+
init(): void;
|
|
702
|
+
|
|
703
|
+
dispose(): void;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export interface MenuItemData {
|
|
707
|
+
action?: "CallBack" | "PostBack";
|
|
708
|
+
command?: string;
|
|
709
|
+
cssClass?: string;
|
|
710
|
+
disabled?: boolean;
|
|
711
|
+
hidden?: boolean;
|
|
712
|
+
href?: string;
|
|
713
|
+
icon?: string;
|
|
714
|
+
image?: string;
|
|
715
|
+
items?: MenuItemData[];
|
|
716
|
+
onClick?: EventHandler<MenuItemClickArgs>;
|
|
717
|
+
symbol?: string;
|
|
718
|
+
tags?: any;
|
|
719
|
+
target?: string;
|
|
720
|
+
text?: string;
|
|
721
|
+
html?: string;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export interface MenuItemClickArgs {
|
|
725
|
+
readonly item: MenuItemData;
|
|
726
|
+
readonly source: any;
|
|
727
|
+
readonly originalEvent: MouseEvent;
|
|
728
|
+
preventDefault(): void;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
export class SwitcherPropsAndEvents {
|
|
733
|
+
selectedClass?: string;
|
|
734
|
+
|
|
735
|
+
onChange?: EventHandler<SwitcherChangeArgs>;
|
|
736
|
+
onChanged?: EventHandler<SwitcherChangedArgs>;
|
|
737
|
+
onSelect?: EventHandler<SwitcherSelectArgs>;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export class SwitcherConfig extends SwitcherPropsAndEvents {
|
|
741
|
+
triggers?: SwitcherTrigger[];
|
|
742
|
+
navigator?: DayPilot.Navigator;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export class Switcher extends SwitcherPropsAndEvents {
|
|
746
|
+
constructor(options?: SwitcherConfig);
|
|
747
|
+
readonly active: SwitcherView;
|
|
748
|
+
|
|
749
|
+
addTrigger(id: string | HTMLElement, view: SwitcherViewControl): void;
|
|
750
|
+
addNavigator(navigator: DayPilot.Navigator): void;
|
|
751
|
+
select(triggerId: string): void;
|
|
752
|
+
|
|
753
|
+
events: {
|
|
754
|
+
load(url: string,
|
|
755
|
+
success: (args: { data: any; preventDefault(): void; }) => void,
|
|
756
|
+
error: (args: { request: XMLHttpRequest, exception: any; }) => void
|
|
757
|
+
): void;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export interface SwitcherView {
|
|
763
|
+
control: SwitcherViewControl;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export interface SwitcherTrigger {
|
|
767
|
+
id: string | HTMLElement;
|
|
768
|
+
view: SwitcherViewControl;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export interface SwitcherChangeArgs {
|
|
772
|
+
readonly start: DayPilot.Date;
|
|
773
|
+
readonly end: DayPilot.Date;
|
|
774
|
+
readonly day: DayPilot.Date;
|
|
775
|
+
readonly target: SwitcherView;
|
|
776
|
+
preventDefault(): void;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export interface SwitcherChangedArgs {
|
|
780
|
+
readonly start: DayPilot.Date;
|
|
781
|
+
readonly end: DayPilot.Date;
|
|
782
|
+
readonly day: DayPilot.Date;
|
|
783
|
+
readonly target: SwitcherView;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export interface SwitcherSelectArgs {
|
|
787
|
+
readonly source: HTMLElement;
|
|
788
|
+
readonly target: SwitcherViewControl;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export type SwitcherViewControl = DayPilot.Calendar | DayPilot.Month;
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
export class Date {
|
|
795
|
+
constructor(str?: string | DayPilot.Date);
|
|
796
|
+
constructor(date: GlobalDate, isLocal?: boolean);
|
|
797
|
+
|
|
798
|
+
addDays(days: number): DayPilot.Date;
|
|
799
|
+
|
|
800
|
+
addHours(hours: number): DayPilot.Date;
|
|
801
|
+
|
|
802
|
+
addMilliseconds(millis: number): DayPilot.Date;
|
|
803
|
+
|
|
804
|
+
addMinutes(minutes: number): DayPilot.Date;
|
|
805
|
+
|
|
806
|
+
addMonths(months: number): DayPilot.Date;
|
|
807
|
+
|
|
808
|
+
addSeconds(seconds: number): DayPilot.Date;
|
|
809
|
+
|
|
810
|
+
addTime(ticks: number): DayPilot.Date;
|
|
811
|
+
addTime(duration: DayPilot.Duration): DayPilot.Date;
|
|
812
|
+
|
|
813
|
+
addYears(years: number): DayPilot.Date;
|
|
814
|
+
|
|
815
|
+
dayOfWeek(): number;
|
|
816
|
+
|
|
817
|
+
dayOfWeekISO(): number;
|
|
818
|
+
|
|
819
|
+
dayOfYear(): number;
|
|
820
|
+
|
|
821
|
+
daysInMonth(): number;
|
|
822
|
+
|
|
823
|
+
daysInYear(): number;
|
|
824
|
+
|
|
825
|
+
equals(another: DayPilot.Date): boolean;
|
|
826
|
+
|
|
827
|
+
firstDayOfMonth(): DayPilot.Date;
|
|
828
|
+
|
|
829
|
+
firstDayOfWeek(locale?: string | DayPilot.Locale): DayPilot.Date;
|
|
830
|
+
firstDayOfWeek(firstDayOfWeek?: number): DayPilot.Date;
|
|
831
|
+
|
|
832
|
+
firstDayOfYear(): DayPilot.Date;
|
|
833
|
+
|
|
834
|
+
getDatePart(): DayPilot.Date;
|
|
835
|
+
|
|
836
|
+
getDay(): number;
|
|
837
|
+
|
|
838
|
+
getDayOfWeek(): number;
|
|
839
|
+
|
|
840
|
+
getYear(): number;
|
|
841
|
+
|
|
842
|
+
getHours(): number;
|
|
843
|
+
|
|
844
|
+
getMilliseconds(): number;
|
|
845
|
+
|
|
846
|
+
getMinutes(): number;
|
|
847
|
+
|
|
848
|
+
getMonth(): number;
|
|
849
|
+
|
|
850
|
+
getSeconds(): number;
|
|
851
|
+
|
|
852
|
+
getTime(): number;
|
|
853
|
+
|
|
854
|
+
getTimePart(): number;
|
|
855
|
+
|
|
856
|
+
getTotalTicks(): number;
|
|
857
|
+
|
|
858
|
+
getYear(): number;
|
|
859
|
+
|
|
860
|
+
lastDayOfMonth(): DayPilot.Date;
|
|
861
|
+
|
|
862
|
+
toDate(): GlobalDate;
|
|
863
|
+
|
|
864
|
+
toDateLocal(): GlobalDate;
|
|
865
|
+
|
|
866
|
+
toString(pattern?: string, locale?: string | DayPilot.Locale): string;
|
|
867
|
+
|
|
868
|
+
toStringSortable(): string;
|
|
869
|
+
|
|
870
|
+
weekNumber(): number;
|
|
871
|
+
|
|
872
|
+
weekNumberISO(): number;
|
|
873
|
+
|
|
874
|
+
static fromYearMonthDay(year: number, month: number, day: number): DayPilot.Date;
|
|
875
|
+
static parse(input: string, pattern: string, locale?: string | DayPilot.Locale): DayPilot.Date;
|
|
876
|
+
static today(): DayPilot.Date;
|
|
877
|
+
static now(): DayPilot.Date;
|
|
878
|
+
static Cache: DayPilotDateCache;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export class DayPilotDateCache {
|
|
882
|
+
static clear(): void;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export class Util {
|
|
886
|
+
static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
|
|
887
|
+
static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
|
|
888
|
+
static escapeHtml(text: string): string;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
export class ColorUtil {
|
|
892
|
+
static darker(color: string, steps?: number): string;
|
|
893
|
+
static lighter(color: string, steps?: number): string;
|
|
894
|
+
static contrasting(color: string, light?: string, dark?: string): string;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export class Http {
|
|
898
|
+
static get(url: string, options?: HttpGetOptions): Promise<HttpPromiseArgs>;
|
|
899
|
+
static post(url: string, data?: object | string, options?: HttpPostOptions): Promise<HttpPromiseArgs>;
|
|
900
|
+
static put(url: string, data?: object | string, options?: HttpPutOptions): Promise<HttpPromiseArgs>;
|
|
901
|
+
static delete(url: string, options?: HttpDeleteOptions): Promise<HttpPromiseArgs>;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export interface HttpDeleteOptions {
|
|
905
|
+
headers?: HttpHeaders;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
export interface HttpGetOptions {
|
|
909
|
+
headers?: HttpHeaders;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export interface HttpPostOptions {
|
|
913
|
+
headers?: HttpHeaders;
|
|
914
|
+
contentType?: string;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
export interface HttpPutOptions {
|
|
918
|
+
headers?: HttpHeaders;
|
|
919
|
+
contentType?: string;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
export interface HttpPromiseArgs {
|
|
923
|
+
readonly data: any;
|
|
924
|
+
readonly request: XMLHttpRequest;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export interface HttpHeaders {
|
|
928
|
+
[header: string]: string;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export class Duration {
|
|
932
|
+
|
|
933
|
+
ticks: number;
|
|
934
|
+
|
|
935
|
+
constructor(ticks: number);
|
|
936
|
+
|
|
937
|
+
constructor(start: DayPilot.Date | string, end: DayPilot.Date | string);
|
|
938
|
+
|
|
939
|
+
toString(pattern?: string): string;
|
|
940
|
+
|
|
941
|
+
totalMilliseconds(): number;
|
|
942
|
+
|
|
943
|
+
totalSeconds(): number;
|
|
944
|
+
|
|
945
|
+
totalMinutes(): number;
|
|
946
|
+
|
|
947
|
+
totalHours(): number;
|
|
948
|
+
|
|
949
|
+
totalDays(): number;
|
|
950
|
+
|
|
951
|
+
milliseconds(): number;
|
|
952
|
+
|
|
953
|
+
seconds(): number;
|
|
954
|
+
|
|
955
|
+
minutes(): number;
|
|
956
|
+
|
|
957
|
+
hours(): number;
|
|
958
|
+
|
|
959
|
+
days(): number;
|
|
960
|
+
|
|
961
|
+
add(d: DayPilot.Duration): DayPilot.Duration;
|
|
962
|
+
|
|
963
|
+
static ofWeeks(i: number): DayPilot.Duration;
|
|
964
|
+
|
|
965
|
+
static ofDays(i: number): DayPilot.Duration;
|
|
966
|
+
|
|
967
|
+
static ofHours(i: number): DayPilot.Duration;
|
|
968
|
+
|
|
969
|
+
static ofMinutes(i: number): DayPilot.Duration;
|
|
970
|
+
|
|
971
|
+
static ofSeconds(i: number): DayPilot.Duration;
|
|
972
|
+
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
export class Event {
|
|
976
|
+
data: any;
|
|
977
|
+
|
|
978
|
+
constructor(data: EventData);
|
|
979
|
+
|
|
980
|
+
start(): DayPilot.Date;
|
|
981
|
+
start(newStart: DayPilot.Date): void;
|
|
982
|
+
|
|
983
|
+
end(): DayPilot.Date;
|
|
984
|
+
end(newEnd: DayPilot.Date): void;
|
|
985
|
+
|
|
986
|
+
id(): EventId;
|
|
987
|
+
|
|
988
|
+
text(): string;
|
|
989
|
+
text(newText: string): void;
|
|
990
|
+
|
|
991
|
+
resource(): string;
|
|
992
|
+
resource(newResource: string): void;
|
|
993
|
+
|
|
994
|
+
duration(): DayPilot.Duration;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
export class Selection {
|
|
998
|
+
start: DayPilot.Date;
|
|
999
|
+
end: DayPilot.Date;
|
|
1000
|
+
resource: string;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export interface EventDataShort {
|
|
1004
|
+
start: string | DayPilot.Date;
|
|
1005
|
+
end: string | DayPilot.Date;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export interface EventData {
|
|
1009
|
+
start: string | DayPilot.Date;
|
|
1010
|
+
end: string | DayPilot.Date;
|
|
1011
|
+
id: EventId;
|
|
1012
|
+
text: string;
|
|
1013
|
+
resource?: ResourceId;
|
|
1014
|
+
|
|
1015
|
+
areas?: AreaData[];
|
|
1016
|
+
backColor?: string;
|
|
1017
|
+
barBackColor?: string;
|
|
1018
|
+
barColor?: string;
|
|
1019
|
+
barHidden?: boolean;
|
|
1020
|
+
borderColor?: string;
|
|
1021
|
+
cssClass?: string;
|
|
1022
|
+
fontColor?: string;
|
|
1023
|
+
html?: string;
|
|
1024
|
+
tags?: any;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export interface AreaData {
|
|
1028
|
+
action?: "Default" | "None" | "ContextMenu" | "ResizeEnd" | "ResizeStart" | "Move";
|
|
1029
|
+
backColor?: string;
|
|
1030
|
+
background?: string;
|
|
1031
|
+
bottom?: number | string;
|
|
1032
|
+
cssClass?: string;
|
|
1033
|
+
fontColor?: string;
|
|
1034
|
+
height?: number | string;
|
|
1035
|
+
horizontalAlignment?: HorizontalAlignment;
|
|
1036
|
+
html?: string;
|
|
1037
|
+
icon?: string;
|
|
1038
|
+
id?: AreaId;
|
|
1039
|
+
image?: string;
|
|
1040
|
+
left?: number | string;
|
|
1041
|
+
menu?: Menu | string;
|
|
1042
|
+
onClick?: (args: any) => void;
|
|
1043
|
+
onClicked?: (args: any) => void;
|
|
1044
|
+
onMouseEnter?: (args: any) => void;
|
|
1045
|
+
onMouseLeave?: (args: any) => void;
|
|
1046
|
+
padding?: number;
|
|
1047
|
+
right?: number | string;
|
|
1048
|
+
style?: string;
|
|
1049
|
+
symbol?: string;
|
|
1050
|
+
text?: string;
|
|
1051
|
+
toolTip?: string;
|
|
1052
|
+
top?: number | string;
|
|
1053
|
+
verticalAlignment?: VerticalAlignment;
|
|
1054
|
+
visibility?: "Hover" | "Visible" | "TouchVisible";
|
|
1055
|
+
width?: number | string;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
export function guid(): string;
|
|
1060
|
+
|
|
1061
|
+
export interface EventHandler<T> {
|
|
1062
|
+
(args: T): void;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export type ResourceId = string | number;
|
|
1066
|
+
export type EventId = string | number;
|
|
1067
|
+
export type AreaId = string | number;
|
|
1068
|
+
|
|
1069
|
+
export type HorizontalAlignment = "right" | "center" | "left";
|
|
1070
|
+
export type VerticalAlignment = "top" | "center" | "bottom";
|
|
1071
|
+
|
|
1072
|
+
// modal
|
|
1073
|
+
|
|
1074
|
+
export class ModalPropsAndEvents {
|
|
1075
|
+
autoFocus?: boolean;
|
|
1076
|
+
autoStretch?: boolean;
|
|
1077
|
+
autoStretchFirstLoadOnly?: boolean;
|
|
1078
|
+
container?: HTMLElement;
|
|
1079
|
+
disposeOnClose?: boolean;
|
|
1080
|
+
dragDrop?: boolean;
|
|
1081
|
+
focus?: string | { id: string, value: string | number };
|
|
1082
|
+
height?: number;
|
|
1083
|
+
left?: number;
|
|
1084
|
+
loadingHtml?: string;
|
|
1085
|
+
maxHeight?: number;
|
|
1086
|
+
scrollWithPage?: boolean;
|
|
1087
|
+
theme?: string;
|
|
1088
|
+
top?: number;
|
|
1089
|
+
useIframe?: boolean;
|
|
1090
|
+
width?: number;
|
|
1091
|
+
zIndex?: number;
|
|
1092
|
+
|
|
1093
|
+
onClose?: EventHandler<ModalCloseArgs>;
|
|
1094
|
+
onClosed?: EventHandler<ModalClosedArgs>;
|
|
1095
|
+
onShow?: EventHandler<ModalShowArgs>;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export class ModalConfig extends ModalPropsAndEvents {
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export class Modal extends ModalPropsAndEvents {
|
|
1102
|
+
constructor(options?: ModalConfig)
|
|
1103
|
+
|
|
1104
|
+
close(result?: any): void;
|
|
1105
|
+
|
|
1106
|
+
closeSerialized(): void;
|
|
1107
|
+
|
|
1108
|
+
showHtml(html: string | HTMLElement): void;
|
|
1109
|
+
|
|
1110
|
+
showUrl(url: string): void;
|
|
1111
|
+
|
|
1112
|
+
stretch(): void;
|
|
1113
|
+
|
|
1114
|
+
static close(): void;
|
|
1115
|
+
|
|
1116
|
+
static opener(): void;
|
|
1117
|
+
|
|
1118
|
+
static prompt(message: string, defaultValue?: string, options?: ModalPromptConfig): Promise<ModalClosedArgs>;
|
|
1119
|
+
|
|
1120
|
+
static alert(message: string, options?: ModalAlertConfig): Promise<ModalClosedArgs>;
|
|
1121
|
+
|
|
1122
|
+
static confirm(message: string, options?: ModalConfirmConfig): Promise<ModalClosedArgs>;
|
|
1123
|
+
|
|
1124
|
+
static form(form?: ModalFormItem[], data?: any, options?: ModalFormConfig): Promise<ModalClosedArgs>;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
export class ModalAlertConfig extends ModalConfig {
|
|
1128
|
+
okText?: string;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
export class ModalConfirmConfig extends ModalConfig {
|
|
1132
|
+
okText?: string;
|
|
1133
|
+
cancelText?: string;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
export class ModalPromptConfig extends ModalConfig {
|
|
1137
|
+
okText?: string;
|
|
1138
|
+
cancelText?: string;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
export class ModalFormConfig extends ModalConfig {
|
|
1142
|
+
okText?: string;
|
|
1143
|
+
cancelText?: string;
|
|
1144
|
+
locale?: string;
|
|
1145
|
+
plugins?: any;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
export interface ModalCloseArgs {
|
|
1149
|
+
canceled: boolean;
|
|
1150
|
+
result: any;
|
|
1151
|
+
backgroundClick: boolean;
|
|
1152
|
+
|
|
1153
|
+
preventDefault(): void;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
export interface ModalClosedArgs {
|
|
1157
|
+
canceled: boolean;
|
|
1158
|
+
result: any;
|
|
1159
|
+
backgroundClick: boolean;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
export interface ModalShowArgs {
|
|
1163
|
+
root: Node
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
export interface ModalFormItem {
|
|
1168
|
+
id?: string;
|
|
1169
|
+
name?: string;
|
|
1170
|
+
type?: "text" | "date" | "searchable" | "select" | "radio" | "checkbox" | "table" | "title" | "image" | "html" | "textarea" | "scrollable" | string;
|
|
1171
|
+
image?: string;
|
|
1172
|
+
dateFormat?: string;
|
|
1173
|
+
disabled?: boolean;
|
|
1174
|
+
cssClass?: string;
|
|
1175
|
+
options?: ModalFormOption[];
|
|
1176
|
+
children?: ModalFormItem[];
|
|
1177
|
+
columns?: ModalFormTableColumns[];
|
|
1178
|
+
onValidate?: EventHandler<ModalFormItemValidationArgs>;
|
|
1179
|
+
onNewRow?: EventHandler<ModalFormTableItemNewRowArgs>;
|
|
1180
|
+
height?: number;
|
|
1181
|
+
text?: string;
|
|
1182
|
+
html?: string;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
export interface ModalFormOption {
|
|
1186
|
+
id: string | number;
|
|
1187
|
+
name?: string;
|
|
1188
|
+
children?: ModalFormItem[];
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
export interface ModalFormTableColumns {
|
|
1192
|
+
id: string;
|
|
1193
|
+
name: string;
|
|
1194
|
+
type?: "text" | "number" | "select";
|
|
1195
|
+
options?: ModalFormOption[];
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export interface ModalFormItemValidationArgs {
|
|
1199
|
+
value: any;
|
|
1200
|
+
result: any;
|
|
1201
|
+
valid: boolean;
|
|
1202
|
+
message: string;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
export interface ModalFormTableItemNewRowArgs {
|
|
1206
|
+
value: any;
|
|
1207
|
+
result: any;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
}
|
|
1211
|
+
import Vue from 'vue';
|
|
1212
|
+
|
|
1213
|
+
export declare class DayPilotCalendar extends Vue {
|
|
1214
|
+
control: DayPilot.Calendar;
|
|
1215
|
+
id: string;
|
|
1216
|
+
config: DayPillot.CalendarConfig;
|
|
1217
|
+
events: DayPilot.EventData[];
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
export declare class DayPilotMonth extends Vue {
|
|
1221
|
+
control: DayPilot.Month;
|
|
1222
|
+
id: string;
|
|
1223
|
+
config: DayPilot.MonthConfig;
|
|
1224
|
+
events: DayPilot.EventData[];
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
export declare class DayPilotNavigator extends Vue {
|
|
1228
|
+
control: DayPilot.Navigator;
|
|
1229
|
+
id: string;
|
|
1230
|
+
config: DayPilot.NavigatorConfig;
|
|
1231
|
+
events: DayPilot.EventData[];
|
|
1232
|
+
}
|