@daypilot/daypilot-lite-angular 5.4.1 → 5.6.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
2
|
export declare namespace DayPilot {
|
|
3
|
-
|
|
3
|
+
class SchedulerPropsAndEvents {
|
|
4
4
|
backendUrl?: string;
|
|
5
5
|
beforeCellRenderCaching?: boolean;
|
|
6
6
|
businessBeginsHour?: number;
|
|
@@ -102,11 +102,11 @@ export declare namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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;
|
|
@@ -277,13 +277,14 @@ export declare namespace DayPilot {
|
|
|
277
277
|
newStart: DayPilot.Date;
|
|
278
278
|
newEnd: DayPilot.Date;
|
|
279
279
|
newResource: ResourceId;
|
|
280
|
+
readonly alt: boolean;
|
|
280
281
|
readonly ctrl: boolean;
|
|
281
282
|
readonly shift: boolean;
|
|
282
283
|
readonly meta: boolean;
|
|
283
284
|
loaded(): void;
|
|
284
285
|
preventDefault(): void;
|
|
285
286
|
}
|
|
286
|
-
|
|
287
|
+
interface SchedulerEventMovedArgs {
|
|
287
288
|
readonly async: boolean;
|
|
288
289
|
readonly areaData: any;
|
|
289
290
|
readonly control: DayPilot.Scheduler;
|
|
@@ -291,11 +292,12 @@ export declare namespace DayPilot {
|
|
|
291
292
|
readonly newStart: DayPilot.Date;
|
|
292
293
|
readonly newEnd: DayPilot.Date;
|
|
293
294
|
readonly newResource: ResourceId;
|
|
295
|
+
readonly alt: boolean;
|
|
294
296
|
readonly ctrl: boolean;
|
|
295
297
|
readonly shift: boolean;
|
|
296
298
|
readonly meta: boolean;
|
|
297
299
|
}
|
|
298
|
-
|
|
300
|
+
interface SchedulerEventResizeArgs {
|
|
299
301
|
readonly areaData: any;
|
|
300
302
|
async: boolean;
|
|
301
303
|
readonly control: DayPilot.Scheduler;
|
|
@@ -303,10 +305,14 @@ export declare namespace DayPilot {
|
|
|
303
305
|
newStart: DayPilot.Date;
|
|
304
306
|
newEnd: DayPilot.Date;
|
|
305
307
|
readonly what: "start" | "end";
|
|
308
|
+
readonly ctrl: boolean;
|
|
309
|
+
readonly shift: boolean;
|
|
310
|
+
readonly meta: boolean;
|
|
311
|
+
readonly alt: boolean;
|
|
306
312
|
loaded(): void;
|
|
307
313
|
preventDefault(): void;
|
|
308
314
|
}
|
|
309
|
-
|
|
315
|
+
interface SchedulerEventResizedArgs {
|
|
310
316
|
readonly areaData: any;
|
|
311
317
|
readonly async: boolean;
|
|
312
318
|
readonly control: DayPilot.Scheduler;
|
|
@@ -314,19 +320,23 @@ export declare namespace DayPilot {
|
|
|
314
320
|
readonly newStart: DayPilot.Date;
|
|
315
321
|
readonly newEnd: DayPilot.Date;
|
|
316
322
|
readonly what: "start" | "end";
|
|
323
|
+
readonly ctrl: boolean;
|
|
324
|
+
readonly shift: boolean;
|
|
325
|
+
readonly meta: boolean;
|
|
326
|
+
readonly alt: boolean;
|
|
317
327
|
}
|
|
318
|
-
|
|
328
|
+
interface SchedulerEventRightClickArgs {
|
|
319
329
|
readonly e: DayPilot.Event;
|
|
320
330
|
readonly div: HTMLElement;
|
|
321
331
|
readonly originalEvent: MouseEvent;
|
|
322
332
|
preventDefault(): void;
|
|
323
333
|
}
|
|
324
|
-
|
|
334
|
+
interface SchedulerEventRightClickedArgs {
|
|
325
335
|
readonly e: DayPilot.Event;
|
|
326
336
|
readonly div: HTMLElement;
|
|
327
337
|
readonly originalEvent: MouseEvent;
|
|
328
338
|
}
|
|
329
|
-
|
|
339
|
+
interface SchedulerRowClickArgs {
|
|
330
340
|
readonly row: DayPilot.Row;
|
|
331
341
|
readonly ctrl: boolean;
|
|
332
342
|
readonly shift: boolean;
|
|
@@ -334,14 +344,14 @@ export declare namespace DayPilot {
|
|
|
334
344
|
readonly originalEvent: MouseEvent;
|
|
335
345
|
preventDefault(): void;
|
|
336
346
|
}
|
|
337
|
-
|
|
347
|
+
interface SchedulerRowClickedArgs {
|
|
338
348
|
readonly row: DayPilot.Row;
|
|
339
349
|
readonly ctrl: boolean;
|
|
340
350
|
readonly shift: boolean;
|
|
341
351
|
readonly meta: boolean;
|
|
342
352
|
readonly originalEvent: MouseEvent;
|
|
343
353
|
}
|
|
344
|
-
|
|
354
|
+
interface SchedulerTimeHeaderClickArgs {
|
|
345
355
|
readonly control: Scheduler;
|
|
346
356
|
readonly header: {
|
|
347
357
|
readonly start: DayPilot.Date;
|
|
@@ -354,7 +364,7 @@ export declare namespace DayPilot {
|
|
|
354
364
|
readonly meta: boolean;
|
|
355
365
|
preventDefault(): void;
|
|
356
366
|
}
|
|
357
|
-
|
|
367
|
+
interface SchedulerTimeHeaderClickedArgs {
|
|
358
368
|
readonly control: Scheduler;
|
|
359
369
|
readonly header: {
|
|
360
370
|
readonly start: DayPilot.Date;
|
|
@@ -366,7 +376,7 @@ export declare namespace DayPilot {
|
|
|
366
376
|
readonly shift: boolean;
|
|
367
377
|
readonly meta: boolean;
|
|
368
378
|
}
|
|
369
|
-
|
|
379
|
+
interface SchedulerTimeHeaderRightClickArgs {
|
|
370
380
|
readonly header: {
|
|
371
381
|
readonly start: DayPilot.Date;
|
|
372
382
|
readonly end: DayPilot.Date;
|
|
@@ -374,52 +384,52 @@ export declare namespace DayPilot {
|
|
|
374
384
|
};
|
|
375
385
|
preventDefault(): void;
|
|
376
386
|
}
|
|
377
|
-
|
|
387
|
+
interface SchedulerTimeHeaderRightClickedArgs {
|
|
378
388
|
readonly header: {
|
|
379
389
|
readonly start: DayPilot.Date;
|
|
380
390
|
readonly end: DayPilot.Date;
|
|
381
391
|
readonly level: number;
|
|
382
392
|
};
|
|
383
393
|
}
|
|
384
|
-
|
|
394
|
+
interface SchedulerTimeRangeClickArgs {
|
|
385
395
|
readonly start: DayPilot.Date;
|
|
386
396
|
readonly end: DayPilot.Date;
|
|
387
397
|
readonly resource: ResourceId;
|
|
388
398
|
preventDefault(): void;
|
|
389
399
|
}
|
|
390
|
-
|
|
400
|
+
interface SchedulerTimeRangeClickedArgs {
|
|
391
401
|
readonly start: DayPilot.Date;
|
|
392
402
|
readonly end: DayPilot.Date;
|
|
393
403
|
readonly resource: ResourceId;
|
|
394
404
|
}
|
|
395
|
-
|
|
405
|
+
interface SchedulerTimeRangeSelectArgs {
|
|
396
406
|
readonly start: DayPilot.Date;
|
|
397
407
|
readonly end: DayPilot.Date;
|
|
398
408
|
readonly resource: ResourceId;
|
|
399
409
|
readonly control: DayPilot.Scheduler;
|
|
400
410
|
preventDefault(): void;
|
|
401
411
|
}
|
|
402
|
-
|
|
412
|
+
interface SchedulerTimeRangeSelectedArgs {
|
|
403
413
|
readonly start: DayPilot.Date;
|
|
404
414
|
readonly end: DayPilot.Date;
|
|
405
415
|
readonly resource: ResourceId;
|
|
406
416
|
readonly control: DayPilot.Scheduler;
|
|
407
417
|
}
|
|
408
|
-
|
|
418
|
+
interface SchedulerScrollArgs {
|
|
409
419
|
readonly viewport: SchedulerViewport;
|
|
410
420
|
readonly control: DayPilot.Scheduler;
|
|
411
421
|
}
|
|
412
|
-
|
|
413
|
-
|
|
422
|
+
type GroupBy = "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year" | "Cell" | "None";
|
|
423
|
+
interface ZoomLevel {
|
|
414
424
|
properties: any;
|
|
415
425
|
[prop: string]: any;
|
|
416
426
|
}
|
|
417
|
-
|
|
427
|
+
interface SchedulerViewport {
|
|
418
428
|
start: DayPilot.Date;
|
|
419
429
|
end: DayPilot.Date;
|
|
420
430
|
resources: ResourceId[];
|
|
421
431
|
}
|
|
422
|
-
|
|
432
|
+
interface ResourceData {
|
|
423
433
|
id?: ResourceId;
|
|
424
434
|
name?: string;
|
|
425
435
|
start?: DayPilot.Date | string;
|
|
@@ -434,12 +444,12 @@ export declare namespace DayPilot {
|
|
|
434
444
|
toolTip?: string;
|
|
435
445
|
[prop: string]: any;
|
|
436
446
|
}
|
|
437
|
-
|
|
447
|
+
interface TimeHeaderData {
|
|
438
448
|
groupBy: GroupBy;
|
|
439
449
|
format?: string;
|
|
440
450
|
height?: number;
|
|
441
451
|
}
|
|
442
|
-
|
|
452
|
+
class Row {
|
|
443
453
|
events: {
|
|
444
454
|
all(): DayPilot.Event[];
|
|
445
455
|
isEmpty(): boolean;
|
|
@@ -456,7 +466,7 @@ export declare namespace DayPilot {
|
|
|
456
466
|
remove(): void;
|
|
457
467
|
removeClass(className: string): void;
|
|
458
468
|
}
|
|
459
|
-
|
|
469
|
+
class RenderRow extends Row {
|
|
460
470
|
areas: AreaData[];
|
|
461
471
|
backColor: string;
|
|
462
472
|
cssClass: string;
|
|
@@ -466,7 +476,7 @@ export declare namespace DayPilot {
|
|
|
466
476
|
text: string;
|
|
467
477
|
toolTip: string;
|
|
468
478
|
}
|
|
469
|
-
|
|
479
|
+
class CalendarPropsAndEvents {
|
|
470
480
|
backendUrl?: string;
|
|
471
481
|
businessBeginsHour?: number;
|
|
472
482
|
businessEndsHour?: number;
|
|
@@ -530,11 +540,11 @@ export declare namespace DayPilot {
|
|
|
530
540
|
onTimeRangeSelect?: EventHandler<CalendarTimeRangeSelectArgs>;
|
|
531
541
|
onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
|
|
532
542
|
}
|
|
533
|
-
|
|
543
|
+
class CalendarConfig extends CalendarPropsAndEvents {
|
|
534
544
|
columns?: CalendarColumnData[];
|
|
535
545
|
events?: EventData[];
|
|
536
546
|
}
|
|
537
|
-
|
|
547
|
+
class Calendar extends CalendarPropsAndEvents {
|
|
538
548
|
v: string;
|
|
539
549
|
columns: {
|
|
540
550
|
list: CalendarColumnData[];
|
|
@@ -577,7 +587,7 @@ export declare namespace DayPilot {
|
|
|
577
587
|
visibleStart(): DayPilot.Date;
|
|
578
588
|
visibleEnd(): DayPilot.Date;
|
|
579
589
|
}
|
|
580
|
-
|
|
590
|
+
interface CalendarColumnData {
|
|
581
591
|
name: string;
|
|
582
592
|
id?: ResourceId;
|
|
583
593
|
start?: DayPilot.Date | string;
|
|
@@ -585,11 +595,11 @@ export declare namespace DayPilot {
|
|
|
585
595
|
toolTip?: string;
|
|
586
596
|
tags?: any;
|
|
587
597
|
}
|
|
588
|
-
|
|
598
|
+
interface CalendarAfterEventRenderArgs {
|
|
589
599
|
readonly e: DayPilot.Event;
|
|
590
600
|
readonly div: HTMLElement;
|
|
591
601
|
}
|
|
592
|
-
|
|
602
|
+
interface CalendarBeforeCellRenderArgs {
|
|
593
603
|
readonly cell: {
|
|
594
604
|
readonly start: DayPilot.Date;
|
|
595
605
|
readonly end: DayPilot.Date;
|
|
@@ -608,11 +618,11 @@ export declare namespace DayPilot {
|
|
|
608
618
|
};
|
|
609
619
|
};
|
|
610
620
|
}
|
|
611
|
-
|
|
621
|
+
interface CalendarBeforeEventRenderArgs {
|
|
612
622
|
readonly control: DayPilot.Calendar;
|
|
613
623
|
readonly data: EventData;
|
|
614
624
|
}
|
|
615
|
-
|
|
625
|
+
interface CalendarBeforeHeaderRenderArgs {
|
|
616
626
|
readonly header: {
|
|
617
627
|
readonly id: ResourceId;
|
|
618
628
|
readonly start: DayPilot.Date;
|
|
@@ -628,7 +638,7 @@ export declare namespace DayPilot {
|
|
|
628
638
|
};
|
|
629
639
|
readonly column: Column;
|
|
630
640
|
}
|
|
631
|
-
|
|
641
|
+
interface CalendarEventClickArgs {
|
|
632
642
|
readonly e: DayPilot.Event;
|
|
633
643
|
readonly control: DayPilot.Calendar;
|
|
634
644
|
readonly ctrl: boolean;
|
|
@@ -636,30 +646,30 @@ export declare namespace DayPilot {
|
|
|
636
646
|
readonly originalEvent: MouseEvent;
|
|
637
647
|
preventDefault(): void;
|
|
638
648
|
}
|
|
639
|
-
|
|
649
|
+
interface CalendarEventClickedArgs {
|
|
640
650
|
readonly e: DayPilot.Event;
|
|
641
651
|
readonly control: DayPilot.Calendar;
|
|
642
652
|
readonly ctrl: boolean;
|
|
643
653
|
readonly meta: boolean;
|
|
644
654
|
readonly originalEvent: MouseEvent;
|
|
645
655
|
}
|
|
646
|
-
|
|
656
|
+
interface CalendarEventRightClickArgs {
|
|
647
657
|
readonly e: DayPilot.Event;
|
|
648
658
|
preventDefault(): void;
|
|
649
659
|
}
|
|
650
|
-
|
|
660
|
+
interface CalendarEventRightClickedArgs {
|
|
651
661
|
readonly e: DayPilot.Event;
|
|
652
662
|
}
|
|
653
|
-
|
|
663
|
+
interface CalendarEventDeleteArgs {
|
|
654
664
|
readonly e: DayPilot.Event;
|
|
655
665
|
readonly control: DayPilot.Calendar;
|
|
656
666
|
preventDefault(): void;
|
|
657
667
|
}
|
|
658
|
-
|
|
668
|
+
interface CalendarEventDeletedArgs {
|
|
659
669
|
readonly e: DayPilot.Event;
|
|
660
670
|
readonly control: DayPilot.Calendar;
|
|
661
671
|
}
|
|
662
|
-
|
|
672
|
+
interface CalendarEventMoveArgs {
|
|
663
673
|
readonly e: DayPilot.Event;
|
|
664
674
|
readonly control: DayPilot.Calendar;
|
|
665
675
|
readonly newStart: DayPilot.Date;
|
|
@@ -669,7 +679,7 @@ export declare namespace DayPilot {
|
|
|
669
679
|
readonly shift: boolean;
|
|
670
680
|
preventDefault(): void;
|
|
671
681
|
}
|
|
672
|
-
|
|
682
|
+
interface CalendarEventMovedArgs {
|
|
673
683
|
readonly e: DayPilot.Event;
|
|
674
684
|
readonly control: DayPilot.Calendar;
|
|
675
685
|
readonly newStart: DayPilot.Date;
|
|
@@ -678,20 +688,20 @@ export declare namespace DayPilot {
|
|
|
678
688
|
readonly ctrl: boolean;
|
|
679
689
|
readonly shift: boolean;
|
|
680
690
|
}
|
|
681
|
-
|
|
691
|
+
interface CalendarEventResizeArgs {
|
|
682
692
|
readonly e: DayPilot.Event;
|
|
683
693
|
readonly control: DayPilot.Calendar;
|
|
684
694
|
readonly newStart: DayPilot.Date;
|
|
685
695
|
readonly newEnd: DayPilot.Date;
|
|
686
696
|
preventDefault(): void;
|
|
687
697
|
}
|
|
688
|
-
|
|
698
|
+
interface CalendarEventResizedArgs {
|
|
689
699
|
readonly e: DayPilot.Event;
|
|
690
700
|
readonly control: DayPilot.Calendar;
|
|
691
701
|
readonly newStart: DayPilot.Date;
|
|
692
702
|
readonly newEnd: DayPilot.Date;
|
|
693
703
|
}
|
|
694
|
-
|
|
704
|
+
interface CalendarHeaderClickArgs {
|
|
695
705
|
readonly column: Column;
|
|
696
706
|
readonly originalEvent: MouseEvent;
|
|
697
707
|
readonly shift: boolean;
|
|
@@ -699,33 +709,33 @@ export declare namespace DayPilot {
|
|
|
699
709
|
readonly ctrl: boolean;
|
|
700
710
|
preventDefault(): void;
|
|
701
711
|
}
|
|
702
|
-
|
|
712
|
+
interface CalendarHeaderClickedArgs {
|
|
703
713
|
readonly column: Column;
|
|
704
714
|
readonly originalEvent: MouseEvent;
|
|
705
715
|
readonly shift: boolean;
|
|
706
716
|
readonly meta: boolean;
|
|
707
717
|
readonly ctrl: boolean;
|
|
708
718
|
}
|
|
709
|
-
|
|
719
|
+
interface CalendarTimeRangeSelectArgs {
|
|
710
720
|
readonly start: DayPilot.Date;
|
|
711
721
|
readonly end: DayPilot.Date;
|
|
712
722
|
readonly resource: ResourceId;
|
|
713
723
|
readonly control: DayPilot.Calendar;
|
|
714
724
|
preventDefault(): void;
|
|
715
725
|
}
|
|
716
|
-
|
|
726
|
+
interface CalendarTimeRangeSelectedArgs {
|
|
717
727
|
readonly start: DayPilot.Date;
|
|
718
728
|
readonly end: DayPilot.Date;
|
|
719
729
|
readonly resource: ResourceId;
|
|
720
730
|
readonly control: DayPilot.Calendar;
|
|
721
731
|
}
|
|
722
|
-
|
|
732
|
+
class Column {
|
|
723
733
|
readonly id: ResourceId;
|
|
724
734
|
readonly start: DayPilot.Date;
|
|
725
735
|
readonly name: string;
|
|
726
736
|
readonly data: CalendarColumnData;
|
|
727
737
|
}
|
|
728
|
-
|
|
738
|
+
class MonthPropsAndEvents {
|
|
729
739
|
backendUrl?: string;
|
|
730
740
|
cellHeaderClickHandling?: "Enabled" | "Disabled";
|
|
731
741
|
cellHeaderHeight?: number;
|
|
@@ -772,10 +782,10 @@ export declare namespace DayPilot {
|
|
|
772
782
|
onTimeRangeSelect?: EventHandler<MonthTimeRangeSelectArgs>;
|
|
773
783
|
onTimeRangeSelected?: EventHandler<MonthTimeRangeSelectedArgs>;
|
|
774
784
|
}
|
|
775
|
-
|
|
785
|
+
class MonthConfig extends MonthPropsAndEvents {
|
|
776
786
|
events?: EventData[];
|
|
777
787
|
}
|
|
778
|
-
|
|
788
|
+
class Month extends MonthPropsAndEvents {
|
|
779
789
|
v: string;
|
|
780
790
|
events: {
|
|
781
791
|
list: EventData[];
|
|
@@ -805,15 +815,15 @@ export declare namespace DayPilot {
|
|
|
805
815
|
visibleStart(): DayPilot.Date;
|
|
806
816
|
visibleEnd(): DayPilot.Date;
|
|
807
817
|
}
|
|
808
|
-
|
|
818
|
+
interface MonthAfterEventRenderArgs {
|
|
809
819
|
readonly e: DayPilot.Event;
|
|
810
820
|
readonly div: HTMLElement;
|
|
811
821
|
}
|
|
812
|
-
|
|
822
|
+
interface MonthBeforeEventRenderArgs {
|
|
813
823
|
readonly control: DayPilot.Month;
|
|
814
824
|
readonly data: EventData;
|
|
815
825
|
}
|
|
816
|
-
|
|
826
|
+
interface MonthBeforeCellRenderArgs {
|
|
817
827
|
readonly control: DayPilot.Month;
|
|
818
828
|
readonly cell: {
|
|
819
829
|
readonly start: DayPilot.Date;
|
|
@@ -826,18 +836,18 @@ export declare namespace DayPilot {
|
|
|
826
836
|
};
|
|
827
837
|
};
|
|
828
838
|
}
|
|
829
|
-
|
|
839
|
+
interface MonthCellHeaderClickArgs {
|
|
830
840
|
readonly control: DayPilot.Month;
|
|
831
841
|
readonly start: DayPilot.Date;
|
|
832
842
|
readonly end: DayPilot.Date;
|
|
833
843
|
preventDefault(): void;
|
|
834
844
|
}
|
|
835
|
-
|
|
845
|
+
interface MonthCellHeaderClickedArgs {
|
|
836
846
|
readonly control: DayPilot.Month;
|
|
837
847
|
readonly start: DayPilot.Date;
|
|
838
848
|
readonly end: DayPilot.Date;
|
|
839
849
|
}
|
|
840
|
-
|
|
850
|
+
interface MonthEventClickArgs {
|
|
841
851
|
readonly e: DayPilot.Event;
|
|
842
852
|
readonly control: DayPilot.Month;
|
|
843
853
|
readonly div: HTMLElement;
|
|
@@ -846,7 +856,7 @@ export declare namespace DayPilot {
|
|
|
846
856
|
readonly ctrl: boolean;
|
|
847
857
|
preventDefault(): void;
|
|
848
858
|
}
|
|
849
|
-
|
|
859
|
+
interface MonthEventClickedArgs {
|
|
850
860
|
readonly e: DayPilot.Event;
|
|
851
861
|
readonly control: DayPilot.Month;
|
|
852
862
|
readonly div: HTMLElement;
|
|
@@ -854,23 +864,23 @@ export declare namespace DayPilot {
|
|
|
854
864
|
readonly meta: boolean;
|
|
855
865
|
readonly ctrl: boolean;
|
|
856
866
|
}
|
|
857
|
-
|
|
867
|
+
interface MonthEventRightClickArgs {
|
|
858
868
|
readonly e: DayPilot.Event;
|
|
859
869
|
preventDefault(): void;
|
|
860
870
|
}
|
|
861
|
-
|
|
871
|
+
interface MonthEventRightClickedArgs {
|
|
862
872
|
readonly e: DayPilot.Event;
|
|
863
873
|
}
|
|
864
|
-
|
|
874
|
+
interface MonthEventDeleteArgs {
|
|
865
875
|
readonly e: DayPilot.Event;
|
|
866
876
|
readonly control: DayPilot.Month;
|
|
867
877
|
preventDefault(): void;
|
|
868
878
|
}
|
|
869
|
-
|
|
879
|
+
interface MonthEventDeletedArgs {
|
|
870
880
|
readonly e: DayPilot.Event;
|
|
871
881
|
readonly control: DayPilot.Month;
|
|
872
882
|
}
|
|
873
|
-
|
|
883
|
+
interface MonthEventMoveArgs {
|
|
874
884
|
readonly e: DayPilot.Event;
|
|
875
885
|
readonly control: DayPilot.Month;
|
|
876
886
|
readonly newStart: DayPilot.Date;
|
|
@@ -879,7 +889,7 @@ export declare namespace DayPilot {
|
|
|
879
889
|
readonly shift: boolean;
|
|
880
890
|
preventDefault(): void;
|
|
881
891
|
}
|
|
882
|
-
|
|
892
|
+
interface MonthEventMovedArgs {
|
|
883
893
|
readonly e: DayPilot.Event;
|
|
884
894
|
readonly control: DayPilot.Month;
|
|
885
895
|
readonly newStart: DayPilot.Date;
|
|
@@ -887,31 +897,31 @@ export declare namespace DayPilot {
|
|
|
887
897
|
readonly ctrl: boolean;
|
|
888
898
|
readonly shift: boolean;
|
|
889
899
|
}
|
|
890
|
-
|
|
900
|
+
interface MonthEventResizeArgs {
|
|
891
901
|
readonly e: DayPilot.Event;
|
|
892
902
|
readonly control: DayPilot.Month;
|
|
893
903
|
readonly newStart: DayPilot.Date;
|
|
894
904
|
readonly newEnd: DayPilot.Date;
|
|
895
905
|
preventDefault(): void;
|
|
896
906
|
}
|
|
897
|
-
|
|
907
|
+
interface MonthEventResizedArgs {
|
|
898
908
|
readonly e: DayPilot.Event;
|
|
899
909
|
readonly control: DayPilot.Month;
|
|
900
910
|
readonly newStart: DayPilot.Date;
|
|
901
911
|
readonly newEnd: DayPilot.Date;
|
|
902
912
|
}
|
|
903
|
-
|
|
913
|
+
interface MonthTimeRangeSelectArgs {
|
|
904
914
|
readonly control: DayPilot.Month;
|
|
905
915
|
readonly start: DayPilot.Date;
|
|
906
916
|
readonly end: DayPilot.Date;
|
|
907
917
|
preventDefault(): void;
|
|
908
918
|
}
|
|
909
|
-
|
|
919
|
+
interface MonthTimeRangeSelectedArgs {
|
|
910
920
|
readonly control: DayPilot.Month;
|
|
911
921
|
readonly start: DayPilot.Date;
|
|
912
922
|
readonly end: DayPilot.Date;
|
|
913
923
|
}
|
|
914
|
-
|
|
924
|
+
class NavigatorPropsAndEvents {
|
|
915
925
|
autoFocusOnClick?: boolean;
|
|
916
926
|
cellHeight?: number;
|
|
917
927
|
cellWidth?: number;
|
|
@@ -951,14 +961,14 @@ export declare namespace DayPilot {
|
|
|
951
961
|
onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
|
|
952
962
|
onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
|
|
953
963
|
}
|
|
954
|
-
|
|
964
|
+
class NavigatorConfig extends NavigatorPropsAndEvents {
|
|
955
965
|
events?: EventData[];
|
|
956
966
|
}
|
|
957
|
-
|
|
967
|
+
interface NavigatorSelectOptions {
|
|
958
968
|
dontFocus?: boolean;
|
|
959
969
|
dontNotify?: boolean;
|
|
960
970
|
}
|
|
961
|
-
|
|
971
|
+
class Navigator extends NavigatorPropsAndEvents {
|
|
962
972
|
v: string;
|
|
963
973
|
events: {
|
|
964
974
|
list: EventDataShort[];
|
|
@@ -975,7 +985,7 @@ export declare namespace DayPilot {
|
|
|
975
985
|
visibleEnd(): DayPilot.Date;
|
|
976
986
|
visibleStart(): DayPilot.Date;
|
|
977
987
|
}
|
|
978
|
-
|
|
988
|
+
interface NavigatorBeforeCellRenderArgs {
|
|
979
989
|
readonly cell: {
|
|
980
990
|
readonly day: DayPilot.Date;
|
|
981
991
|
readonly isCurrentMonth: boolean;
|
|
@@ -988,7 +998,7 @@ export declare namespace DayPilot {
|
|
|
988
998
|
};
|
|
989
999
|
};
|
|
990
1000
|
}
|
|
991
|
-
|
|
1001
|
+
interface NavigatorTimeRangeSelectArgs {
|
|
992
1002
|
readonly start: DayPilot.Date;
|
|
993
1003
|
readonly end: DayPilot.Date;
|
|
994
1004
|
readonly day: DayPilot.Date;
|
|
@@ -996,26 +1006,26 @@ export declare namespace DayPilot {
|
|
|
996
1006
|
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
997
1007
|
preventDefault(): void;
|
|
998
1008
|
}
|
|
999
|
-
|
|
1009
|
+
interface NavigatorTimeRangeSelectedArgs {
|
|
1000
1010
|
readonly start: DayPilot.Date;
|
|
1001
1011
|
readonly end: DayPilot.Date;
|
|
1002
1012
|
readonly day: DayPilot.Date;
|
|
1003
1013
|
readonly days: number;
|
|
1004
1014
|
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
1005
1015
|
}
|
|
1006
|
-
|
|
1016
|
+
interface NavigatorTodayClickArgs {
|
|
1007
1017
|
preventDefault(): void;
|
|
1008
1018
|
}
|
|
1009
|
-
|
|
1019
|
+
interface NavigatorVisibleRangeChangeArgs {
|
|
1010
1020
|
readonly start: DayPilot.Date;
|
|
1011
1021
|
readonly end: DayPilot.Date;
|
|
1012
1022
|
preventDefault(): void;
|
|
1013
1023
|
}
|
|
1014
|
-
|
|
1024
|
+
interface NavigatorVisibleRangeChangedArgs {
|
|
1015
1025
|
readonly start: DayPilot.Date;
|
|
1016
1026
|
readonly end: DayPilot.Date;
|
|
1017
1027
|
}
|
|
1018
|
-
|
|
1028
|
+
class DatePickerPropsAndEvents {
|
|
1019
1029
|
date?: DayPilot.Date | string;
|
|
1020
1030
|
locale?: string | DayPilot.Locale;
|
|
1021
1031
|
pattern?: string;
|
|
@@ -1030,26 +1040,26 @@ export declare namespace DayPilot {
|
|
|
1030
1040
|
onTimeRangeSelect?: EventHandler<DatePickerTimeRangeSelectArgs>;
|
|
1031
1041
|
onTimeRangeSelected?: EventHandler<DatePickerTimeRangeSelectedArgs>;
|
|
1032
1042
|
}
|
|
1033
|
-
|
|
1043
|
+
class DatePickerConfig extends DatePickerPropsAndEvents {
|
|
1034
1044
|
}
|
|
1035
|
-
|
|
1045
|
+
class DatePicker extends DatePickerPropsAndEvents {
|
|
1036
1046
|
constructor(options?: DatePickerConfig);
|
|
1037
1047
|
close(): void;
|
|
1038
1048
|
init(): void;
|
|
1039
1049
|
select(): void;
|
|
1040
1050
|
show(): void;
|
|
1041
1051
|
}
|
|
1042
|
-
|
|
1052
|
+
interface DatePickerShowArgs {
|
|
1043
1053
|
[key: string]: never;
|
|
1044
1054
|
}
|
|
1045
|
-
|
|
1055
|
+
interface DatePickerTimeRangeSelectArgs {
|
|
1046
1056
|
readonly date: DayPilot.Date;
|
|
1047
1057
|
preventDefault(): void;
|
|
1048
1058
|
}
|
|
1049
|
-
|
|
1059
|
+
interface DatePickerTimeRangeSelectedArgs {
|
|
1050
1060
|
readonly date: DayPilot.Date;
|
|
1051
1061
|
}
|
|
1052
|
-
|
|
1062
|
+
class Locale {
|
|
1053
1063
|
datePattern: string;
|
|
1054
1064
|
dateTimePattern: string;
|
|
1055
1065
|
dayNames: string[];
|
|
@@ -1073,39 +1083,40 @@ export declare namespace DayPilot {
|
|
|
1073
1083
|
static register(locale: DayPilot.Locale): void;
|
|
1074
1084
|
static find(id: string): DayPilot.Locale;
|
|
1075
1085
|
}
|
|
1076
|
-
|
|
1086
|
+
class MenuPropsAndEvents {
|
|
1077
1087
|
hideOnMouseOut?: boolean;
|
|
1078
1088
|
items?: MenuItemData[];
|
|
1079
1089
|
menuTitle?: string;
|
|
1080
1090
|
onShow?: EventHandler<MenuShowArgs>;
|
|
1081
1091
|
onHide?: EventHandler<MenuHideArgs>;
|
|
1092
|
+
rtl?: boolean;
|
|
1082
1093
|
showMenuTitle?: boolean;
|
|
1083
1094
|
zIndex?: number;
|
|
1084
1095
|
theme?: string;
|
|
1085
1096
|
}
|
|
1086
|
-
|
|
1097
|
+
class MenuConfig extends MenuPropsAndEvents {
|
|
1087
1098
|
}
|
|
1088
|
-
|
|
1099
|
+
class Menu extends MenuPropsAndEvents {
|
|
1089
1100
|
v: string;
|
|
1090
1101
|
constructor(options?: MenuConfig);
|
|
1091
1102
|
show(target?: any): void;
|
|
1092
1103
|
hide(): void;
|
|
1093
1104
|
static hide(): void;
|
|
1094
1105
|
}
|
|
1095
|
-
|
|
1106
|
+
interface MenuShowArgs {
|
|
1096
1107
|
readonly source: any;
|
|
1097
1108
|
readonly menu: DayPilot.Menu;
|
|
1098
1109
|
preventDefault(): void;
|
|
1099
1110
|
}
|
|
1100
|
-
|
|
1111
|
+
interface MenuHideArgs {
|
|
1101
1112
|
}
|
|
1102
|
-
|
|
1113
|
+
class MenuBar {
|
|
1103
1114
|
items: any[];
|
|
1104
1115
|
constructor(id: string, options?: any);
|
|
1105
1116
|
init(): void;
|
|
1106
1117
|
dispose(): void;
|
|
1107
1118
|
}
|
|
1108
|
-
|
|
1119
|
+
interface MenuItemData {
|
|
1109
1120
|
action?: "CallBack" | "PostBack";
|
|
1110
1121
|
command?: string;
|
|
1111
1122
|
cssClass?: string;
|
|
@@ -1122,24 +1133,24 @@ export declare namespace DayPilot {
|
|
|
1122
1133
|
text?: string;
|
|
1123
1134
|
html?: string;
|
|
1124
1135
|
}
|
|
1125
|
-
|
|
1136
|
+
interface MenuItemClickArgs {
|
|
1126
1137
|
readonly item: MenuItemData;
|
|
1127
1138
|
readonly source: any;
|
|
1128
1139
|
readonly originalEvent: MouseEvent;
|
|
1129
1140
|
preventDefault(): void;
|
|
1130
1141
|
}
|
|
1131
|
-
|
|
1142
|
+
class SwitcherPropsAndEvents {
|
|
1132
1143
|
selectedClass?: string;
|
|
1133
1144
|
syncScrollbar?: boolean;
|
|
1134
1145
|
onChange?: EventHandler<SwitcherChangeArgs>;
|
|
1135
1146
|
onChanged?: EventHandler<SwitcherChangedArgs>;
|
|
1136
1147
|
onSelect?: EventHandler<SwitcherSelectArgs>;
|
|
1137
1148
|
}
|
|
1138
|
-
|
|
1149
|
+
class SwitcherConfig extends SwitcherPropsAndEvents {
|
|
1139
1150
|
triggers?: SwitcherTrigger[];
|
|
1140
1151
|
navigator?: DayPilot.Navigator;
|
|
1141
1152
|
}
|
|
1142
|
-
|
|
1153
|
+
class Switcher extends SwitcherPropsAndEvents {
|
|
1143
1154
|
constructor(options?: SwitcherConfig);
|
|
1144
1155
|
readonly active: SwitcherView;
|
|
1145
1156
|
addTrigger(id: string | HTMLElement, view: SwitcherViewControl): void;
|
|
@@ -1155,32 +1166,32 @@ export declare namespace DayPilot {
|
|
|
1155
1166
|
}) => void): void;
|
|
1156
1167
|
};
|
|
1157
1168
|
}
|
|
1158
|
-
|
|
1169
|
+
interface SwitcherView {
|
|
1159
1170
|
control: SwitcherViewControl;
|
|
1160
1171
|
}
|
|
1161
|
-
|
|
1172
|
+
interface SwitcherTrigger {
|
|
1162
1173
|
id: string | HTMLElement;
|
|
1163
1174
|
view: SwitcherViewControl;
|
|
1164
1175
|
}
|
|
1165
|
-
|
|
1176
|
+
interface SwitcherChangeArgs {
|
|
1166
1177
|
readonly start: DayPilot.Date;
|
|
1167
1178
|
readonly end: DayPilot.Date;
|
|
1168
1179
|
readonly day: DayPilot.Date;
|
|
1169
1180
|
readonly target: SwitcherView;
|
|
1170
1181
|
preventDefault(): void;
|
|
1171
1182
|
}
|
|
1172
|
-
|
|
1183
|
+
interface SwitcherChangedArgs {
|
|
1173
1184
|
readonly start: DayPilot.Date;
|
|
1174
1185
|
readonly end: DayPilot.Date;
|
|
1175
1186
|
readonly day: DayPilot.Date;
|
|
1176
1187
|
readonly target: SwitcherView;
|
|
1177
1188
|
}
|
|
1178
|
-
|
|
1189
|
+
interface SwitcherSelectArgs {
|
|
1179
1190
|
readonly source: HTMLElement;
|
|
1180
1191
|
readonly target: SwitcherViewControl;
|
|
1181
1192
|
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1193
|
+
type SwitcherViewControl = DayPilot.Calendar | DayPilot.Month;
|
|
1194
|
+
class Date {
|
|
1184
1195
|
constructor(str?: string | DayPilot.Date);
|
|
1185
1196
|
constructor(date: GlobalDate, isLocal?: boolean);
|
|
1186
1197
|
addDays(days: number): DayPilot.Date;
|
|
@@ -1205,7 +1216,6 @@ export declare namespace DayPilot {
|
|
|
1205
1216
|
getDatePart(): DayPilot.Date;
|
|
1206
1217
|
getDay(): number;
|
|
1207
1218
|
getDayOfWeek(): number;
|
|
1208
|
-
getYear(): number;
|
|
1209
1219
|
getHours(): number;
|
|
1210
1220
|
getMilliseconds(): number;
|
|
1211
1221
|
getMinutes(): number;
|
|
@@ -1228,20 +1238,20 @@ export declare namespace DayPilot {
|
|
|
1228
1238
|
static now(): DayPilot.Date;
|
|
1229
1239
|
static Cache: DateCache;
|
|
1230
1240
|
}
|
|
1231
|
-
|
|
1241
|
+
class DateCache {
|
|
1232
1242
|
static clear(): void;
|
|
1233
1243
|
}
|
|
1234
|
-
|
|
1244
|
+
class Util {
|
|
1235
1245
|
static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
|
|
1236
1246
|
static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
|
|
1237
1247
|
static escapeHtml(text: string): string;
|
|
1238
1248
|
}
|
|
1239
|
-
|
|
1249
|
+
class ColorUtil {
|
|
1240
1250
|
static darker(color: string, steps?: number): string;
|
|
1241
1251
|
static lighter(color: string, steps?: number): string;
|
|
1242
1252
|
static contrasting(color: string, light?: string, dark?: string): string;
|
|
1243
1253
|
}
|
|
1244
|
-
|
|
1254
|
+
class Http {
|
|
1245
1255
|
static get<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1246
1256
|
static post<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1247
1257
|
static put<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
@@ -1249,8 +1259,16 @@ export declare namespace DayPilot {
|
|
|
1249
1259
|
static delete<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1250
1260
|
}
|
|
1251
1261
|
namespace Http {
|
|
1252
|
-
|
|
1253
|
-
|
|
1262
|
+
interface RequestParams {
|
|
1263
|
+
contentType?: string;
|
|
1264
|
+
headers?: Record<string, string>;
|
|
1265
|
+
}
|
|
1266
|
+
interface Result<T = any> {
|
|
1267
|
+
request: XMLHttpRequest;
|
|
1268
|
+
data?: T;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
class Duration {
|
|
1254
1272
|
ticks: number;
|
|
1255
1273
|
constructor(ticks: number);
|
|
1256
1274
|
constructor(start: DayPilot.Date | string, end: DayPilot.Date | string);
|
|
@@ -1272,7 +1290,7 @@ export declare namespace DayPilot {
|
|
|
1272
1290
|
static ofMinutes(i: number): DayPilot.Duration;
|
|
1273
1291
|
static ofSeconds(i: number): DayPilot.Duration;
|
|
1274
1292
|
}
|
|
1275
|
-
|
|
1293
|
+
class Event {
|
|
1276
1294
|
data: any;
|
|
1277
1295
|
constructor(data: EventData);
|
|
1278
1296
|
start(): DayPilot.Date;
|
|
@@ -1289,16 +1307,16 @@ export declare namespace DayPilot {
|
|
|
1289
1307
|
tag(name: string): any;
|
|
1290
1308
|
duration(): DayPilot.Duration;
|
|
1291
1309
|
}
|
|
1292
|
-
|
|
1310
|
+
class Selection {
|
|
1293
1311
|
start: DayPilot.Date;
|
|
1294
1312
|
end: DayPilot.Date;
|
|
1295
|
-
resource
|
|
1313
|
+
resource?: ResourceId;
|
|
1296
1314
|
}
|
|
1297
|
-
|
|
1315
|
+
interface EventDataShort {
|
|
1298
1316
|
start: string | DayPilot.Date;
|
|
1299
1317
|
end: string | DayPilot.Date;
|
|
1300
1318
|
}
|
|
1301
|
-
|
|
1319
|
+
interface EventData {
|
|
1302
1320
|
start: string | DayPilot.Date;
|
|
1303
1321
|
end: string | DayPilot.Date;
|
|
1304
1322
|
id: EventId;
|
|
@@ -1318,7 +1336,7 @@ export declare namespace DayPilot {
|
|
|
1318
1336
|
tags?: any;
|
|
1319
1337
|
toolTip?: string;
|
|
1320
1338
|
}
|
|
1321
|
-
|
|
1339
|
+
interface AreaData {
|
|
1322
1340
|
action?: "Default" | "None" | "ContextMenu" | "ResizeEnd" | "ResizeStart" | "Move";
|
|
1323
1341
|
backColor?: string;
|
|
1324
1342
|
background?: string;
|
|
@@ -1332,6 +1350,7 @@ export declare namespace DayPilot {
|
|
|
1332
1350
|
borderRadius?: number | string;
|
|
1333
1351
|
bottom?: number | string;
|
|
1334
1352
|
cssClass?: string;
|
|
1353
|
+
cursor?: string;
|
|
1335
1354
|
fontColor?: string;
|
|
1336
1355
|
height?: number | string;
|
|
1337
1356
|
horizontalAlignment?: HorizontalAlignment;
|
|
@@ -1356,16 +1375,16 @@ export declare namespace DayPilot {
|
|
|
1356
1375
|
visibility?: "Hover" | "Visible" | "TouchVisible";
|
|
1357
1376
|
width?: number | string;
|
|
1358
1377
|
}
|
|
1359
|
-
|
|
1360
|
-
|
|
1378
|
+
function guid(): string;
|
|
1379
|
+
interface EventHandler<T> {
|
|
1361
1380
|
(args: T): void;
|
|
1362
1381
|
}
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1382
|
+
type ResourceId = string | number;
|
|
1383
|
+
type EventId = string | number;
|
|
1384
|
+
type AreaId = string | number;
|
|
1385
|
+
type HorizontalAlignment = "right" | "center" | "left";
|
|
1386
|
+
type VerticalAlignment = "top" | "center" | "bottom";
|
|
1387
|
+
class ModalPropsAndEvents {
|
|
1369
1388
|
autoFocus?: boolean;
|
|
1370
1389
|
autoStretch?: boolean;
|
|
1371
1390
|
autoStretchFirstLoadOnly?: boolean;
|
|
@@ -1393,9 +1412,9 @@ export declare namespace DayPilot {
|
|
|
1393
1412
|
onClosed?: EventHandler<ModalClosedArgs>;
|
|
1394
1413
|
onShow?: EventHandler<ModalShowArgs>;
|
|
1395
1414
|
}
|
|
1396
|
-
|
|
1415
|
+
class ModalConfig extends ModalPropsAndEvents {
|
|
1397
1416
|
}
|
|
1398
|
-
|
|
1417
|
+
class Modal extends ModalPropsAndEvents {
|
|
1399
1418
|
constructor(options?: ModalConfig);
|
|
1400
1419
|
close(result?: any): void;
|
|
1401
1420
|
closeSerialized(): void;
|
|
@@ -1409,38 +1428,38 @@ export declare namespace DayPilot {
|
|
|
1409
1428
|
static confirm(message: string, options?: ModalConfirmConfig): Promise<ModalClosedArgs>;
|
|
1410
1429
|
static form(form?: ModalFormItem[], data?: any, options?: ModalFormConfig): Promise<ModalClosedArgs>;
|
|
1411
1430
|
}
|
|
1412
|
-
|
|
1431
|
+
class ModalAlertConfig extends ModalConfig {
|
|
1413
1432
|
okText?: string;
|
|
1414
1433
|
}
|
|
1415
|
-
|
|
1434
|
+
class ModalConfirmConfig extends ModalConfig {
|
|
1416
1435
|
okText?: string;
|
|
1417
1436
|
cancelText?: string;
|
|
1418
1437
|
}
|
|
1419
|
-
|
|
1438
|
+
class ModalPromptConfig extends ModalConfig {
|
|
1420
1439
|
okText?: string;
|
|
1421
1440
|
cancelText?: string;
|
|
1422
1441
|
}
|
|
1423
|
-
|
|
1442
|
+
class ModalFormConfig extends ModalConfig {
|
|
1424
1443
|
okText?: string;
|
|
1425
1444
|
cancelText?: string;
|
|
1426
1445
|
locale?: string;
|
|
1427
1446
|
plugins?: any;
|
|
1428
1447
|
}
|
|
1429
|
-
|
|
1448
|
+
interface ModalCloseArgs {
|
|
1430
1449
|
canceled: boolean;
|
|
1431
1450
|
result: any;
|
|
1432
1451
|
backgroundClick: boolean;
|
|
1433
1452
|
preventDefault(): void;
|
|
1434
1453
|
}
|
|
1435
|
-
|
|
1454
|
+
interface ModalClosedArgs {
|
|
1436
1455
|
canceled: boolean;
|
|
1437
1456
|
result: any;
|
|
1438
1457
|
backgroundClick: boolean;
|
|
1439
1458
|
}
|
|
1440
|
-
|
|
1459
|
+
interface ModalShowArgs {
|
|
1441
1460
|
root: Node;
|
|
1442
1461
|
}
|
|
1443
|
-
|
|
1462
|
+
interface ModalFormItem {
|
|
1444
1463
|
id?: string;
|
|
1445
1464
|
name?: string;
|
|
1446
1465
|
type?: "text" | "date" | "searchable" | "select" | "radio" | "checkbox" | "table" | "title" | "image" | "html" | "textarea" | "scrollable" | string;
|
|
@@ -1457,27 +1476,26 @@ export declare namespace DayPilot {
|
|
|
1457
1476
|
text?: string;
|
|
1458
1477
|
html?: string;
|
|
1459
1478
|
}
|
|
1460
|
-
|
|
1479
|
+
interface ModalFormOption {
|
|
1461
1480
|
id: string | number;
|
|
1462
1481
|
name?: string;
|
|
1463
1482
|
children?: ModalFormItem[];
|
|
1464
1483
|
}
|
|
1465
|
-
|
|
1484
|
+
interface ModalFormTableColumns {
|
|
1466
1485
|
id: string;
|
|
1467
1486
|
name: string;
|
|
1468
1487
|
type?: "text" | "number" | "select";
|
|
1469
1488
|
options?: ModalFormOption[];
|
|
1470
1489
|
}
|
|
1471
|
-
|
|
1490
|
+
interface ModalFormItemValidationArgs {
|
|
1472
1491
|
value: any;
|
|
1473
1492
|
result: any;
|
|
1474
1493
|
valid: boolean;
|
|
1475
1494
|
message: string;
|
|
1476
1495
|
}
|
|
1477
|
-
|
|
1496
|
+
interface ModalFormTableItemNewRowArgs {
|
|
1478
1497
|
value: any;
|
|
1479
1498
|
result: any;
|
|
1480
1499
|
}
|
|
1481
|
-
export {};
|
|
1482
1500
|
}
|
|
1483
1501
|
export {};
|