@daypilot/daypilot-lite-angular 3.0.0-sandbox.338

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.
@@ -0,0 +1,614 @@
1
+ declare type GlobalDate = Date;
2
+ export declare module DayPilot {
3
+ export class CalendarPropsAndEvents {
4
+ backendUrl?: string;
5
+ businessBeginsHour?: number;
6
+ businessEndsHour?: number;
7
+ cellHeight?: number;
8
+ columnMarginRight?: number;
9
+ days?: number;
10
+ doubleClickTimeout?: number;
11
+ durationBarVisible?: boolean;
12
+ eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "Edit" | "Select" | "ContextMenu" | "Bubble";
13
+ eventDeleteHandling?: "Update" | "Disabled" | "CallBack";
14
+ eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
15
+ eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
16
+ headerHeight?: number;
17
+ height?: number;
18
+ heightSpec?: "BusinessHours" | "BusinessHoursNoScroll" | "Fixed" | "Full" | "Parent100Pct";
19
+ hideUntilInit?: boolean;
20
+ hourWidth?: number;
21
+ initScrollPos?: number;
22
+ loadingLabelText?: string;
23
+ loadingLabelHtml?: string;
24
+ loadingLabelVisible?: boolean;
25
+ locale?: string;
26
+ showToolTip?: boolean;
27
+ startDate?: DayPilot.Date | string;
28
+ theme?: string;
29
+ timeFormat?: "Auto" | "Clock12Hours" | "Clock24Hours";
30
+ timeRangeSelectedHandling?: "Enabled" | "Disabled" | "CallBack";
31
+ viewType?: "Day" | "Days" | "Week" | "WorkWeek";
32
+ visible?: boolean;
33
+ xssProtection?: "Enabled" | "Disabled";
34
+ onEventClick?: EventHandler<CalendarEventClickArgs>;
35
+ onEventClicked?: EventHandler<CalendarEventClickedArgs>;
36
+ onEventDelete?: EventHandler<CalendarEventDeleteArgs>;
37
+ onEventDeleted?: EventHandler<CalendarEventDeletedArgs>;
38
+ onEventMove?: EventHandler<CalendarEventMoveArgs>;
39
+ onEventMoved?: EventHandler<CalendarEventMovedArgs>;
40
+ onEventResize?: EventHandler<CalendarEventResizeArgs>;
41
+ onEventResized?: EventHandler<CalendarEventResizedArgs>;
42
+ onTimeRangeSelect?: EventHandler<CalendarTimeRangeSelectArgs>;
43
+ onTimeRangeSelected?: EventHandler<CalendarTimeRangeSelectedArgs>;
44
+ }
45
+ export class CalendarConfig extends CalendarPropsAndEvents {
46
+ events?: EventData[];
47
+ }
48
+ export class Calendar extends CalendarPropsAndEvents {
49
+ v: string;
50
+ events: {
51
+ list: EventData[];
52
+ add(e: DayPilot.Event | EventData): void;
53
+ find(id: string): DayPilot.Event;
54
+ load(url: string, success: (args: {
55
+ data: any;
56
+ preventDefault(): void;
57
+ }) => void, error: (args: {
58
+ request: XMLHttpRequest;
59
+ exception: any;
60
+ }) => void): void;
61
+ remove(e: DayPilot.Event): void;
62
+ remove(id: EventId): void;
63
+ update(e: DayPilot.Event | EventData): void;
64
+ };
65
+ constructor(id: string | HTMLElement, options?: CalendarConfig);
66
+ clearSelection(): void;
67
+ dispose(): void;
68
+ getSelection(): DayPilot.Selection;
69
+ hide(): void;
70
+ init(): void;
71
+ show(): void;
72
+ update(options?: CalendarConfig): void;
73
+ visibleStart(): DayPilot.Date;
74
+ visibleEnd(): DayPilot.Date;
75
+ }
76
+ export interface CalendarEventClickArgs {
77
+ readonly e: DayPilot.Event;
78
+ readonly control: DayPilot.Calendar;
79
+ readonly ctrl: boolean;
80
+ readonly meta: boolean;
81
+ readonly originalEvent: MouseEvent;
82
+ preventDefault(): void;
83
+ }
84
+ export interface CalendarEventClickedArgs {
85
+ readonly e: DayPilot.Event;
86
+ readonly control: DayPilot.Calendar;
87
+ readonly ctrl: boolean;
88
+ readonly meta: boolean;
89
+ readonly originalEvent: MouseEvent;
90
+ }
91
+ export interface CalendarEventDeleteArgs {
92
+ readonly e: DayPilot.Event;
93
+ readonly control: DayPilot.Calendar;
94
+ preventDefault(): void;
95
+ }
96
+ export interface CalendarEventDeletedArgs {
97
+ readonly e: DayPilot.Event;
98
+ readonly control: DayPilot.Calendar;
99
+ }
100
+ export interface CalendarEventMoveArgs {
101
+ readonly e: DayPilot.Event;
102
+ readonly control: DayPilot.Calendar;
103
+ readonly newStart: DayPilot.Date;
104
+ readonly newEnd: DayPilot.Date;
105
+ readonly ctrl: boolean;
106
+ readonly shift: boolean;
107
+ preventDefault(): void;
108
+ }
109
+ export interface CalendarEventMovedArgs {
110
+ readonly e: DayPilot.Event;
111
+ readonly control: DayPilot.Calendar;
112
+ readonly newStart: DayPilot.Date;
113
+ readonly newEnd: DayPilot.Date;
114
+ readonly ctrl: boolean;
115
+ readonly shift: boolean;
116
+ }
117
+ export interface CalendarEventResizeArgs {
118
+ readonly e: DayPilot.Event;
119
+ readonly control: DayPilot.Calendar;
120
+ readonly newStart: DayPilot.Date;
121
+ readonly newEnd: DayPilot.Date;
122
+ preventDefault(): void;
123
+ }
124
+ export interface CalendarEventResizedArgs {
125
+ readonly e: DayPilot.Event;
126
+ readonly control: DayPilot.Calendar;
127
+ readonly newStart: DayPilot.Date;
128
+ readonly newEnd: DayPilot.Date;
129
+ }
130
+ export interface CalendarTimeRangeSelectArgs {
131
+ readonly start: DayPilot.Date;
132
+ readonly end: DayPilot.Date;
133
+ readonly control: DayPilot.Calendar;
134
+ preventDefault(): void;
135
+ }
136
+ export interface CalendarTimeRangeSelectedArgs {
137
+ readonly start: DayPilot.Date;
138
+ readonly end: DayPilot.Date;
139
+ readonly control: DayPilot.Calendar;
140
+ }
141
+ export class MonthPropsAndEvents {
142
+ backendUrl?: string;
143
+ cellHeaderHeight?: number;
144
+ cellHeight?: number;
145
+ eventClickHandling?: "Enabled" | "Disabled" | "CallBack" | "Select" | "ContextMenu" | "Bubble";
146
+ eventHeight?: number;
147
+ eventMoveHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
148
+ eventResizeHandling?: "Update" | "CallBack" | "Notify" | "Disabled";
149
+ headerHeight?: number;
150
+ hideUntilInit?: boolean;
151
+ lineSpace?: number;
152
+ locale?: string;
153
+ showToolTip?: boolean;
154
+ startDate?: DayPilot.Date | string;
155
+ theme?: string;
156
+ timeRangeSelectedHandling?: "Enabled" | "Disabled" | "CallBack";
157
+ visible?: boolean;
158
+ weekStarts?: number;
159
+ width?: string;
160
+ onEventClick?: EventHandler<MonthEventClickArgs>;
161
+ onEventClicked?: EventHandler<MonthEventClickedArgs>;
162
+ onEventMove?: EventHandler<MonthEventMoveArgs>;
163
+ onEventMoved?: EventHandler<MonthEventMovedArgs>;
164
+ onEventResize?: EventHandler<MonthEventResizeArgs>;
165
+ onEventResized?: EventHandler<MonthEventResizedArgs>;
166
+ onTimeRangeSelect?: EventHandler<MonthTimeRangeSelectArgs>;
167
+ onTimeRangeSelected?: EventHandler<MonthTimeRangeSelectedArgs>;
168
+ }
169
+ export class MonthConfig extends MonthPropsAndEvents {
170
+ events?: EventData;
171
+ }
172
+ export class Month extends MonthPropsAndEvents {
173
+ v: string;
174
+ events: {
175
+ list: EventData[];
176
+ add(e: DayPilot.Event | EventData): void;
177
+ load(url: string, success: (args: {
178
+ data: any;
179
+ preventDefault(): void;
180
+ }) => void, error: (args: {
181
+ request: XMLHttpRequest;
182
+ exception: any;
183
+ }) => void): void;
184
+ remove(e: DayPilot.Event): void;
185
+ update(e: DayPilot.Event): void;
186
+ };
187
+ constructor(id: string | HTMLElement, options?: MonthConfig);
188
+ clearSelection(): void;
189
+ dispose(): void;
190
+ init(): void;
191
+ show(): void;
192
+ hide(): void;
193
+ update(options?: MonthConfig): void;
194
+ visibleStart(): DayPilot.Date;
195
+ visibleEnd(): DayPilot.Date;
196
+ }
197
+ export interface MonthEventClickArgs {
198
+ readonly e: DayPilot.Event;
199
+ readonly control: DayPilot.Month;
200
+ readonly div: HTMLElement;
201
+ readonly originalEvent: MouseEvent;
202
+ readonly meta: boolean;
203
+ readonly ctrl: boolean;
204
+ preventDefault(): void;
205
+ }
206
+ export interface MonthEventClickedArgs {
207
+ readonly e: DayPilot.Event;
208
+ readonly control: DayPilot.Month;
209
+ readonly div: HTMLElement;
210
+ readonly originalEvent: MouseEvent;
211
+ readonly meta: boolean;
212
+ readonly ctrl: boolean;
213
+ }
214
+ export interface MonthEventMoveArgs {
215
+ readonly e: DayPilot.Event;
216
+ readonly control: DayPilot.Month;
217
+ readonly newStart: DayPilot.Date;
218
+ readonly newEnd: DayPilot.Date;
219
+ readonly ctrl: boolean;
220
+ readonly shift: boolean;
221
+ preventDefault(): void;
222
+ }
223
+ export interface MonthEventMovedArgs {
224
+ readonly e: DayPilot.Event;
225
+ readonly control: DayPilot.Month;
226
+ readonly newStart: DayPilot.Date;
227
+ readonly newEnd: DayPilot.Date;
228
+ readonly ctrl: boolean;
229
+ readonly shift: boolean;
230
+ }
231
+ export interface MonthEventResizeArgs {
232
+ readonly e: DayPilot.Event;
233
+ readonly control: DayPilot.Month;
234
+ readonly newStart: DayPilot.Date;
235
+ readonly newEnd: DayPilot.Date;
236
+ preventDefault(): void;
237
+ }
238
+ export interface MonthEventResizedArgs {
239
+ readonly e: DayPilot.Event;
240
+ readonly control: DayPilot.Month;
241
+ readonly newStart: DayPilot.Date;
242
+ readonly newEnd: DayPilot.Date;
243
+ }
244
+ export interface MonthTimeRangeSelectArgs {
245
+ readonly control: DayPilot.Month;
246
+ readonly start: DayPilot.Date;
247
+ readonly end: DayPilot.Date;
248
+ preventDefault(): void;
249
+ }
250
+ export interface MonthTimeRangeSelectedArgs {
251
+ readonly control: DayPilot.Month;
252
+ readonly start: DayPilot.Date;
253
+ readonly end: DayPilot.Date;
254
+ }
255
+ export class NavigatorPropsAndEvents {
256
+ cellHeight?: number;
257
+ cellWidth?: number;
258
+ command?: string;
259
+ dayHeaderHeight?: number;
260
+ freeHandSelectionEnabled?: boolean;
261
+ locale?: string;
262
+ orientation?: "Vertical" | "Horizontal";
263
+ rowsPerMonth?: "Auto" | "Six";
264
+ selectionDay?: DayPilot.Date;
265
+ selectionEnd?: DayPilot.Date;
266
+ selectionStart?: DayPilot.Date;
267
+ selectMode?: "Day" | "Week" | "Month" | "None";
268
+ showMonths?: number;
269
+ showWeekNumbers?: boolean;
270
+ skipMonths?: number;
271
+ startDate?: DayPilot.Date | string;
272
+ theme?: string;
273
+ titleHeight?: number;
274
+ weekStarts?: "Auto" | number;
275
+ weekNumberAlgorithm?: "Auto" | "US" | "ISO8601";
276
+ timeRangeSelectedHandling?: "Bind" | "None";
277
+ visibleRangeChangedHandling?: "Enabled" | "Disabled" | "CallBack";
278
+ onBeforeCellRender?: EventHandler<NavigatorBeforeCellRenderArgs>;
279
+ onTimeRangeSelect?: EventHandler<NavigatorTimeRangeSelectArgs>;
280
+ onTimeRangeSelected?: EventHandler<NavigatorTimeRangeSelectedArgs>;
281
+ onVisibleRangeChange?: EventHandler<NavigatorVisibleRangeChangeArgs>;
282
+ onVisibleRangeChanged?: EventHandler<NavigatorVisibleRangeChangedArgs>;
283
+ }
284
+ export class NavigatorConfig extends NavigatorPropsAndEvents {
285
+ events?: EventData[];
286
+ }
287
+ export class Navigator extends NavigatorPropsAndEvents {
288
+ v: string;
289
+ events: {
290
+ list: EventDataShort[];
291
+ };
292
+ constructor(id: string | HTMLElement, options?: NavigatorConfig);
293
+ init(): void;
294
+ dispose(): void;
295
+ update(options?: NavigatorConfig): void;
296
+ select(date: DayPilot.Date | string): void;
297
+ hide(): void;
298
+ show(): void;
299
+ visibleEnd(): DayPilot.Date;
300
+ visibleStart(): DayPilot.Date;
301
+ }
302
+ interface NavigatorBeforeCellRenderArgs {
303
+ readonly cell: {
304
+ readonly day: DayPilot.Date;
305
+ readonly isCurrentMonth: boolean;
306
+ readonly isToday: boolean;
307
+ readonly isWeekend: boolean;
308
+ html: string;
309
+ cssClass: string;
310
+ };
311
+ }
312
+ interface NavigatorTimeRangeSelectArgs {
313
+ readonly start: DayPilot.Date;
314
+ readonly end: DayPilot.Date;
315
+ readonly day: DayPilot.Date;
316
+ readonly days: number;
317
+ readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
318
+ preventDefault(): void;
319
+ }
320
+ interface NavigatorTimeRangeSelectedArgs {
321
+ readonly start: DayPilot.Date;
322
+ readonly end: DayPilot.Date;
323
+ readonly day: DayPilot.Date;
324
+ readonly days: number;
325
+ readonly mode: "Day" | "Week" | "Month" | "None" | "FreeHand";
326
+ }
327
+ interface NavigatorVisibleRangeChangeArgs {
328
+ readonly start: DayPilot.Date;
329
+ readonly end: DayPilot.Date;
330
+ preventDefault(): void;
331
+ }
332
+ interface NavigatorVisibleRangeChangedArgs {
333
+ readonly start: DayPilot.Date;
334
+ readonly end: DayPilot.Date;
335
+ }
336
+ export class Locale {
337
+ datePattern: string;
338
+ dateTimePattern: string;
339
+ dayNames: string[];
340
+ dayNamesShort: string[];
341
+ monthNames: string[];
342
+ monthNamesShort: string[];
343
+ timeFormat: "Clock12Hours" | "Clock24Hours";
344
+ timePattern: string;
345
+ weekStarts: number;
346
+ constructor(id: string, properties: {
347
+ dayNames: string[];
348
+ dayNamesShort: string[];
349
+ monthNames: string[];
350
+ monthNamesShort: string[];
351
+ timePattern: string;
352
+ datePattern: string;
353
+ dateTimePattern: string;
354
+ timeFormat: "Clock12Hours" | "Clock24Hours";
355
+ weekStarts: number;
356
+ });
357
+ static register(locale: DayPilot.Locale): void;
358
+ static find(id: string): DayPilot.Locale;
359
+ }
360
+ export class Date {
361
+ constructor(str?: string | DayPilot.Date);
362
+ constructor(date: GlobalDate, isLocal?: boolean);
363
+ addDays(days: number): DayPilot.Date;
364
+ addHours(hours: number): DayPilot.Date;
365
+ addMilliseconds(millis: number): DayPilot.Date;
366
+ addMinutes(minutes: number): DayPilot.Date;
367
+ addMonths(months: number): DayPilot.Date;
368
+ addSeconds(seconds: number): DayPilot.Date;
369
+ addTime(ticks: number): DayPilot.Date;
370
+ addTime(duration: DayPilot.Duration): DayPilot.Date;
371
+ addYears(years: number): DayPilot.Date;
372
+ dayOfWeek(): number;
373
+ dayOfWeekISO(): number;
374
+ dayOfYear(): number;
375
+ daysInMonth(): number;
376
+ daysInYear(): number;
377
+ equals(another: DayPilot.Date): boolean;
378
+ firstDayOfMonth(): DayPilot.Date;
379
+ firstDayOfWeek(locale?: string | DayPilot.Locale): DayPilot.Date;
380
+ firstDayOfWeek(firstDayOfWeek?: number): DayPilot.Date;
381
+ firstDayOfYear(): DayPilot.Date;
382
+ getDatePart(): DayPilot.Date;
383
+ getDay(): number;
384
+ getDayOfWeek(): number;
385
+ getYear(): number;
386
+ getHours(): number;
387
+ getMilliseconds(): number;
388
+ getMinutes(): number;
389
+ getMonth(): number;
390
+ getSeconds(): number;
391
+ getTime(): number;
392
+ getTimePart(): number;
393
+ getTotalTicks(): number;
394
+ getYear(): number;
395
+ lastDayOfMonth(): DayPilot.Date;
396
+ toDate(): GlobalDate;
397
+ toDateLocal(): GlobalDate;
398
+ toString(pattern?: string, locale?: string | DayPilot.Locale): string;
399
+ toStringSortable(): string;
400
+ weekNumber(): number;
401
+ weekNumberISO(): number;
402
+ static fromYearMonthDay(year: number, month: number, day: number): DayPilot.Date;
403
+ static parse(input: string, pattern: string, locale?: string | DayPilot.Locale): DayPilot.Date;
404
+ static today(): DayPilot.Date;
405
+ static now(): DayPilot.Date;
406
+ static Cache: DayPilotDateCache;
407
+ }
408
+ export class DayPilotDateCache {
409
+ static clear(): void;
410
+ }
411
+ export class Util {
412
+ static overlaps(start1: DayPilot.Date, end1: DayPilot.Date, start2: DayPilot.Date, end2: DayPilot.Date): boolean;
413
+ static overlaps(start1: number, end1: number, start2: number, end2: number): boolean;
414
+ }
415
+ export class Duration {
416
+ ticks: number;
417
+ constructor(ticks: number);
418
+ constructor(start: DayPilot.Date | string, end: DayPilot.Date | string);
419
+ toString(pattern?: string): string;
420
+ totalMilliseconds(): number;
421
+ totalSeconds(): number;
422
+ totalMinutes(): number;
423
+ totalHours(): number;
424
+ totalDays(): number;
425
+ milliseconds(): number;
426
+ seconds(): number;
427
+ minutes(): number;
428
+ hours(): number;
429
+ days(): number;
430
+ add(d: DayPilot.Duration): DayPilot.Duration;
431
+ static ofWeeks(i: number): DayPilot.Duration;
432
+ static ofDays(i: number): DayPilot.Duration;
433
+ static ofHours(i: number): DayPilot.Duration;
434
+ static ofMinutes(i: number): DayPilot.Duration;
435
+ static ofSeconds(i: number): DayPilot.Duration;
436
+ }
437
+ export class Event {
438
+ data: any;
439
+ constructor(data: EventData);
440
+ start(): DayPilot.Date;
441
+ start(newStart: DayPilot.Date): void;
442
+ end(): DayPilot.Date;
443
+ end(newEnd: DayPilot.Date): void;
444
+ id(): EventId;
445
+ text(): string;
446
+ text(newText: string): void;
447
+ resource(): string;
448
+ resource(newResource: string): void;
449
+ duration(): DayPilot.Duration;
450
+ }
451
+ export class Selection {
452
+ start: DayPilot.Date;
453
+ end: DayPilot.Date;
454
+ resource: string;
455
+ }
456
+ export interface EventDataShort {
457
+ start: string | DayPilot.Date;
458
+ end: string | DayPilot.Date;
459
+ }
460
+ export interface EventData {
461
+ start: string | DayPilot.Date;
462
+ end: string | DayPilot.Date;
463
+ id: EventId;
464
+ text: string;
465
+ resource?: ResourceId;
466
+ backColor?: string;
467
+ backImage?: string;
468
+ backRepeat?: string;
469
+ borderColor?: string;
470
+ bubbleHtml?: string;
471
+ clickDisabled?: boolean;
472
+ cssClass?: string;
473
+ deleteDisabled?: boolean;
474
+ doubleClickDisabled?: boolean;
475
+ fontColor?: string;
476
+ hidden?: boolean;
477
+ html?: string;
478
+ line?: "dedicated" | number;
479
+ moveDisabled?: boolean;
480
+ resizeDisabled?: boolean;
481
+ rightClickDisabled?: boolean;
482
+ sort?: string[];
483
+ tags?: any;
484
+ toolTip?: string;
485
+ barBackColor?: string;
486
+ barColor?: string;
487
+ barHidden?: boolean;
488
+ complete?: number;
489
+ container?: number | string;
490
+ height?: number;
491
+ htmlLeft?: string;
492
+ htmlRight?: string;
493
+ moveVDisabled?: boolean;
494
+ moveHDisabled?: boolean;
495
+ }
496
+ export function guid(): string;
497
+ export interface EventHandler<T> {
498
+ (args: T): void;
499
+ }
500
+ export type ResourceId = string | number;
501
+ export type EventId = string | number;
502
+ export class ModalPropsAndEvents {
503
+ autoFocus?: boolean;
504
+ autoStretch?: boolean;
505
+ autoStretchFirstLoadOnly?: boolean;
506
+ container?: HTMLElement;
507
+ disposeOnClose?: boolean;
508
+ dragDrop?: boolean;
509
+ focus?: string | {
510
+ id: string;
511
+ value: string | number;
512
+ };
513
+ height?: number;
514
+ left?: number;
515
+ loadingHtml?: string;
516
+ maxHeight?: number;
517
+ scrollWithPage?: boolean;
518
+ theme?: string;
519
+ top?: number;
520
+ useIframe?: boolean;
521
+ width?: number;
522
+ zIndex?: number;
523
+ onClose?: EventHandler<ModalCloseArgs>;
524
+ onClosed?: EventHandler<ModalClosedArgs>;
525
+ onShow?: EventHandler<ModalShowArgs>;
526
+ }
527
+ export class ModalConfig extends ModalPropsAndEvents {
528
+ }
529
+ export class Modal extends ModalPropsAndEvents {
530
+ constructor(options?: ModalConfig);
531
+ close(result?: any): void;
532
+ closeSerialized(): void;
533
+ showHtml(html: string | HTMLElement): void;
534
+ showUrl(url: string): void;
535
+ stretch(): void;
536
+ static close(): void;
537
+ static opener(): void;
538
+ static prompt(message: string, defaultValue?: string, options?: ModalPromptConfig): Promise<ModalClosedArgs>;
539
+ static alert(message: string, options?: ModalAlertConfig): Promise<ModalClosedArgs>;
540
+ static confirm(message: string, options?: ModalConfirmConfig): Promise<ModalClosedArgs>;
541
+ static form(form?: ModalFormItem[], data?: any, options?: ModalFormConfig): Promise<ModalClosedArgs>;
542
+ }
543
+ export class ModalAlertConfig extends ModalConfig {
544
+ okText?: string;
545
+ }
546
+ export class ModalConfirmConfig extends ModalConfig {
547
+ okText?: string;
548
+ cancelText?: string;
549
+ }
550
+ export class ModalPromptConfig extends ModalConfig {
551
+ okText?: string;
552
+ cancelText?: string;
553
+ }
554
+ export class ModalFormConfig extends ModalConfig {
555
+ okText?: string;
556
+ cancelText?: string;
557
+ locale?: string;
558
+ plugins?: any;
559
+ }
560
+ export interface ModalCloseArgs {
561
+ canceled: boolean;
562
+ result: any;
563
+ backgroundClick: boolean;
564
+ preventDefault(): void;
565
+ }
566
+ export interface ModalClosedArgs {
567
+ canceled: boolean;
568
+ result: any;
569
+ backgroundClick: boolean;
570
+ }
571
+ export interface ModalShowArgs {
572
+ root: Node;
573
+ }
574
+ export interface ModalFormItem {
575
+ id?: string;
576
+ name?: string;
577
+ type?: "text" | "date" | "searchable" | "select" | "radio" | "checkbox" | "table" | "title" | "image" | "html" | "textarea" | "scrollable" | string;
578
+ image?: string;
579
+ dateFormat?: string;
580
+ disabled?: boolean;
581
+ cssClass?: string;
582
+ options?: ModalFormOption[];
583
+ children?: ModalFormItem[];
584
+ columns?: ModalFormTableColumns[];
585
+ onValidate?: EventHandler<ModalFormItemValidationArgs>;
586
+ onNewRow?: EventHandler<ModalFormTableItemNewRowArgs>;
587
+ height?: number;
588
+ text?: string;
589
+ html?: string;
590
+ }
591
+ export interface ModalFormOption {
592
+ id: string | number;
593
+ name?: string;
594
+ children?: ModalFormItem[];
595
+ }
596
+ export interface ModalFormTableColumns {
597
+ id: string;
598
+ name: string;
599
+ type?: "text" | "number" | "select";
600
+ options?: ModalFormOption[];
601
+ }
602
+ export interface ModalFormItemValidationArgs {
603
+ value: any;
604
+ result: any;
605
+ valid: boolean;
606
+ message: string;
607
+ }
608
+ export interface ModalFormTableItemNewRowArgs {
609
+ value: any;
610
+ result: any;
611
+ }
612
+ export {};
613
+ }
614
+ export {};
@@ -0,0 +1,25 @@
1
+ import { AfterViewInit, DoCheck, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { DayPilot } from "./core/daypilot-core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class DayPilotCalendarComponent implements OnInit, OnDestroy, AfterViewInit, DoCheck {
5
+ control: DayPilot.Calendar;
6
+ viewChange: EventEmitter<DayPilot.Date>;
7
+ events: DayPilot.EventData[];
8
+ config: any;
9
+ private _requestUpdateFull;
10
+ private _requestUpdateEvents;
11
+ private _requestViewChange;
12
+ private _hashOptions;
13
+ private _hashEvents;
14
+ private _id;
15
+ get id(): string;
16
+ ngOnInit(): void;
17
+ ngOnDestroy(): void;
18
+ ngAfterViewInit(): void;
19
+ ngDoCheck(): void;
20
+ private dispose;
21
+ private updateOptions;
22
+ private updateEvents;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<DayPilotCalendarComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<DayPilotCalendarComponent, "daypilot-calendar", never, { "events": "events"; "config": "config"; }, { "viewChange": "viewChange"; }, never, never>;
25
+ }
@@ -0,0 +1,22 @@
1
+ import { AfterViewInit, DoCheck, OnDestroy, OnInit } from "@angular/core";
2
+ import { DayPilot } from "./core/daypilot-core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class DayPilotMonthComponent implements OnInit, OnDestroy, AfterViewInit, DoCheck {
5
+ control: DayPilot.Month;
6
+ events: DayPilot.EventData[];
7
+ config: any;
8
+ private _requestUpdate;
9
+ private _hashOptions;
10
+ private _hashEvents;
11
+ private _id;
12
+ get id(): string;
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ ngAfterViewInit(): void;
16
+ ngDoCheck(): void;
17
+ private dispose;
18
+ private updateOptions;
19
+ private updateEvents;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DayPilotMonthComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<DayPilotMonthComponent, "daypilot-month", never, { "events": "events"; "config": "config"; }, {}, never, never>;
22
+ }
@@ -0,0 +1,29 @@
1
+ import { AfterViewInit, DoCheck, EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
+ import { DayPilot } from "./core/daypilot-core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class DayPilotNavigatorComponent implements OnInit, OnDestroy, AfterViewInit, DoCheck {
5
+ events: DayPilot.EventDataShort[];
6
+ config: any;
7
+ dateChange: EventEmitter<DayPilot.Date>;
8
+ control: DayPilot.Navigator;
9
+ private _requestUpdate;
10
+ private _hashOptions;
11
+ private _hashEvents;
12
+ private _onTrs;
13
+ private _dateSet;
14
+ private _currentDate;
15
+ private _date;
16
+ get date(): DayPilot.Date;
17
+ set date(value: DayPilot.Date);
18
+ private _id;
19
+ get id(): string;
20
+ ngOnInit(): void;
21
+ ngOnDestroy(): void;
22
+ ngAfterViewInit(): void;
23
+ ngDoCheck(): void;
24
+ private dispose;
25
+ private updateOptions;
26
+ private updateEvents;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DayPilotNavigatorComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DayPilotNavigatorComponent, "daypilot-navigator", never, { "events": "events"; "config": "config"; "date": "date"; }, { "dateChange": "dateChange"; }, never, never>;
29
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./daypilot-calendar.component";
3
+ import * as i2 from "./daypilot-month.component";
4
+ import * as i3 from "./daypilot-navigator.component";
5
+ export declare class DayPilotModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DayPilotModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DayPilotModule, [typeof i1.DayPilotCalendarComponent, typeof i2.DayPilotMonthComponent, typeof i3.DayPilotNavigatorComponent], never, [typeof i1.DayPilotCalendarComponent, typeof i2.DayPilotMonthComponent, typeof i3.DayPilotNavigatorComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DayPilotModule>;
9
+ }