@daypilot/daypilot-lite-angular 5.4.0 → 5.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type GlobalDate = Date;
|
|
2
|
-
export declare
|
|
3
|
-
|
|
2
|
+
export declare namespace DayPilot {
|
|
3
|
+
class SchedulerPropsAndEvents {
|
|
4
4
|
backendUrl?: string;
|
|
5
5
|
beforeCellRenderCaching?: boolean;
|
|
6
6
|
businessBeginsHour?: number;
|
|
@@ -102,11 +102,11 @@ export declare module DayPilot {
|
|
|
102
102
|
onTimeRangeSelected?: EventHandler<SchedulerTimeRangeSelectedArgs>;
|
|
103
103
|
onScroll?: EventHandler<SchedulerScrollArgs>;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
class SchedulerConfig extends SchedulerPropsAndEvents {
|
|
106
106
|
events?: EventData[];
|
|
107
107
|
zoom?: number | string;
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
class Scheduler extends SchedulerPropsAndEvents {
|
|
110
110
|
v: string;
|
|
111
111
|
events: {
|
|
112
112
|
list: EventData[];
|
|
@@ -187,9 +187,9 @@ export declare module DayPilot {
|
|
|
187
187
|
visibleStart(): DayPilot.Date;
|
|
188
188
|
visibleEnd(): DayPilot.Date;
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
interface SchedulerAfterUpdateArgs {
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
interface SchedulerBeforeCellRenderArgs {
|
|
193
193
|
readonly cell: {
|
|
194
194
|
readonly start: DayPilot.Date;
|
|
195
195
|
readonly end: DayPilot.Date;
|
|
@@ -209,7 +209,7 @@ export declare module DayPilot {
|
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
interface SchedulerBeforeCornerRenderArgs {
|
|
213
213
|
readonly control: Scheduler;
|
|
214
214
|
html: string;
|
|
215
215
|
text: string;
|
|
@@ -219,14 +219,14 @@ export declare module DayPilot {
|
|
|
219
219
|
verticalAlignment: VerticalAlignment;
|
|
220
220
|
areas: AreaData[];
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
interface SchedulerBeforeEventRenderArgs {
|
|
223
223
|
readonly control: DayPilot.Scheduler;
|
|
224
224
|
readonly data: EventData;
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
interface SchedulerBeforeRowHeaderRenderArgs {
|
|
227
227
|
readonly row: RenderRow;
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
interface SchedulerBeforeTimeHeaderRenderArgs {
|
|
230
230
|
readonly control: Scheduler;
|
|
231
231
|
readonly header: {
|
|
232
232
|
readonly start: DayPilot.Date;
|
|
@@ -241,7 +241,7 @@ export declare module DayPilot {
|
|
|
241
241
|
cssClass: string;
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
interface SchedulerEventClickArgs {
|
|
245
245
|
readonly e: DayPilot.Event;
|
|
246
246
|
readonly div: HTMLElement;
|
|
247
247
|
readonly ctrl: boolean;
|
|
@@ -251,7 +251,7 @@ export declare module DayPilot {
|
|
|
251
251
|
readonly originalEvent: MouseEvent;
|
|
252
252
|
preventDefault(): void;
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
interface SchedulerEventClickedArgs {
|
|
255
255
|
readonly e: DayPilot.Event;
|
|
256
256
|
readonly div: HTMLElement;
|
|
257
257
|
readonly ctrl: boolean;
|
|
@@ -260,16 +260,16 @@ export declare module DayPilot {
|
|
|
260
260
|
readonly control: DayPilot.Scheduler;
|
|
261
261
|
readonly originalEvent: MouseEvent;
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
interface SchedulerEventDeleteArgs {
|
|
264
264
|
readonly e: DayPilot.Event;
|
|
265
265
|
readonly control: DayPilot.Scheduler;
|
|
266
266
|
preventDefault(): void;
|
|
267
267
|
}
|
|
268
|
-
|
|
268
|
+
interface SchedulerEventDeletedArgs {
|
|
269
269
|
readonly e: DayPilot.Event;
|
|
270
270
|
readonly control: DayPilot.Scheduler;
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
interface SchedulerEventMoveArgs {
|
|
273
273
|
async: boolean;
|
|
274
274
|
readonly areaData: any;
|
|
275
275
|
readonly control: DayPilot.Scheduler;
|
|
@@ -283,7 +283,7 @@ export declare module DayPilot {
|
|
|
283
283
|
loaded(): void;
|
|
284
284
|
preventDefault(): void;
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
interface SchedulerEventMovedArgs {
|
|
287
287
|
readonly async: boolean;
|
|
288
288
|
readonly areaData: any;
|
|
289
289
|
readonly control: DayPilot.Scheduler;
|
|
@@ -295,7 +295,7 @@ export declare module DayPilot {
|
|
|
295
295
|
readonly shift: boolean;
|
|
296
296
|
readonly meta: boolean;
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
interface SchedulerEventResizeArgs {
|
|
299
299
|
readonly areaData: any;
|
|
300
300
|
async: boolean;
|
|
301
301
|
readonly control: DayPilot.Scheduler;
|
|
@@ -306,7 +306,7 @@ export declare module DayPilot {
|
|
|
306
306
|
loaded(): void;
|
|
307
307
|
preventDefault(): void;
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
interface SchedulerEventResizedArgs {
|
|
310
310
|
readonly areaData: any;
|
|
311
311
|
readonly async: boolean;
|
|
312
312
|
readonly control: DayPilot.Scheduler;
|
|
@@ -315,18 +315,18 @@ export declare module DayPilot {
|
|
|
315
315
|
readonly newEnd: DayPilot.Date;
|
|
316
316
|
readonly what: "start" | "end";
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
interface SchedulerEventRightClickArgs {
|
|
319
319
|
readonly e: DayPilot.Event;
|
|
320
320
|
readonly div: HTMLElement;
|
|
321
321
|
readonly originalEvent: MouseEvent;
|
|
322
322
|
preventDefault(): void;
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
interface SchedulerEventRightClickedArgs {
|
|
325
325
|
readonly e: DayPilot.Event;
|
|
326
326
|
readonly div: HTMLElement;
|
|
327
327
|
readonly originalEvent: MouseEvent;
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
interface SchedulerRowClickArgs {
|
|
330
330
|
readonly row: DayPilot.Row;
|
|
331
331
|
readonly ctrl: boolean;
|
|
332
332
|
readonly shift: boolean;
|
|
@@ -334,14 +334,14 @@ export declare module DayPilot {
|
|
|
334
334
|
readonly originalEvent: MouseEvent;
|
|
335
335
|
preventDefault(): void;
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
interface SchedulerRowClickedArgs {
|
|
338
338
|
readonly row: DayPilot.Row;
|
|
339
339
|
readonly ctrl: boolean;
|
|
340
340
|
readonly shift: boolean;
|
|
341
341
|
readonly meta: boolean;
|
|
342
342
|
readonly originalEvent: MouseEvent;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
interface SchedulerTimeHeaderClickArgs {
|
|
345
345
|
readonly control: Scheduler;
|
|
346
346
|
readonly header: {
|
|
347
347
|
readonly start: DayPilot.Date;
|
|
@@ -354,7 +354,7 @@ export declare module DayPilot {
|
|
|
354
354
|
readonly meta: boolean;
|
|
355
355
|
preventDefault(): void;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
interface SchedulerTimeHeaderClickedArgs {
|
|
358
358
|
readonly control: Scheduler;
|
|
359
359
|
readonly header: {
|
|
360
360
|
readonly start: DayPilot.Date;
|
|
@@ -366,7 +366,7 @@ export declare module DayPilot {
|
|
|
366
366
|
readonly shift: boolean;
|
|
367
367
|
readonly meta: boolean;
|
|
368
368
|
}
|
|
369
|
-
|
|
369
|
+
interface SchedulerTimeHeaderRightClickArgs {
|
|
370
370
|
readonly header: {
|
|
371
371
|
readonly start: DayPilot.Date;
|
|
372
372
|
readonly end: DayPilot.Date;
|
|
@@ -374,52 +374,52 @@ export declare module DayPilot {
|
|
|
374
374
|
};
|
|
375
375
|
preventDefault(): void;
|
|
376
376
|
}
|
|
377
|
-
|
|
377
|
+
interface SchedulerTimeHeaderRightClickedArgs {
|
|
378
378
|
readonly header: {
|
|
379
379
|
readonly start: DayPilot.Date;
|
|
380
380
|
readonly end: DayPilot.Date;
|
|
381
381
|
readonly level: number;
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
interface SchedulerTimeRangeClickArgs {
|
|
385
385
|
readonly start: DayPilot.Date;
|
|
386
386
|
readonly end: DayPilot.Date;
|
|
387
387
|
readonly resource: ResourceId;
|
|
388
388
|
preventDefault(): void;
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
interface SchedulerTimeRangeClickedArgs {
|
|
391
391
|
readonly start: DayPilot.Date;
|
|
392
392
|
readonly end: DayPilot.Date;
|
|
393
393
|
readonly resource: ResourceId;
|
|
394
394
|
}
|
|
395
|
-
|
|
395
|
+
interface SchedulerTimeRangeSelectArgs {
|
|
396
396
|
readonly start: DayPilot.Date;
|
|
397
397
|
readonly end: DayPilot.Date;
|
|
398
398
|
readonly resource: ResourceId;
|
|
399
399
|
readonly control: DayPilot.Scheduler;
|
|
400
400
|
preventDefault(): void;
|
|
401
401
|
}
|
|
402
|
-
|
|
402
|
+
interface SchedulerTimeRangeSelectedArgs {
|
|
403
403
|
readonly start: DayPilot.Date;
|
|
404
404
|
readonly end: DayPilot.Date;
|
|
405
405
|
readonly resource: ResourceId;
|
|
406
406
|
readonly control: DayPilot.Scheduler;
|
|
407
407
|
}
|
|
408
|
-
|
|
408
|
+
interface SchedulerScrollArgs {
|
|
409
409
|
readonly viewport: SchedulerViewport;
|
|
410
410
|
readonly control: DayPilot.Scheduler;
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
|
|
412
|
+
type GroupBy = "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year" | "Cell" | "None";
|
|
413
|
+
interface ZoomLevel {
|
|
414
414
|
properties: any;
|
|
415
415
|
[prop: string]: any;
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
interface SchedulerViewport {
|
|
418
418
|
start: DayPilot.Date;
|
|
419
419
|
end: DayPilot.Date;
|
|
420
420
|
resources: ResourceId[];
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
interface ResourceData {
|
|
423
423
|
id?: ResourceId;
|
|
424
424
|
name?: string;
|
|
425
425
|
start?: DayPilot.Date | string;
|
|
@@ -434,12 +434,12 @@ export declare module DayPilot {
|
|
|
434
434
|
toolTip?: string;
|
|
435
435
|
[prop: string]: any;
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
interface TimeHeaderData {
|
|
438
438
|
groupBy: GroupBy;
|
|
439
439
|
format?: string;
|
|
440
440
|
height?: number;
|
|
441
441
|
}
|
|
442
|
-
|
|
442
|
+
class Row {
|
|
443
443
|
events: {
|
|
444
444
|
all(): DayPilot.Event[];
|
|
445
445
|
isEmpty(): boolean;
|
|
@@ -456,7 +456,7 @@ export declare module DayPilot {
|
|
|
456
456
|
remove(): void;
|
|
457
457
|
removeClass(className: string): void;
|
|
458
458
|
}
|
|
459
|
-
|
|
459
|
+
class RenderRow extends Row {
|
|
460
460
|
areas: AreaData[];
|
|
461
461
|
backColor: string;
|
|
462
462
|
cssClass: string;
|
|
@@ -466,7 +466,7 @@ export declare module DayPilot {
|
|
|
466
466
|
text: string;
|
|
467
467
|
toolTip: string;
|
|
468
468
|
}
|
|
469
|
-
|
|
469
|
+
class CalendarPropsAndEvents {
|
|
470
470
|
backendUrl?: string;
|
|
471
471
|
businessBeginsHour?: number;
|
|
472
472
|
businessEndsHour?: number;
|
|
@@ -485,6 +485,7 @@ export declare module DayPilot {
|
|
|
485
485
|
eventMoveHandling?: "Update" | "CallBack" | "Disabled";
|
|
486
486
|
eventResizeHandling?: "Update" | "CallBack" | "Disabled";
|
|
487
487
|
eventRightClickHandling?: "ContextMenu" | "Enabled" | "Disabled";
|
|
488
|
+
eventsLoadMethod?: "GET" | "POST";
|
|
488
489
|
headerClickHandling?: "Enabled" | "Disabled";
|
|
489
490
|
headerDateFormat?: string;
|
|
490
491
|
headerHeight?: number;
|
|
@@ -529,11 +530,11 @@ export declare module DayPilot {
|
|
|
529
530
|
onTimeRangeSelect?: EventHandler<CalendarTimeRangeSelectArgs>;
|
|
530
531
|
onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
|
|
531
532
|
}
|
|
532
|
-
|
|
533
|
+
class CalendarConfig extends CalendarPropsAndEvents {
|
|
533
534
|
columns?: CalendarColumnData[];
|
|
534
535
|
events?: EventData[];
|
|
535
536
|
}
|
|
536
|
-
|
|
537
|
+
class Calendar extends CalendarPropsAndEvents {
|
|
537
538
|
v: string;
|
|
538
539
|
columns: {
|
|
539
540
|
list: CalendarColumnData[];
|
|
@@ -576,7 +577,7 @@ export declare module DayPilot {
|
|
|
576
577
|
visibleStart(): DayPilot.Date;
|
|
577
578
|
visibleEnd(): DayPilot.Date;
|
|
578
579
|
}
|
|
579
|
-
|
|
580
|
+
interface CalendarColumnData {
|
|
580
581
|
name: string;
|
|
581
582
|
id?: ResourceId;
|
|
582
583
|
start?: DayPilot.Date | string;
|
|
@@ -584,11 +585,11 @@ export declare module DayPilot {
|
|
|
584
585
|
toolTip?: string;
|
|
585
586
|
tags?: any;
|
|
586
587
|
}
|
|
587
|
-
|
|
588
|
+
interface CalendarAfterEventRenderArgs {
|
|
588
589
|
readonly e: DayPilot.Event;
|
|
589
590
|
readonly div: HTMLElement;
|
|
590
591
|
}
|
|
591
|
-
|
|
592
|
+
interface CalendarBeforeCellRenderArgs {
|
|
592
593
|
readonly cell: {
|
|
593
594
|
readonly start: DayPilot.Date;
|
|
594
595
|
readonly end: DayPilot.Date;
|
|
@@ -607,11 +608,11 @@ export declare module DayPilot {
|
|
|
607
608
|
};
|
|
608
609
|
};
|
|
609
610
|
}
|
|
610
|
-
|
|
611
|
+
interface CalendarBeforeEventRenderArgs {
|
|
611
612
|
readonly control: DayPilot.Calendar;
|
|
612
613
|
readonly data: EventData;
|
|
613
614
|
}
|
|
614
|
-
|
|
615
|
+
interface CalendarBeforeHeaderRenderArgs {
|
|
615
616
|
readonly header: {
|
|
616
617
|
readonly id: ResourceId;
|
|
617
618
|
readonly start: DayPilot.Date;
|
|
@@ -627,7 +628,7 @@ export declare module DayPilot {
|
|
|
627
628
|
};
|
|
628
629
|
readonly column: Column;
|
|
629
630
|
}
|
|
630
|
-
|
|
631
|
+
interface CalendarEventClickArgs {
|
|
631
632
|
readonly e: DayPilot.Event;
|
|
632
633
|
readonly control: DayPilot.Calendar;
|
|
633
634
|
readonly ctrl: boolean;
|
|
@@ -635,30 +636,30 @@ export declare module DayPilot {
|
|
|
635
636
|
readonly originalEvent: MouseEvent;
|
|
636
637
|
preventDefault(): void;
|
|
637
638
|
}
|
|
638
|
-
|
|
639
|
+
interface CalendarEventClickedArgs {
|
|
639
640
|
readonly e: DayPilot.Event;
|
|
640
641
|
readonly control: DayPilot.Calendar;
|
|
641
642
|
readonly ctrl: boolean;
|
|
642
643
|
readonly meta: boolean;
|
|
643
644
|
readonly originalEvent: MouseEvent;
|
|
644
645
|
}
|
|
645
|
-
|
|
646
|
+
interface CalendarEventRightClickArgs {
|
|
646
647
|
readonly e: DayPilot.Event;
|
|
647
648
|
preventDefault(): void;
|
|
648
649
|
}
|
|
649
|
-
|
|
650
|
+
interface CalendarEventRightClickedArgs {
|
|
650
651
|
readonly e: DayPilot.Event;
|
|
651
652
|
}
|
|
652
|
-
|
|
653
|
+
interface CalendarEventDeleteArgs {
|
|
653
654
|
readonly e: DayPilot.Event;
|
|
654
655
|
readonly control: DayPilot.Calendar;
|
|
655
656
|
preventDefault(): void;
|
|
656
657
|
}
|
|
657
|
-
|
|
658
|
+
interface CalendarEventDeletedArgs {
|
|
658
659
|
readonly e: DayPilot.Event;
|
|
659
660
|
readonly control: DayPilot.Calendar;
|
|
660
661
|
}
|
|
661
|
-
|
|
662
|
+
interface CalendarEventMoveArgs {
|
|
662
663
|
readonly e: DayPilot.Event;
|
|
663
664
|
readonly control: DayPilot.Calendar;
|
|
664
665
|
readonly newStart: DayPilot.Date;
|
|
@@ -668,7 +669,7 @@ export declare module DayPilot {
|
|
|
668
669
|
readonly shift: boolean;
|
|
669
670
|
preventDefault(): void;
|
|
670
671
|
}
|
|
671
|
-
|
|
672
|
+
interface CalendarEventMovedArgs {
|
|
672
673
|
readonly e: DayPilot.Event;
|
|
673
674
|
readonly control: DayPilot.Calendar;
|
|
674
675
|
readonly newStart: DayPilot.Date;
|
|
@@ -677,20 +678,20 @@ export declare module DayPilot {
|
|
|
677
678
|
readonly ctrl: boolean;
|
|
678
679
|
readonly shift: boolean;
|
|
679
680
|
}
|
|
680
|
-
|
|
681
|
+
interface CalendarEventResizeArgs {
|
|
681
682
|
readonly e: DayPilot.Event;
|
|
682
683
|
readonly control: DayPilot.Calendar;
|
|
683
684
|
readonly newStart: DayPilot.Date;
|
|
684
685
|
readonly newEnd: DayPilot.Date;
|
|
685
686
|
preventDefault(): void;
|
|
686
687
|
}
|
|
687
|
-
|
|
688
|
+
interface CalendarEventResizedArgs {
|
|
688
689
|
readonly e: DayPilot.Event;
|
|
689
690
|
readonly control: DayPilot.Calendar;
|
|
690
691
|
readonly newStart: DayPilot.Date;
|
|
691
692
|
readonly newEnd: DayPilot.Date;
|
|
692
693
|
}
|
|
693
|
-
|
|
694
|
+
interface CalendarHeaderClickArgs {
|
|
694
695
|
readonly column: Column;
|
|
695
696
|
readonly originalEvent: MouseEvent;
|
|
696
697
|
readonly shift: boolean;
|
|
@@ -698,33 +699,33 @@ export declare module DayPilot {
|
|
|
698
699
|
readonly ctrl: boolean;
|
|
699
700
|
preventDefault(): void;
|
|
700
701
|
}
|
|
701
|
-
|
|
702
|
+
interface CalendarHeaderClickedArgs {
|
|
702
703
|
readonly column: Column;
|
|
703
704
|
readonly originalEvent: MouseEvent;
|
|
704
705
|
readonly shift: boolean;
|
|
705
706
|
readonly meta: boolean;
|
|
706
707
|
readonly ctrl: boolean;
|
|
707
708
|
}
|
|
708
|
-
|
|
709
|
+
interface CalendarTimeRangeSelectArgs {
|
|
709
710
|
readonly start: DayPilot.Date;
|
|
710
711
|
readonly end: DayPilot.Date;
|
|
711
712
|
readonly resource: ResourceId;
|
|
712
713
|
readonly control: DayPilot.Calendar;
|
|
713
714
|
preventDefault(): void;
|
|
714
715
|
}
|
|
715
|
-
|
|
716
|
+
interface CalendarTimeRangeSelectedArgs {
|
|
716
717
|
readonly start: DayPilot.Date;
|
|
717
718
|
readonly end: DayPilot.Date;
|
|
718
719
|
readonly resource: ResourceId;
|
|
719
720
|
readonly control: DayPilot.Calendar;
|
|
720
721
|
}
|
|
721
|
-
|
|
722
|
+
class Column {
|
|
722
723
|
readonly id: ResourceId;
|
|
723
724
|
readonly start: DayPilot.Date;
|
|
724
725
|
readonly name: string;
|
|
725
726
|
readonly data: CalendarColumnData;
|
|
726
727
|
}
|
|
727
|
-
|
|
728
|
+
class MonthPropsAndEvents {
|
|
728
729
|
backendUrl?: string;
|
|
729
730
|
cellHeaderClickHandling?: "Enabled" | "Disabled";
|
|
730
731
|
cellHeaderHeight?: number;
|
|
@@ -739,6 +740,7 @@ export declare module DayPilot {
|
|
|
739
740
|
eventDeleteHandling?: "Update" | "Disabled";
|
|
740
741
|
eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
|
|
741
742
|
eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
|
|
743
|
+
eventsLoadMethod?: "GET" | "POST";
|
|
742
744
|
headerClickHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
743
745
|
headerHeight?: number;
|
|
744
746
|
hideUntilInit?: boolean;
|
|
@@ -770,10 +772,10 @@ export declare module DayPilot {
|
|
|
770
772
|
onTimeRangeSelect?: EventHandler<MonthTimeRangeSelectArgs>;
|
|
771
773
|
onTimeRangeSelected?: EventHandler<MonthTimeRangeSelectedArgs>;
|
|
772
774
|
}
|
|
773
|
-
|
|
775
|
+
class MonthConfig extends MonthPropsAndEvents {
|
|
774
776
|
events?: EventData[];
|
|
775
777
|
}
|
|
776
|
-
|
|
778
|
+
class Month extends MonthPropsAndEvents {
|
|
777
779
|
v: string;
|
|
778
780
|
events: {
|
|
779
781
|
list: EventData[];
|
|
@@ -803,15 +805,15 @@ export declare module DayPilot {
|
|
|
803
805
|
visibleStart(): DayPilot.Date;
|
|
804
806
|
visibleEnd(): DayPilot.Date;
|
|
805
807
|
}
|
|
806
|
-
|
|
808
|
+
interface MonthAfterEventRenderArgs {
|
|
807
809
|
readonly e: DayPilot.Event;
|
|
808
810
|
readonly div: HTMLElement;
|
|
809
811
|
}
|
|
810
|
-
|
|
812
|
+
interface MonthBeforeEventRenderArgs {
|
|
811
813
|
readonly control: DayPilot.Month;
|
|
812
814
|
readonly data: EventData;
|
|
813
815
|
}
|
|
814
|
-
|
|
816
|
+
interface MonthBeforeCellRenderArgs {
|
|
815
817
|
readonly control: DayPilot.Month;
|
|
816
818
|
readonly cell: {
|
|
817
819
|
readonly start: DayPilot.Date;
|
|
@@ -824,18 +826,18 @@ export declare module DayPilot {
|
|
|
824
826
|
};
|
|
825
827
|
};
|
|
826
828
|
}
|
|
827
|
-
|
|
829
|
+
interface MonthCellHeaderClickArgs {
|
|
828
830
|
readonly control: DayPilot.Month;
|
|
829
831
|
readonly start: DayPilot.Date;
|
|
830
832
|
readonly end: DayPilot.Date;
|
|
831
833
|
preventDefault(): void;
|
|
832
834
|
}
|
|
833
|
-
|
|
835
|
+
interface MonthCellHeaderClickedArgs {
|
|
834
836
|
readonly control: DayPilot.Month;
|
|
835
837
|
readonly start: DayPilot.Date;
|
|
836
838
|
readonly end: DayPilot.Date;
|
|
837
839
|
}
|
|
838
|
-
|
|
840
|
+
interface MonthEventClickArgs {
|
|
839
841
|
readonly e: DayPilot.Event;
|
|
840
842
|
readonly control: DayPilot.Month;
|
|
841
843
|
readonly div: HTMLElement;
|
|
@@ -844,7 +846,7 @@ export declare module DayPilot {
|
|
|
844
846
|
readonly ctrl: boolean;
|
|
845
847
|
preventDefault(): void;
|
|
846
848
|
}
|
|
847
|
-
|
|
849
|
+
interface MonthEventClickedArgs {
|
|
848
850
|
readonly e: DayPilot.Event;
|
|
849
851
|
readonly control: DayPilot.Month;
|
|
850
852
|
readonly div: HTMLElement;
|
|
@@ -852,23 +854,23 @@ export declare module DayPilot {
|
|
|
852
854
|
readonly meta: boolean;
|
|
853
855
|
readonly ctrl: boolean;
|
|
854
856
|
}
|
|
855
|
-
|
|
857
|
+
interface MonthEventRightClickArgs {
|
|
856
858
|
readonly e: DayPilot.Event;
|
|
857
859
|
preventDefault(): void;
|
|
858
860
|
}
|
|
859
|
-
|
|
861
|
+
interface MonthEventRightClickedArgs {
|
|
860
862
|
readonly e: DayPilot.Event;
|
|
861
863
|
}
|
|
862
|
-
|
|
864
|
+
interface MonthEventDeleteArgs {
|
|
863
865
|
readonly e: DayPilot.Event;
|
|
864
866
|
readonly control: DayPilot.Month;
|
|
865
867
|
preventDefault(): void;
|
|
866
868
|
}
|
|
867
|
-
|
|
869
|
+
interface MonthEventDeletedArgs {
|
|
868
870
|
readonly e: DayPilot.Event;
|
|
869
871
|
readonly control: DayPilot.Month;
|
|
870
872
|
}
|
|
871
|
-
|
|
873
|
+
interface MonthEventMoveArgs {
|
|
872
874
|
readonly e: DayPilot.Event;
|
|
873
875
|
readonly control: DayPilot.Month;
|
|
874
876
|
readonly newStart: DayPilot.Date;
|
|
@@ -877,7 +879,7 @@ export declare module DayPilot {
|
|
|
877
879
|
readonly shift: boolean;
|
|
878
880
|
preventDefault(): void;
|
|
879
881
|
}
|
|
880
|
-
|
|
882
|
+
interface MonthEventMovedArgs {
|
|
881
883
|
readonly e: DayPilot.Event;
|
|
882
884
|
readonly control: DayPilot.Month;
|
|
883
885
|
readonly newStart: DayPilot.Date;
|
|
@@ -885,31 +887,32 @@ export declare module DayPilot {
|
|
|
885
887
|
readonly ctrl: boolean;
|
|
886
888
|
readonly shift: boolean;
|
|
887
889
|
}
|
|
888
|
-
|
|
890
|
+
interface MonthEventResizeArgs {
|
|
889
891
|
readonly e: DayPilot.Event;
|
|
890
892
|
readonly control: DayPilot.Month;
|
|
891
893
|
readonly newStart: DayPilot.Date;
|
|
892
894
|
readonly newEnd: DayPilot.Date;
|
|
893
895
|
preventDefault(): void;
|
|
894
896
|
}
|
|
895
|
-
|
|
897
|
+
interface MonthEventResizedArgs {
|
|
896
898
|
readonly e: DayPilot.Event;
|
|
897
899
|
readonly control: DayPilot.Month;
|
|
898
900
|
readonly newStart: DayPilot.Date;
|
|
899
901
|
readonly newEnd: DayPilot.Date;
|
|
900
902
|
}
|
|
901
|
-
|
|
903
|
+
interface MonthTimeRangeSelectArgs {
|
|
902
904
|
readonly control: DayPilot.Month;
|
|
903
905
|
readonly start: DayPilot.Date;
|
|
904
906
|
readonly end: DayPilot.Date;
|
|
905
907
|
preventDefault(): void;
|
|
906
908
|
}
|
|
907
|
-
|
|
909
|
+
interface MonthTimeRangeSelectedArgs {
|
|
908
910
|
readonly control: DayPilot.Month;
|
|
909
911
|
readonly start: DayPilot.Date;
|
|
910
912
|
readonly end: DayPilot.Date;
|
|
911
913
|
}
|
|
912
|
-
|
|
914
|
+
class NavigatorPropsAndEvents {
|
|
915
|
+
autoFocusOnClick?: boolean;
|
|
913
916
|
cellHeight?: number;
|
|
914
917
|
cellWidth?: number;
|
|
915
918
|
command?: string;
|
|
@@ -917,8 +920,10 @@ export declare module DayPilot {
|
|
|
917
920
|
eventEndSpec?: "DateTime" | "Date";
|
|
918
921
|
freeHandSelectionEnabled?: boolean;
|
|
919
922
|
locale?: string;
|
|
923
|
+
month?: number;
|
|
920
924
|
orientation?: "Vertical" | "Horizontal";
|
|
921
925
|
rowsPerMonth?: "Auto" | "Six";
|
|
926
|
+
rtl?: boolean;
|
|
922
927
|
selectionDay?: DayPilot.Date;
|
|
923
928
|
selectionEnd?: DayPilot.Date;
|
|
924
929
|
selectionStart?: DayPilot.Date;
|
|
@@ -936,6 +941,7 @@ export declare module DayPilot {
|
|
|
936
941
|
todayText?: string;
|
|
937
942
|
weekStarts?: "Auto" | number;
|
|
938
943
|
weekNumberAlgorithm?: "Auto" | "US" | "ISO8601";
|
|
944
|
+
year?: number;
|
|
939
945
|
timeRangeSelectedHandling?: "Bind" | "None";
|
|
940
946
|
visibleRangeChangedHandling?: "Enabled" | "Disabled" | "CallBack";
|
|
941
947
|
onBeforeCellRender?: EventHandler<NavigatorBeforeCellRenderArgs>;
|
|
@@ -945,14 +951,14 @@ export declare module DayPilot {
|
|
|
945
951
|
onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
|
|
946
952
|
onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
|
|
947
953
|
}
|
|
948
|
-
|
|
954
|
+
class NavigatorConfig extends NavigatorPropsAndEvents {
|
|
949
955
|
events?: EventData[];
|
|
950
956
|
}
|
|
951
957
|
interface NavigatorSelectOptions {
|
|
952
958
|
dontFocus?: boolean;
|
|
953
959
|
dontNotify?: boolean;
|
|
954
960
|
}
|
|
955
|
-
|
|
961
|
+
class Navigator extends NavigatorPropsAndEvents {
|
|
956
962
|
v: string;
|
|
957
963
|
events: {
|
|
958
964
|
list: EventDataShort[];
|
|
@@ -997,7 +1003,7 @@ export declare module DayPilot {
|
|
|
997
1003
|
readonly days: number;
|
|
998
1004
|
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
999
1005
|
}
|
|
1000
|
-
|
|
1006
|
+
interface NavigatorTodayClickArgs {
|
|
1001
1007
|
preventDefault(): void;
|
|
1002
1008
|
}
|
|
1003
1009
|
interface NavigatorVisibleRangeChangeArgs {
|
|
@@ -1009,7 +1015,7 @@ export declare module DayPilot {
|
|
|
1009
1015
|
readonly start: DayPilot.Date;
|
|
1010
1016
|
readonly end: DayPilot.Date;
|
|
1011
1017
|
}
|
|
1012
|
-
|
|
1018
|
+
class DatePickerPropsAndEvents {
|
|
1013
1019
|
date?: DayPilot.Date | string;
|
|
1014
1020
|
locale?: string | DayPilot.Locale;
|
|
1015
1021
|
pattern?: string;
|
|
@@ -1024,26 +1030,26 @@ export declare module DayPilot {
|
|
|
1024
1030
|
onTimeRangeSelect?: EventHandler<DatePickerTimeRangeSelectArgs>;
|
|
1025
1031
|
onTimeRangeSelected?: EventHandler<DatePickerTimeRangeSelectedArgs>;
|
|
1026
1032
|
}
|
|
1027
|
-
|
|
1033
|
+
class DatePickerConfig extends DatePickerPropsAndEvents {
|
|
1028
1034
|
}
|
|
1029
|
-
|
|
1035
|
+
class DatePicker extends DatePickerPropsAndEvents {
|
|
1030
1036
|
constructor(options?: DatePickerConfig);
|
|
1031
1037
|
close(): void;
|
|
1032
1038
|
init(): void;
|
|
1033
1039
|
select(): void;
|
|
1034
1040
|
show(): void;
|
|
1035
1041
|
}
|
|
1036
|
-
|
|
1042
|
+
interface DatePickerShowArgs {
|
|
1037
1043
|
[key: string]: never;
|
|
1038
1044
|
}
|
|
1039
|
-
|
|
1045
|
+
interface DatePickerTimeRangeSelectArgs {
|
|
1040
1046
|
readonly date: DayPilot.Date;
|
|
1041
1047
|
preventDefault(): void;
|
|
1042
1048
|
}
|
|
1043
|
-
|
|
1049
|
+
interface DatePickerTimeRangeSelectedArgs {
|
|
1044
1050
|
readonly date: DayPilot.Date;
|
|
1045
1051
|
}
|
|
1046
|
-
|
|
1052
|
+
class Locale {
|
|
1047
1053
|
datePattern: string;
|
|
1048
1054
|
dateTimePattern: string;
|
|
1049
1055
|
dayNames: string[];
|
|
@@ -1067,39 +1073,40 @@ export declare module DayPilot {
|
|
|
1067
1073
|
static register(locale: DayPilot.Locale): void;
|
|
1068
1074
|
static find(id: string): DayPilot.Locale;
|
|
1069
1075
|
}
|
|
1070
|
-
|
|
1076
|
+
class MenuPropsAndEvents {
|
|
1071
1077
|
hideOnMouseOut?: boolean;
|
|
1072
1078
|
items?: MenuItemData[];
|
|
1073
1079
|
menuTitle?: string;
|
|
1074
1080
|
onShow?: EventHandler<MenuShowArgs>;
|
|
1075
1081
|
onHide?: EventHandler<MenuHideArgs>;
|
|
1082
|
+
rtl?: boolean;
|
|
1076
1083
|
showMenuTitle?: boolean;
|
|
1077
1084
|
zIndex?: number;
|
|
1078
1085
|
theme?: string;
|
|
1079
1086
|
}
|
|
1080
|
-
|
|
1087
|
+
class MenuConfig extends MenuPropsAndEvents {
|
|
1081
1088
|
}
|
|
1082
|
-
|
|
1089
|
+
class Menu extends MenuPropsAndEvents {
|
|
1083
1090
|
v: string;
|
|
1084
1091
|
constructor(options?: MenuConfig);
|
|
1085
1092
|
show(target?: any): void;
|
|
1086
1093
|
hide(): void;
|
|
1087
1094
|
static hide(): void;
|
|
1088
1095
|
}
|
|
1089
|
-
|
|
1096
|
+
interface MenuShowArgs {
|
|
1090
1097
|
readonly source: any;
|
|
1091
1098
|
readonly menu: DayPilot.Menu;
|
|
1092
1099
|
preventDefault(): void;
|
|
1093
1100
|
}
|
|
1094
|
-
|
|
1101
|
+
interface MenuHideArgs {
|
|
1095
1102
|
}
|
|
1096
|
-
|
|
1103
|
+
class MenuBar {
|
|
1097
1104
|
items: any[];
|
|
1098
1105
|
constructor(id: string, options?: any);
|
|
1099
1106
|
init(): void;
|
|
1100
1107
|
dispose(): void;
|
|
1101
1108
|
}
|
|
1102
|
-
|
|
1109
|
+
interface MenuItemData {
|
|
1103
1110
|
action?: "CallBack" | "PostBack";
|
|
1104
1111
|
command?: string;
|
|
1105
1112
|
cssClass?: string;
|
|
@@ -1116,24 +1123,24 @@ export declare module DayPilot {
|
|
|
1116
1123
|
text?: string;
|
|
1117
1124
|
html?: string;
|
|
1118
1125
|
}
|
|
1119
|
-
|
|
1126
|
+
interface MenuItemClickArgs {
|
|
1120
1127
|
readonly item: MenuItemData;
|
|
1121
1128
|
readonly source: any;
|
|
1122
1129
|
readonly originalEvent: MouseEvent;
|
|
1123
1130
|
preventDefault(): void;
|
|
1124
1131
|
}
|
|
1125
|
-
|
|
1132
|
+
class SwitcherPropsAndEvents {
|
|
1126
1133
|
selectedClass?: string;
|
|
1127
1134
|
syncScrollbar?: boolean;
|
|
1128
1135
|
onChange?: EventHandler<SwitcherChangeArgs>;
|
|
1129
1136
|
onChanged?: EventHandler<SwitcherChangedArgs>;
|
|
1130
1137
|
onSelect?: EventHandler<SwitcherSelectArgs>;
|
|
1131
1138
|
}
|
|
1132
|
-
|
|
1139
|
+
class SwitcherConfig extends SwitcherPropsAndEvents {
|
|
1133
1140
|
triggers?: SwitcherTrigger[];
|
|
1134
1141
|
navigator?: DayPilot.Navigator;
|
|
1135
1142
|
}
|
|
1136
|
-
|
|
1143
|
+
class Switcher extends SwitcherPropsAndEvents {
|
|
1137
1144
|
constructor(options?: SwitcherConfig);
|
|
1138
1145
|
readonly active: SwitcherView;
|
|
1139
1146
|
addTrigger(id: string | HTMLElement, view: SwitcherViewControl): void;
|
|
@@ -1149,32 +1156,32 @@ export declare module DayPilot {
|
|
|
1149
1156
|
}) => void): void;
|
|
1150
1157
|
};
|
|
1151
1158
|
}
|
|
1152
|
-
|
|
1159
|
+
interface SwitcherView {
|
|
1153
1160
|
control: SwitcherViewControl;
|
|
1154
1161
|
}
|
|
1155
|
-
|
|
1162
|
+
interface SwitcherTrigger {
|
|
1156
1163
|
id: string | HTMLElement;
|
|
1157
1164
|
view: SwitcherViewControl;
|
|
1158
1165
|
}
|
|
1159
|
-
|
|
1166
|
+
interface SwitcherChangeArgs {
|
|
1160
1167
|
readonly start: DayPilot.Date;
|
|
1161
1168
|
readonly end: DayPilot.Date;
|
|
1162
1169
|
readonly day: DayPilot.Date;
|
|
1163
1170
|
readonly target: SwitcherView;
|
|
1164
1171
|
preventDefault(): void;
|
|
1165
1172
|
}
|
|
1166
|
-
|
|
1173
|
+
interface SwitcherChangedArgs {
|
|
1167
1174
|
readonly start: DayPilot.Date;
|
|
1168
1175
|
readonly end: DayPilot.Date;
|
|
1169
1176
|
readonly day: DayPilot.Date;
|
|
1170
1177
|
readonly target: SwitcherView;
|
|
1171
1178
|
}
|
|
1172
|
-
|
|
1179
|
+
interface SwitcherSelectArgs {
|
|
1173
1180
|
readonly source: HTMLElement;
|
|
1174
1181
|
readonly target: SwitcherViewControl;
|
|
1175
1182
|
}
|
|
1176
|
-
|
|
1177
|
-
|
|
1183
|
+
type SwitcherViewControl = DayPilot.Calendar | DayPilot.Month;
|
|
1184
|
+
class Date {
|
|
1178
1185
|
constructor(str?: string | DayPilot.Date);
|
|
1179
1186
|
constructor(date: GlobalDate, isLocal?: boolean);
|
|
1180
1187
|
addDays(days: number): DayPilot.Date;
|
|
@@ -1199,7 +1206,6 @@ export declare module DayPilot {
|
|
|
1199
1206
|
getDatePart(): DayPilot.Date;
|
|
1200
1207
|
getDay(): number;
|
|
1201
1208
|
getDayOfWeek(): number;
|
|
1202
|
-
getYear(): number;
|
|
1203
1209
|
getHours(): number;
|
|
1204
1210
|
getMilliseconds(): number;
|
|
1205
1211
|
getMinutes(): number;
|
|
@@ -1220,22 +1226,39 @@ export declare module DayPilot {
|
|
|
1220
1226
|
static parse(input: string, pattern: string, locale?: string | DayPilot.Locale): DayPilot.Date;
|
|
1221
1227
|
static today(): DayPilot.Date;
|
|
1222
1228
|
static now(): DayPilot.Date;
|
|
1223
|
-
static Cache:
|
|
1229
|
+
static Cache: DateCache;
|
|
1224
1230
|
}
|
|
1225
|
-
|
|
1231
|
+
class DateCache {
|
|
1226
1232
|
static clear(): void;
|
|
1227
1233
|
}
|
|
1228
|
-
|
|
1234
|
+
class Util {
|
|
1229
1235
|
static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
|
|
1230
1236
|
static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
|
|
1231
1237
|
static escapeHtml(text: string): string;
|
|
1232
1238
|
}
|
|
1233
|
-
|
|
1239
|
+
class ColorUtil {
|
|
1234
1240
|
static darker(color: string, steps?: number): string;
|
|
1235
1241
|
static lighter(color: string, steps?: number): string;
|
|
1236
1242
|
static contrasting(color: string, light?: string, dark?: string): string;
|
|
1237
1243
|
}
|
|
1238
|
-
|
|
1244
|
+
class Http {
|
|
1245
|
+
static get<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1246
|
+
static post<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1247
|
+
static put<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1248
|
+
static patch<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1249
|
+
static delete<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1250
|
+
}
|
|
1251
|
+
namespace Http {
|
|
1252
|
+
interface RequestParams {
|
|
1253
|
+
contentType?: string;
|
|
1254
|
+
headers?: Record<string, string>;
|
|
1255
|
+
}
|
|
1256
|
+
interface Result<T = any> {
|
|
1257
|
+
request: XMLHttpRequest;
|
|
1258
|
+
data?: T;
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
class Duration {
|
|
1239
1262
|
ticks: number;
|
|
1240
1263
|
constructor(ticks: number);
|
|
1241
1264
|
constructor(start: DayPilot.Date | string, end: DayPilot.Date | string);
|
|
@@ -1257,30 +1280,33 @@ export declare module DayPilot {
|
|
|
1257
1280
|
static ofMinutes(i: number): DayPilot.Duration;
|
|
1258
1281
|
static ofSeconds(i: number): DayPilot.Duration;
|
|
1259
1282
|
}
|
|
1260
|
-
|
|
1283
|
+
class Event {
|
|
1261
1284
|
data: any;
|
|
1262
1285
|
constructor(data: EventData);
|
|
1263
1286
|
start(): DayPilot.Date;
|
|
1264
1287
|
start(newStart: DayPilot.Date): void;
|
|
1265
1288
|
end(): DayPilot.Date;
|
|
1266
1289
|
end(newEnd: DayPilot.Date): void;
|
|
1290
|
+
partStart(): DayPilot.Date;
|
|
1291
|
+
partEnd(): DayPilot.Date;
|
|
1267
1292
|
id(): EventId;
|
|
1268
1293
|
text(): string;
|
|
1269
1294
|
text(newText: string): void;
|
|
1270
1295
|
resource(): ResourceId;
|
|
1271
1296
|
resource(newResource: ResourceId): void;
|
|
1297
|
+
tag(name: string): any;
|
|
1272
1298
|
duration(): DayPilot.Duration;
|
|
1273
1299
|
}
|
|
1274
|
-
|
|
1300
|
+
class Selection {
|
|
1275
1301
|
start: DayPilot.Date;
|
|
1276
1302
|
end: DayPilot.Date;
|
|
1277
|
-
resource
|
|
1303
|
+
resource?: ResourceId;
|
|
1278
1304
|
}
|
|
1279
|
-
|
|
1305
|
+
interface EventDataShort {
|
|
1280
1306
|
start: string | DayPilot.Date;
|
|
1281
1307
|
end: string | DayPilot.Date;
|
|
1282
1308
|
}
|
|
1283
|
-
|
|
1309
|
+
interface EventData {
|
|
1284
1310
|
start: string | DayPilot.Date;
|
|
1285
1311
|
end: string | DayPilot.Date;
|
|
1286
1312
|
id: EventId;
|
|
@@ -1300,7 +1326,7 @@ export declare module DayPilot {
|
|
|
1300
1326
|
tags?: any;
|
|
1301
1327
|
toolTip?: string;
|
|
1302
1328
|
}
|
|
1303
|
-
|
|
1329
|
+
interface AreaData {
|
|
1304
1330
|
action?: "Default" | "None" | "ContextMenu" | "ResizeEnd" | "ResizeStart" | "Move";
|
|
1305
1331
|
backColor?: string;
|
|
1306
1332
|
background?: string;
|
|
@@ -1338,19 +1364,20 @@ export declare module DayPilot {
|
|
|
1338
1364
|
visibility?: "Hover" | "Visible" | "TouchVisible";
|
|
1339
1365
|
width?: number | string;
|
|
1340
1366
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1367
|
+
function guid(): string;
|
|
1368
|
+
interface EventHandler<T> {
|
|
1343
1369
|
(args: T): void;
|
|
1344
1370
|
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1371
|
+
type ResourceId = string | number;
|
|
1372
|
+
type EventId = string | number;
|
|
1373
|
+
type AreaId = string | number;
|
|
1374
|
+
type HorizontalAlignment = "right" | "center" | "left";
|
|
1375
|
+
type VerticalAlignment = "top" | "center" | "bottom";
|
|
1376
|
+
class ModalPropsAndEvents {
|
|
1351
1377
|
autoFocus?: boolean;
|
|
1352
1378
|
autoStretch?: boolean;
|
|
1353
1379
|
autoStretchFirstLoadOnly?: boolean;
|
|
1380
|
+
cancelText?: string;
|
|
1354
1381
|
container?: HTMLElement;
|
|
1355
1382
|
disposeOnClose?: boolean;
|
|
1356
1383
|
dragDrop?: boolean;
|
|
@@ -1360,7 +1387,9 @@ export declare module DayPilot {
|
|
|
1360
1387
|
};
|
|
1361
1388
|
height?: number;
|
|
1362
1389
|
left?: number;
|
|
1390
|
+
locale?: string;
|
|
1363
1391
|
loadingHtml?: string;
|
|
1392
|
+
okText?: string;
|
|
1364
1393
|
maxHeight?: number;
|
|
1365
1394
|
scrollWithPage?: boolean;
|
|
1366
1395
|
theme?: string;
|
|
@@ -1372,9 +1401,9 @@ export declare module DayPilot {
|
|
|
1372
1401
|
onClosed?: EventHandler<ModalClosedArgs>;
|
|
1373
1402
|
onShow?: EventHandler<ModalShowArgs>;
|
|
1374
1403
|
}
|
|
1375
|
-
|
|
1404
|
+
class ModalConfig extends ModalPropsAndEvents {
|
|
1376
1405
|
}
|
|
1377
|
-
|
|
1406
|
+
class Modal extends ModalPropsAndEvents {
|
|
1378
1407
|
constructor(options?: ModalConfig);
|
|
1379
1408
|
close(result?: any): void;
|
|
1380
1409
|
closeSerialized(): void;
|
|
@@ -1388,38 +1417,38 @@ export declare module DayPilot {
|
|
|
1388
1417
|
static confirm(message: string, options?: ModalConfirmConfig): Promise<ModalClosedArgs>;
|
|
1389
1418
|
static form(form?: ModalFormItem[], data?: any, options?: ModalFormConfig): Promise<ModalClosedArgs>;
|
|
1390
1419
|
}
|
|
1391
|
-
|
|
1420
|
+
class ModalAlertConfig extends ModalConfig {
|
|
1392
1421
|
okText?: string;
|
|
1393
1422
|
}
|
|
1394
|
-
|
|
1423
|
+
class ModalConfirmConfig extends ModalConfig {
|
|
1395
1424
|
okText?: string;
|
|
1396
1425
|
cancelText?: string;
|
|
1397
1426
|
}
|
|
1398
|
-
|
|
1427
|
+
class ModalPromptConfig extends ModalConfig {
|
|
1399
1428
|
okText?: string;
|
|
1400
1429
|
cancelText?: string;
|
|
1401
1430
|
}
|
|
1402
|
-
|
|
1431
|
+
class ModalFormConfig extends ModalConfig {
|
|
1403
1432
|
okText?: string;
|
|
1404
1433
|
cancelText?: string;
|
|
1405
1434
|
locale?: string;
|
|
1406
1435
|
plugins?: any;
|
|
1407
1436
|
}
|
|
1408
|
-
|
|
1437
|
+
interface ModalCloseArgs {
|
|
1409
1438
|
canceled: boolean;
|
|
1410
1439
|
result: any;
|
|
1411
1440
|
backgroundClick: boolean;
|
|
1412
1441
|
preventDefault(): void;
|
|
1413
1442
|
}
|
|
1414
|
-
|
|
1443
|
+
interface ModalClosedArgs {
|
|
1415
1444
|
canceled: boolean;
|
|
1416
1445
|
result: any;
|
|
1417
1446
|
backgroundClick: boolean;
|
|
1418
1447
|
}
|
|
1419
|
-
|
|
1448
|
+
interface ModalShowArgs {
|
|
1420
1449
|
root: Node;
|
|
1421
1450
|
}
|
|
1422
|
-
|
|
1451
|
+
interface ModalFormItem {
|
|
1423
1452
|
id?: string;
|
|
1424
1453
|
name?: string;
|
|
1425
1454
|
type?: "text" | "date" | "searchable" | "select" | "radio" | "checkbox" | "table" | "title" | "image" | "html" | "textarea" | "scrollable" | string;
|
|
@@ -1436,27 +1465,26 @@ export declare module DayPilot {
|
|
|
1436
1465
|
text?: string;
|
|
1437
1466
|
html?: string;
|
|
1438
1467
|
}
|
|
1439
|
-
|
|
1468
|
+
interface ModalFormOption {
|
|
1440
1469
|
id: string | number;
|
|
1441
1470
|
name?: string;
|
|
1442
1471
|
children?: ModalFormItem[];
|
|
1443
1472
|
}
|
|
1444
|
-
|
|
1473
|
+
interface ModalFormTableColumns {
|
|
1445
1474
|
id: string;
|
|
1446
1475
|
name: string;
|
|
1447
1476
|
type?: "text" | "number" | "select";
|
|
1448
1477
|
options?: ModalFormOption[];
|
|
1449
1478
|
}
|
|
1450
|
-
|
|
1479
|
+
interface ModalFormItemValidationArgs {
|
|
1451
1480
|
value: any;
|
|
1452
1481
|
result: any;
|
|
1453
1482
|
valid: boolean;
|
|
1454
1483
|
message: string;
|
|
1455
1484
|
}
|
|
1456
|
-
|
|
1485
|
+
interface ModalFormTableItemNewRowArgs {
|
|
1457
1486
|
value: any;
|
|
1458
1487
|
result: any;
|
|
1459
1488
|
}
|
|
1460
|
-
export {};
|
|
1461
1489
|
}
|
|
1462
1490
|
export {};
|