@daypilot/daypilot-lite-angular 5.4.1 → 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
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;
|
|
@@ -283,7 +283,7 @@ export declare namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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 namespace 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;
|
|
@@ -530,11 +530,11 @@ export declare namespace DayPilot {
|
|
|
530
530
|
onTimeRangeSelect?: EventHandler<CalendarTimeRangeSelectArgs>;
|
|
531
531
|
onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
|
|
532
532
|
}
|
|
533
|
-
|
|
533
|
+
class CalendarConfig extends CalendarPropsAndEvents {
|
|
534
534
|
columns?: CalendarColumnData[];
|
|
535
535
|
events?: EventData[];
|
|
536
536
|
}
|
|
537
|
-
|
|
537
|
+
class Calendar extends CalendarPropsAndEvents {
|
|
538
538
|
v: string;
|
|
539
539
|
columns: {
|
|
540
540
|
list: CalendarColumnData[];
|
|
@@ -577,7 +577,7 @@ export declare namespace DayPilot {
|
|
|
577
577
|
visibleStart(): DayPilot.Date;
|
|
578
578
|
visibleEnd(): DayPilot.Date;
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
interface CalendarColumnData {
|
|
581
581
|
name: string;
|
|
582
582
|
id?: ResourceId;
|
|
583
583
|
start?: DayPilot.Date | string;
|
|
@@ -585,11 +585,11 @@ export declare namespace DayPilot {
|
|
|
585
585
|
toolTip?: string;
|
|
586
586
|
tags?: any;
|
|
587
587
|
}
|
|
588
|
-
|
|
588
|
+
interface CalendarAfterEventRenderArgs {
|
|
589
589
|
readonly e: DayPilot.Event;
|
|
590
590
|
readonly div: HTMLElement;
|
|
591
591
|
}
|
|
592
|
-
|
|
592
|
+
interface CalendarBeforeCellRenderArgs {
|
|
593
593
|
readonly cell: {
|
|
594
594
|
readonly start: DayPilot.Date;
|
|
595
595
|
readonly end: DayPilot.Date;
|
|
@@ -608,11 +608,11 @@ export declare namespace DayPilot {
|
|
|
608
608
|
};
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
interface CalendarBeforeEventRenderArgs {
|
|
612
612
|
readonly control: DayPilot.Calendar;
|
|
613
613
|
readonly data: EventData;
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
interface CalendarBeforeHeaderRenderArgs {
|
|
616
616
|
readonly header: {
|
|
617
617
|
readonly id: ResourceId;
|
|
618
618
|
readonly start: DayPilot.Date;
|
|
@@ -628,7 +628,7 @@ export declare namespace DayPilot {
|
|
|
628
628
|
};
|
|
629
629
|
readonly column: Column;
|
|
630
630
|
}
|
|
631
|
-
|
|
631
|
+
interface CalendarEventClickArgs {
|
|
632
632
|
readonly e: DayPilot.Event;
|
|
633
633
|
readonly control: DayPilot.Calendar;
|
|
634
634
|
readonly ctrl: boolean;
|
|
@@ -636,30 +636,30 @@ export declare namespace DayPilot {
|
|
|
636
636
|
readonly originalEvent: MouseEvent;
|
|
637
637
|
preventDefault(): void;
|
|
638
638
|
}
|
|
639
|
-
|
|
639
|
+
interface CalendarEventClickedArgs {
|
|
640
640
|
readonly e: DayPilot.Event;
|
|
641
641
|
readonly control: DayPilot.Calendar;
|
|
642
642
|
readonly ctrl: boolean;
|
|
643
643
|
readonly meta: boolean;
|
|
644
644
|
readonly originalEvent: MouseEvent;
|
|
645
645
|
}
|
|
646
|
-
|
|
646
|
+
interface CalendarEventRightClickArgs {
|
|
647
647
|
readonly e: DayPilot.Event;
|
|
648
648
|
preventDefault(): void;
|
|
649
649
|
}
|
|
650
|
-
|
|
650
|
+
interface CalendarEventRightClickedArgs {
|
|
651
651
|
readonly e: DayPilot.Event;
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
interface CalendarEventDeleteArgs {
|
|
654
654
|
readonly e: DayPilot.Event;
|
|
655
655
|
readonly control: DayPilot.Calendar;
|
|
656
656
|
preventDefault(): void;
|
|
657
657
|
}
|
|
658
|
-
|
|
658
|
+
interface CalendarEventDeletedArgs {
|
|
659
659
|
readonly e: DayPilot.Event;
|
|
660
660
|
readonly control: DayPilot.Calendar;
|
|
661
661
|
}
|
|
662
|
-
|
|
662
|
+
interface CalendarEventMoveArgs {
|
|
663
663
|
readonly e: DayPilot.Event;
|
|
664
664
|
readonly control: DayPilot.Calendar;
|
|
665
665
|
readonly newStart: DayPilot.Date;
|
|
@@ -669,7 +669,7 @@ export declare namespace DayPilot {
|
|
|
669
669
|
readonly shift: boolean;
|
|
670
670
|
preventDefault(): void;
|
|
671
671
|
}
|
|
672
|
-
|
|
672
|
+
interface CalendarEventMovedArgs {
|
|
673
673
|
readonly e: DayPilot.Event;
|
|
674
674
|
readonly control: DayPilot.Calendar;
|
|
675
675
|
readonly newStart: DayPilot.Date;
|
|
@@ -678,20 +678,20 @@ export declare namespace DayPilot {
|
|
|
678
678
|
readonly ctrl: boolean;
|
|
679
679
|
readonly shift: boolean;
|
|
680
680
|
}
|
|
681
|
-
|
|
681
|
+
interface CalendarEventResizeArgs {
|
|
682
682
|
readonly e: DayPilot.Event;
|
|
683
683
|
readonly control: DayPilot.Calendar;
|
|
684
684
|
readonly newStart: DayPilot.Date;
|
|
685
685
|
readonly newEnd: DayPilot.Date;
|
|
686
686
|
preventDefault(): void;
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
interface CalendarEventResizedArgs {
|
|
689
689
|
readonly e: DayPilot.Event;
|
|
690
690
|
readonly control: DayPilot.Calendar;
|
|
691
691
|
readonly newStart: DayPilot.Date;
|
|
692
692
|
readonly newEnd: DayPilot.Date;
|
|
693
693
|
}
|
|
694
|
-
|
|
694
|
+
interface CalendarHeaderClickArgs {
|
|
695
695
|
readonly column: Column;
|
|
696
696
|
readonly originalEvent: MouseEvent;
|
|
697
697
|
readonly shift: boolean;
|
|
@@ -699,33 +699,33 @@ export declare namespace DayPilot {
|
|
|
699
699
|
readonly ctrl: boolean;
|
|
700
700
|
preventDefault(): void;
|
|
701
701
|
}
|
|
702
|
-
|
|
702
|
+
interface CalendarHeaderClickedArgs {
|
|
703
703
|
readonly column: Column;
|
|
704
704
|
readonly originalEvent: MouseEvent;
|
|
705
705
|
readonly shift: boolean;
|
|
706
706
|
readonly meta: boolean;
|
|
707
707
|
readonly ctrl: boolean;
|
|
708
708
|
}
|
|
709
|
-
|
|
709
|
+
interface CalendarTimeRangeSelectArgs {
|
|
710
710
|
readonly start: DayPilot.Date;
|
|
711
711
|
readonly end: DayPilot.Date;
|
|
712
712
|
readonly resource: ResourceId;
|
|
713
713
|
readonly control: DayPilot.Calendar;
|
|
714
714
|
preventDefault(): void;
|
|
715
715
|
}
|
|
716
|
-
|
|
716
|
+
interface CalendarTimeRangeSelectedArgs {
|
|
717
717
|
readonly start: DayPilot.Date;
|
|
718
718
|
readonly end: DayPilot.Date;
|
|
719
719
|
readonly resource: ResourceId;
|
|
720
720
|
readonly control: DayPilot.Calendar;
|
|
721
721
|
}
|
|
722
|
-
|
|
722
|
+
class Column {
|
|
723
723
|
readonly id: ResourceId;
|
|
724
724
|
readonly start: DayPilot.Date;
|
|
725
725
|
readonly name: string;
|
|
726
726
|
readonly data: CalendarColumnData;
|
|
727
727
|
}
|
|
728
|
-
|
|
728
|
+
class MonthPropsAndEvents {
|
|
729
729
|
backendUrl?: string;
|
|
730
730
|
cellHeaderClickHandling?: "Enabled" | "Disabled";
|
|
731
731
|
cellHeaderHeight?: number;
|
|
@@ -772,10 +772,10 @@ export declare namespace DayPilot {
|
|
|
772
772
|
onTimeRangeSelect?: EventHandler<MonthTimeRangeSelectArgs>;
|
|
773
773
|
onTimeRangeSelected?: EventHandler<MonthTimeRangeSelectedArgs>;
|
|
774
774
|
}
|
|
775
|
-
|
|
775
|
+
class MonthConfig extends MonthPropsAndEvents {
|
|
776
776
|
events?: EventData[];
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
class Month extends MonthPropsAndEvents {
|
|
779
779
|
v: string;
|
|
780
780
|
events: {
|
|
781
781
|
list: EventData[];
|
|
@@ -805,15 +805,15 @@ export declare namespace DayPilot {
|
|
|
805
805
|
visibleStart(): DayPilot.Date;
|
|
806
806
|
visibleEnd(): DayPilot.Date;
|
|
807
807
|
}
|
|
808
|
-
|
|
808
|
+
interface MonthAfterEventRenderArgs {
|
|
809
809
|
readonly e: DayPilot.Event;
|
|
810
810
|
readonly div: HTMLElement;
|
|
811
811
|
}
|
|
812
|
-
|
|
812
|
+
interface MonthBeforeEventRenderArgs {
|
|
813
813
|
readonly control: DayPilot.Month;
|
|
814
814
|
readonly data: EventData;
|
|
815
815
|
}
|
|
816
|
-
|
|
816
|
+
interface MonthBeforeCellRenderArgs {
|
|
817
817
|
readonly control: DayPilot.Month;
|
|
818
818
|
readonly cell: {
|
|
819
819
|
readonly start: DayPilot.Date;
|
|
@@ -826,18 +826,18 @@ export declare namespace DayPilot {
|
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
828
|
}
|
|
829
|
-
|
|
829
|
+
interface MonthCellHeaderClickArgs {
|
|
830
830
|
readonly control: DayPilot.Month;
|
|
831
831
|
readonly start: DayPilot.Date;
|
|
832
832
|
readonly end: DayPilot.Date;
|
|
833
833
|
preventDefault(): void;
|
|
834
834
|
}
|
|
835
|
-
|
|
835
|
+
interface MonthCellHeaderClickedArgs {
|
|
836
836
|
readonly control: DayPilot.Month;
|
|
837
837
|
readonly start: DayPilot.Date;
|
|
838
838
|
readonly end: DayPilot.Date;
|
|
839
839
|
}
|
|
840
|
-
|
|
840
|
+
interface MonthEventClickArgs {
|
|
841
841
|
readonly e: DayPilot.Event;
|
|
842
842
|
readonly control: DayPilot.Month;
|
|
843
843
|
readonly div: HTMLElement;
|
|
@@ -846,7 +846,7 @@ export declare namespace DayPilot {
|
|
|
846
846
|
readonly ctrl: boolean;
|
|
847
847
|
preventDefault(): void;
|
|
848
848
|
}
|
|
849
|
-
|
|
849
|
+
interface MonthEventClickedArgs {
|
|
850
850
|
readonly e: DayPilot.Event;
|
|
851
851
|
readonly control: DayPilot.Month;
|
|
852
852
|
readonly div: HTMLElement;
|
|
@@ -854,23 +854,23 @@ export declare namespace DayPilot {
|
|
|
854
854
|
readonly meta: boolean;
|
|
855
855
|
readonly ctrl: boolean;
|
|
856
856
|
}
|
|
857
|
-
|
|
857
|
+
interface MonthEventRightClickArgs {
|
|
858
858
|
readonly e: DayPilot.Event;
|
|
859
859
|
preventDefault(): void;
|
|
860
860
|
}
|
|
861
|
-
|
|
861
|
+
interface MonthEventRightClickedArgs {
|
|
862
862
|
readonly e: DayPilot.Event;
|
|
863
863
|
}
|
|
864
|
-
|
|
864
|
+
interface MonthEventDeleteArgs {
|
|
865
865
|
readonly e: DayPilot.Event;
|
|
866
866
|
readonly control: DayPilot.Month;
|
|
867
867
|
preventDefault(): void;
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
interface MonthEventDeletedArgs {
|
|
870
870
|
readonly e: DayPilot.Event;
|
|
871
871
|
readonly control: DayPilot.Month;
|
|
872
872
|
}
|
|
873
|
-
|
|
873
|
+
interface MonthEventMoveArgs {
|
|
874
874
|
readonly e: DayPilot.Event;
|
|
875
875
|
readonly control: DayPilot.Month;
|
|
876
876
|
readonly newStart: DayPilot.Date;
|
|
@@ -879,7 +879,7 @@ export declare namespace DayPilot {
|
|
|
879
879
|
readonly shift: boolean;
|
|
880
880
|
preventDefault(): void;
|
|
881
881
|
}
|
|
882
|
-
|
|
882
|
+
interface MonthEventMovedArgs {
|
|
883
883
|
readonly e: DayPilot.Event;
|
|
884
884
|
readonly control: DayPilot.Month;
|
|
885
885
|
readonly newStart: DayPilot.Date;
|
|
@@ -887,31 +887,31 @@ export declare namespace DayPilot {
|
|
|
887
887
|
readonly ctrl: boolean;
|
|
888
888
|
readonly shift: boolean;
|
|
889
889
|
}
|
|
890
|
-
|
|
890
|
+
interface MonthEventResizeArgs {
|
|
891
891
|
readonly e: DayPilot.Event;
|
|
892
892
|
readonly control: DayPilot.Month;
|
|
893
893
|
readonly newStart: DayPilot.Date;
|
|
894
894
|
readonly newEnd: DayPilot.Date;
|
|
895
895
|
preventDefault(): void;
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
interface MonthEventResizedArgs {
|
|
898
898
|
readonly e: DayPilot.Event;
|
|
899
899
|
readonly control: DayPilot.Month;
|
|
900
900
|
readonly newStart: DayPilot.Date;
|
|
901
901
|
readonly newEnd: DayPilot.Date;
|
|
902
902
|
}
|
|
903
|
-
|
|
903
|
+
interface MonthTimeRangeSelectArgs {
|
|
904
904
|
readonly control: DayPilot.Month;
|
|
905
905
|
readonly start: DayPilot.Date;
|
|
906
906
|
readonly end: DayPilot.Date;
|
|
907
907
|
preventDefault(): void;
|
|
908
908
|
}
|
|
909
|
-
|
|
909
|
+
interface MonthTimeRangeSelectedArgs {
|
|
910
910
|
readonly control: DayPilot.Month;
|
|
911
911
|
readonly start: DayPilot.Date;
|
|
912
912
|
readonly end: DayPilot.Date;
|
|
913
913
|
}
|
|
914
|
-
|
|
914
|
+
class NavigatorPropsAndEvents {
|
|
915
915
|
autoFocusOnClick?: boolean;
|
|
916
916
|
cellHeight?: number;
|
|
917
917
|
cellWidth?: number;
|
|
@@ -951,14 +951,14 @@ export declare namespace DayPilot {
|
|
|
951
951
|
onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
|
|
952
952
|
onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
|
|
953
953
|
}
|
|
954
|
-
|
|
954
|
+
class NavigatorConfig extends NavigatorPropsAndEvents {
|
|
955
955
|
events?: EventData[];
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
interface NavigatorSelectOptions {
|
|
958
958
|
dontFocus?: boolean;
|
|
959
959
|
dontNotify?: boolean;
|
|
960
960
|
}
|
|
961
|
-
|
|
961
|
+
class Navigator extends NavigatorPropsAndEvents {
|
|
962
962
|
v: string;
|
|
963
963
|
events: {
|
|
964
964
|
list: EventDataShort[];
|
|
@@ -975,7 +975,7 @@ export declare namespace DayPilot {
|
|
|
975
975
|
visibleEnd(): DayPilot.Date;
|
|
976
976
|
visibleStart(): DayPilot.Date;
|
|
977
977
|
}
|
|
978
|
-
|
|
978
|
+
interface NavigatorBeforeCellRenderArgs {
|
|
979
979
|
readonly cell: {
|
|
980
980
|
readonly day: DayPilot.Date;
|
|
981
981
|
readonly isCurrentMonth: boolean;
|
|
@@ -988,7 +988,7 @@ export declare namespace DayPilot {
|
|
|
988
988
|
};
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
|
|
991
|
+
interface NavigatorTimeRangeSelectArgs {
|
|
992
992
|
readonly start: DayPilot.Date;
|
|
993
993
|
readonly end: DayPilot.Date;
|
|
994
994
|
readonly day: DayPilot.Date;
|
|
@@ -996,26 +996,26 @@ export declare namespace DayPilot {
|
|
|
996
996
|
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
997
997
|
preventDefault(): void;
|
|
998
998
|
}
|
|
999
|
-
|
|
999
|
+
interface NavigatorTimeRangeSelectedArgs {
|
|
1000
1000
|
readonly start: DayPilot.Date;
|
|
1001
1001
|
readonly end: DayPilot.Date;
|
|
1002
1002
|
readonly day: DayPilot.Date;
|
|
1003
1003
|
readonly days: number;
|
|
1004
1004
|
readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
|
|
1005
1005
|
}
|
|
1006
|
-
|
|
1006
|
+
interface NavigatorTodayClickArgs {
|
|
1007
1007
|
preventDefault(): void;
|
|
1008
1008
|
}
|
|
1009
|
-
|
|
1009
|
+
interface NavigatorVisibleRangeChangeArgs {
|
|
1010
1010
|
readonly start: DayPilot.Date;
|
|
1011
1011
|
readonly end: DayPilot.Date;
|
|
1012
1012
|
preventDefault(): void;
|
|
1013
1013
|
}
|
|
1014
|
-
|
|
1014
|
+
interface NavigatorVisibleRangeChangedArgs {
|
|
1015
1015
|
readonly start: DayPilot.Date;
|
|
1016
1016
|
readonly end: DayPilot.Date;
|
|
1017
1017
|
}
|
|
1018
|
-
|
|
1018
|
+
class DatePickerPropsAndEvents {
|
|
1019
1019
|
date?: DayPilot.Date | string;
|
|
1020
1020
|
locale?: string | DayPilot.Locale;
|
|
1021
1021
|
pattern?: string;
|
|
@@ -1030,26 +1030,26 @@ export declare namespace DayPilot {
|
|
|
1030
1030
|
onTimeRangeSelect?: EventHandler<DatePickerTimeRangeSelectArgs>;
|
|
1031
1031
|
onTimeRangeSelected?: EventHandler<DatePickerTimeRangeSelectedArgs>;
|
|
1032
1032
|
}
|
|
1033
|
-
|
|
1033
|
+
class DatePickerConfig extends DatePickerPropsAndEvents {
|
|
1034
1034
|
}
|
|
1035
|
-
|
|
1035
|
+
class DatePicker extends DatePickerPropsAndEvents {
|
|
1036
1036
|
constructor(options?: DatePickerConfig);
|
|
1037
1037
|
close(): void;
|
|
1038
1038
|
init(): void;
|
|
1039
1039
|
select(): void;
|
|
1040
1040
|
show(): void;
|
|
1041
1041
|
}
|
|
1042
|
-
|
|
1042
|
+
interface DatePickerShowArgs {
|
|
1043
1043
|
[key: string]: never;
|
|
1044
1044
|
}
|
|
1045
|
-
|
|
1045
|
+
interface DatePickerTimeRangeSelectArgs {
|
|
1046
1046
|
readonly date: DayPilot.Date;
|
|
1047
1047
|
preventDefault(): void;
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1049
|
+
interface DatePickerTimeRangeSelectedArgs {
|
|
1050
1050
|
readonly date: DayPilot.Date;
|
|
1051
1051
|
}
|
|
1052
|
-
|
|
1052
|
+
class Locale {
|
|
1053
1053
|
datePattern: string;
|
|
1054
1054
|
dateTimePattern: string;
|
|
1055
1055
|
dayNames: string[];
|
|
@@ -1073,39 +1073,40 @@ export declare namespace DayPilot {
|
|
|
1073
1073
|
static register(locale: DayPilot.Locale): void;
|
|
1074
1074
|
static find(id: string): DayPilot.Locale;
|
|
1075
1075
|
}
|
|
1076
|
-
|
|
1076
|
+
class MenuPropsAndEvents {
|
|
1077
1077
|
hideOnMouseOut?: boolean;
|
|
1078
1078
|
items?: MenuItemData[];
|
|
1079
1079
|
menuTitle?: string;
|
|
1080
1080
|
onShow?: EventHandler<MenuShowArgs>;
|
|
1081
1081
|
onHide?: EventHandler<MenuHideArgs>;
|
|
1082
|
+
rtl?: boolean;
|
|
1082
1083
|
showMenuTitle?: boolean;
|
|
1083
1084
|
zIndex?: number;
|
|
1084
1085
|
theme?: string;
|
|
1085
1086
|
}
|
|
1086
|
-
|
|
1087
|
+
class MenuConfig extends MenuPropsAndEvents {
|
|
1087
1088
|
}
|
|
1088
|
-
|
|
1089
|
+
class Menu extends MenuPropsAndEvents {
|
|
1089
1090
|
v: string;
|
|
1090
1091
|
constructor(options?: MenuConfig);
|
|
1091
1092
|
show(target?: any): void;
|
|
1092
1093
|
hide(): void;
|
|
1093
1094
|
static hide(): void;
|
|
1094
1095
|
}
|
|
1095
|
-
|
|
1096
|
+
interface MenuShowArgs {
|
|
1096
1097
|
readonly source: any;
|
|
1097
1098
|
readonly menu: DayPilot.Menu;
|
|
1098
1099
|
preventDefault(): void;
|
|
1099
1100
|
}
|
|
1100
|
-
|
|
1101
|
+
interface MenuHideArgs {
|
|
1101
1102
|
}
|
|
1102
|
-
|
|
1103
|
+
class MenuBar {
|
|
1103
1104
|
items: any[];
|
|
1104
1105
|
constructor(id: string, options?: any);
|
|
1105
1106
|
init(): void;
|
|
1106
1107
|
dispose(): void;
|
|
1107
1108
|
}
|
|
1108
|
-
|
|
1109
|
+
interface MenuItemData {
|
|
1109
1110
|
action?: "CallBack" | "PostBack";
|
|
1110
1111
|
command?: string;
|
|
1111
1112
|
cssClass?: string;
|
|
@@ -1122,24 +1123,24 @@ export declare namespace DayPilot {
|
|
|
1122
1123
|
text?: string;
|
|
1123
1124
|
html?: string;
|
|
1124
1125
|
}
|
|
1125
|
-
|
|
1126
|
+
interface MenuItemClickArgs {
|
|
1126
1127
|
readonly item: MenuItemData;
|
|
1127
1128
|
readonly source: any;
|
|
1128
1129
|
readonly originalEvent: MouseEvent;
|
|
1129
1130
|
preventDefault(): void;
|
|
1130
1131
|
}
|
|
1131
|
-
|
|
1132
|
+
class SwitcherPropsAndEvents {
|
|
1132
1133
|
selectedClass?: string;
|
|
1133
1134
|
syncScrollbar?: boolean;
|
|
1134
1135
|
onChange?: EventHandler<SwitcherChangeArgs>;
|
|
1135
1136
|
onChanged?: EventHandler<SwitcherChangedArgs>;
|
|
1136
1137
|
onSelect?: EventHandler<SwitcherSelectArgs>;
|
|
1137
1138
|
}
|
|
1138
|
-
|
|
1139
|
+
class SwitcherConfig extends SwitcherPropsAndEvents {
|
|
1139
1140
|
triggers?: SwitcherTrigger[];
|
|
1140
1141
|
navigator?: DayPilot.Navigator;
|
|
1141
1142
|
}
|
|
1142
|
-
|
|
1143
|
+
class Switcher extends SwitcherPropsAndEvents {
|
|
1143
1144
|
constructor(options?: SwitcherConfig);
|
|
1144
1145
|
readonly active: SwitcherView;
|
|
1145
1146
|
addTrigger(id: string | HTMLElement, view: SwitcherViewControl): void;
|
|
@@ -1155,32 +1156,32 @@ export declare namespace DayPilot {
|
|
|
1155
1156
|
}) => void): void;
|
|
1156
1157
|
};
|
|
1157
1158
|
}
|
|
1158
|
-
|
|
1159
|
+
interface SwitcherView {
|
|
1159
1160
|
control: SwitcherViewControl;
|
|
1160
1161
|
}
|
|
1161
|
-
|
|
1162
|
+
interface SwitcherTrigger {
|
|
1162
1163
|
id: string | HTMLElement;
|
|
1163
1164
|
view: SwitcherViewControl;
|
|
1164
1165
|
}
|
|
1165
|
-
|
|
1166
|
+
interface SwitcherChangeArgs {
|
|
1166
1167
|
readonly start: DayPilot.Date;
|
|
1167
1168
|
readonly end: DayPilot.Date;
|
|
1168
1169
|
readonly day: DayPilot.Date;
|
|
1169
1170
|
readonly target: SwitcherView;
|
|
1170
1171
|
preventDefault(): void;
|
|
1171
1172
|
}
|
|
1172
|
-
|
|
1173
|
+
interface SwitcherChangedArgs {
|
|
1173
1174
|
readonly start: DayPilot.Date;
|
|
1174
1175
|
readonly end: DayPilot.Date;
|
|
1175
1176
|
readonly day: DayPilot.Date;
|
|
1176
1177
|
readonly target: SwitcherView;
|
|
1177
1178
|
}
|
|
1178
|
-
|
|
1179
|
+
interface SwitcherSelectArgs {
|
|
1179
1180
|
readonly source: HTMLElement;
|
|
1180
1181
|
readonly target: SwitcherViewControl;
|
|
1181
1182
|
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1183
|
+
type SwitcherViewControl = DayPilot.Calendar | DayPilot.Month;
|
|
1184
|
+
class Date {
|
|
1184
1185
|
constructor(str?: string | DayPilot.Date);
|
|
1185
1186
|
constructor(date: GlobalDate, isLocal?: boolean);
|
|
1186
1187
|
addDays(days: number): DayPilot.Date;
|
|
@@ -1205,7 +1206,6 @@ export declare namespace DayPilot {
|
|
|
1205
1206
|
getDatePart(): DayPilot.Date;
|
|
1206
1207
|
getDay(): number;
|
|
1207
1208
|
getDayOfWeek(): number;
|
|
1208
|
-
getYear(): number;
|
|
1209
1209
|
getHours(): number;
|
|
1210
1210
|
getMilliseconds(): number;
|
|
1211
1211
|
getMinutes(): number;
|
|
@@ -1228,20 +1228,20 @@ export declare namespace DayPilot {
|
|
|
1228
1228
|
static now(): DayPilot.Date;
|
|
1229
1229
|
static Cache: DateCache;
|
|
1230
1230
|
}
|
|
1231
|
-
|
|
1231
|
+
class DateCache {
|
|
1232
1232
|
static clear(): void;
|
|
1233
1233
|
}
|
|
1234
|
-
|
|
1234
|
+
class Util {
|
|
1235
1235
|
static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
|
|
1236
1236
|
static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
|
|
1237
1237
|
static escapeHtml(text: string): string;
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1239
|
+
class ColorUtil {
|
|
1240
1240
|
static darker(color: string, steps?: number): string;
|
|
1241
1241
|
static lighter(color: string, steps?: number): string;
|
|
1242
1242
|
static contrasting(color: string, light?: string, dark?: string): string;
|
|
1243
1243
|
}
|
|
1244
|
-
|
|
1244
|
+
class Http {
|
|
1245
1245
|
static get<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1246
1246
|
static post<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1247
1247
|
static put<T = any, B = any>(url: string, data: B, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
@@ -1249,8 +1249,16 @@ export declare namespace DayPilot {
|
|
|
1249
1249
|
static delete<T = any>(url: string, params?: Http.RequestParams): Promise<Http.Result<T>>;
|
|
1250
1250
|
}
|
|
1251
1251
|
namespace Http {
|
|
1252
|
-
|
|
1253
|
-
|
|
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 {
|
|
1254
1262
|
ticks: number;
|
|
1255
1263
|
constructor(ticks: number);
|
|
1256
1264
|
constructor(start: DayPilot.Date | string, end: DayPilot.Date | string);
|
|
@@ -1272,7 +1280,7 @@ export declare namespace DayPilot {
|
|
|
1272
1280
|
static ofMinutes(i: number): DayPilot.Duration;
|
|
1273
1281
|
static ofSeconds(i: number): DayPilot.Duration;
|
|
1274
1282
|
}
|
|
1275
|
-
|
|
1283
|
+
class Event {
|
|
1276
1284
|
data: any;
|
|
1277
1285
|
constructor(data: EventData);
|
|
1278
1286
|
start(): DayPilot.Date;
|
|
@@ -1289,16 +1297,16 @@ export declare namespace DayPilot {
|
|
|
1289
1297
|
tag(name: string): any;
|
|
1290
1298
|
duration(): DayPilot.Duration;
|
|
1291
1299
|
}
|
|
1292
|
-
|
|
1300
|
+
class Selection {
|
|
1293
1301
|
start: DayPilot.Date;
|
|
1294
1302
|
end: DayPilot.Date;
|
|
1295
|
-
resource
|
|
1303
|
+
resource?: ResourceId;
|
|
1296
1304
|
}
|
|
1297
|
-
|
|
1305
|
+
interface EventDataShort {
|
|
1298
1306
|
start: string | DayPilot.Date;
|
|
1299
1307
|
end: string | DayPilot.Date;
|
|
1300
1308
|
}
|
|
1301
|
-
|
|
1309
|
+
interface EventData {
|
|
1302
1310
|
start: string | DayPilot.Date;
|
|
1303
1311
|
end: string | DayPilot.Date;
|
|
1304
1312
|
id: EventId;
|
|
@@ -1318,7 +1326,7 @@ export declare namespace DayPilot {
|
|
|
1318
1326
|
tags?: any;
|
|
1319
1327
|
toolTip?: string;
|
|
1320
1328
|
}
|
|
1321
|
-
|
|
1329
|
+
interface AreaData {
|
|
1322
1330
|
action?: "Default" | "None" | "ContextMenu" | "ResizeEnd" | "ResizeStart" | "Move";
|
|
1323
1331
|
backColor?: string;
|
|
1324
1332
|
background?: string;
|
|
@@ -1356,16 +1364,16 @@ export declare namespace DayPilot {
|
|
|
1356
1364
|
visibility?: "Hover" | "Visible" | "TouchVisible";
|
|
1357
1365
|
width?: number | string;
|
|
1358
1366
|
}
|
|
1359
|
-
|
|
1360
|
-
|
|
1367
|
+
function guid(): string;
|
|
1368
|
+
interface EventHandler<T> {
|
|
1361
1369
|
(args: T): void;
|
|
1362
1370
|
}
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
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 {
|
|
1369
1377
|
autoFocus?: boolean;
|
|
1370
1378
|
autoStretch?: boolean;
|
|
1371
1379
|
autoStretchFirstLoadOnly?: boolean;
|
|
@@ -1393,9 +1401,9 @@ export declare namespace DayPilot {
|
|
|
1393
1401
|
onClosed?: EventHandler<ModalClosedArgs>;
|
|
1394
1402
|
onShow?: EventHandler<ModalShowArgs>;
|
|
1395
1403
|
}
|
|
1396
|
-
|
|
1404
|
+
class ModalConfig extends ModalPropsAndEvents {
|
|
1397
1405
|
}
|
|
1398
|
-
|
|
1406
|
+
class Modal extends ModalPropsAndEvents {
|
|
1399
1407
|
constructor(options?: ModalConfig);
|
|
1400
1408
|
close(result?: any): void;
|
|
1401
1409
|
closeSerialized(): void;
|
|
@@ -1409,38 +1417,38 @@ export declare namespace DayPilot {
|
|
|
1409
1417
|
static confirm(message: string, options?: ModalConfirmConfig): Promise<ModalClosedArgs>;
|
|
1410
1418
|
static form(form?: ModalFormItem[], data?: any, options?: ModalFormConfig): Promise<ModalClosedArgs>;
|
|
1411
1419
|
}
|
|
1412
|
-
|
|
1420
|
+
class ModalAlertConfig extends ModalConfig {
|
|
1413
1421
|
okText?: string;
|
|
1414
1422
|
}
|
|
1415
|
-
|
|
1423
|
+
class ModalConfirmConfig extends ModalConfig {
|
|
1416
1424
|
okText?: string;
|
|
1417
1425
|
cancelText?: string;
|
|
1418
1426
|
}
|
|
1419
|
-
|
|
1427
|
+
class ModalPromptConfig extends ModalConfig {
|
|
1420
1428
|
okText?: string;
|
|
1421
1429
|
cancelText?: string;
|
|
1422
1430
|
}
|
|
1423
|
-
|
|
1431
|
+
class ModalFormConfig extends ModalConfig {
|
|
1424
1432
|
okText?: string;
|
|
1425
1433
|
cancelText?: string;
|
|
1426
1434
|
locale?: string;
|
|
1427
1435
|
plugins?: any;
|
|
1428
1436
|
}
|
|
1429
|
-
|
|
1437
|
+
interface ModalCloseArgs {
|
|
1430
1438
|
canceled: boolean;
|
|
1431
1439
|
result: any;
|
|
1432
1440
|
backgroundClick: boolean;
|
|
1433
1441
|
preventDefault(): void;
|
|
1434
1442
|
}
|
|
1435
|
-
|
|
1443
|
+
interface ModalClosedArgs {
|
|
1436
1444
|
canceled: boolean;
|
|
1437
1445
|
result: any;
|
|
1438
1446
|
backgroundClick: boolean;
|
|
1439
1447
|
}
|
|
1440
|
-
|
|
1448
|
+
interface ModalShowArgs {
|
|
1441
1449
|
root: Node;
|
|
1442
1450
|
}
|
|
1443
|
-
|
|
1451
|
+
interface ModalFormItem {
|
|
1444
1452
|
id?: string;
|
|
1445
1453
|
name?: string;
|
|
1446
1454
|
type?: "text" | "date" | "searchable" | "select" | "radio" | "checkbox" | "table" | "title" | "image" | "html" | "textarea" | "scrollable" | string;
|
|
@@ -1457,27 +1465,26 @@ export declare namespace DayPilot {
|
|
|
1457
1465
|
text?: string;
|
|
1458
1466
|
html?: string;
|
|
1459
1467
|
}
|
|
1460
|
-
|
|
1468
|
+
interface ModalFormOption {
|
|
1461
1469
|
id: string | number;
|
|
1462
1470
|
name?: string;
|
|
1463
1471
|
children?: ModalFormItem[];
|
|
1464
1472
|
}
|
|
1465
|
-
|
|
1473
|
+
interface ModalFormTableColumns {
|
|
1466
1474
|
id: string;
|
|
1467
1475
|
name: string;
|
|
1468
1476
|
type?: "text" | "number" | "select";
|
|
1469
1477
|
options?: ModalFormOption[];
|
|
1470
1478
|
}
|
|
1471
|
-
|
|
1479
|
+
interface ModalFormItemValidationArgs {
|
|
1472
1480
|
value: any;
|
|
1473
1481
|
result: any;
|
|
1474
1482
|
valid: boolean;
|
|
1475
1483
|
message: string;
|
|
1476
1484
|
}
|
|
1477
|
-
|
|
1485
|
+
interface ModalFormTableItemNewRowArgs {
|
|
1478
1486
|
value: any;
|
|
1479
1487
|
result: any;
|
|
1480
1488
|
}
|
|
1481
|
-
export {};
|
|
1482
1489
|
}
|
|
1483
1490
|
export {};
|